2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-largefile omit support
for large files
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --without-gcc don
't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP
mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version
5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server
host
689 --with-x-toolkit=KIT use an X toolkit
(KIT
= yes
/lucid
/athena
/motif
/no
)
690 --with-xpm use
-lXpm for displaying XPM images
691 --with-jpeg use
-ljpeg for displaying JPEG images
692 --with-tiff use
-ltiff for displaying TIFF images
693 --with-gif use
-lungif for displaying GIF images
694 --with-png use
-lpng for displaying PNG images
695 --without-toolkit-scroll-bars
696 don
't use Motif or Xaw3d scroll bars
697 --without-xim don't use X11 XIM
698 --with-x use the X Window System
700 Some influential environment variables
:
701 CC C compiler
command
702 CFLAGS C compiler flags
703 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
704 nonstandard directory
<lib dir
>
705 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
706 headers
in a nonstandard directory
<include dir
>
709 Use these variables to override the choices made by
`configure' or to help
710 it to find libraries and programs with nonstandard names/locations.
715 if test "$ac_init_help" = "recursive"; then
716 # If there are subdirs, report their specific --help.
718 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
720 # A "../" for each directory in /$ac_subdir.
721 ac_dots=`echo $ac_subdir |
722 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
725 .) # No --srcdir option. We are building in place.
726 ac_sub_srcdir=$srcdir ;;
727 [\\/]* | ?:[\\/]* ) # Absolute path.
728 ac_sub_srcdir=$srcdir/$ac_subdir ;;
730 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
733 # Check for guested configure; otherwise get Cygnus style configure.
734 if test -f $ac_sub_srcdir/configure.gnu; then
736 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
737 elif test -f $ac_sub_srcdir/configure; then
739 $SHELL $ac_sub_srcdir/configure --help=recursive
740 elif test -f $ac_sub_srcdir/configure.ac ||
741 test -f $ac_sub_srcdir/configure.in; then
745 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
751 test -n "$ac_init_help" && exit 0
752 if $ac_init_version; then
755 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
756 Free Software Foundation, Inc.
757 This configure script is free software; the Free Software Foundation
758 gives unlimited permission to copy, distribute and modify it.
764 This file contains any messages produced by compilers while
765 running configure, to aid debugging if configure makes a mistake.
767 It was created by $as_me, which was
768 generated by GNU Autoconf 2.52. Invocation command line was
779 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
780 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
781 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
782 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
783 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
785 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
786 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
788 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
789 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
790 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
791 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
792 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
793 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
794 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
808 # Keep a trace of the command line.
809 # Strip out --no-create and --no-recursion so they do not pile up.
810 # Also quote any args containing shell meta-characters.
816 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
817 | --no-cr | --no-c) ;;
818 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
819 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
820 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
821 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
822 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
824 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
827 # Get rid of the leading space.
830 # When interrupted or exit'd, cleanup temporary files, and complete
831 # config.log. We remove comments because anyway the quotes in there
832 # would cause problems or look ugly.
834 # Save into config.log some information that might help in debugging.
836 echo "## ----------------- ##" >&5
837 echo "## Cache variables. ##" >&5
838 echo "## ----------------- ##" >&5
840 # The following way of writing the cache mishandles newlines in values,
843 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
846 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855 sed "/^$/d" confdefs.h >conftest.log
856 if test -s conftest.log; then
858 echo "## ------------ ##" >&5
859 echo "## confdefs.h. ##" >&5
860 echo "## ------------ ##" >&5
865 test "$ac_signal" != 0 &&
866 echo "$as_me: caught signal $ac_signal" >&5
867 echo "$as_me: exit $exit_status" >&5
868 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
871 for ac_signal in 1 2 13 15; do
872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
877 rm -rf conftest* confdefs.h
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 # Let the site file select an alternate cache file if it wants to.
882 # Prefer explicitly selected file to automatically selected ones.
883 if test -z "$CONFIG_SITE"; then
884 if test "x$prefix" != xNONE; then
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
890 for ac_site_file in $CONFIG_SITE; do
891 if test -r "$ac_site_file"; then
892 { echo "$as_me:892: loading site script $ac_site_file" >&5
893 echo "$as_me: loading site script $ac_site_file" >&6;}
894 cat "$ac_site_file" >&5
899 if test -r "$cache_file"; then
900 # Some versions of bash will fail to source /dev/null (special
901 # files actually), so we avoid doing that.
902 if test -f "$cache_file"; then
903 { echo "$as_me:903: loading cache $cache_file" >&5
904 echo "$as_me: loading cache $cache_file" >&6;}
906 [\\/]* | ?:[\\/]* ) . $cache_file;;
911 { echo "$as_me:911: creating cache $cache_file" >&5
912 echo "$as_me: creating cache $cache_file" >&6;}
916 # Check that the precious variables saved in the cache have kept the same
918 ac_cache_corrupted=false
919 for ac_var in `(set) 2>&1 |
920 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
922 eval ac_new_set=\$ac_env_${ac_var}_set
923 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
924 eval ac_new_val="\$ac_env_${ac_var}_value"
925 case $ac_old_set,$ac_new_set in
927 { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
928 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
929 ac_cache_corrupted=: ;;
931 { echo "$as_me:931: error: \`$ac_var' was not
set in the previous run
" >&5
932 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
936 if test "x$ac_old_val" != "x$ac_new_val"; then
937 { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5
938 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
939 { echo "$as_me:939: former value
: $ac_old_val" >&5
940 echo "$as_me: former value
: $ac_old_val" >&2;}
941 { echo "$as_me:941: current value
: $ac_new_val" >&5
942 echo "$as_me: current value
: $ac_new_val" >&2;}
946 # Pass precious variables to config.status. It doesn't matter if
947 # we pass some twice (in addition to the command line arguments).
948 if test "$ac_new_set" = set; then
950 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
951 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
952 ac_configure_args="$ac_configure_args '$ac_arg'"
954 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
959 if $ac_cache_corrupted; then
960 { echo "$as_me:960: error
: changes
in the environment can compromise the build
" >&5
961 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
962 { { echo "$as_me:962: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
963 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
964 { (exit 1); exit 1; }; }
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
974 *c*,-n*) ECHO_N= ECHO_C='
976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
979 echo "#! $SHELL" >conftest.sh
980 echo "exit 0" >>conftest.sh
982 if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5
983 (PATH=".;."; conftest.sh) 2>&5
985 echo "$as_me:985: \$? = $ac_status" >&5
986 (exit $ac_status); }; then
987 ac_path_separator=';'
991 PATH_SEPARATOR="$ac_path_separator"
994 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
996 test "$program_prefix" != NONE &&
997 program_transform_name="s,^,$program_prefix,;$program_transform_name"
998 # Use a double $ so make ignores it.
999 test "$program_suffix" != NONE &&
1000 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1001 # Double any \ or $. echo might interpret backslashes.
1002 # By default was `s
,x
,x
', remove it if useless.
1003 cat <<\_ACEOF >conftest.sed
1004 s/[\\$]/&&/g;s/;s,x,x,$//
1006 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1009 lispdir='${datadir}/emacs
/${version}/lisp
'
1010 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1011 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1012 lisppath='${locallisppath}:${lispdir}'
1013 etcdir='${datadir}/emacs
/${version}/etc
'
1014 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1015 docdir='${datadir}/emacs
/${version}/etc
'
1017 # Check whether --with-gcc or --without-gcc was given.
1018 if test "${with_gcc+set}" = set; then
1023 # Check whether --with-pop or --without-pop was given.
1024 if test "${with_pop+set}" = set; then
1026 if test "$withval" = yes; then
1027 cat >>confdefs.h <<\EOF
1028 #define MAIL_USE_POP 1
1034 cat >>confdefs.h <<\EOF
1035 #define MAIL_USE_POP 1
1040 # Check whether --with-kerberos or --without-kerberos was given.
1041 if test "${with_kerberos+set}" = set; then
1042 withval="$with_kerberos"
1043 cat >>confdefs.h <<\EOF
1049 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1050 if test "${with_kerberos5+set}" = set; then
1051 withval="$with_kerberos5"
1052 if test "${with_kerberos5+set}" = set; then
1053 if test "${with_kerberos+set}" != set; then
1055 cat >>confdefs.h <<\EOF
1061 cat >>confdefs.h <<\EOF
1067 # Check whether --with-hesiod or --without-hesiod was given.
1068 if test "${with_hesiod+set}" = set; then
1069 withval="$with_hesiod"
1070 cat >>confdefs.h <<\EOF
1076 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1077 if test "${with_x_toolkit+set}" = set; then
1078 withval="$with_x_toolkit"
1079 case "${withval}" in
1080 y | ye | yes ) val=athena ;;
1082 l | lu | luc | luci | lucid ) val=lucid ;;
1083 a | at | ath | athe | athen | athena ) val=athena ;;
1084 m | mo | mot | moti | motif ) val=motif ;;
1086 { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\
;
1087 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1088 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1089 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1090 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1091 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1092 { (exit 1); exit 1; }; }
1099 # Check whether --with-xpm or --without-xpm was given.
1100 if test "${with_xpm+set}" = set; then
1105 # Check whether --with-jpeg or --without-jpeg was given.
1106 if test "${with_jpeg+set}" = set; then
1107 withval="$with_jpeg"
1111 # Check whether --with-tiff or --without-tiff was given.
1112 if test "${with_tiff+set}" = set; then
1113 withval="$with_tiff"
1117 # Check whether --with-gif or --without-gif was given.
1118 if test "${with_gif+set}" = set; then
1123 # Check whether --with-png or --without-png was given.
1124 if test "${with_png+set}" = set; then
1129 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1130 if test "${with_toolkit_scroll_bars+set}" = set; then
1131 withval="$with_toolkit_scroll_bars"
1135 # Check whether --with-xim or --without-xim was given.
1136 if test "${with_xim+set}" = set; then
1141 #### Make srcdir absolute, if it isn't already. It
's important to
1142 #### avoid running the path through pwd unnecessarily, since pwd can
1143 #### give you automounter prefixes, which can go away. We do all this
1144 #### so Emacs can find its files when run uninstalled.
1145 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1150 ## We may be able to use the $PWD environment variable to make this
1151 ## absolute. But sometimes PWD is inaccurate.
1152 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1156 srcdir
="`(cd ${srcdir}; pwd)`"
1159 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1162 #### Check if the source directory already has a configured system in it.
1163 if test `pwd` != `(cd ${srcdir} && pwd)` \
1164 && test -f "${srcdir}/src/config.h" ; then
1165 { echo "$as_me:1165: WARNING: The directory tree \`${srcdir}' is being used
1166 as a build directory right now; it has been configured in its own
1167 right. To configure in another directory as well, you MUST
1168 use GNU make. If you do not have GNU make, then you must
1169 now do \`make distclean' in ${srcdir},
1170 and then run $0 again." >&5
1171 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1172 as a build directory right now; it has been configured in its own
1173 right. To configure in another directory as well, you MUST
1174 use GNU make. If you do not have GNU make, then you must
1175 now do \`make distclean' in ${srcdir},
1176 and then run $0 again." >&2;}
1178 extrasub
='/^VPATH[ ]*=/c\
1179 vpath %.c $(srcdir)\
1180 vpath %.h $(srcdir)\
1181 vpath %.y $(srcdir)\
1182 vpath %.l $(srcdir)\
1183 vpath %.s $(srcdir)\
1184 vpath %.in $(srcdir)\
1185 vpath %.texi $(srcdir)'
1188 #### Given the configuration name, set machfile and opsysfile to the
1189 #### names of the m/*.h and s/*.h files we should use.
1191 ### Canonicalize the configuration name.
1194 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1195 if test -f $ac_dir/install-sh
; then
1197 ac_install_sh
="$ac_aux_dir/install-sh -c"
1199 elif test -f $ac_dir/install.sh
; then
1201 ac_install_sh
="$ac_aux_dir/install.sh -c"
1203 elif test -f $ac_dir/shtool
; then
1205 ac_install_sh
="$ac_aux_dir/shtool install -c"
1209 if test -z "$ac_aux_dir"; then
1210 { { echo "$as_me:1210: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1211 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1212 { (exit 1); exit 1; }; }
1214 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1215 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1216 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1218 # Make sure we can run config.sub.
1219 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1220 { { echo "$as_me:1220: error: cannot run $ac_config_sub" >&5
1221 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1222 { (exit 1); exit 1; }; }
1224 echo "$as_me:1224: checking build system type" >&5
1225 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1226 if test "${ac_cv_build+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 ac_cv_build_alias
=$build_alias
1230 test -z "$ac_cv_build_alias" &&
1231 ac_cv_build_alias
=`$ac_config_guess`
1232 test -z "$ac_cv_build_alias" &&
1233 { { echo "$as_me:1233: error: cannot guess build type; you must specify one" >&5
1234 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1235 { (exit 1); exit 1; }; }
1236 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1237 { { echo "$as_me:1237: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1238 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1239 { (exit 1); exit 1; }; }
1242 echo "$as_me:1242: result: $ac_cv_build" >&5
1243 echo "${ECHO_T}$ac_cv_build" >&6
1245 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1246 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1247 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1249 echo "$as_me:1249: checking host system type" >&5
1250 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1251 if test "${ac_cv_host+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 ac_cv_host_alias
=$host_alias
1255 test -z "$ac_cv_host_alias" &&
1256 ac_cv_host_alias
=$ac_cv_build_alias
1257 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_host" >&5
1264 echo "${ECHO_T}$ac_cv_host" >&6
1266 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 configuration
=${host_alias-$host}
1273 ### If you add support for a new configuration, add code to this
1274 ### switch statement to recognize your configuration name and select
1275 ### the appropriate operating system and machine description files.
1277 ### You would hope that you could choose an m/*.h file pretty much
1278 ### based on the machine portion of the configuration name, and an s-
1279 ### file based on the operating system portion. However, it turns out
1280 ### that each m/*.h file is pretty manufacturer-specific - for
1281 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1282 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1283 ### machines. So we basically have to have a special case for each
1284 ### configuration name.
1286 ### As far as handling version numbers on operating systems is
1287 ### concerned, make sure things will fail in a fixable way. If
1288 ### /etc/MACHINES doesn't say anything about version numbers, be
1289 ### prepared to handle anything reasonably. If version numbers
1290 ### matter, be sure /etc/MACHINES says something about it.
1292 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1293 ### "System V Release 4"; he writes, "The old convention encouraged
1294 ### confusion between `system' and `release' levels'."
1296 machine
='' opsys
='' unported
=no
1297 case "${canonical}" in
1302 case "${canonical}" in
1303 alpha
*-*-netbsd*) machine
=alpha
;;
1304 i
[3456]86-*-netbsd*) machine
=intel386
;;
1306 # This is somewhat bogus.
1307 machine
=hp9000s300
;;
1308 powerpc-apple-netbsd
*) machine
=macppc
;;
1309 mips-
*-netbsd*) machine
=pmax
;;
1310 mipsel-
*-netbsd*) machine
=pmax
;;
1311 ns32k-
*-netbsd*) machine
=ns32000
;;
1312 powerpc-
*-netbsd*) machine
=macppc
;;
1313 sparc
*-*-netbsd*) machine
=sparc
;;
1314 vax-
*-netbsd*) machine
=vax
;;
1315 arm-
*-netbsd*) machine
=arm
;;
1322 case "${canonical}" in
1323 alpha
*-*-openbsd*) machine
=alpha
;;
1324 i386-
*-openbsd*) machine
=intel386
;;
1325 m68k-
*-openbsd*) machine
=hp9000s300
;;
1326 mipsel-
*-openbsd*) machine
=pmax
;;
1327 ns32k-
*-openbsd*) machine
=ns32000
;;
1328 sparc-
*-openbsd*) machine
=sparc
;;
1329 vax-
*-openbsd*) machine
=vax
;;
1334 arm-acorn-riscix1.1
* )
1335 machine
=acorn opsys
=riscix1-1
1337 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1338 ## This name is riscix12 instead of riscix1.2
1339 ## to avoid a file name conflict on MSDOS.
1340 machine
=acorn opsys
=riscix12
1346 case "${canonical}" in
1347 i
[345]86-*-bsdi*) machine
=intel386
;;
1348 sparc-
*-bsdi*) machine
=sparc
;;
1349 powerpc-
*-bsdi*) machine
=macppc
;;
1351 case "${canonical}" in
1352 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1353 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1354 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1355 *-*-bsdi3* ) opsys
=bsdos3
;;
1356 *-*-bsdi4* ) opsys
=bsdos4
;;
1361 ## Strictly speaking, we need the version of the alliant operating
1362 ## system to choose the right machine file, but currently the
1363 ## configuration name doesn't tell us enough to choose the right
1364 ## one; we need to give alliants their own operating system name to
1365 ## do this right. When someone cares, they can help us.
1367 machine
=alliant4 opsys
=bsd4-2
1370 machine
=alliant-2800 opsys
=bsd4-3
1373 ## Alpha (DEC) machines.
1375 machine
=alpha opsys
=osf1
1376 # This is needed to find X11R6.1 libraries for certain tests.
1377 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1378 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1379 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1380 # due to non-traditional preprocessing with the current compiler
1381 # defaults. OSF 4 can also have that compiler version, and there
1382 # seems always to have been a usable /usr/bin/cpp.
1383 NON_GNU_CPP
=/usr
/bin
/cpp
1384 case "${canonical}" in
1385 alpha
*-dec-osf[5-9]*)
1390 alpha
*-*-linux-gnu* )
1391 machine
=alpha opsys
=gnu-linux
1395 machine
=arm opsys
=gnu-linux
1400 machine
=macppc opsys
=gnu-linux
1405 machine
=altos opsys
=usg5-2
1410 machine
=amdahl opsys
=usg5-2-2
1413 ## Apollo, Domain/OS
1415 machine
=apollo opsys
=bsd4-3
1418 ## AT&T 3b2, 3b5, 3b15, 3b20
1420 machine
=att3b opsys
=usg5-2-2
1423 ## AT&T 3b1 - The Mighty Unix PC!
1425 machine
=7300 opsys
=usg5-2-2
1430 machine
=ibmrs6000 opsys
=aix3-2
1435 machine
=dpx2 opsys
=usg5-3
1440 machine
=sps7 opsys
=usg5-2
1443 ## CCI 5/32, 6/32 -- see "Tahoe".
1446 ## I don't know what configuration name to use for this; config.sub
1447 ## doesn't seem to know anything about it. Hey, Celerity users, get
1448 ## in touch with us!
1449 celerity-celerity-bsd
* )
1450 machine
=celerity opsys
=bsd4-2
1454 ## What operating systems does this chip run that Emacs has been
1458 ## We'll use the catch-all code at the bottom to guess the
1459 ## operating system.
1463 *-convex-bsd* |
*-convex-convexos* )
1464 machine
=convex opsys
=bsd4-3
1465 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1466 NON_GNU_CPP
="cc -E -P"
1470 i
[3456]86-cubix-sysv* )
1471 machine
=intel386 opsys
=usg5-3
1475 cydra
*-cydrome-sysv* )
1476 machine
=cydra5 opsys
=usg5-3
1479 ## Data General AViiON Machines
1480 ## DG changed naming conventions with the release of 5.4.4.10, they
1481 ## dropped the initial 5.4 but left the intervening R. Because of the
1482 ## R this shouldn't conflict with older versions of the OS (which I
1483 ## think were named like dgux4.*). In addition, DG new AViiONs series
1484 ## uses either Motorola M88k or Intel Pentium CPUs.
1485 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1486 machine
=aviion opsys
=dgux4
1488 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1489 ## This name is dgux5-4-3 instead of dgux5-4r3
1490 ## to avoid a file name conflict on MSDOS.
1491 machine
=aviion opsys
=dgux5-4-3
1493 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1494 machine
=aviion opsys
=dgux5-4r2
1497 machine
=aviion opsys
=dgux
1500 ## Data General AViiON Intel (x86) Machines
1501 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1502 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1503 i
[345]86-dg-dguxR4* )
1504 machine
=aviion-intel opsys
=dgux4
1508 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1509 machine
=pmax opsys
=bsd4-2
1511 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1512 machine
=pmax opsys
=bsd4-3
1515 machine
=pmax opsys
=ultrix4-3
1518 machine
=pmax opsys
=osf1
1520 mips-dec-mach_bsd4.3
* )
1521 machine
=pmax opsys
=mach-bsd4-3
1524 ## Motorola Delta machines
1525 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1526 machine
=delta opsys
=usg5-3
1527 if test -z "`type gnucc | grep 'not found'`"
1529 if test -s /etc
/167config
1530 then CC
="gnucc -m68040"
1531 else CC
="gnucc -m68881"
1534 if test -z "`type gcc | grep 'not found'`"
1540 m88k-motorola-sysv4
* )
1541 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1542 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1543 # I hope there are not other 4.0 versions for this machine
1544 # which really need usg5-4 instead.
1545 machine
=delta88k opsys
=usg5-4-2
1547 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1548 machine
=delta88k opsys
=usg5-3
1553 machine
=dual opsys
=usg5-2
1555 m68
*-dual-uniplus* )
1556 machine
=dual opsys
=unipl5-2
1561 machine
=elxsi opsys
=usg5-2
1566 machine
=ns16000 opsys
=umax
1569 ## The GEC 63 - apparently, this port isn't really finished yet.
1570 # I'm sure we finished off the last of the machines, though. -- fx
1572 ## Gould Power Node and NP1
1574 machine
=gould opsys
=bsd4-2
1577 machine
=gould opsys
=bsd4-3
1580 machine
=gould-np1 opsys
=bsd4-3
1583 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1584 ## as far as Emacs is concerned).
1586 # Build needs to be different on 7.0 and later releases
1587 case "`uname -r`" in
1588 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1589 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1591 NON_GNU_CPP
="/lib/cpp"
1593 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1595 machine
=nh3000 opsys
=cxux
1597 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1598 powerpc-harris-powerunix
)
1599 machine
=nh6000 opsys
=powerunix
1600 NON_GNU_CPP
="cc -Xo -E -P"
1602 ## SR2001/SR2201 running HI-UX/MPP
1603 hppa1.1
-hitachi-hiuxmpp* )
1604 machine
=sr2k opsys
=hiuxmpp
1606 hppa1.1
-hitachi-hiuxwe2* )
1607 machine
=sr2k opsys
=hiuxwe2
1610 xps
*-honeywell-sysv* )
1611 machine
=xps100 opsys
=usg5-2
1614 ## HP 9000 series 200 or 300
1616 machine
=hp9000s300 opsys
=bsd4-3
1618 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1620 case "`uname -r`" in
1621 ## Someone's system reports A.B8.05 for this.
1622 ## I wonder what other possibilities there are.
1623 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1624 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1625 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1626 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1627 *) machine
=hp9000s300 opsys
=hpux
;;
1631 ## HP 9000 series 700 and 800, running HP/UX
1633 machine
=hp800 opsys
=hpux
1636 machine
=hp800 opsys
=hpux8
1638 hppa
*-hp-hpux9shr* )
1639 machine
=hp800 opsys
=hpux9shr
1642 machine
=hp800 opsys
=hpux9
1645 machine
=hp800 opsys
=hpux10
1647 hppa
*-hp-hpux1[1-9]* )
1648 machine
=hp800 opsys
=hpux11
1651 ## HP 9000 series 700 and 800, running HP/UX
1653 ## Cross-compilation? Nah!
1654 case "`uname -r`" in
1655 ## Someone's system reports A.B8.05 for this.
1656 ## I wonder what other possibilities there are.
1657 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1658 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1659 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1660 *) machine
=hp800 opsys
=hpux10
;;
1664 machine
=hp800 opsys
=nextstep
1669 machine
=orion opsys
=bsd4-2
1671 clipper-orion-bsd
* )
1672 machine
=orion105 opsys
=bsd4-2
1676 i
[3456]86-ibm-aix1.1
* )
1677 machine
=ibmps2-aix opsys
=usg5-2-2
1679 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1680 machine
=ibmps2-aix opsys
=usg5-3
1683 machine
=ibm370aix opsys
=usg5-3
1686 machine
=ibms390 opsys
=gnu-linux
1688 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1689 machine
=ibmrs6000 opsys
=aix3-1
1691 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1692 machine
=ibmrs6000 opsys
=aix3-2-5
1694 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1695 machine
=ibmrs6000 opsys
=aix4-1
1697 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1698 machine
=ibmrs6000 opsys
=aix4-2
1700 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1701 machine
=ibmrs6000 opsys
=aix4
1703 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1704 machine
=ibmrs6000 opsys
=aix4-1
1706 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1707 machine
=ibmrs6000 opsys
=aix3-2
1710 machine
=ibmrt opsys
=bsd4-3
1713 machine
=ibmrt opsys
=bsd4-2
1716 machine
=ibmrt opsys
=bsd4-3
1719 machine
=ibmrt opsys
=bsd4-2
1722 machine
=ibmrt opsys
=bsd4-3
1725 machine
=ibmrt opsys
=bsd4-3
1728 machine
=ibmrt-aix opsys
=usg5-2-2
1731 ## Integrated Solutions `Optimum V'
1733 machine
=isi-ov opsys
=bsd4-2
1736 machine
=isi-ov opsys
=bsd4-3
1739 ## Intel 386 machines where we do care about the manufacturer
1740 i
[3456]86-intsys-sysv* )
1741 machine
=is386 opsys
=usg5-2-2
1745 i
[3456]86-prime-sysv* )
1746 machine
=i386 opsys
=usg5-3
1749 ## Sequent Symmetry running Dynix
1750 i
[3456]86-sequent-bsd* )
1751 machine
=symmetry opsys
=bsd4-3
1754 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1755 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1756 machine
=sequent-ptx opsys
=ptx4
1757 NON_GNU_CPP
=/lib
/cpp
1760 ## Sequent Symmetry running DYNIX/ptx
1761 ## Use the old cpp rather than the newer ANSI one.
1762 i
[3456]86-sequent-ptx* )
1763 machine
=sequent-ptx opsys
=ptx
1764 NON_GNU_CPP
="/lib/cpp"
1767 ## ncr machine running svr4.3.
1768 i
[3456]86-ncr-sysv4.3
)
1769 machine
=ncr386 opsys
=usg5-4-3
1772 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1773 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1774 i
[3456]86-ncr-sysv* )
1775 machine
=ncr386 opsys
=usg5-4-2
1778 ## Intel Paragon OSF/1
1780 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1785 machine
=i860 opsys
=usg5-4
1786 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1787 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1790 ## Macintosh PowerPC
1791 powerpc
*-*-linux-gnu* )
1792 machine
=macppc opsys
=gnu-linux
1795 ## Masscomp machines
1796 m68
*-masscomp-rtu* )
1797 machine
=masscomp opsys
=rtu
1800 ## Megatest machines
1801 m68
*-megatest-bsd* )
1802 machine
=mega68 opsys
=bsd4-2
1805 ## Workstations sold by MIPS
1806 ## This is not necessarily all workstations using the MIPS processor -
1807 ## Irises are produced by SGI, and DECstations by DEC.
1809 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1810 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1811 ## it gives for choosing between the alternatives seems to be "Use
1812 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1813 ## the BSD world." I'll assume that these are instructions for
1814 ## handling two odd situations, and that every other situation
1815 ## should use mips.h and usg5-2-2, they being listed first.
1818 ## Fall through to the general code at the bottom to decide on the OS.
1820 mips-mips-riscos4
* )
1821 machine
=mips4 opsys
=bsd4-3
1822 NON_GNU_CC
="cc -systype bsd43"
1823 NON_GNU_CPP
="cc -systype bsd43 -E"
1825 mips-mips-riscos5
* )
1826 machine
=mips4 opsys
=riscos5
1827 NON_GNU_CC
="cc -systype bsd43"
1828 NON_GNU_CPP
="cc -systype bsd43 -E"
1831 machine
=mips opsys
=bsd4-3
1834 machine
=mips opsys
=usg5-2-2
1838 m68
*-next-* | m68k-
*-nextstep* )
1839 machine
=m68k opsys
=nextstep
1842 ## The complete machine from National Semiconductor
1844 machine
=ns32000 opsys
=usg5-2
1848 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1849 machine
=tower32 opsys
=usg5-2-2
1851 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1852 machine
=tower32v3 opsys
=usg5-3
1857 machine
=ews4800 opsys
=ux4800
1860 ## Nixdorf Targon 31
1861 m68
*-nixdorf-sysv* )
1862 machine
=targon31 opsys
=usg5-2-2
1867 machine
=nu opsys
=usg5-2
1872 machine
=plexus opsys
=usg5-2
1875 ## PowerPC reference platform
1876 powerpcle-
*-solaris2* )
1882 ## I don't really have any idea what sort of processor the Pyramid has,
1883 ## so I'm assuming it is its own architecture.
1884 pyramid-pyramid-bsd
* )
1885 machine
=pyramid opsys
=bsd4-2
1889 ns32k-sequent-bsd4.2
* )
1890 machine
=sequent opsys
=bsd4-2
1892 ns32k-sequent-bsd4.3
* )
1893 machine
=sequent opsys
=bsd4-3
1897 mips-siemens-sysv
* | mips-sni-sysv
*)
1898 machine
=mips-siemens opsys
=usg5-4
1899 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1900 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1903 ## Silicon Graphics machines
1904 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1906 machine
=irist opsys
=iris3-5
1908 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1909 machine
=irist opsys
=iris3-6
1913 machine
=iris4d opsys
=irix3-3
1916 machine
=iris4d opsys
=irix4-0
1919 machine
=iris4d opsys
=irix6-5
1920 # Without defining _LANGUAGE_C, things get masked out in the headers
1921 # so that, for instance, grepping for `free' in stdlib.h fails and
1922 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1923 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1924 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1927 machine
=iris4d opsys
=irix6-0
1928 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1929 # but presumably it does no harm.
1930 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1931 # -32 probably isn't necessary in later v.6s -- anyone know which?
1932 NON_GCC_TEST_OPTIONS
=-32
1934 mips-sgi-irix5.
[01]* )
1935 machine
=iris4d opsys
=irix5-0
1937 mips-sgi-irix5
* | mips-sgi-irix
* )
1938 machine
=iris4d opsys
=irix5-2
1943 machine
=news opsys
=bsd4-2
1946 machine
=news opsys
=bsd4-3
1948 m68
*-sony-newsos3* | m68
*-sony-news3*)
1949 machine
=news opsys
=bsd4-3
1951 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1952 machine
=news-risc opsys
=bsd4-3
1954 mips-sony-newsos6
* )
1955 machine
=news-r6 opsys
=newsos6
1958 machine
=news-risc opsys
=newsos5
1963 machine
=stride opsys
=usg5-2
1967 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1968 machine
=sparc opsys
=gnu-linux
1971 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1972 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1973 | rs6000-
*-solaris2*)
1974 case "${canonical}" in
1975 m68
*-sunos1* ) machine
=sun1
;;
1976 m68
*-sunos2* ) machine
=sun2
;;
1977 m68
* ) machine
=sun3
;;
1978 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1979 i
[3456]86-*-* ) machine
=intel386
;;
1980 powerpcle
* ) machine
=powerpcle
;;
1981 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1982 sparc
* ) machine
=sparc
;;
1985 case "${canonical}" in
1986 ## The Sun386 didn't get past 4.0.
1987 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1988 *-sunos4.0
* ) opsys
=sunos4-0
;;
1989 *-sunos4.1.
[3-9]*noshare
)
1990 ## This name is sunos413 instead of sunos4-1-3
1991 ## to avoid a file name conflict on MSDOS.
1993 NON_GNU_CPP
=/usr
/lib
/cpp
1994 NON_GCC_TEST_OPTIONS
=-Bstatic
1995 GCC_TEST_OPTIONS
=-static
1997 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1999 NON_GNU_CPP
=/usr
/lib
/cpp
2001 *-sunos4* |
*-sunos )
2003 NON_GCC_TEST_OPTIONS
=-Bstatic
2004 GCC_TEST_OPTIONS
=-static
2006 *-sunos5.3
* |
*-solaris2.3
* )
2008 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2010 *-sunos5.4
* |
*-solaris2.4
* )
2012 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2015 *-sunos5.5
* |
*-solaris2.5
* )
2017 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2020 *-sunos5* |
*-solaris* )
2022 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2026 ## Watch out for a compiler that we know will not work.
2027 case "${canonical}" in
2028 *-solaris* |
*-sunos5* )
2029 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2030 ## /usr/ucb/cc doesn't work;
2031 ## we should find some other compiler that does work.
2039 machine
=sparc opsys
=nextstep
2043 m68
*-tadpole-sysv* )
2044 machine
=tad68k opsys
=usg5-3
2048 tahoe-tahoe-bsd4.2
* )
2049 machine
=tahoe opsys
=bsd4-2
2051 tahoe-tahoe-bsd4.3
* )
2052 machine
=tahoe opsys
=bsd4-3
2055 ## Tandem Integrity S2
2057 machine
=tandem-s2 opsys
=usg5-3
2061 m88k-tektronix-sysv3
* )
2062 machine
=tekxd88 opsys
=usg5-3
2065 ## Tektronix 16000 box (6130?)
2066 ns16k-tektronix-bsd
* )
2067 machine
=ns16000 opsys
=bsd4-2
2070 ## src/m/tek4300.h hints that this is a m68k machine.
2071 m68
*-tektronix-bsd* )
2072 machine
=tek4300 opsys
=bsd4-3
2076 ## We seem to have lost the machine-description file titan.h!
2078 machine
=titan opsys
=usg5-3
2081 ## Ustation E30 (SS5E)
2082 m68
*-unisys-uniplus* )
2083 machine
=ustation opsystem
=unipl5-2
2089 case "${canonical}" in
2090 *-bsd4.1
* ) opsys
=bsd4-1
;;
2091 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2092 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2093 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2094 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2095 *-vms* ) opsys
=vms
;;
2101 ns16k-whitechapel-
* )
2103 ## We don't know what sort of OS runs on these; we'll let the
2104 ## operating system guessing code below try.
2109 machine
=wicat opsys
=usg5-2
2114 machine
=ia64 opsys
=gnu-linux
2117 ## Intel 386 machines where we don't care about the manufacturer
2120 case "${canonical}" in
2121 *-lynxos* ) opsys
=lynxos
;;
2122 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2123 *-isc2.2
* ) opsys
=isc2-2
;;
2124 *-isc4.0
* ) opsys
=isc4-0
;;
2125 *-isc4.
* ) opsys
=isc4-1
2126 GCC_TEST_OPTIONS
=-posix
2127 NON_GCC_TEST_OPTIONS
=-Xp
2129 *-isc* ) opsys
=isc3-0
;;
2130 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2131 *-esix* ) opsys
=esix
;;
2132 *-xenix* ) opsys
=xenix
;;
2133 *-linux-gnu* ) opsys
=gnu-linux
;;
2134 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2135 *-sco3.2v5
* ) opsys
=sco5
2136 NON_GNU_CPP
=/lib
/cpp
2137 # Prevent -belf from being passed to $CPP.
2138 # /lib/cpp does not accept it.
2139 OVERRIDE_CPPFLAGS
=" "
2141 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2142 *-386bsd* ) opsys
=386bsd
;;
2143 *-freebsd* ) opsys
=freebsd
;;
2144 *-nextstep* ) opsys
=nextstep
;;
2145 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2149 ## m68k Linux-based GNU system
2151 machine
=m68k opsys
=gnu-linux
2154 ## Mips Linux-based GNU system
2156 machine
=mips opsys
=gnu-linux
2160 sparc-fujitsu-sysv4
* )
2161 machine
=sparc opsys
=uxpds
2162 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2167 f301-fujitsu-uxpv4.1
)
2168 machine
=f301 opsys
=uxpv
2176 ### If the code above didn't choose an operating system, just choose
2177 ### an operating system based on the configuration name. You really
2178 ### only want to use this when you have no idea what the right
2179 ### operating system is; if you know what operating systems a machine
2180 ### runs, it's cleaner to make it explicit in the case statement
2182 if test x
"${opsys}" = x
; then
2183 case "${canonical}" in
2184 *-gnu* ) opsys
=gnu
;;
2185 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2186 *-bsd4.2
) opsys
=bsd4-2
;;
2187 *-bsd4.3
) opsys
=bsd4-3
;;
2188 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2189 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2190 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2191 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2192 *-sysv4.2uw
* ) opsys
=unixware
;;
2193 *-sysv4.1
* |
*-sysvr4.1
* )
2194 NON_GNU_CPP
=/usr
/lib
/cpp
2196 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2197 if [ x
$NON_GNU_CPP = x
]; then
2198 if [ -f /usr
/ccs
/lib
/cpp
]; then
2199 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2201 NON_GNU_CPP
=/lib
/cpp
2205 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2212 if test $unported = yes; then
2213 { { echo "$as_me:2213: error: Emacs hasn't been ported to \`${canonical}' systems.
2214 Check \`etc/MACHINES' for recognized configuration names." >&5
2215 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2216 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2217 { (exit 1); exit 1; }; }
2220 machfile
="m/${machine}.h"
2221 opsysfile
="s/${opsys}.h"
2223 #### Choose a compiler.
2224 test -n "$CC" && cc_specified
=yes
2226 # Save the value of CFLAGS that the user specified.
2227 SPECIFIED_CFLAGS
="$CFLAGS"
2230 "yes" ) CC
="gcc" GCC
=yes ;;
2231 "no" ) : ${CC=cc} ;;
2235 ac_cpp
='$CPP $CPPFLAGS'
2236 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2241 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2242 echo "$as_me:2242: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC
="$CC" # Let the user override the test.
2250 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2252 for ac_dir
in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir
=.
2255 $as_executable_p "$ac_dir/$ac_word" ||
continue
2256 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2257 echo "$as_me:2257: found $ac_dir/$ac_word" >&5
2264 if test -n "$CC"; then
2265 echo "$as_me:2265: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6
2268 echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2273 if test -z "$ac_cv_prog_CC"; then
2275 # Extract the first word of "gcc", so it can be a program name with args.
2276 set dummy gcc
; ac_word
=$2
2277 echo "$as_me:2277: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2285 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2287 for ac_dir
in $ac_dummy; do
2289 test -z "$ac_dir" && ac_dir
=.
2290 $as_executable_p "$ac_dir/$ac_word" ||
continue
2291 ac_cv_prog_ac_ct_CC
="gcc"
2292 echo "$as_me:2292: found $ac_dir/$ac_word" >&5
2298 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 echo "$as_me:2300: result: $ac_ct_CC" >&5
2301 echo "${ECHO_T}$ac_ct_CC" >&6
2303 echo "$as_me:2303: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2315 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2316 echo "$as_me:2316: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318 if test "${ac_cv_prog_CC+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 if test -n "$CC"; then
2322 ac_cv_prog_CC
="$CC" # Let the user override the test.
2324 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2326 for ac_dir
in $ac_dummy; do
2328 test -z "$ac_dir" && ac_dir
=.
2329 $as_executable_p "$ac_dir/$ac_word" ||
continue
2330 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2331 echo "$as_me:2331: found $ac_dir/$ac_word" >&5
2338 if test -n "$CC"; then
2339 echo "$as_me:2339: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6
2342 echo "$as_me:2342: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2347 if test -z "$ac_cv_prog_CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc
; ac_word
=$2
2351 echo "$as_me:2351: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2359 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2361 for ac_dir
in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir
=.
2364 $as_executable_p "$ac_dir/$ac_word" ||
continue
2365 ac_cv_prog_ac_ct_CC
="cc"
2366 echo "$as_me:2366: found $ac_dir/$ac_word" >&5
2372 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374 echo "$as_me:2374: result: $ac_ct_CC" >&5
2375 echo "${ECHO_T}$ac_ct_CC" >&6
2377 echo "$as_me:2377: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2387 if test -z "$CC"; then
2388 # Extract the first word of "cc", so it can be a program name with args.
2389 set dummy cc
; ac_word
=$2
2390 echo "$as_me:2390: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC
="$CC" # Let the user override the test.
2399 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2401 for ac_dir
in $ac_dummy; do
2403 test -z "$ac_dir" && ac_dir
=.
2404 $as_executable_p "$ac_dir/$ac_word" ||
continue
2405 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2406 ac_prog_rejected
=yes
2410 echo "$as_me:2410: found $ac_dir/$ac_word" >&5
2414 if test $ac_prog_rejected = yes; then
2415 # We found a bogon in the path, so make sure we never use it.
2416 set dummy
$ac_cv_prog_CC
2418 if test $# != 0; then
2419 # We chose a different compiler from the bogus one.
2420 # However, it has the same basename, so the bogon will be chosen
2421 # first if we set CC to just the basename; use the full file name.
2423 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2431 if test -n "$CC"; then
2432 echo "$as_me:2432: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2435 echo "$as_me:2435: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2445 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2446 echo "$as_me:2446: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC
="$CC" # Let the user override the test.
2454 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2456 for ac_dir
in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir
=.
2459 $as_executable_p "$ac_dir/$ac_word" ||
continue
2460 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2461 echo "$as_me:2461: found $ac_dir/$ac_word" >&5
2468 if test -n "$CC"; then
2469 echo "$as_me:2469: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6
2472 echo "$as_me:2472: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2476 test -n "$CC" && break
2479 if test -z "$CC"; then
2483 # Extract the first word of "$ac_prog", so it can be a program name with args.
2484 set dummy
$ac_prog; ac_word
=$2
2485 echo "$as_me:2485: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$ac_ct_CC"; then
2491 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2493 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2495 for ac_dir
in $ac_dummy; do
2497 test -z "$ac_dir" && ac_dir
=.
2498 $as_executable_p "$ac_dir/$ac_word" ||
continue
2499 ac_cv_prog_ac_ct_CC
="$ac_prog"
2500 echo "$as_me:2500: found $ac_dir/$ac_word" >&5
2506 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 echo "$as_me:2508: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2511 echo "$as_me:2511: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2515 test -n "$ac_ct_CC" && break
2523 test -z "$CC" && { { echo "$as_me:2523: error: no acceptable cc found in \$PATH" >&5
2524 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2525 { (exit 1); exit 1; }; }
2527 # Provide some information about the compiler.
2528 echo "$as_me:2528:" \
2529 "checking for C compiler version" >&5
2530 ac_compiler
=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:2531: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2534 echo "$as_me:2534: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:2536: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2539 echo "$as_me:2539: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:2541: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2544 echo "$as_me:2544: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 cat >conftest.
$ac_ext <<_ACEOF
2548 #line 2548 "configure"
2549 #include "confdefs.h"
2559 ac_clean_files_save
=$ac_clean_files
2560 ac_clean_files
="$ac_clean_files a.out a.exe"
2561 # Try to create an executable without -o first, disregard a.out.
2562 # It will help us diagnose broken compilers, and finding out an intuition
2564 echo "$as_me:2564: checking for C compiler default output" >&5
2565 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2566 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567 if { (eval echo "$as_me:2567: \"$ac_link_default\"") >&5
2568 (eval $ac_link_default) 2>&5
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 # Find the output, starting from the most likely. This scheme is
2573 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2575 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2576 ls a.out conftest 2>/dev/null;
2577 ls a.* conftest.* 2>/dev/null`; do
2579 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2580 a.out
) # We found the default executable, but exeext='' is most
2583 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2584 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2591 echo "$as_me: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2593 { { echo "$as_me:2593: error: C compiler cannot create executables" >&5
2594 echo "$as_me: error: C compiler cannot create executables" >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext
=$ac_cv_exeext
2599 echo "$as_me:2599: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:2604: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try
='./$ac_file'
2610 { (eval echo "$as_me:2610: \"$ac_try\"") >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 if test "$cross_compiling" = maybe
; then
2620 { { echo "$as_me:2620: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'." >&2;}
2624 { (exit 1); exit 1; }; }
2628 echo "$as_me:2628: result: yes" >&5
2629 echo "${ECHO_T}yes" >&6
2631 rm -f a.out a.exe conftest
$ac_cv_exeext
2632 ac_clean_files
=$ac_clean_files_save
2633 # Check the compiler produces executables we can run. If not, either
2634 # the compiler is broken, or we cross compile.
2635 echo "$as_me:2635: checking whether we are cross compiling" >&5
2636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2637 echo "$as_me:2637: result: $cross_compiling" >&5
2638 echo "${ECHO_T}$cross_compiling" >&6
2640 echo "$as_me:2640: checking for executable suffix" >&5
2641 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2642 if { (eval echo "$as_me:2642: \"$ac_link\"") >&5
2643 (eval $ac_link) 2>&5
2645 echo "$as_me:2645: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2649 # work properly (i.e., refer to `conftest.exe'), while it won't with
2651 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2653 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2654 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661 { { echo "$as_me:2661: error: cannot compute EXEEXT: cannot compile and link" >&5
2662 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest
$ac_cv_exeext
2667 echo "$as_me:2667: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6
2670 rm -f conftest.
$ac_ext
2671 EXEEXT
=$ac_cv_exeext
2673 echo "$as_me:2673: checking for object suffix" >&5
2674 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.
$ac_ext <<_ACEOF
2679 #line 2679 "configure"
2680 #include "confdefs.h"
2690 rm -f conftest.o conftest.obj
2691 if { (eval echo "$as_me:2691: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2694 echo "$as_me:2694: \$? = $ac_status" >&5
2695 (exit $ac_status); }; then
2696 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2698 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2699 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2706 { { echo "$as_me:2706: error: cannot compute OBJEXT: cannot compile" >&5
2707 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2708 { (exit 1); exit 1; }; }
2711 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2713 echo "$as_me:2713: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT
=$ac_cv_objext
2717 echo "$as_me:2717: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.
$ac_ext <<_ACEOF
2723 #line 2723 "configure"
2724 #include "confdefs.h"
2737 rm -f conftest.
$ac_objext
2738 if { (eval echo "$as_me:2738: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>&5
2741 echo "$as_me:2741: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try
='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:2744: \"$ac_try\"") >&5
2747 echo "$as_me:2747: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2755 rm -f conftest.
$ac_objext conftest.
$ac_ext
2756 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2759 echo "$as_me:2759: result: $ac_cv_c_compiler_gnu" >&5
2760 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2761 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2762 ac_test_CFLAGS
=${CFLAGS+set}
2763 ac_save_CFLAGS
=$CFLAGS
2765 echo "$as_me:2765: checking whether $CC accepts -g" >&5
2766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2767 if test "${ac_cv_prog_cc_g+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 cat >conftest.
$ac_ext <<_ACEOF
2771 #line 2771 "configure"
2772 #include "confdefs.h"
2782 rm -f conftest.
$ac_objext
2783 if { (eval echo "$as_me:2783: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>&5
2786 echo "$as_me:2786: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:2789: \"$ac_try\"") >&5
2792 echo "$as_me:2792: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 cat conftest.
$ac_ext >&5
2800 rm -f conftest.
$ac_objext conftest.
$ac_ext
2802 echo "$as_me:2802: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804 if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS
=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2813 if test "$GCC" = yes; then
2819 # Some people use a C++ compiler to compile C. Since we use `exit',
2820 # in C++ we need to declare it. In case someone uses the same compiler
2821 # for both compiling C and C++ we need to have the C++ compiler decide
2822 # the declaration of exit, since it's the most demanding environment.
2823 cat >conftest.
$ac_ext <<_ACEOF
2828 rm -f conftest.
$ac_objext
2829 if { (eval echo "$as_me:2829: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try
='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:2835: \"$ac_try\"") >&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 for ac_declaration
in \
2842 '#include <stdlib.h>' \
2843 'extern "C" void std::exit (int) throw (); using std::exit;' \
2844 'extern "C" void std::exit (int); using std::exit;' \
2845 'extern "C" void exit (int) throw ();' \
2846 'extern "C" void exit (int);' \
2849 cat >conftest.
$ac_ext <<_ACEOF
2850 #line 2850 "configure"
2851 #include "confdefs.h"
2862 rm -f conftest.
$ac_objext
2863 if { (eval echo "$as_me:2863: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try
='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:2869: \"$ac_try\"") >&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2880 rm -f conftest.
$ac_objext conftest.
$ac_ext
2881 cat >conftest.
$ac_ext <<_ACEOF
2882 #line 2882 "configure"
2883 #include "confdefs.h"
2893 rm -f conftest.
$ac_objext
2894 if { (eval echo "$as_me:2894: \"$ac_compile\"") >&5
2895 (eval $ac_compile) 2>&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try
='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:2900: \"$ac_try\"") >&5
2903 echo "$as_me:2903: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2907 echo "$as_me: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2910 rm -f conftest.
$ac_objext conftest.
$ac_ext
2913 if test -n "$ac_declaration"; then
2914 echo '#ifdef __cplusplus' >>confdefs.h
2915 echo $ac_declaration >>confdefs.h
2916 echo '#endif' >>confdefs.h
2920 echo "$as_me: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2923 rm -f conftest.
$ac_objext conftest.
$ac_ext
2925 ac_cpp
='$CPP $CPPFLAGS'
2926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2935 #### Some systems specify a CPP to use unless we are using GCC.
2936 #### Now that we know whether we are using GCC, we can decide whether
2937 #### to use that one.
2938 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2943 #### Some systems specify a CC to use unless we are using GCC.
2944 #### Now that we know whether we are using GCC, we can decide whether
2945 #### to use that one.
2946 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2947 test x
$cc_specified != xyes
2952 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2954 CC
="$CC $GCC_TEST_OPTIONS"
2957 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2959 CC
="$CC $NON_GCC_TEST_OPTIONS"
2962 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2964 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2967 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2969 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2972 #### Some other nice autoconf tests. If you add a test here which
2973 #### should make an entry in src/config.h, don't forget to add an
2974 #### #undef clause to src/config.h.in for autoconf to modify.
2976 echo "$as_me:2976: checking whether ln -s works" >&5
2977 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2979 if test "$LN_S" = "ln -s"; then
2980 echo "$as_me:2980: result: yes" >&5
2981 echo "${ECHO_T}yes" >&6
2983 echo "$as_me:2983: result: no, using $LN_S" >&5
2984 echo "${ECHO_T}no, using $LN_S" >&6
2988 ac_cpp
='$CPP $CPPFLAGS'
2989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2992 echo "$as_me:2992: checking how to run the C preprocessor" >&5
2993 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2994 # On Suns, sometimes $CPP names a directory.
2995 if test -n "$CPP" && test -d "$CPP"; then
2998 if test -z "$CPP"; then
2999 if test "${ac_cv_prog_CPP+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 # Double quotes because CPP needs to be expanded
3003 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3006 for ac_c_preproc_warn_flag
in '' yes
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.
$ac_ext <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3018 if { (eval echo "$as_me:3018: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3021 egrep -v '^ *\+' conftest.er1
>conftest.err
3023 cat conftest.err
>&5
3024 echo "$as_me:3024: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev
/null
; then
3026 if test -s conftest.err
; then
3027 ac_cpp_err
=$ac_c_preproc_warn_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3039 # Broken: fails on valid input.
3042 rm -f conftest.err conftest.
$ac_ext
3044 # OK, works on sane cases. Now check whether non-existent headers
3045 # can be detected and how.
3046 cat >conftest.
$ac_ext <<_ACEOF
3047 #line 3047 "configure"
3048 #include "confdefs.h"
3049 #include <ac_nonexistent.h>
3051 if { (eval echo "$as_me:3051: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3054 egrep -v '^ *\+' conftest.er1
>conftest.err
3056 cat conftest.err
>&5
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev
/null
; then
3059 if test -s conftest.err
; then
3060 ac_cpp_err
=$ac_c_preproc_warn_flag
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3071 echo "$as_me: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3073 # Passes both tests.
3077 rm -f conftest.err conftest.
$ac_ext
3080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081 rm -f conftest.err conftest.
$ac_ext
3082 if $ac_preproc_ok; then
3094 echo "$as_me:3094: result: $CPP" >&5
3095 echo "${ECHO_T}$CPP" >&6
3097 for ac_c_preproc_warn_flag
in '' yes
3099 # Use a header file that comes with gcc, so configuring glibc
3100 # with a fresh cross-compiler works.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat >conftest.
$ac_ext <<_ACEOF
3104 #line 3104 "configure"
3105 #include "confdefs.h"
3109 if { (eval echo "$as_me:3109: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3112 egrep -v '^ *\+' conftest.er1
>conftest.err
3114 cat conftest.err
>&5
3115 echo "$as_me:3115: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev
/null
; then
3117 if test -s conftest.err
; then
3118 ac_cpp_err
=$ac_c_preproc_warn_flag
3125 if test -z "$ac_cpp_err"; then
3128 echo "$as_me: failed program was:" >&5
3129 cat conftest.
$ac_ext >&5
3130 # Broken: fails on valid input.
3133 rm -f conftest.err conftest.
$ac_ext
3135 # OK, works on sane cases. Now check whether non-existent headers
3136 # can be detected and how.
3137 cat >conftest.
$ac_ext <<_ACEOF
3138 #line 3138 "configure"
3139 #include "confdefs.h"
3140 #include <ac_nonexistent.h>
3142 if { (eval echo "$as_me:3142: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3145 egrep -v '^ *\+' conftest.er1
>conftest.err
3147 cat conftest.err
>&5
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev
/null
; then
3150 if test -s conftest.err
; then
3151 ac_cpp_err
=$ac_c_preproc_warn_flag
3158 if test -z "$ac_cpp_err"; then
3159 # Broken: success on invalid input.
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3164 # Passes both tests.
3168 rm -f conftest.err conftest.
$ac_ext
3171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172 rm -f conftest.err conftest.
$ac_ext
3173 if $ac_preproc_ok; then
3176 { { echo "$as_me:3176: error: C preprocessor \"$CPP\" fails sanity check" >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3178 { (exit 1); exit 1; }; }
3182 ac_cpp
='$CPP $CPPFLAGS'
3183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3187 # Find a good install program. We prefer a C program (faster),
3188 # so one script is as good as another. But avoid the broken or
3189 # incompatible versions:
3190 # SysV /etc/install, /usr/sbin/install
3191 # SunOS /usr/etc/install
3192 # IRIX /sbin/install
3194 # AmigaOS /C/install, which installs bootblocks on floppy discs
3195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3198 # ./install, which can be erroneously created by make from ./install.sh.
3199 echo "$as_me:3199: checking for a BSD compatible install" >&5
3200 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3201 if test -z "$INSTALL"; then
3202 if test "${ac_cv_path_install+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3206 for ac_dir
in $PATH; do
3208 # Account for people who put trailing slashes in PATH elements.
3210 / | .
/ | .
// |
/cC
/* \
3211 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3214 # OSF1 and SCO ODT 3.0 have their own names for install.
3215 # Don't use installbsd from OSF since it installs stuff as root
3217 for ac_prog
in ginstall scoinst
install; do
3218 if $as_executable_p "$ac_dir/$ac_prog"; then
3219 if test $ac_prog = install &&
3220 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3221 # AIX install. It has an incompatible calling convention.
3223 elif test $ac_prog = install &&
3224 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3225 # program-specific install script used by HP pwplus--don't use.
3228 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3238 if test "${ac_cv_path_install+set}" = set; then
3239 INSTALL
=$ac_cv_path_install
3241 # As a last resort, use the slow shell script. We don't cache a
3242 # path for INSTALL within a source directory, because that will
3243 # break other packages using the cache if that directory is
3244 # removed, or if the path is relative.
3245 INSTALL
=$ac_install_sh
3248 echo "$as_me:3248: result: $INSTALL" >&5
3249 echo "${ECHO_T}$INSTALL" >&6
3251 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3252 # It thinks the first close brace ends the variable substitution.
3253 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3255 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3257 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3259 for ac_prog
in 'bison -y' byacc
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy
$ac_prog; ac_word
=$2
3263 echo "$as_me:3263: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_YACC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$YACC"; then
3269 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3271 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3273 for ac_dir
in $ac_dummy; do
3275 test -z "$ac_dir" && ac_dir
=.
3276 $as_executable_p "$ac_dir/$ac_word" ||
continue
3277 ac_cv_prog_YACC
="$ac_prog"
3278 echo "$as_me:3278: found $ac_dir/$ac_word" >&5
3284 YACC
=$ac_cv_prog_YACC
3285 if test -n "$YACC"; then
3286 echo "$as_me:3286: result: $YACC" >&5
3287 echo "${ECHO_T}$YACC" >&6
3289 echo "$as_me:3289: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3293 test -n "$YACC" && break
3295 test -n "$YACC" || YACC
="yacc"
3297 if test "x$RANLIB" = x
; then
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3300 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3301 echo "$as_me:3301: checking for $ac_word" >&5
3302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3303 if test "${ac_cv_prog_RANLIB+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 if test -n "$RANLIB"; then
3307 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3309 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3311 for ac_dir
in $ac_dummy; do
3313 test -z "$ac_dir" && ac_dir
=.
3314 $as_executable_p "$ac_dir/$ac_word" ||
continue
3315 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3316 echo "$as_me:3316: found $ac_dir/$ac_word" >&5
3322 RANLIB
=$ac_cv_prog_RANLIB
3323 if test -n "$RANLIB"; then
3324 echo "$as_me:3324: result: $RANLIB" >&5
3325 echo "${ECHO_T}$RANLIB" >&6
3327 echo "$as_me:3327: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3332 if test -z "$ac_cv_prog_RANLIB"; then
3333 ac_ct_RANLIB
=$RANLIB
3334 # Extract the first word of "ranlib", so it can be a program name with args.
3335 set dummy ranlib
; ac_word
=$2
3336 echo "$as_me:3336: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$ac_ct_RANLIB"; then
3342 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3344 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3346 for ac_dir
in $ac_dummy; do
3348 test -z "$ac_dir" && ac_dir
=.
3349 $as_executable_p "$ac_dir/$ac_word" ||
continue
3350 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3351 echo "$as_me:3351: found $ac_dir/$ac_word" >&5
3355 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3358 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3359 if test -n "$ac_ct_RANLIB"; then
3360 echo "$as_me:3360: result: $ac_ct_RANLIB" >&5
3361 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3363 echo "$as_me:3363: result: no" >&5
3364 echo "${ECHO_T}no" >&6
3367 RANLIB
=$ac_ct_RANLIB
3369 RANLIB
="$ac_cv_prog_RANLIB"
3374 echo "$as_me:3374: checking for AIX" >&5
3375 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3376 cat >conftest.
$ac_ext <<_ACEOF
3377 #line 3377 "configure"
3378 #include "confdefs.h"
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 egrep "yes" >/dev
/null
2>&1; then
3386 echo "$as_me:3386: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388 cat >>confdefs.h
<<\EOF
3389 #define _ALL_SOURCE 1
3393 echo "$as_me:3393: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3398 #### Extract some information from the operating system and machine files.
3400 { echo "$as_me:3400: checking the machine- and system-dependent files to find out
3401 - which libraries the lib-src programs will want, and
3402 - whether the GNU malloc routines are usable..." >&5
3403 echo "$as_me: checking the machine- and system-dependent files to find out
3404 - which libraries the lib-src programs will want, and
3405 - whether the GNU malloc routines are usable..." >&6;}
3407 ### First figure out CFLAGS (which we use for running the compiler here)
3408 ### and REAL_CFLAGS (which we use for real compilation).
3409 ### The two are the same except on a few systems, where they are made
3410 ### different to work around various lossages. For example,
3411 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3412 ### as implying static linking.
3414 ### If the CFLAGS env var is specified, we use that value
3415 ### instead of the default.
3417 ### It's not important that this name contain the PID; you can't run
3418 ### two configures in the same directory and have anything work
3420 tempcname
="conftest.c"
3423 #include "'${srcdir}'/src/'${opsysfile}'"
3424 #include "'${srcdir}'/src/'${machfile}'"
3425 #ifndef LIBS_MACHINE
3426 #define LIBS_MACHINE
3431 #ifndef C_SWITCH_SYSTEM
3432 #define C_SWITCH_SYSTEM
3434 #ifndef C_SWITCH_MACHINE
3435 #define C_SWITCH_MACHINE
3437 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3438 configure___ c_switch_system=C_SWITCH_SYSTEM
3439 configure___ c_switch_machine=C_SWITCH_MACHINE
3442 #define LIB_X11_LIB -lX11
3445 #ifndef LIBX11_MACHINE
3446 #define LIBX11_MACHINE
3449 #ifndef LIBX11_SYSTEM
3450 #define LIBX11_SYSTEM
3452 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3455 configure___ unexec=UNEXEC
3457 configure___ unexec=unexec.o
3460 #ifdef SYSTEM_MALLOC
3461 configure___ system_malloc=yes
3463 configure___ system_malloc=no
3466 #ifdef USE_MMAP_FOR_BUFFERS
3467 configure___ use_mmap_for_buffers=yes
3469 configure___ use_mmap_for_buffers=no
3472 #ifndef C_DEBUG_SWITCH
3473 #define C_DEBUG_SWITCH -g
3476 #ifndef C_OPTIMIZE_SWITCH
3478 #define C_OPTIMIZE_SWITCH -O2
3480 #define C_OPTIMIZE_SWITCH -O
3484 #ifndef LD_SWITCH_MACHINE
3485 #define LD_SWITCH_MACHINE
3488 #ifndef LD_SWITCH_SYSTEM
3489 #define LD_SWITCH_SYSTEM
3492 #ifndef LD_SWITCH_X_SITE_AUX
3493 #define LD_SWITCH_X_SITE_AUX
3496 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3497 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3499 #ifdef THIS_IS_CONFIGURE
3501 /* Get the CFLAGS for tests in configure. */
3503 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3505 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3508 #else /* not THIS_IS_CONFIGURE */
3510 /* Get the CFLAGS for real compilation. */
3512 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3514 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3517 #endif /* not THIS_IS_CONFIGURE */
3520 # The value of CPP is a quoted variable reference, so we need to do this
3521 # to get its actual value...
3522 CPP
=`eval "echo $CPP"`
3523 eval `${CPP} -Isrc ${tempcname} \
3524 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3525 if test "x$SPECIFIED_CFLAGS" = x
; then
3526 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3527 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3529 REAL_CFLAGS
="$CFLAGS"
3533 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3535 ### Make sure subsequent tests use flags consistent with the build flags.
3537 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3538 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3540 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3543 # Check whether --enable-largefile or --disable-largefile was given.
3544 if test "${enable_largefile+set}" = set; then
3545 enableval
="$enable_largefile"
3548 if test "$enable_largefile" != no
; then
3550 echo "$as_me:3550: checking for special C compiler options needed for large files" >&5
3551 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3552 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_cv_sys_largefile_CC
=no
3556 if test "$GCC" != yes; then
3559 # IRIX 6.2 and later do not support large files by default,
3560 # so use the C compiler's -n32 option if that helps.
3561 cat >conftest.
$ac_ext <<_ACEOF
3562 #line 3562 "configure"
3563 #include "confdefs.h"
3564 #include <sys/types.h>
3565 /* Check that off_t can represent 2**63 - 1 correctly.
3566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3567 since some C++ compilers masquerading as C compilers
3568 incorrectly reject 9223372036854775807. */
3569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3571 && LARGE_OFF_T % 2147483647 == 1)
3581 rm -f conftest.
$ac_objext
3582 if { (eval echo "$as_me:3582: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>&5
3585 echo "$as_me:3585: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try
='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:3588: \"$ac_try\"") >&5
3591 echo "$as_me:3591: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3595 echo "$as_me: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 rm -f conftest.
$ac_objext
3600 rm -f conftest.
$ac_objext
3601 if { (eval echo "$as_me:3601: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>&5
3604 echo "$as_me:3604: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try
='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:3607: \"$ac_try\"") >&5
3610 echo "$as_me:3610: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_sys_largefile_CC
=' -n32'; break
3614 echo "$as_me: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 rm -f conftest.
$ac_objext
3621 rm -f conftest.
$ac_ext
3624 echo "$as_me:3624: result: $ac_cv_sys_largefile_CC" >&5
3625 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3626 if test "$ac_cv_sys_largefile_CC" != no
; then
3627 CC
=$CC$ac_cv_sys_largefile_CC
3630 echo "$as_me:3630: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3631 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3632 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_cv_sys_file_offset_bits
=no
3637 cat >conftest.
$ac_ext <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3641 /* Check that off_t can represent 2**63 - 1 correctly.
3642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3643 since some C++ compilers masquerading as C compilers
3644 incorrectly reject 9223372036854775807. */
3645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3647 && LARGE_OFF_T % 2147483647 == 1)
3657 rm -f conftest.
$ac_objext
3658 if { (eval echo "$as_me:3658: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try
='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:3664: \"$ac_try\"") >&5
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 rm -f conftest.
$ac_objext conftest.
$ac_ext
3675 cat >conftest.
$ac_ext <<_ACEOF
3676 #line 3676 "configure"
3677 #include "confdefs.h"
3678 #define _FILE_OFFSET_BITS 64
3679 #include <sys/types.h>
3680 /* Check that off_t can represent 2**63 - 1 correctly.
3681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3682 since some C++ compilers masquerading as C compilers
3683 incorrectly reject 9223372036854775807. */
3684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3686 && LARGE_OFF_T % 2147483647 == 1)
3696 rm -f conftest.
$ac_objext
3697 if { (eval echo "$as_me:3697: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3700 echo "$as_me:3700: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try
='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:3703: \"$ac_try\"") >&5
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_sys_file_offset_bits
=64; break
3710 echo "$as_me: failed program was:" >&5
3711 cat conftest.
$ac_ext >&5
3713 rm -f conftest.
$ac_objext conftest.
$ac_ext
3717 echo "$as_me:3717: result: $ac_cv_sys_file_offset_bits" >&5
3718 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3719 if test "$ac_cv_sys_file_offset_bits" != no
; then
3721 cat >>confdefs.h
<<EOF
3722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3727 echo "$as_me:3727: checking for _LARGE_FILES value needed for large files" >&5
3728 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3729 if test "${ac_cv_sys_large_files+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 ac_cv_sys_large_files
=no
3734 cat >conftest.
$ac_ext <<_ACEOF
3735 #line 3735 "configure"
3736 #include "confdefs.h"
3737 #include <sys/types.h>
3738 /* Check that off_t can represent 2**63 - 1 correctly.
3739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3740 since some C++ compilers masquerading as C compilers
3741 incorrectly reject 9223372036854775807. */
3742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3744 && LARGE_OFF_T % 2147483647 == 1)
3754 rm -f conftest.
$ac_objext
3755 if { (eval echo "$as_me:3755: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>&5
3758 echo "$as_me:3758: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try
='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3771 rm -f conftest.
$ac_objext conftest.
$ac_ext
3772 cat >conftest.
$ac_ext <<_ACEOF
3773 #line 3773 "configure"
3774 #include "confdefs.h"
3775 #define _LARGE_FILES 1
3776 #include <sys/types.h>
3777 /* Check that off_t can represent 2**63 - 1 correctly.
3778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3779 since some C++ compilers masquerading as C compilers
3780 incorrectly reject 9223372036854775807. */
3781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3783 && LARGE_OFF_T % 2147483647 == 1)
3793 rm -f conftest.
$ac_objext
3794 if { (eval echo "$as_me:3794: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>&5
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:3800: \"$ac_try\"") >&5
3803 echo "$as_me:3803: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_sys_large_files
=1; break
3807 echo "$as_me: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3810 rm -f conftest.
$ac_objext conftest.
$ac_ext
3814 echo "$as_me:3814: result: $ac_cv_sys_large_files" >&5
3815 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3816 if test "$ac_cv_sys_large_files" != no
; then
3818 cat >>confdefs.h
<<EOF
3819 #define _LARGE_FILES $ac_cv_sys_large_files
3826 # Sound support for GNU/Linux and the free BSDs.
3828 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3831 echo "$as_me:3831: checking for $ac_header" >&5
3832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.
$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 #include <$ac_header>
3841 if { (eval echo "$as_me:3841: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3844 egrep -v '^ *\+' conftest.er1
>conftest.err
3846 cat conftest.err
>&5
3847 echo "$as_me:3847: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev
/null
; then
3849 if test -s conftest.err
; then
3850 ac_cpp_err
=$ac_c_preproc_warn_flag
3857 if test -z "$ac_cpp_err"; then
3858 eval "$as_ac_Header=yes"
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.
$ac_ext >&5
3862 eval "$as_ac_Header=no"
3864 rm -f conftest.err conftest.
$ac_ext
3866 echo "$as_me:3866: result: `eval echo '${'$as_ac_Header'}'`" >&5
3867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3869 cat >>confdefs.h
<<EOF
3870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876 # Emulation library used on NetBSD.
3877 echo "$as_me:3877: checking for _oss_ioctl in -lossaudio" >&5
3878 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3879 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_check_lib_save_LIBS
=$LIBS
3883 LIBS
="-lossaudio $LIBS"
3884 cat >conftest.
$ac_ext <<_ACEOF
3885 #line 3885 "configure"
3886 #include "confdefs.h"
3888 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3903 rm -f conftest.
$ac_objext conftest
$ac_exeext
3904 if { (eval echo "$as_me:3904: \"$ac_link\"") >&5
3905 (eval $ac_link) 2>&5
3907 echo "$as_me:3907: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try
='test -s conftest$ac_exeext'
3910 { (eval echo "$as_me:3910: \"$ac_try\"") >&5
3913 echo "$as_me:3913: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3915 ac_cv_lib_ossaudio__oss_ioctl
=yes
3917 echo "$as_me: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3919 ac_cv_lib_ossaudio__oss_ioctl
=no
3921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3922 LIBS
=$ac_check_lib_save_LIBS
3924 echo "$as_me:3924: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3925 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3926 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3932 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3933 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3934 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
3936 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3937 echo "$as_me:3937: checking for $ac_header" >&5
3938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 cat >conftest.
$ac_ext <<_ACEOF
3943 #line 3943 "configure"
3944 #include "confdefs.h"
3945 #include <$ac_header>
3947 if { (eval echo "$as_me:3947: \"$ac_cpp conftest.$ac_ext\"") >&5
3948 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3950 egrep -v '^ *\+' conftest.er1
>conftest.err
3952 cat conftest.err
>&5
3953 echo "$as_me:3953: \$? = $ac_status" >&5
3954 (exit $ac_status); } >/dev
/null
; then
3955 if test -s conftest.err
; then
3956 ac_cpp_err
=$ac_c_preproc_warn_flag
3963 if test -z "$ac_cpp_err"; then
3964 eval "$as_ac_Header=yes"
3966 echo "$as_me: failed program was:" >&5
3967 cat conftest.
$ac_ext >&5
3968 eval "$as_ac_Header=no"
3970 rm -f conftest.err conftest.
$ac_ext
3972 echo "$as_me:3972: result: `eval echo '${'$as_ac_Header'}'`" >&5
3973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3975 cat >>confdefs.h
<<EOF
3976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982 echo "$as_me:3982: checking for ANSI C header files" >&5
3983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3984 if test "${ac_cv_header_stdc+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3996 if { (eval echo "$as_me:3996: \"$ac_cpp conftest.$ac_ext\"") >&5
3997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3999 egrep -v '^ *\+' conftest.er1
>conftest.err
4001 cat conftest.err
>&5
4002 echo "$as_me:4002: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev
/null
; then
4004 if test -s conftest.err
; then
4005 ac_cpp_err
=$ac_c_preproc_warn_flag
4012 if test -z "$ac_cpp_err"; then
4013 ac_cv_header_stdc
=yes
4015 echo "$as_me: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4017 ac_cv_header_stdc
=no
4019 rm -f conftest.err conftest.
$ac_ext
4021 if test $ac_cv_header_stdc = yes; then
4022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4023 cat >conftest.
$ac_ext <<_ACEOF
4024 #line 4024 "configure"
4025 #include "confdefs.h"
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 egrep "memchr" >/dev
/null
2>&1; then
4033 ac_cv_header_stdc
=no
4039 if test $ac_cv_header_stdc = yes; then
4040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4041 cat >conftest.
$ac_ext <<_ACEOF
4042 #line 4042 "configure"
4043 #include "confdefs.h"
4047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4048 egrep "free" >/dev
/null
2>&1; then
4051 ac_cv_header_stdc
=no
4057 if test $ac_cv_header_stdc = yes; then
4058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4059 if test "$cross_compiling" = yes; then
4062 cat >conftest.
$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4066 #if ((' ' & 0x0FF) == 0x020)
4067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4070 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4071 || ('j' <= (c) && (c) <= 'r') \
4072 || ('s' <= (c) && (c) <= 'z'))
4073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4081 for (i = 0; i < 256; i++)
4082 if (XOR (islower (i), ISLOWER (i))
4083 || toupper (i) != TOUPPER (i))
4088 rm -f conftest
$ac_exeext
4089 if { (eval echo "$as_me:4089: \"$ac_link\"") >&5
4090 (eval $ac_link) 2>&5
4092 echo "$as_me:4092: \$? = $ac_status" >&5
4093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4094 { (eval echo "$as_me:4094: \"$ac_try\"") >&5
4097 echo "$as_me:4097: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4101 echo "$as_me: program exited with status $ac_status" >&5
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4104 ac_cv_header_stdc
=no
4106 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4110 echo "$as_me:4110: result: $ac_cv_header_stdc" >&5
4111 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4112 if test $ac_cv_header_stdc = yes; then
4114 cat >>confdefs.h
<<\EOF
4115 #define STDC_HEADERS 1
4120 echo "$as_me:4120: checking whether time.h and sys/time.h may both be included" >&5
4121 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4122 if test "${ac_cv_header_time+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.
$ac_ext <<_ACEOF
4126 #line 4126 "configure"
4127 #include "confdefs.h"
4128 #include <sys/types.h>
4129 #include <sys/time.h>
4135 if ((struct tm *) 0)
4141 rm -f conftest.
$ac_objext
4142 if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
4143 (eval $ac_compile) 2>&5
4145 echo "$as_me:4145: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try
='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:4148: \"$ac_try\"") >&5
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_header_time
=yes
4155 echo "$as_me: failed program was:" >&5
4156 cat conftest.
$ac_ext >&5
4157 ac_cv_header_time
=no
4159 rm -f conftest.
$ac_objext conftest.
$ac_ext
4161 echo "$as_me:4161: result: $ac_cv_header_time" >&5
4162 echo "${ECHO_T}$ac_cv_header_time" >&6
4163 if test $ac_cv_header_time = yes; then
4165 cat >>confdefs.h
<<\EOF
4166 #define TIME_WITH_SYS_TIME 1
4171 echo "$as_me:4171: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4172 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4173 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 cat >conftest.
$ac_ext <<_ACEOF
4177 #line 4177 "configure"
4178 #include "confdefs.h"
4179 #include <sys/types.h>
4181 /* NetBSD declares sys_siglist in unistd.h. */
4183 # include <unistd.h>
4189 char *msg = *(sys_siglist + 1);
4194 rm -f conftest.
$ac_objext
4195 if { (eval echo "$as_me:4195: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4198 echo "$as_me:4198: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try
='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:4201: \"$ac_try\"") >&5
4204 echo "$as_me:4204: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_decl_sys_siglist
=yes
4208 echo "$as_me: failed program was:" >&5
4209 cat conftest.
$ac_ext >&5
4210 ac_cv_decl_sys_siglist
=no
4212 rm -f conftest.
$ac_objext conftest.
$ac_ext
4214 echo "$as_me:4214: result: $ac_cv_decl_sys_siglist" >&5
4215 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4216 if test $ac_cv_decl_sys_siglist = yes; then
4218 cat >>confdefs.h
<<\EOF
4219 #define SYS_SIGLIST_DECLARED 1
4224 echo "$as_me:4224: checking for sys/wait.h that is POSIX.1 compatible" >&5
4225 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4226 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 cat >conftest.
$ac_ext <<_ACEOF
4230 #line 4230 "configure"
4231 #include "confdefs.h"
4232 #include <sys/types.h>
4233 #include <sys/wait.h>
4235 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4238 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4246 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4251 rm -f conftest.
$ac_objext
4252 if { (eval echo "$as_me:4252: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
4255 echo "$as_me:4255: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try
='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:4258: \"$ac_try\"") >&5
4261 echo "$as_me:4261: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_header_sys_wait_h
=yes
4265 echo "$as_me: failed program was:" >&5
4266 cat conftest.
$ac_ext >&5
4267 ac_cv_header_sys_wait_h
=no
4269 rm -f conftest.
$ac_objext conftest.
$ac_ext
4271 echo "$as_me:4271: result: $ac_cv_header_sys_wait_h" >&5
4272 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4273 if test $ac_cv_header_sys_wait_h = yes; then
4275 cat >>confdefs.h
<<\EOF
4276 #define HAVE_SYS_WAIT_H 1
4281 echo "$as_me:4281: checking for struct utimbuf" >&5
4282 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4283 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.
$ac_ext <<_ACEOF
4287 #line 4287 "configure"
4288 #include "confdefs.h"
4289 #ifdef TIME_WITH_SYS_TIME
4290 #include <sys/time.h>
4293 #ifdef HAVE_SYS_TIME_H
4294 #include <sys/time.h>
4305 static struct utimbuf x; x.actime = x.modtime;
4310 rm -f conftest.
$ac_objext
4311 if { (eval echo "$as_me:4311: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try
='test -s conftest.$ac_objext'
4317 { (eval echo "$as_me:4317: \"$ac_try\"") >&5
4320 echo "$as_me:4320: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 emacs_cv_struct_utimbuf
=yes
4324 echo "$as_me: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4326 emacs_cv_struct_utimbuf
=no
4328 rm -f conftest.
$ac_objext conftest.
$ac_ext
4330 echo "$as_me:4330: result: $emacs_cv_struct_utimbuf" >&5
4331 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4332 if test $emacs_cv_struct_utimbuf = yes; then
4333 cat >>confdefs.h
<<\EOF
4334 #define HAVE_STRUCT_UTIMBUF 1
4339 echo "$as_me:4339: checking return type of signal handlers" >&5
4340 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4341 if test "${ac_cv_type_signal+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 cat >conftest.
$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4347 #include <sys/types.h>
4353 extern "C" void (*signal (int, void (*)(int)))(int);
4355 void (*signal ()) ();
4366 rm -f conftest.
$ac_objext
4367 if { (eval echo "$as_me:4367: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4370 echo "$as_me:4370: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try
='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:4373: \"$ac_try\"") >&5
4376 echo "$as_me:4376: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_type_signal
=void
4380 echo "$as_me: failed program was:" >&5
4381 cat conftest.
$ac_ext >&5
4382 ac_cv_type_signal
=int
4384 rm -f conftest.
$ac_objext conftest.
$ac_ext
4386 echo "$as_me:4386: result: $ac_cv_type_signal" >&5
4387 echo "${ECHO_T}$ac_cv_type_signal" >&6
4389 cat >>confdefs.h
<<EOF
4390 #define RETSIGTYPE $ac_cv_type_signal
4393 echo "$as_me:4393: checking for speed_t" >&5
4394 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4395 if test "${emacs_cv_speed_t+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 cat >conftest.
$ac_ext <<_ACEOF
4399 #line 4399 "configure"
4400 #include "confdefs.h"
4401 #include <termios.h>
4410 rm -f conftest.
$ac_objext
4411 if { (eval echo "$as_me:4411: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try
='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:4417: \"$ac_try\"") >&5
4420 echo "$as_me:4420: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 emacs_cv_speed_t
=yes
4424 echo "$as_me: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4428 rm -f conftest.
$ac_objext conftest.
$ac_ext
4430 echo "$as_me:4430: result: $emacs_cv_speed_t" >&5
4431 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4432 if test $emacs_cv_speed_t = yes; then
4433 cat >>confdefs.h
<<\EOF
4434 #define HAVE_SPEED_T 1
4439 echo "$as_me:4439: checking for struct timeval" >&5
4440 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4441 if test "${emacs_cv_struct_timeval+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.
$ac_ext <<_ACEOF
4445 #line 4445 "configure"
4446 #include "confdefs.h"
4447 #ifdef TIME_WITH_SYS_TIME
4448 #include <sys/time.h>
4451 #ifdef HAVE_SYS_TIME_H
4452 #include <sys/time.h>
4460 static struct timeval x; x.tv_sec = x.tv_usec;
4465 rm -f conftest.
$ac_objext
4466 if { (eval echo "$as_me:4466: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4469 echo "$as_me:4469: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try
='test -s conftest.$ac_objext'
4472 { (eval echo "$as_me:4472: \"$ac_try\"") >&5
4475 echo "$as_me:4475: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 emacs_cv_struct_timeval
=yes
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.
$ac_ext >&5
4481 emacs_cv_struct_timeval
=no
4483 rm -f conftest.
$ac_objext conftest.
$ac_ext
4485 echo "$as_me:4485: result: $emacs_cv_struct_timeval" >&5
4486 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4487 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4488 if test $emacs_cv_struct_timeval = yes; then
4489 cat >>confdefs.h
<<\EOF
4490 #define HAVE_TIMEVAL 1
4495 echo "$as_me:4495: checking for struct exception" >&5
4496 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4497 if test "${emacs_cv_struct_exception+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.
$ac_ext <<_ACEOF
4501 #line 4501 "configure"
4502 #include "confdefs.h"
4507 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4512 rm -f conftest.
$ac_objext
4513 if { (eval echo "$as_me:4513: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4516 echo "$as_me:4516: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try
='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:4519: \"$ac_try\"") >&5
4522 echo "$as_me:4522: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 emacs_cv_struct_exception
=yes
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4528 emacs_cv_struct_exception
=no
4530 rm -f conftest.
$ac_objext conftest.
$ac_ext
4532 echo "$as_me:4532: result: $emacs_cv_struct_exception" >&5
4533 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4534 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4535 if test $emacs_cv_struct_exception != yes; then
4536 cat >>confdefs.h
<<\EOF
4537 #define NO_MATHERR 1
4542 echo "$as_me:4542: checking whether struct tm is in sys/time.h or time.h" >&5
4543 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4544 if test "${ac_cv_struct_tm+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 cat >conftest.
$ac_ext <<_ACEOF
4548 #line 4548 "configure"
4549 #include "confdefs.h"
4550 #include <sys/types.h>
4556 struct tm *tp; tp->tm_sec;
4561 rm -f conftest.
$ac_objext
4562 if { (eval echo "$as_me:4562: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4565 echo "$as_me:4565: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try
='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:4568: \"$ac_try\"") >&5
4571 echo "$as_me:4571: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_cv_struct_tm
=time.h
4575 echo "$as_me: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4577 ac_cv_struct_tm
=sys
/time.h
4579 rm -f conftest.
$ac_objext conftest.
$ac_ext
4581 echo "$as_me:4581: result: $ac_cv_struct_tm" >&5
4582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4583 if test $ac_cv_struct_tm = sys
/time.h
; then
4585 cat >>confdefs.h
<<\EOF
4586 #define TM_IN_SYS_TIME 1
4591 echo "$as_me:4591: checking for struct tm.tm_zone" >&5
4592 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4593 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.
$ac_ext <<_ACEOF
4597 #line 4597 "configure"
4598 #include "confdefs.h"
4599 #include <sys/types.h>
4600 #include <$ac_cv_struct_tm>
4605 static struct tm ac_aggr;
4606 if (ac_aggr.tm_zone)
4612 rm -f conftest.
$ac_objext
4613 if { (eval echo "$as_me:4613: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4616 echo "$as_me:4616: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try
='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:4619: \"$ac_try\"") >&5
4622 echo "$as_me:4622: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_member_struct_tm_tm_zone
=yes
4626 echo "$as_me: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4628 ac_cv_member_struct_tm_tm_zone
=no
4630 rm -f conftest.
$ac_objext conftest.
$ac_ext
4632 echo "$as_me:4632: result: $ac_cv_member_struct_tm_tm_zone" >&5
4633 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4634 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4636 cat >>confdefs.h
<<EOF
4637 #define HAVE_STRUCT_TM_TM_ZONE 1
4642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4644 cat >>confdefs.h
<<\EOF
4645 #define HAVE_TM_ZONE 1
4649 echo "$as_me:4649: checking for tzname" >&5
4650 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4651 if test "${ac_cv_var_tzname+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 cat >conftest.
$ac_ext <<_ACEOF
4655 #line 4655 "configure"
4656 #include "confdefs.h"
4658 #ifndef tzname /* For SGI. */
4659 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4670 rm -f conftest.
$ac_objext conftest
$ac_exeext
4671 if { (eval echo "$as_me:4671: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:4674: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:4677: \"$ac_try\"") >&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_var_tzname
=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4688 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4690 echo "$as_me:4690: result: $ac_cv_var_tzname" >&5
4691 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4692 if test $ac_cv_var_tzname = yes; then
4694 cat >>confdefs.h
<<\EOF
4695 #define HAVE_TZNAME 1
4701 echo "$as_me:4701: checking for tm_gmtoff in struct tm" >&5
4702 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4703 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 cat >conftest.
$ac_ext <<_ACEOF
4707 #line 4707 "configure"
4708 #include "confdefs.h"
4713 struct tm t; t.tm_gmtoff = 0
4718 rm -f conftest.
$ac_objext conftest
$ac_exeext
4719 if { (eval echo "$as_me:4719: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>&5
4722 echo "$as_me:4722: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try
='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:4725: \"$ac_try\"") >&5
4728 echo "$as_me:4728: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 emacs_cv_tm_gmtoff
=yes
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.
$ac_ext >&5
4734 emacs_cv_tm_gmtoff
=no
4736 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4738 echo "$as_me:4738: result: $emacs_cv_tm_gmtoff" >&5
4739 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4740 if test $emacs_cv_tm_gmtoff = yes; then
4741 cat >>confdefs.h
<<\EOF
4742 #define HAVE_TM_GMTOFF 1
4747 echo "$as_me:4747: checking for $CC option to accept ANSI C" >&5
4748 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4749 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 ac_cv_prog_cc_stdc
=no
4754 cat >conftest.
$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4759 #include <sys/types.h>
4760 #include <sys/stat.h>
4761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4762 struct buf { int x; };
4763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4764 static char *e (p, i)
4770 static char *f (char * (*g) (char **, int), char **p, ...)
4775 s = g (p, va_arg (v,int));
4779 int test (int i, double x);
4780 struct s1 {int (*f) (int a);};
4781 struct s2 {int (*f) (double a);};
4782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4793 # Don't try gcc -ansi; that turns off useful extensions and
4794 # breaks some systems' header files.
4795 # AIX -qlanglvl=ansi
4796 # Ultrix and OSF/1 -std1
4797 # HP-UX 10.20 and later -Ae
4798 # HP-UX older versions -Aa -D_HPUX_SOURCE
4799 # SVR4 -Xc -D__EXTENSIONS__
4800 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4802 CC
="$ac_save_CC $ac_arg"
4803 rm -f conftest.
$ac_objext
4804 if { (eval echo "$as_me:4804: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try
='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:4810: \"$ac_try\"") >&5
4813 echo "$as_me:4813: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_prog_cc_stdc
=$ac_arg
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 rm -f conftest.
$ac_objext
4823 rm -f conftest.
$ac_ext conftest.
$ac_objext
4828 case "x$ac_cv_prog_cc_stdc" in
4830 echo "$as_me:4830: result: none needed" >&5
4831 echo "${ECHO_T}none needed" >&6 ;;
4833 echo "$as_me:4833: result: $ac_cv_prog_cc_stdc" >&5
4834 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4835 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4838 echo "$as_me:4838: checking for function prototypes" >&5
4839 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4840 if test "$ac_cv_prog_cc_stdc" != no
; then
4841 echo "$as_me:4841: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4844 cat >>confdefs.h
<<\EOF
4845 #define PROTOTYPES 1
4849 echo "$as_me:4849: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4853 echo "$as_me:4853: checking for working volatile" >&5
4854 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4855 if test "${ac_cv_c_volatile+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 cat >conftest.
$ac_ext <<_ACEOF
4859 #line 4859 "configure"
4860 #include "confdefs.h"
4872 rm -f conftest.
$ac_objext
4873 if { (eval echo "$as_me:4873: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4876 echo "$as_me:4876: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try
='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:4879: \"$ac_try\"") >&5
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_c_volatile
=yes
4886 echo "$as_me: failed program was:" >&5
4887 cat conftest.
$ac_ext >&5
4890 rm -f conftest.
$ac_objext conftest.
$ac_ext
4892 echo "$as_me:4892: result: $ac_cv_c_volatile" >&5
4893 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4894 if test $ac_cv_c_volatile = no
; then
4896 cat >>confdefs.h
<<\EOF
4902 echo "$as_me:4902: checking for an ANSI C-conforming const" >&5
4903 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4904 if test "${ac_cv_c_const+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 cat >conftest.
$ac_ext <<_ACEOF
4908 #line 4908 "configure"
4909 #include "confdefs.h"
4914 /* FIXME: Include the comments suggested by Paul. */
4916 /* Ultrix mips cc rejects this. */
4917 typedef int charset[2];
4919 /* SunOS 4.1.1 cc rejects this. */
4920 char const *const *ccp;
4922 /* NEC SVR4.0.2 mips cc rejects this. */
4923 struct point {int x, y;};
4924 static struct point const zero = {0,0};
4925 /* AIX XL C 1.02.0.0 rejects this.
4926 It does not let you subtract one const X* pointer from another in
4927 an arm of an if-expression whose if-part is not a constant
4929 const char *g = "string";
4930 ccp = &g + (g ? g-g : 0);
4931 /* HPUX 7.0 cc rejects these. */
4934 ccp = (char const *const *) p;
4935 { /* SCO 3.2v4 cc rejects this. */
4937 char const *s = 0 ? (char *) 0 : (char const *) 0;
4941 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4943 const int *foo = &x[0];
4946 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4947 typedef const int *iptr;
4951 { /* AIX XL C 1.02.0.0 rejects this saying
4952 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4953 struct s { int j; const int *ap[3]; };
4954 struct s *b; b->j = 5;
4956 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:4966: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5
4975 echo "$as_me:4975: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4983 rm -f conftest.
$ac_objext conftest.
$ac_ext
4985 echo "$as_me:4985: result: $ac_cv_c_const" >&5
4986 echo "${ECHO_T}$ac_cv_c_const" >&6
4987 if test $ac_cv_c_const = no
; then
4989 cat >>confdefs.h
<<\EOF
4995 echo "$as_me:4995: checking for void * support" >&5
4996 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
4997 if test "${emacs_cv_void_star+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5001 #line 5001 "configure"
5002 #include "confdefs.h"
5012 rm -f conftest.
$ac_objext
5013 if { (eval echo "$as_me:5013: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>&5
5016 echo "$as_me:5016: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try
='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:5019: \"$ac_try\"") >&5
5022 echo "$as_me:5022: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 emacs_cv_void_star
=yes
5026 echo "$as_me: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5028 emacs_cv_void_star
=no
5030 rm -f conftest.
$ac_objext conftest.
$ac_ext
5032 echo "$as_me:5032: result: $emacs_cv_void_star" >&5
5033 echo "${ECHO_T}$emacs_cv_void_star" >&6
5034 if test $emacs_cv_void_star = yes; then
5035 cat >>confdefs.h
<<\EOF
5036 #define POINTER_TYPE void
5040 cat >>confdefs.h
<<\EOF
5041 #define POINTER_TYPE char
5046 echo "$as_me:5046: checking whether ${MAKE-make} sets \${MAKE}" >&5
5047 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5048 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5049 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 cat >conftest.
make <<\EOF
5054 @
echo 'ac_maketemp="${MAKE}"'
5056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5057 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5058 if test -n "$ac_maketemp"; then
5059 eval ac_cv_prog_make_
${ac_make}_set
=yes
5061 eval ac_cv_prog_make_
${ac_make}_set
=no
5065 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5066 echo "$as_me:5066: result: yes" >&5
5067 echo "${ECHO_T}yes" >&6
5070 echo "$as_me:5070: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5072 SET_MAKE
="MAKE=${MAKE-make}"
5075 echo "$as_me:5075: checking for long file names" >&5
5076 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5077 if test "${ac_cv_sys_long_file_names+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 ac_cv_sys_long_file_names
=yes
5081 # Test for long file names in all the places we know might matter:
5082 # . the current directory, where building will happen
5083 # $prefix/lib where we will be installing things
5084 # $exec_prefix/lib likewise
5085 # eval it to expand exec_prefix.
5086 # $TMPDIR if set, where it might want to write temporary files
5087 # if $TMPDIR is not set:
5088 # /tmp where it might want to write temporary files
5091 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5094 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5096 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5097 test -d $ac_dir ||
continue
5098 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5099 ac_xdir
=$ac_dir/cf$$
5100 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5101 ac_tf1
=$ac_xdir/conftest9012345
5102 ac_tf2
=$ac_xdir/conftest9012346
5103 (echo 1 >$ac_tf1) 2>/dev
/null
5104 (echo 2 >$ac_tf2) 2>/dev
/null
5105 ac_val
=`cat $ac_tf1 2>/dev/null`
5106 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5107 ac_cv_sys_long_file_names
=no
5108 rm -rf $ac_xdir 2>/dev
/null
5111 rm -rf $ac_xdir 2>/dev
/null
5114 echo "$as_me:5114: result: $ac_cv_sys_long_file_names" >&5
5115 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5116 if test $ac_cv_sys_long_file_names = yes; then
5118 cat >>confdefs.h
<<\EOF
5119 #define HAVE_LONG_FILE_NAMES 1
5124 #### Choose a window system.
5126 echo "$as_me:5126: checking for X" >&5
5127 echo $ECHO_N "checking for X... $ECHO_C" >&6
5129 # Check whether --with-x or --without-x was given.
5130 if test "${with_x+set}" = set; then
5134 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5135 if test "x$with_x" = xno
; then
5136 # The user explicitly disabled X.
5139 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5140 # Both variables are already set.
5143 if test "${ac_cv_have_x+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 # One or both of the vars are not set, and there is no cached value.
5147 ac_x_includes
=no ac_x_libraries
=no
5149 if mkdir conftest.dir
; then
5151 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5152 cat >Imakefile
<<'EOF'
5154 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5156 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5158 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5160 for ac_extension
in a so sl
; do
5161 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5162 test -f $ac_im_libdir/libX11.
$ac_extension; then
5163 ac_im_usrlibdir
=$ac_im_libdir; break
5166 # Screen out bogus values from the imake configuration. They are
5167 # bogus both because they are the default anyway, and because
5168 # using them would break gcc on systems where it needs fixed includes.
5169 case $ac_im_incroot in
5171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5173 case $ac_im_usrlibdir in
5175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5182 # Standard set of common directories for X headers.
5183 # Check X11 before X11Rn because it is often a symlink to the current release.
5195 /usr/local/X11/include
5196 /usr/local/X11R6/include
5197 /usr/local/X11R5/include
5198 /usr/local/X11R4/include
5200 /usr/local/include/X11
5201 /usr/local/include/X11R6
5202 /usr/local/include/X11R5
5203 /usr/local/include/X11R4
5207 /usr/XFree86/include/X11
5211 /usr/unsupported/include
5213 /usr/local/x11r5/include
5214 /usr/lpp/Xamples/include
5216 /usr/openwin/include
5217 /usr/openwin/share/include'
5219 if test "$ac_x_includes" = no
; then
5220 # Guess where to find include files, by looking for Intrinsic.h.
5221 # First, try using that file with no special directory specified.
5222 cat >conftest.
$ac_ext <<_ACEOF
5223 #line 5223 "configure"
5224 #include "confdefs.h"
5225 #include <X11/Intrinsic.h>
5227 if { (eval echo "$as_me:5227: \"$ac_cpp conftest.$ac_ext\"") >&5
5228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5230 egrep -v '^ *\+' conftest.er1
>conftest.err
5232 cat conftest.err
>&5
5233 echo "$as_me:5233: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev
/null
; then
5235 if test -s conftest.err
; then
5236 ac_cpp_err
=$ac_c_preproc_warn_flag
5243 if test -z "$ac_cpp_err"; then
5244 # We can compile using X headers with no special include directory.
5247 echo "$as_me: failed program was:" >&5
5248 cat conftest.
$ac_ext >&5
5249 for ac_dir
in $ac_x_header_dirs; do
5250 if test -r "$ac_dir/X11/Intrinsic.h"; then
5251 ac_x_includes
=$ac_dir
5256 rm -f conftest.err conftest.
$ac_ext
5257 fi # $ac_x_includes = no
5259 if test "$ac_x_libraries" = no
; then
5260 # Check for the libraries.
5261 # See if we find them without any special options.
5262 # Don't add to $LIBS permanently.
5265 cat >conftest.
$ac_ext <<_ACEOF
5266 #line 5266 "configure"
5267 #include "confdefs.h"
5268 #include <X11/Intrinsic.h>
5277 rm -f conftest.
$ac_objext conftest
$ac_exeext
5278 if { (eval echo "$as_me:5278: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try
='test -s conftest$ac_exeext'
5284 { (eval echo "$as_me:5284: \"$ac_try\"") >&5
5287 echo "$as_me:5287: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5290 # We can link X programs with no special library path.
5293 echo "$as_me: failed program was:" >&5
5294 cat conftest.
$ac_ext >&5
5296 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5298 # Don't even attempt the hair of trying to link an X program!
5299 for ac_extension
in a so sl
; do
5300 if test -r $ac_dir/libXt.
$ac_extension; then
5301 ac_x_libraries
=$ac_dir
5307 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5308 fi # $ac_x_libraries = no
5310 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5311 # Didn't find X anywhere. Cache the known absence of X.
5312 ac_cv_have_x
="have_x=no"
5314 # Record where we found X for the cache.
5315 ac_cv_have_x
="have_x=yes \
5316 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5321 eval "$ac_cv_have_x"
5324 if test "$have_x" != yes; then
5325 echo "$as_me:5325: result: $have_x" >&5
5326 echo "${ECHO_T}$have_x" >&6
5329 # If each of the values was on the command line, it overrides each guess.
5330 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5331 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5332 # Update the cache value to reflect the command line values.
5333 ac_cv_have_x
="have_x=yes \
5334 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5335 echo "$as_me:5335: result: libraries $x_libraries, headers $x_includes" >&5
5336 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5339 if test "$no_x" = yes; then
5345 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5346 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5347 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5348 x_default_search_path
=""
5349 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5351 ${x_library}/X11/%L/%T/%N%C%S:\
5352 ${x_library}/X11/%l/%T/%N%C%S:\
5353 ${x_library}/X11/%T/%N%C%S:\
5354 ${x_library}/X11/%L/%T/%N%S:\
5355 ${x_library}/X11/%l/%T/%N%S:\
5356 ${x_library}/X11/%T/%N%S"
5357 if test x
"${x_default_search_path}" = x
; then
5358 x_default_search_path
=${x_search_path}
5360 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5364 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5365 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5368 if test x
"${x_includes}" = x
; then
5369 bitmapdir
=/usr
/include
/X11
/bitmaps
5371 # accumulate include directories that have X11 bitmap subdirectories
5373 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5374 if test -d "${bmd}/X11/bitmaps"; then
5375 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5377 if test -d "${bmd}/bitmaps"; then
5378 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5381 if test ${bmd_acc} != "dummyval"; then
5382 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5386 case "${window_system}" in
5390 case "${with_x_toolkit}" in
5391 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5392 motif
) USE_X_TOOLKIT
=MOTIF
;;
5393 no
) USE_X_TOOLKIT
=none
;;
5394 * ) USE_X_TOOLKIT
=maybe
;;
5404 ### If we're using X11, we should use the X menu package.
5407 yes ) HAVE_MENUS
=yes ;;
5410 if test "${opsys}" = "hpux9"; then
5411 case "${x_libraries}" in
5413 opsysfile
="s/hpux9-x11r4.h"
5418 if test "${opsys}" = "hpux9shr"; then
5419 case "${x_libraries}" in
5421 opsysfile
="s/hpux9shxr4.h"
5426 ### Compute the unexec source name from the object name.
5427 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5429 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5430 # Assume not, until told otherwise.
5433 echo "$as_me:5433: checking for malloc_get_state" >&5
5434 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5435 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5439 #line 5439 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char malloc_get_state (); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5450 char malloc_get_state ();
5456 /* The GNU C library defines this for functions which it implements
5457 to always fail with ENOSYS. Some functions are actually named
5458 something starting with __ and the normal name is an alias. */
5459 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5462 f = malloc_get_state;
5469 rm -f conftest.
$ac_objext conftest
$ac_exeext
5470 if { (eval echo "$as_me:5470: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>&5
5473 echo "$as_me:5473: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try
='test -s conftest$ac_exeext'
5476 { (eval echo "$as_me:5476: \"$ac_try\"") >&5
5479 echo "$as_me:5479: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 ac_cv_func_malloc_get_state
=yes
5483 echo "$as_me: failed program was:" >&5
5484 cat conftest.
$ac_ext >&5
5485 ac_cv_func_malloc_get_state
=no
5487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5489 echo "$as_me:5489: result: $ac_cv_func_malloc_get_state" >&5
5490 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5491 if test $ac_cv_func_malloc_get_state = yes; then
5497 echo "$as_me:5497: checking for malloc_set_state" >&5
5498 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5499 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 cat >conftest.
$ac_ext <<_ACEOF
5503 #line 5503 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char malloc_set_state (); below. */
5508 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5514 char malloc_set_state ();
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5526 f = malloc_set_state;
5533 rm -f conftest.
$ac_objext conftest
$ac_exeext
5534 if { (eval echo "$as_me:5534: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>&5
5537 echo "$as_me:5537: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try
='test -s conftest$ac_exeext'
5540 { (eval echo "$as_me:5540: \"$ac_try\"") >&5
5543 echo "$as_me:5543: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_func_malloc_set_state
=yes
5547 echo "$as_me: failed program was:" >&5
5548 cat conftest.
$ac_ext >&5
5549 ac_cv_func_malloc_set_state
=no
5551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5553 echo "$as_me:5553: result: $ac_cv_func_malloc_set_state" >&5
5554 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5555 if test $ac_cv_func_malloc_set_state = yes; then
5561 echo "$as_me:5561: checking whether __after_morecore_hook exists" >&5
5562 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5563 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 cat >conftest.
$ac_ext <<_ACEOF
5567 #line 5567 "configure"
5568 #include "confdefs.h"
5569 extern void (* __after_morecore_hook)();
5573 __after_morecore_hook = 0
5578 rm -f conftest.
$ac_objext conftest
$ac_exeext
5579 if { (eval echo "$as_me:5579: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:5582: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:5585: \"$ac_try\"") >&5
5588 echo "$as_me:5588: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 emacs_cv_var___after_morecore_hook
=yes
5592 echo "$as_me: failed program was:" >&5
5593 cat conftest.
$ac_ext >&5
5594 emacs_cv_var___after_morecore_hook
=no
5596 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5598 echo "$as_me:5598: result: $emacs_cv_var___after_morecore_hook" >&5
5599 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5600 if test $emacs_cv_var___after_morecore_hook = no
; then
5603 if test "${system_malloc}" = "yes"; then
5606 (The GNU allocators don't work with this system configuration.)"
5608 if test "$doug_lea_malloc" = "yes" ; then
5609 if test "$GNU_MALLOC" = yes ; then
5611 (Using Doug Lea's new malloc from the GNU C Library.)"
5613 cat >>confdefs.h
<<\EOF
5614 #define DOUG_LEA_MALLOC 1
5619 if test x
"${REL_ALLOC}" = x
; then
5620 REL_ALLOC
=${GNU_MALLOC}
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5625 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5626 inttypes.h stdint.h unistd.h
5628 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5629 echo "$as_me:5629: checking for $ac_header" >&5
5630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5635 #line 5635 "configure"
5636 #include "confdefs.h"
5637 $ac_includes_default
5638 #include <$ac_header>
5640 rm -f conftest.
$ac_objext
5641 if { (eval echo "$as_me:5641: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>&5
5644 echo "$as_me:5644: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try
='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:5647: \"$ac_try\"") >&5
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 eval "$as_ac_Header=yes"
5654 echo "$as_me: failed program was:" >&5
5655 cat conftest.
$ac_ext >&5
5656 eval "$as_ac_Header=no"
5658 rm -f conftest.
$ac_objext conftest.
$ac_ext
5660 echo "$as_me:5660: result: `eval echo '${'$as_ac_Header'}'`" >&5
5661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5663 cat >>confdefs.h
<<EOF
5664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5670 for ac_header
in stdlib.h unistd.h
5672 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5673 echo "$as_me:5673: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.
$ac_ext <<_ACEOF
5679 #line 5679 "configure"
5680 #include "confdefs.h"
5681 #include <$ac_header>
5683 if { (eval echo "$as_me:5683: \"$ac_cpp conftest.$ac_ext\"") >&5
5684 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5686 egrep -v '^ *\+' conftest.er1
>conftest.err
5688 cat conftest.err
>&5
5689 echo "$as_me:5689: \$? = $ac_status" >&5
5690 (exit $ac_status); } >/dev
/null
; then
5691 if test -s conftest.err
; then
5692 ac_cpp_err
=$ac_c_preproc_warn_flag
5699 if test -z "$ac_cpp_err"; then
5700 eval "$as_ac_Header=yes"
5702 echo "$as_me: failed program was:" >&5
5703 cat conftest.
$ac_ext >&5
5704 eval "$as_ac_Header=no"
5706 rm -f conftest.err conftest.
$ac_ext
5708 echo "$as_me:5708: result: `eval echo '${'$as_ac_Header'}'`" >&5
5709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5711 cat >>confdefs.h
<<EOF
5712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718 for ac_func
in getpagesize
5720 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5721 echo "$as_me:5721: checking for $ac_func" >&5
5722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_var+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.
$ac_ext <<_ACEOF
5727 #line 5727 "configure"
5728 #include "confdefs.h"
5729 /* System header to define __stub macros and hopefully few prototypes,
5730 which can conflict with char $ac_func (); below. */
5732 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5744 /* The GNU C library defines this for functions which it implements
5745 to always fail with ENOSYS. Some functions are actually named
5746 something starting with __ and the normal name is an alias. */
5747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5757 rm -f conftest.
$ac_objext conftest
$ac_exeext
5758 if { (eval echo "$as_me:5758: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:5764: \"$ac_try\"") >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 eval "$as_ac_var=yes"
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5773 eval "$as_ac_var=no"
5775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5777 echo "$as_me:5777: result: `eval echo '${'$as_ac_var'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5779 if test `eval echo '${'$as_ac_var'}'` = yes; then
5780 cat >>confdefs.h
<<EOF
5781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5787 echo "$as_me:5787: checking for working mmap" >&5
5788 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 if test "$cross_compiling" = yes; then
5793 ac_cv_func_mmap_fixed_mapped
=no
5795 cat >conftest.
$ac_ext <<_ACEOF
5796 #line 5796 "configure"
5797 #include "confdefs.h"
5798 $ac_includes_default
5799 /* Thanks to Mike Haertel and Jim Avera for this test.
5800 Here is a matrix of mmap possibilities:
5801 mmap private not fixed
5802 mmap private fixed at somewhere currently unmapped
5803 mmap private fixed at somewhere already mapped
5804 mmap shared not fixed
5805 mmap shared fixed at somewhere currently unmapped
5806 mmap shared fixed at somewhere already mapped
5807 For private mappings, we should verify that changes cannot be read()
5808 back from the file, nor mmap's back from the file at a different
5809 address. (There have been systems where private was not correctly
5810 implemented like the infamous i386 svr4.0, and systems where the
5811 VM page cache was not coherent with the file system buffer cache
5812 like early versions of FreeBSD and possibly contemporary NetBSD.)
5813 For shared mappings, we should conversely verify that changes get
5814 propogated back to all the places they're supposed to be.
5816 Grep wants private fixed already mapped.
5817 The main things grep needs to know about mmap are:
5818 * does it exist and is it safe to write into the mmap'd area
5819 * how to use it (BSD variants) */
5822 #include <sys/mman.h>
5824 #if !STDC_HEADERS && !HAVE_STDLIB_H
5828 /* This mess was copied from the GNU getpagesize.h. */
5829 #if !HAVE_GETPAGESIZE
5830 /* Assume that all systems that can run configure have sys/param.h. */
5831 # if !HAVE_SYS_PARAM_H
5832 # define HAVE_SYS_PARAM_H 1
5835 # ifdef _SC_PAGESIZE
5836 # define getpagesize() sysconf(_SC_PAGESIZE)
5837 # else /* no _SC_PAGESIZE */
5838 # if HAVE_SYS_PARAM_H
5839 # include <sys/param.h>
5840 # ifdef EXEC_PAGESIZE
5841 # define getpagesize() EXEC_PAGESIZE
5842 # else /* no EXEC_PAGESIZE */
5844 # define getpagesize() NBPG * CLSIZE
5847 # endif /* no CLSIZE */
5848 # else /* no NBPG */
5850 # define getpagesize() NBPC
5851 # else /* no NBPC */
5853 # define getpagesize() PAGESIZE
5854 # endif /* PAGESIZE */
5855 # endif /* no NBPC */
5856 # endif /* no NBPG */
5857 # endif /* no EXEC_PAGESIZE */
5858 # else /* no HAVE_SYS_PARAM_H */
5859 # define getpagesize() 8192 /* punt totally */
5860 # endif /* no HAVE_SYS_PARAM_H */
5861 # endif /* no _SC_PAGESIZE */
5863 #endif /* no HAVE_GETPAGESIZE */
5868 char *data, *data2, *data3;
5872 pagesize = getpagesize ();
5874 /* First, make a file with some known garbage in it. */
5875 data = (char *) malloc (pagesize);
5878 for (i = 0; i < pagesize; ++i)
5879 *(data + i) = rand ();
5881 fd = creat ("conftest.mmap", 0600);
5884 if (write (fd, data, pagesize) != pagesize)
5888 /* Next, try to mmap the file at a fixed address which already has
5889 something else allocated at it. If we can, also make sure that
5890 we see the same garbage. */
5891 fd = open ("conftest.mmap", O_RDWR);
5894 data2 = (char *) malloc (2 * pagesize);
5897 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5901 for (i = 0; i < pagesize; ++i)
5902 if (*(data + i) != *(data2 + i))
5905 /* Finally, make sure that changes to the mapped area do not
5906 percolate back to the file as seen by read(). (This is a bug on
5907 some variants of i386 svr4.0.) */
5908 for (i = 0; i < pagesize; ++i)
5909 *(data2 + i) = *(data2 + i) + 1;
5910 data3 = (char *) malloc (pagesize);
5913 if (read (fd, data3, pagesize) != pagesize)
5915 for (i = 0; i < pagesize; ++i)
5916 if (*(data + i) != *(data3 + i))
5922 rm -f conftest
$ac_exeext
5923 if { (eval echo "$as_me:5923: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5926 echo "$as_me:5926: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5928 { (eval echo "$as_me:5928: \"$ac_try\"") >&5
5931 echo "$as_me:5931: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_func_mmap_fixed_mapped
=yes
5935 echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 cat conftest.
$ac_ext >&5
5938 ac_cv_func_mmap_fixed_mapped
=no
5940 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5943 echo "$as_me:5943: result: $ac_cv_func_mmap_fixed_mapped" >&5
5944 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5945 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5947 cat >>confdefs.h
<<\EOF
5954 if test $use_mmap_for_buffers = yes; then
5958 LIBS
="$libsrc_libs $LIBS"
5960 echo "$as_me:5960: checking for dnet_ntoa in -ldnet" >&5
5961 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5962 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_check_lib_save_LIBS
=$LIBS
5967 cat >conftest.
$ac_ext <<_ACEOF
5968 #line 5968 "configure"
5969 #include "confdefs.h"
5971 /* Override any gcc2 internal prototype to avoid an error. */
5975 /* We use char because int might match the return type of a gcc2
5976 builtin and then its argument prototype would still apply. */
5986 rm -f conftest.
$ac_objext conftest
$ac_exeext
5987 if { (eval echo "$as_me:5987: \"$ac_link\"") >&5
5988 (eval $ac_link) 2>&5
5990 echo "$as_me:5990: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:5993: \"$ac_try\"") >&5
5996 echo "$as_me:5996: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_lib_dnet_dnet_ntoa
=yes
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.
$ac_ext >&5
6002 ac_cv_lib_dnet_dnet_ntoa
=no
6004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6005 LIBS
=$ac_check_lib_save_LIBS
6007 echo "$as_me:6007: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6008 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6009 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6010 cat >>confdefs.h
<<EOF
6011 #define HAVE_LIBDNET 1
6018 echo "$as_me:6018: checking for main in -lXbsd" >&5
6019 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6020 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_check_lib_save_LIBS
=$LIBS
6025 cat >conftest.
$ac_ext <<_ACEOF
6026 #line 6026 "configure"
6027 #include "confdefs.h"
6037 rm -f conftest.
$ac_objext conftest
$ac_exeext
6038 if { (eval echo "$as_me:6038: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6041 echo "$as_me:6041: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try
='test -s conftest$ac_exeext'
6044 { (eval echo "$as_me:6044: \"$ac_try\"") >&5
6047 echo "$as_me:6047: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_lib_Xbsd_main
=yes
6051 echo "$as_me: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6053 ac_cv_lib_Xbsd_main
=no
6055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6056 LIBS
=$ac_check_lib_save_LIBS
6058 echo "$as_me:6058: result: $ac_cv_lib_Xbsd_main" >&5
6059 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6060 if test $ac_cv_lib_Xbsd_main = yes; then
6061 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6064 echo "$as_me:6064: checking for cma_open in -lpthreads" >&5
6065 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6066 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 ac_check_lib_save_LIBS
=$LIBS
6070 LIBS
="-lpthreads $LIBS"
6071 cat >conftest.
$ac_ext <<_ACEOF
6072 #line 6072 "configure"
6073 #include "confdefs.h"
6075 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6090 rm -f conftest.
$ac_objext conftest
$ac_exeext
6091 if { (eval echo "$as_me:6091: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>&5
6094 echo "$as_me:6094: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try
='test -s conftest$ac_exeext'
6097 { (eval echo "$as_me:6097: \"$ac_try\"") >&5
6100 echo "$as_me:6100: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_lib_pthreads_cma_open
=yes
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.
$ac_ext >&5
6106 ac_cv_lib_pthreads_cma_open
=no
6108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6109 LIBS
=$ac_check_lib_save_LIBS
6111 echo "$as_me:6111: result: $ac_cv_lib_pthreads_cma_open" >&5
6112 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6113 if test $ac_cv_lib_pthreads_cma_open = yes; then
6114 cat >>confdefs.h
<<EOF
6115 #define HAVE_LIBPTHREADS 1
6118 LIBS
="-lpthreads $LIBS"
6122 echo "$as_me:6122: checking for XFree86 in /usr/X386" >&5
6123 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6124 if test -d /usr
/X386
/include
; then
6126 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6130 echo "$as_me:6130: result: $HAVE_XFREE386" >&5
6131 echo "${ECHO_T}$HAVE_XFREE386" >&6
6133 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6134 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6136 REAL_CPPFLAGS
="$CPPFLAGS"
6138 if test "${HAVE_X11}" = "yes"; then
6139 DEFS
="$C_SWITCH_X_SITE $DEFS"
6140 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6142 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6143 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6145 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6146 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6147 # but it's more convenient here to set LD_RUN_PATH
6148 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6149 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6150 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6154 if test "${opsys}" = "gnu-linux"; then
6155 echo "$as_me:6155: checking whether X on GNU/Linux needs -b to link" >&5
6156 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6157 cat >conftest.
$ac_ext <<_ACEOF
6158 #line 6158 "configure"
6159 #include "confdefs.h"
6164 XOpenDisplay ("foo");
6169 rm -f conftest.
$ac_objext conftest
$ac_exeext
6170 if { (eval echo "$as_me:6170: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:6173: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try
='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:6176: \"$ac_try\"") >&5
6179 echo "$as_me:6179: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 xlinux_first_failure
=no
6183 echo "$as_me: failed program was:" >&5
6184 cat conftest.
$ac_ext >&5
6185 xlinux_first_failure
=yes
6187 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6188 if test "${xlinux_first_failure}" = "yes"; then
6189 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6190 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6191 OLD_CPPFLAGS
="$CPPFLAGS"
6193 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6194 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6195 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6196 LIBS
="$LIBS -b i486-linuxaout"
6197 cat >conftest.
$ac_ext <<_ACEOF
6198 #line 6198 "configure"
6199 #include "confdefs.h"
6204 XOpenDisplay ("foo");
6209 rm -f conftest.
$ac_objext conftest
$ac_exeext
6210 if { (eval echo "$as_me:6210: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>&5
6213 echo "$as_me:6213: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try
='test -s conftest$ac_exeext'
6216 { (eval echo "$as_me:6216: \"$ac_try\"") >&5
6219 echo "$as_me:6219: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 xlinux_second_failure
=no
6223 echo "$as_me: failed program was:" >&5
6224 cat conftest.
$ac_ext >&5
6225 xlinux_second_failure
=yes
6227 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6228 if test "${xlinux_second_failure}" = "yes"; then
6229 # If we get the same failure with -b, there is no use adding -b.
6230 # So take it out. This plays safe.
6231 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6232 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6233 CPPFLAGS
="$OLD_CPPFLAGS"
6235 echo "$as_me:6235: result: no" >&5
6236 echo "${ECHO_T}no" >&6
6238 echo "$as_me:6238: result: yes" >&5
6239 echo "${ECHO_T}yes" >&6
6242 echo "$as_me:6242: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6247 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6248 # header files included from there.
6249 echo "$as_me:6249: checking for Xkb" >&5
6250 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6251 cat >conftest.
$ac_ext <<_ACEOF
6252 #line 6252 "configure"
6253 #include "confdefs.h"
6254 #include <X11/Xlib.h>
6255 #include <X11/XKBlib.h>
6259 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6264 rm -f conftest.
$ac_objext conftest
$ac_exeext
6265 if { (eval echo "$as_me:6265: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>&5
6268 echo "$as_me:6268: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try
='test -s conftest$ac_exeext'
6271 { (eval echo "$as_me:6271: \"$ac_try\"") >&5
6274 echo "$as_me:6274: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6278 echo "$as_me: failed program was:" >&5
6279 cat conftest.
$ac_ext >&5
6282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6283 echo "$as_me:6283: result: $emacs_xkb" >&5
6284 echo "${ECHO_T}$emacs_xkb" >&6
6285 if test $emacs_xkb = yes; then
6286 cat >>confdefs.h
<<\EOF
6287 #define HAVE_XKBGETKEYBOARD 1
6292 for ac_func
in XrmSetDatabase XScreenResourceString \
6293 XScreenNumberOfScreen XSetWMProtocols
6295 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6296 echo "$as_me:6296: checking for $ac_func" >&5
6297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_var+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6302 #line 6302 "configure"
6303 #include "confdefs.h"
6304 /* System header to define __stub macros and hopefully few prototypes,
6305 which can conflict with char $ac_func (); below. */
6307 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6319 /* The GNU C library defines this for functions which it implements
6320 to always fail with ENOSYS. Some functions are actually named
6321 something starting with __ and the normal name is an alias. */
6322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6332 rm -f conftest.
$ac_objext conftest
$ac_exeext
6333 if { (eval echo "$as_me:6333: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>&5
6336 echo "$as_me:6336: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try
='test -s conftest$ac_exeext'
6339 { (eval echo "$as_me:6339: \"$ac_try\"") >&5
6342 echo "$as_me:6342: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 eval "$as_ac_var=yes"
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.
$ac_ext >&5
6348 eval "$as_ac_var=no"
6350 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6352 echo "$as_me:6352: result: `eval echo '${'$as_ac_var'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6354 if test `eval echo '${'$as_ac_var'}'` = yes; then
6355 cat >>confdefs.h
<<EOF
6356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6364 if test "${window_system}" = "x11"; then
6365 echo "$as_me:6365: checking X11 version 6" >&5
6366 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6367 if test "${emacs_cv_x11_version_6+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.
$ac_ext <<_ACEOF
6371 #line 6371 "configure"
6372 #include "confdefs.h"
6373 #include <X11/Xlib.h>
6377 #if XlibSpecificationRelease < 6
6385 rm -f conftest.
$ac_objext conftest
$ac_exeext
6386 if { (eval echo "$as_me:6386: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try
='test -s conftest$ac_exeext'
6392 { (eval echo "$as_me:6392: \"$ac_try\"") >&5
6395 echo "$as_me:6395: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 emacs_cv_x11_version_6
=yes
6399 echo "$as_me: failed program was:" >&5
6400 cat conftest.
$ac_ext >&5
6401 emacs_cv_x11_version_6
=no
6403 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6406 if test $emacs_cv_x11_version_6 = yes; then
6407 echo "$as_me:6407: result: 6 or newer" >&5
6408 echo "${ECHO_T}6 or newer" >&6
6409 cat >>confdefs.h
<<\EOF
6410 #define HAVE_X11R6 1
6414 echo "$as_me:6414: result: before 6" >&5
6415 echo "${ECHO_T}before 6" >&6
6419 if test "${window_system}" = "x11"; then
6420 echo "$as_me:6420: checking X11 version 5" >&5
6421 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6422 if test "${emacs_cv_x11_version_5+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 cat >conftest.
$ac_ext <<_ACEOF
6426 #line 6426 "configure"
6427 #include "confdefs.h"
6428 #include <X11/Xlib.h>
6432 #if XlibSpecificationRelease < 5
6440 rm -f conftest.
$ac_objext conftest
$ac_exeext
6441 if { (eval echo "$as_me:6441: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try
='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:6447: \"$ac_try\"") >&5
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 emacs_cv_x11_version_5
=yes
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6456 emacs_cv_x11_version_5
=no
6458 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6461 if test $emacs_cv_x11_version_5 = yes; then
6462 echo "$as_me:6462: result: 5 or newer" >&5
6463 echo "${ECHO_T}5 or newer" >&6
6465 cat >>confdefs.h
<<\EOF
6466 #define HAVE_X11R5 1
6471 echo "$as_me:6471: result: before 5" >&5
6472 echo "${ECHO_T}before 5" >&6
6476 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6477 if test x
"${HAVE_X11R5}" = xyes
; then
6478 echo "$as_me:6478: checking X11 version 5 with Xaw" >&5
6479 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6480 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 cat >conftest.
$ac_ext <<_ACEOF
6484 #line 6484 "configure"
6485 #include "confdefs.h"
6487 #include <X11/Intrinsic.h>
6488 #include <X11/Xaw/Simple.h>
6497 rm -f conftest.
$ac_objext conftest
$ac_exeext
6498 if { (eval echo "$as_me:6498: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6501 echo "$as_me:6501: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try
='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:6504: \"$ac_try\"") >&5
6507 echo "$as_me:6507: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 emacs_cv_x11_version_5_with_xaw
=yes
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6513 emacs_cv_x11_version_5_with_xaw
=no
6515 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6518 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6519 echo "$as_me:6519: result: 5 or newer, with Xaw; use toolkit by default" >&5
6520 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6523 echo "$as_me:6523: result: before 5 or no Xaw; do not use toolkit by default" >&5
6524 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6532 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6534 if test "${USE_X_TOOLKIT}" != "none"; then
6535 echo "$as_me:6535: checking X11 toolkit version" >&5
6536 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6537 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.
$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6543 #include <X11/Intrinsic.h>
6547 #if XtSpecificationRelease < 6
6555 rm -f conftest.
$ac_objext conftest
$ac_exeext
6556 if { (eval echo "$as_me:6556: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
6559 echo "$as_me:6559: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try
='test -s conftest$ac_exeext'
6562 { (eval echo "$as_me:6562: \"$ac_try\"") >&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 emacs_cv_x11_toolkit_version_6
=yes
6569 echo "$as_me: failed program was:" >&5
6570 cat conftest.
$ac_ext >&5
6571 emacs_cv_x11_toolkit_version_6
=no
6573 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6576 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6577 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6578 echo "$as_me:6578: result: 6 or newer" >&5
6579 echo "${ECHO_T}6 or newer" >&6
6580 cat >>confdefs.h
<<\EOF
6581 #define HAVE_X11XTR6 1
6585 echo "$as_me:6585: result: before 6" >&5
6586 echo "${ECHO_T}before 6" >&6
6590 if test x
$HAVE_X11XTR6 = xyes
; then
6591 LIBS
="-lXt -lSM -lICE $LIBS"
6596 echo "$as_me:6596: checking for XmuConvertStandardSelection in -lXmu" >&5
6597 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6598 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_check_lib_save_LIBS
=$LIBS
6603 cat >conftest.
$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6613 char XmuConvertStandardSelection ();
6617 XmuConvertStandardSelection ();
6622 rm -f conftest.
$ac_objext conftest
$ac_exeext
6623 if { (eval echo "$as_me:6623: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>&5
6626 echo "$as_me:6626: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:6629: \"$ac_try\"") >&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6636 echo "$as_me: failed program was:" >&5
6637 cat conftest.
$ac_ext >&5
6638 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6640 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6641 LIBS
=$ac_check_lib_save_LIBS
6643 echo "$as_me:6643: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6644 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6645 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6646 cat >>confdefs.h
<<EOF
6647 #define HAVE_LIBXMU 1
6654 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6657 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6658 if test "${HAVE_X11}" = "yes"; then
6659 if test "${USE_X_TOOLKIT}" != "none"; then
6661 echo "$as_me:6661: checking for XShapeQueryExtension in -lXext" >&5
6662 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6663 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_check_lib_save_LIBS
=$LIBS
6668 cat >conftest.
$ac_ext <<_ACEOF
6669 #line 6669 "configure"
6670 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678 char XShapeQueryExtension ();
6682 XShapeQueryExtension ();
6687 rm -f conftest.
$ac_objext conftest
$ac_exeext
6688 if { (eval echo "$as_me:6688: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>&5
6691 echo "$as_me:6691: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try
='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:6694: \"$ac_try\"") >&5
6697 echo "$as_me:6697: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6701 echo "$as_me: failed program was:" >&5
6702 cat conftest.
$ac_ext >&5
6703 ac_cv_lib_Xext_XShapeQueryExtension
=no
6705 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6706 LIBS
=$ac_check_lib_save_LIBS
6708 echo "$as_me:6708: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6709 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6710 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6711 cat >>confdefs.h
<<EOF
6712 #define HAVE_LIBXEXT 1
6722 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6723 echo "$as_me:6723: checking for Motif version 2.1" >&5
6724 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6725 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 cat >conftest.
$ac_ext <<_ACEOF
6729 #line 6729 "configure"
6730 #include "confdefs.h"
6735 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6738 Motif version prior to 2.1.
6744 rm -f conftest.
$ac_objext
6745 if { (eval echo "$as_me:6745: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>&5
6748 echo "$as_me:6748: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try
='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:6751: \"$ac_try\"") >&5
6754 echo "$as_me:6754: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 emacs_cv_motif_version_2_1
=yes
6758 echo "$as_me: failed program was:" >&5
6759 cat conftest.
$ac_ext >&5
6760 emacs_cv_motif_version_2_1
=no
6762 rm -f conftest.
$ac_objext conftest.
$ac_ext
6764 echo "$as_me:6764: result: $emacs_cv_motif_version_2_1" >&5
6765 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6766 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6767 if test $emacs_cv_motif_version_2_1 = yes; then
6769 cat >>confdefs.h
<<\EOF
6770 #define HAVE_MOTIF_2_1 1
6773 echo "$as_me:6773: checking for XpCreateContext in -lXp" >&5
6774 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6775 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_check_lib_save_LIBS
=$LIBS
6780 cat >conftest.
$ac_ext <<_ACEOF
6781 #line 6781 "configure"
6782 #include "confdefs.h"
6784 /* Override any gcc2 internal prototype to avoid an error. */
6788 /* We use char because int might match the return type of a gcc2
6789 builtin and then its argument prototype would still apply. */
6790 char XpCreateContext ();
6799 rm -f conftest.
$ac_objext conftest
$ac_exeext
6800 if { (eval echo "$as_me:6800: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>&5
6803 echo "$as_me:6803: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try
='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:6806: \"$ac_try\"") >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_lib_Xp_XpCreateContext
=yes
6813 echo "$as_me: failed program was:" >&5
6814 cat conftest.
$ac_ext >&5
6815 ac_cv_lib_Xp_XpCreateContext
=no
6817 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6818 LIBS
=$ac_check_lib_save_LIBS
6820 echo "$as_me:6820: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6821 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6822 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6826 if test ${HAVE_LIBXP} = yes; then
6827 cat >>confdefs.h
<<\EOF
6828 #define HAVE_LIBXP 1
6835 ### Is -lXaw3d available?
6837 if test "${HAVE_X11}" = "yes"; then
6838 if test "${USE_X_TOOLKIT}" != "none"; then
6839 echo "$as_me:6839: checking for X11/Xaw3d/Scrollbar.h" >&5
6840 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6841 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 cat >conftest.
$ac_ext <<_ACEOF
6845 #line 6845 "configure"
6846 #include "confdefs.h"
6847 #include <X11/Xaw3d/Scrollbar.h>
6849 if { (eval echo "$as_me:6849: \"$ac_cpp conftest.$ac_ext\"") >&5
6850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6852 egrep -v '^ *\+' conftest.er1
>conftest.err
6854 cat conftest.err
>&5
6855 echo "$as_me:6855: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev
/null
; then
6857 if test -s conftest.err
; then
6858 ac_cpp_err
=$ac_c_preproc_warn_flag
6865 if test -z "$ac_cpp_err"; then
6866 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6868 echo "$as_me: failed program was:" >&5
6869 cat conftest.
$ac_ext >&5
6870 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6872 rm -f conftest.err conftest.
$ac_ext
6874 echo "$as_me:6874: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6875 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6876 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6877 echo "$as_me:6877: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6878 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6879 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 ac_check_lib_save_LIBS
=$LIBS
6883 LIBS
="-lXaw3d $LIBS"
6884 cat >conftest.
$ac_ext <<_ACEOF
6885 #line 6885 "configure"
6886 #include "confdefs.h"
6888 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6894 char XawScrollbarSetThumb ();
6898 XawScrollbarSetThumb ();
6903 rm -f conftest.
$ac_objext conftest
$ac_exeext
6904 if { (eval echo "$as_me:6904: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>&5
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try
='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:6910: \"$ac_try\"") >&5
6913 echo "$as_me:6913: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6917 echo "$as_me: failed program was:" >&5
6918 cat conftest.
$ac_ext >&5
6919 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6922 LIBS
=$ac_check_lib_save_LIBS
6924 echo "$as_me:6924: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6925 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6926 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6932 if test "${HAVE_XAW3D}" = "yes"; then
6933 cat >>confdefs.h
<<\EOF
6934 #define HAVE_XAW3D 1
6941 USE_TOOLKIT_SCROLL_BARS
=no
6942 if test "${with_toolkit_scroll_bars}" != "no"; then
6943 if test "${USE_X_TOOLKIT}" != "none"; then
6944 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6945 cat >>confdefs.h
<<\EOF
6946 #define USE_TOOLKIT_SCROLL_BARS 1
6950 USE_TOOLKIT_SCROLL_BARS
=yes
6951 elif test "${HAVE_XAW3D}" = "yes"; then
6952 cat >>confdefs.h
<<\EOF
6953 #define USE_TOOLKIT_SCROLL_BARS 1
6956 USE_TOOLKIT_SCROLL_BARS
=yes
6961 if test "${with_xim}" != "no"; then
6962 cat >>confdefs.h
<<\EOF
6968 ### Use -lXpm if available, unless `--with-xpm=no'.
6970 if test "${HAVE_X11}" = "yes"; then
6971 if test "${with_xpm}" != "no"; then
6972 echo "$as_me:6972: checking for X11/xpm.h" >&5
6973 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6974 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 cat >conftest.
$ac_ext <<_ACEOF
6978 #line 6978 "configure"
6979 #include "confdefs.h"
6980 #include <X11/xpm.h>
6982 if { (eval echo "$as_me:6982: \"$ac_cpp conftest.$ac_ext\"") >&5
6983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6985 egrep -v '^ *\+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:6988: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev
/null
; then
6990 if test -s conftest.err
; then
6991 ac_cpp_err
=$ac_c_preproc_warn_flag
6998 if test -z "$ac_cpp_err"; then
6999 ac_cv_header_X11_xpm_h
=yes
7001 echo "$as_me: failed program was:" >&5
7002 cat conftest.
$ac_ext >&5
7003 ac_cv_header_X11_xpm_h
=no
7005 rm -f conftest.err conftest.
$ac_ext
7007 echo "$as_me:7007: result: $ac_cv_header_X11_xpm_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7009 if test $ac_cv_header_X11_xpm_h = yes; then
7010 echo "$as_me:7010: checking for XpmReadFileToPixmap in -lXpm" >&5
7011 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7012 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_check_lib_save_LIBS
=$LIBS
7016 LIBS
="-lXpm -lX11 $LIBS"
7017 cat >conftest.
$ac_ext <<_ACEOF
7018 #line 7018 "configure"
7019 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error. */
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7027 char XpmReadFileToPixmap ();
7031 XpmReadFileToPixmap ();
7036 rm -f conftest.
$ac_objext conftest
$ac_exeext
7037 if { (eval echo "$as_me:7037: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try
='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:7043: \"$ac_try\"") >&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7050 echo "$as_me: failed program was:" >&5
7051 cat conftest.
$ac_ext >&5
7052 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7055 LIBS
=$ac_check_lib_save_LIBS
7057 echo "$as_me:7057: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7058 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7059 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7065 if test "${HAVE_XPM}" = "yes"; then
7066 echo "$as_me:7066: checking for XpmReturnAllocPixels preprocessor define" >&5
7067 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7068 cat >conftest.
$ac_ext <<_ACEOF
7069 #line 7069 "configure"
7070 #include "confdefs.h"
7071 #include "X11/xpm.h"
7072 #ifndef XpmReturnAllocPixels
7073 no_return_alloc_pixels
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7085 if test "${HAVE_XPM}" = "yes"; then
7086 echo "$as_me:7086: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6
7089 echo "$as_me:7089: result: no" >&5
7090 echo "${ECHO_T}no" >&6
7095 if test "${HAVE_XPM}" = "yes"; then
7096 cat >>confdefs.h
<<\EOF
7103 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7105 if test "${HAVE_X11}" = "yes"; then
7106 if test "${with_jpeg}" != "no"; then
7107 echo "$as_me:7107: checking for jerror.h" >&5
7108 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7109 if test "${ac_cv_header_jerror_h+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 cat >conftest.
$ac_ext <<_ACEOF
7113 #line 7113 "configure"
7114 #include "confdefs.h"
7117 if { (eval echo "$as_me:7117: \"$ac_cpp conftest.$ac_ext\"") >&5
7118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7120 egrep -v '^ *\+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 echo "$as_me:7123: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev
/null
; then
7125 if test -s conftest.err
; then
7126 ac_cpp_err
=$ac_c_preproc_warn_flag
7133 if test -z "$ac_cpp_err"; then
7134 ac_cv_header_jerror_h
=yes
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.
$ac_ext >&5
7138 ac_cv_header_jerror_h
=no
7140 rm -f conftest.err conftest.
$ac_ext
7142 echo "$as_me:7142: result: $ac_cv_header_jerror_h" >&5
7143 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7144 if test $ac_cv_header_jerror_h = yes; then
7145 echo "$as_me:7145: checking for jpeg_destroy_compress in -ljpeg" >&5
7146 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7147 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_check_lib_save_LIBS
=$LIBS
7152 cat >conftest.
$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7156 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7162 char jpeg_destroy_compress ();
7166 jpeg_destroy_compress ();
7171 rm -f conftest.
$ac_objext conftest
$ac_exeext
7172 if { (eval echo "$as_me:7172: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try
='test -s conftest$ac_exeext'
7178 { (eval echo "$as_me:7178: \"$ac_try\"") >&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7185 echo "$as_me: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7187 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7190 LIBS
=$ac_check_lib_save_LIBS
7192 echo "$as_me:7192: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7193 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7194 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7202 if test "${HAVE_JPEG}" = "yes"; then
7203 cat >>confdefs.h
<<\EOF
7210 ### Use -lpng if available, unless `--with-png=no'.
7212 if test "${HAVE_X11}" = "yes"; then
7213 if test "${with_png}" != "no"; then
7214 echo "$as_me:7214: checking for png.h" >&5
7215 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7216 if test "${ac_cv_header_png_h+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.
$ac_ext <<_ACEOF
7220 #line 7220 "configure"
7221 #include "confdefs.h"
7224 if { (eval echo "$as_me:7224: \"$ac_cpp conftest.$ac_ext\"") >&5
7225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7227 egrep -v '^ *\+' conftest.er1
>conftest.err
7229 cat conftest.err
>&5
7230 echo "$as_me:7230: \$? = $ac_status" >&5
7231 (exit $ac_status); } >/dev
/null
; then
7232 if test -s conftest.err
; then
7233 ac_cpp_err
=$ac_c_preproc_warn_flag
7240 if test -z "$ac_cpp_err"; then
7241 ac_cv_header_png_h
=yes
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.
$ac_ext >&5
7245 ac_cv_header_png_h
=no
7247 rm -f conftest.err conftest.
$ac_ext
7249 echo "$as_me:7249: result: $ac_cv_header_png_h" >&5
7250 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7251 if test $ac_cv_header_png_h = yes; then
7252 echo "$as_me:7252: checking for png_get_channels in -lpng" >&5
7253 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7254 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 ac_check_lib_save_LIBS
=$LIBS
7258 LIBS
="-lpng -lz -lm $LIBS"
7259 cat >conftest.
$ac_ext <<_ACEOF
7260 #line 7260 "configure"
7261 #include "confdefs.h"
7263 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269 char png_get_channels ();
7273 png_get_channels ();
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (eval echo "$as_me:7279: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>&5
7282 echo "$as_me:7282: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try
='test -s conftest$ac_exeext'
7285 { (eval echo "$as_me:7285: \"$ac_try\"") >&5
7288 echo "$as_me:7288: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_lib_png_png_get_channels
=yes
7292 echo "$as_me: failed program was:" >&5
7293 cat conftest.
$ac_ext >&5
7294 ac_cv_lib_png_png_get_channels
=no
7296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7297 LIBS
=$ac_check_lib_save_LIBS
7299 echo "$as_me:7299: result: $ac_cv_lib_png_png_get_channels" >&5
7300 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7301 if test $ac_cv_lib_png_png_get_channels = yes; then
7309 if test "${HAVE_PNG}" = "yes"; then
7310 cat >>confdefs.h
<<\EOF
7317 ### Use -ltiff if available, unless `--with-tiff=no'.
7319 if test "${HAVE_X11}" = "yes"; then
7320 if test "${with_tiff}" != "no"; then
7321 echo "$as_me:7321: checking for tiffio.h" >&5
7322 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7323 if test "${ac_cv_header_tiffio_h+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.
$ac_ext <<_ACEOF
7327 #line 7327 "configure"
7328 #include "confdefs.h"
7331 if { (eval echo "$as_me:7331: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7334 egrep -v '^ *\+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 echo "$as_me:7337: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev
/null
; then
7339 if test -s conftest.err
; then
7340 ac_cpp_err
=$ac_c_preproc_warn_flag
7347 if test -z "$ac_cpp_err"; then
7348 ac_cv_header_tiffio_h
=yes
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.
$ac_ext >&5
7352 ac_cv_header_tiffio_h
=no
7354 rm -f conftest.err conftest.
$ac_ext
7356 echo "$as_me:7356: result: $ac_cv_header_tiffio_h" >&5
7357 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7358 if test $ac_cv_header_tiffio_h = yes; then
7360 # At least one tiff package requires the jpeg library.
7361 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7362 echo "$as_me:7362: checking for TIFFGetVersion in -ltiff" >&5
7363 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7364 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_check_lib_save_LIBS
=$LIBS
7368 LIBS
="-ltiff $tifflibs $LIBS"
7369 cat >conftest.
$ac_ext <<_ACEOF
7370 #line 7370 "configure"
7371 #include "confdefs.h"
7373 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7379 char TIFFGetVersion ();
7388 rm -f conftest.
$ac_objext conftest
$ac_exeext
7389 if { (eval echo "$as_me:7389: \"$ac_link\"") >&5
7390 (eval $ac_link) 2>&5
7392 echo "$as_me:7392: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try
='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:7395: \"$ac_try\"") >&5
7398 echo "$as_me:7398: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_lib_tiff_TIFFGetVersion
=yes
7402 echo "$as_me: failed program was:" >&5
7403 cat conftest.
$ac_ext >&5
7404 ac_cv_lib_tiff_TIFFGetVersion
=no
7406 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7407 LIBS
=$ac_check_lib_save_LIBS
7409 echo "$as_me:7409: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7410 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7411 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7419 if test "${HAVE_TIFF}" = "yes"; then
7420 cat >>confdefs.h
<<\EOF
7427 ### Use -lgif if available, unless `--with-gif=no'.
7429 if test "${HAVE_X11}" = "yes"; then
7430 if test "${with_gif}" != "no"; then
7431 echo "$as_me:7431: checking for gif_lib.h" >&5
7432 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7433 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 cat >conftest.
$ac_ext <<_ACEOF
7437 #line 7437 "configure"
7438 #include "confdefs.h"
7439 #include <gif_lib.h>
7441 if { (eval echo "$as_me:7441: \"$ac_cpp conftest.$ac_ext\"") >&5
7442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7444 egrep -v '^ *\+' conftest.er1
>conftest.err
7446 cat conftest.err
>&5
7447 echo "$as_me:7447: \$? = $ac_status" >&5
7448 (exit $ac_status); } >/dev
/null
; then
7449 if test -s conftest.err
; then
7450 ac_cpp_err
=$ac_c_preproc_warn_flag
7457 if test -z "$ac_cpp_err"; then
7458 ac_cv_header_gif_lib_h
=yes
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.
$ac_ext >&5
7462 ac_cv_header_gif_lib_h
=no
7464 rm -f conftest.err conftest.
$ac_ext
7466 echo "$as_me:7466: result: $ac_cv_header_gif_lib_h" >&5
7467 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7468 if test $ac_cv_header_gif_lib_h = yes; then
7469 echo "$as_me:7469: checking for DGifOpen in -lungif" >&5
7470 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7471 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_check_lib_save_LIBS
=$LIBS
7475 LIBS
="-lungif $LIBS"
7476 cat >conftest.
$ac_ext <<_ACEOF
7477 #line 7477 "configure"
7478 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7495 rm -f conftest.
$ac_objext conftest
$ac_exeext
7496 if { (eval echo "$as_me:7496: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try
='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:7502: \"$ac_try\"") >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_lib_ungif_DGifOpen
=yes
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7511 ac_cv_lib_ungif_DGifOpen
=no
7513 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7514 LIBS
=$ac_check_lib_save_LIBS
7516 echo "$as_me:7516: result: $ac_cv_lib_ungif_DGifOpen" >&5
7517 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7518 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7526 if test "${HAVE_GIF}" = "yes"; then
7527 cat >>confdefs.h
<<\EOF
7534 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7535 echo "$as_me:7535: checking whether netdb declares h_errno" >&5
7536 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7537 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 cat >conftest.
$ac_ext <<_ACEOF
7541 #line 7541 "configure"
7542 #include "confdefs.h"
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext
7553 if { (eval echo "$as_me:7553: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7556 echo "$as_me:7556: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try
='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:7559: \"$ac_try\"") >&5
7562 echo "$as_me:7562: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 emacs_cv_netdb_declares_h_errno
=yes
7566 echo "$as_me: failed program was:" >&5
7567 cat conftest.
$ac_ext >&5
7568 emacs_cv_netdb_declares_h_errno
=no
7570 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7572 echo "$as_me:7572: result: $emacs_cv_netdb_declares_h_errno" >&5
7573 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7574 if test $emacs_cv_netdb_declares_h_errno = yes; then
7575 cat >>confdefs.h
<<\EOF
7576 #define HAVE_H_ERRNO 1
7581 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7582 # for constant arguments. Useless!
7583 echo "$as_me:7583: checking for working alloca.h" >&5
7584 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7585 if test "${ac_cv_working_alloca_h+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.
$ac_ext <<_ACEOF
7589 #line 7589 "configure"
7590 #include "confdefs.h"
7595 char *p = (char *) alloca (2 * sizeof (int));
7600 rm -f conftest.
$ac_objext conftest
$ac_exeext
7601 if { (eval echo "$as_me:7601: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>&5
7604 echo "$as_me:7604: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try
='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:7607: \"$ac_try\"") >&5
7610 echo "$as_me:7610: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_working_alloca_h
=yes
7614 echo "$as_me: failed program was:" >&5
7615 cat conftest.
$ac_ext >&5
7616 ac_cv_working_alloca_h
=no
7618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7620 echo "$as_me:7620: result: $ac_cv_working_alloca_h" >&5
7621 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7622 if test $ac_cv_working_alloca_h = yes; then
7624 cat >>confdefs.h
<<\EOF
7625 #define HAVE_ALLOCA_H 1
7630 echo "$as_me:7630: checking for alloca" >&5
7631 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7632 if test "${ac_cv_func_alloca_works+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 cat >conftest.
$ac_ext <<_ACEOF
7636 #line 7636 "configure"
7637 #include "confdefs.h"
7639 # define alloca __builtin_alloca
7642 # include <malloc.h>
7643 # define alloca _alloca
7646 # include <alloca.h>
7651 # ifndef alloca /* predefined by HP cc +Olibcalls */
7662 char *p = (char *) alloca (1);
7667 rm -f conftest.
$ac_objext conftest
$ac_exeext
7668 if { (eval echo "$as_me:7668: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try
='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:7674: \"$ac_try\"") >&5
7677 echo "$as_me:7677: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_func_alloca_works
=yes
7681 echo "$as_me: failed program was:" >&5
7682 cat conftest.
$ac_ext >&5
7683 ac_cv_func_alloca_works
=no
7685 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7687 echo "$as_me:7687: result: $ac_cv_func_alloca_works" >&5
7688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7690 if test $ac_cv_func_alloca_works = yes; then
7692 cat >>confdefs.h
<<\EOF
7693 #define HAVE_ALLOCA 1
7697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7698 # that cause trouble. Some versions do not even contain alloca or
7699 # contain a buggy version. If you still want to use their alloca,
7700 # use ar to extract alloca.o from them instead of compiling alloca.c.
7702 ALLOCA
=alloca.
$ac_objext
7704 cat >>confdefs.h
<<\EOF
7708 echo "$as_me:7708: checking whether \`alloca.c' needs Cray hooks" >&5
7709 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7710 if test "${ac_cv_os_cray+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.
$ac_ext <<_ACEOF
7714 #line 7714 "configure"
7715 #include "confdefs.h"
7716 #if defined(CRAY) && ! defined(CRAY2)
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 egrep "webecray" >/dev
/null
2>&1; then
7732 echo "$as_me:7732: result: $ac_cv_os_cray" >&5
7733 echo "${ECHO_T}$ac_cv_os_cray" >&6
7734 if test $ac_cv_os_cray = yes; then
7735 for ac_func
in _getb67 GETB67 getb67
; do
7736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7737 echo "$as_me:7737: checking for $ac_func" >&5
7738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_var+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.
$ac_ext <<_ACEOF
7743 #line 7743 "configure"
7744 #include "confdefs.h"
7745 /* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char $ac_func (); below. */
7748 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7773 rm -f conftest.
$ac_objext conftest
$ac_exeext
7774 if { (eval echo "$as_me:7774: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try
='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:7780: \"$ac_try\"") >&5
7783 echo "$as_me:7783: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 eval "$as_ac_var=yes"
7787 echo "$as_me: failed program was:" >&5
7788 cat conftest.
$ac_ext >&5
7789 eval "$as_ac_var=no"
7791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7793 echo "$as_me:7793: result: `eval echo '${'$as_ac_var'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7795 if test `eval echo '${'$as_ac_var'}'` = yes; then
7797 cat >>confdefs.h
<<EOF
7798 #define CRAY_STACKSEG_END $ac_func
7807 echo "$as_me:7807: checking stack direction for C alloca" >&5
7808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7809 if test "${ac_cv_c_stack_direction+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 if test "$cross_compiling" = yes; then
7813 ac_cv_c_stack_direction
=0
7815 cat >conftest.
$ac_ext <<_ACEOF
7816 #line 7816 "configure"
7817 #include "confdefs.h"
7819 find_stack_direction ()
7821 static char *addr = 0;
7826 return find_stack_direction ();
7829 return (&dummy > addr) ? 1 : -1;
7835 exit (find_stack_direction () < 0);
7838 rm -f conftest
$ac_exeext
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7844 { (eval echo "$as_me:7844: \"$ac_try\"") >&5
7847 echo "$as_me:7847: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_cv_c_stack_direction
=1
7851 echo "$as_me: program exited with status $ac_status" >&5
7852 echo "$as_me: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7854 ac_cv_c_stack_direction
=-1
7856 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7859 echo "$as_me:7859: result: $ac_cv_c_stack_direction" >&5
7860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7862 cat >>confdefs.h
<<EOF
7863 #define STACK_DIRECTION $ac_cv_c_stack_direction
7868 # fmod, logb, and frexp are found in -lm on most systems.
7869 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7871 echo "$as_me:7871: checking for sqrt in -lm" >&5
7872 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7873 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 ac_check_lib_save_LIBS
=$LIBS
7878 cat >conftest.
$ac_ext <<_ACEOF
7879 #line 7879 "configure"
7880 #include "confdefs.h"
7882 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7897 rm -f conftest.
$ac_objext conftest
$ac_exeext
7898 if { (eval echo "$as_me:7898: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try
='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:7904: \"$ac_try\"") >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_cv_lib_m_sqrt
=yes
7911 echo "$as_me: failed program was:" >&5
7912 cat conftest.
$ac_ext >&5
7915 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7916 LIBS
=$ac_check_lib_save_LIBS
7918 echo "$as_me:7918: result: $ac_cv_lib_m_sqrt" >&5
7919 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7920 if test $ac_cv_lib_m_sqrt = yes; then
7921 cat >>confdefs.h
<<EOF
7929 # Check for mail-locking functions in a "mail" library
7931 echo "$as_me:7931: checking for maillock in -lmail" >&5
7932 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7933 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_check_lib_save_LIBS
=$LIBS
7938 cat >conftest.
$ac_ext <<_ACEOF
7939 #line 7939 "configure"
7940 #include "confdefs.h"
7942 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7957 rm -f conftest.
$ac_objext conftest
$ac_exeext
7958 if { (eval echo "$as_me:7958: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try
='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:7964: \"$ac_try\"") >&5
7967 echo "$as_me:7967: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_lib_mail_maillock
=yes
7971 echo "$as_me: failed program was:" >&5
7972 cat conftest.
$ac_ext >&5
7973 ac_cv_lib_mail_maillock
=no
7975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7976 LIBS
=$ac_check_lib_save_LIBS
7978 echo "$as_me:7978: result: $ac_cv_lib_mail_maillock" >&5
7979 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7980 if test $ac_cv_lib_mail_maillock = yes; then
7981 cat >>confdefs.h
<<EOF
7982 #define HAVE_LIBMAIL 1
7989 echo "$as_me:7989: checking for maillock in -llockfile" >&5
7990 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
7991 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_check_lib_save_LIBS
=$LIBS
7995 LIBS
="-llockfile $LIBS"
7996 cat >conftest.
$ac_ext <<_ACEOF
7997 #line 7997 "configure"
7998 #include "confdefs.h"
8000 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8015 rm -f conftest.
$ac_objext conftest
$ac_exeext
8016 if { (eval echo "$as_me:8016: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try
='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:8022: \"$ac_try\"") >&5
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_lib_lockfile_maillock
=yes
8029 echo "$as_me: failed program was:" >&5
8030 cat conftest.
$ac_ext >&5
8031 ac_cv_lib_lockfile_maillock
=no
8033 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8034 LIBS
=$ac_check_lib_save_LIBS
8036 echo "$as_me:8036: result: $ac_cv_lib_lockfile_maillock" >&5
8037 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8038 if test $ac_cv_lib_lockfile_maillock = yes; then
8039 cat >>confdefs.h
<<EOF
8040 #define HAVE_LIBLOCKFILE 1
8043 LIBS
="-llockfile $LIBS"
8047 # If we have the shared liblockfile, assume we must use it for mail
8048 # locking (e.g. Debian). If we couldn't link against liblockfile
8049 # (no liblockfile.a installed), ensure that we don't need to.
8050 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8051 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8052 set dummy liblockfile.so
; ac_word
=$2
8053 echo "$as_me:8053: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_prog_liblockfile+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 if test -n "$liblockfile"; then
8059 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8061 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8062 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8063 for ac_dir
in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir
=.
8066 $as_executable_p "$ac_dir/$ac_word" ||
continue
8067 ac_cv_prog_liblockfile
="yes"
8068 echo "$as_me:8068: found $ac_dir/$ac_word" >&5
8072 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8075 liblockfile
=$ac_cv_prog_liblockfile
8076 if test -n "$liblockfile"; then
8077 echo "$as_me:8077: result: $liblockfile" >&5
8078 echo "${ECHO_T}$liblockfile" >&6
8080 echo "$as_me:8080: result: no" >&5
8081 echo "${ECHO_T}no" >&6
8084 if test $ac_cv_prog_liblockfile = yes; then
8085 { { echo "$as_me:8085: error: Shared liblockfile found but can't link against it.
8086 This probably means that movemail could lose mail.
8087 There may be a \`development' package to install containing liblockfile." >&5
8088 echo "$as_me: error: Shared liblockfile found but can't link against it.
8089 This probably means that movemail could lose mail.
8090 There may be a \`development' package to install containing liblockfile." >&2;}
8091 { (exit 1); exit 1; }; }
8092 else cat >>confdefs.h
<<\EOF
8093 #define LIBMAIL -llockfile
8100 for ac_func
in touchlock
8102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8103 echo "$as_me:8103: checking for $ac_func" >&5
8104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_var+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8109 #line 8109 "configure"
8110 #include "confdefs.h"
8111 /* System header to define __stub macros and hopefully few prototypes,
8112 which can conflict with char $ac_func (); below. */
8114 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8139 rm -f conftest.
$ac_objext conftest
$ac_exeext
8140 if { (eval echo "$as_me:8140: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>&5
8143 echo "$as_me:8143: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try
='test -s conftest$ac_exeext'
8146 { (eval echo "$as_me:8146: \"$ac_try\"") >&5
8149 echo "$as_me:8149: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 eval "$as_ac_var=yes"
8153 echo "$as_me: failed program was:" >&5
8154 cat conftest.
$ac_ext >&5
8155 eval "$as_ac_var=no"
8157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8159 echo "$as_me:8159: result: `eval echo '${'$as_ac_var'}'`" >&5
8160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8161 if test `eval echo '${'$as_ac_var'}'` = yes; then
8162 cat >>confdefs.h
<<EOF
8163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8169 for ac_header
in maillock.h
8171 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8172 echo "$as_me:8172: checking for $ac_header" >&5
8173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8178 #line 8178 "configure"
8179 #include "confdefs.h"
8180 #include <$ac_header>
8182 if { (eval echo "$as_me:8182: \"$ac_cpp conftest.$ac_ext\"") >&5
8183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8185 egrep -v '^ *\+' conftest.er1
>conftest.err
8187 cat conftest.err
>&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 (exit $ac_status); } >/dev
/null
; then
8190 if test -s conftest.err
; then
8191 ac_cpp_err
=$ac_c_preproc_warn_flag
8198 if test -z "$ac_cpp_err"; then
8199 eval "$as_ac_Header=yes"
8201 echo "$as_me: failed program was:" >&5
8202 cat conftest.
$ac_ext >&5
8203 eval "$as_ac_Header=no"
8205 rm -f conftest.err conftest.
$ac_ext
8207 echo "$as_me:8207: result: `eval echo '${'$as_ac_Header'}'`" >&5
8208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h
<<EOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 for ac_func
in gethostname getdomainname dup2 \
8218 rename closedir mkdir
rmdir sysinfo \
8219 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8220 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8221 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8222 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
8223 gai_strerror mkstemp
8225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8226 echo "$as_me:8226: checking for $ac_func" >&5
8227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8228 if eval "test \"\${$as_ac_var+set}\" = set"; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.
$ac_ext <<_ACEOF
8232 #line 8232 "configure"
8233 #include "confdefs.h"
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func (); below. */
8237 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8249 /* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 rm -f conftest.
$ac_objext conftest
$ac_exeext
8263 if { (eval echo "$as_me:8263: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:8266: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try
='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:8269: \"$ac_try\"") >&5
8272 echo "$as_me:8272: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 eval "$as_ac_var=yes"
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.
$ac_ext >&5
8278 eval "$as_ac_var=no"
8280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8282 echo "$as_me:8282: result: `eval echo '${'$as_ac_var'}'`" >&5
8283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8284 if test `eval echo '${'$as_ac_var'}'` = yes; then
8285 cat >>confdefs.h
<<EOF
8286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8292 for ac_header
in sys
/time.h unistd.h
8294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 echo "$as_me:8295: checking for $ac_header" >&5
8296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.
$ac_ext <<_ACEOF
8301 #line 8301 "configure"
8302 #include "confdefs.h"
8303 #include <$ac_header>
8305 if { (eval echo "$as_me:8305: \"$ac_cpp conftest.$ac_ext\"") >&5
8306 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8308 egrep -v '^ *\+' conftest.er1
>conftest.err
8310 cat conftest.err
>&5
8311 echo "$as_me:8311: \$? = $ac_status" >&5
8312 (exit $ac_status); } >/dev
/null
; then
8313 if test -s conftest.err
; then
8314 ac_cpp_err
=$ac_c_preproc_warn_flag
8321 if test -z "$ac_cpp_err"; then
8322 eval "$as_ac_Header=yes"
8324 echo "$as_me: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8326 eval "$as_ac_Header=no"
8328 rm -f conftest.err conftest.
$ac_ext
8330 echo "$as_me:8330: result: `eval echo '${'$as_ac_Header'}'`" >&5
8331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8333 cat >>confdefs.h
<<EOF
8334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 for ac_func
in alarm
8342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8343 echo "$as_me:8343: checking for $ac_func" >&5
8344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_var+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.
$ac_ext <<_ACEOF
8349 #line 8349 "configure"
8350 #include "confdefs.h"
8351 /* System header to define __stub macros and hopefully few prototypes,
8352 which can conflict with char $ac_func (); below. */
8354 /* Override any gcc2 internal prototype to avoid an error. */
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8366 /* The GNU C library defines this for functions which it implements
8367 to always fail with ENOSYS. Some functions are actually named
8368 something starting with __ and the normal name is an alias. */
8369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8379 rm -f conftest.
$ac_objext conftest
$ac_exeext
8380 if { (eval echo "$as_me:8380: \"$ac_link\"") >&5
8381 (eval $ac_link) 2>&5
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try
='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:8386: \"$ac_try\"") >&5
8389 echo "$as_me:8389: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 eval "$as_ac_var=yes"
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.
$ac_ext >&5
8395 eval "$as_ac_var=no"
8397 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8399 echo "$as_me:8399: result: `eval echo '${'$as_ac_var'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8401 if test `eval echo '${'$as_ac_var'}'` = yes; then
8402 cat >>confdefs.h
<<EOF
8403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8409 echo "$as_me:8409: checking for working mktime" >&5
8410 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8411 if test "${ac_cv_func_working_mktime+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 if test "$cross_compiling" = yes; then
8415 ac_cv_func_working_mktime
=no
8417 cat >conftest.
$ac_ext <<_ACEOF
8418 #line 8418 "configure"
8419 #include "confdefs.h"
8420 /* Test program from Paul Eggert and Tony Leneis. */
8421 #if TIME_WITH_SYS_TIME
8422 # include <sys/time.h>
8425 # if HAVE_SYS_TIME_H
8426 # include <sys/time.h>
8433 # include <unistd.h>
8437 # define alarm(X) /* empty */
8440 /* Work around redefinition to rpl_putenv by other config tests. */
8443 static time_t time_t_max;
8445 /* Values we'll use to set the TZ environment variable. */
8446 static const char *const tz_strings[] = {
8447 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8448 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8450 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8452 /* Fail if mktime fails to convert a date in the spring-forward gap.
8453 Based on a problem report from Andreas Jaeger. */
8455 spring_forward_gap ()
8457 /* glibc (up to about 1998-10-07) failed this test. */
8460 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8461 instead of "TZ=America/Vancouver" in order to detect the bug even
8462 on systems that don't support the Olson extension, or don't have the
8463 full zoneinfo tables installed. */
8464 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8473 if (mktime (&tm) == (time_t)-1)
8482 if ((lt = localtime (&now)) && mktime (lt) != now)
8484 now = time_t_max - now;
8485 if ((lt = localtime (&now)) && mktime (lt) != now)
8492 /* Based on code from Ariel Faigon. */
8502 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8512 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8514 if (now != (time_t) -1)
8516 struct tm *lt = localtime (&now);
8518 && lt->tm_year == tm.tm_year
8519 && lt->tm_mon == tm.tm_mon
8520 && lt->tm_mday == tm.tm_mday
8521 && lt->tm_hour == tm.tm_hour
8522 && lt->tm_min == tm.tm_min
8523 && lt->tm_sec == tm.tm_sec
8524 && lt->tm_yday == tm.tm_yday
8525 && lt->tm_wday == tm.tm_wday
8526 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8527 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8538 /* This test makes some buggy mktime implementations loop.
8539 Give up after 60 seconds; a mktime slower than that
8540 isn't worth using anyway. */
8543 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8546 delta = time_t_max / 997; /* a suitable prime number */
8547 for (i = 0; i < N_STRINGS; i++)
8550 putenv (tz_strings[i]);
8552 for (t = 0; t <= time_t_max - delta; t += delta)
8554 mktime_test ((time_t) 60 * 60);
8555 mktime_test ((time_t) 60 * 60 * 24);
8557 for (j = 1; 0 < j; j *= 2)
8559 bigtime_test (j - 1);
8562 spring_forward_gap ();
8566 rm -f conftest
$ac_exeext
8567 if { (eval echo "$as_me:8567: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>&5
8570 echo "$as_me:8570: \$? = $ac_status" >&5
8571 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8572 { (eval echo "$as_me:8572: \"$ac_try\"") >&5
8575 echo "$as_me:8575: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_func_working_mktime
=yes
8579 echo "$as_me: program exited with status $ac_status" >&5
8580 echo "$as_me: failed program was:" >&5
8581 cat conftest.
$ac_ext >&5
8582 ac_cv_func_working_mktime
=no
8584 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8587 echo "$as_me:8587: result: $ac_cv_func_working_mktime" >&5
8588 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8589 if test $ac_cv_func_working_mktime = no
; then
8590 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8593 if test "$ac_cv_func_working_mktime" = no
; then
8594 cat >>confdefs.h
<<\EOF
8595 #define BROKEN_MKTIME 1
8600 ac_have_func
=no
# yes means we've found a way to get the load average.
8604 # Check for getloadavg, but be sure not to touch the cache variable.
8605 (echo "$as_me:8605: checking for getloadavg" >&5
8606 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8607 if test "${ac_cv_func_getloadavg+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.
$ac_ext <<_ACEOF
8611 #line 8611 "configure"
8612 #include "confdefs.h"
8613 /* System header to define __stub macros and hopefully few prototypes,
8614 which can conflict with char getloadavg (); below. */
8616 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8641 rm -f conftest.
$ac_objext conftest
$ac_exeext
8642 if { (eval echo "$as_me:8642: \"$ac_link\"") >&5
8643 (eval $ac_link) 2>&5
8645 echo "$as_me:8645: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try
='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:8648: \"$ac_try\"") >&5
8651 echo "$as_me:8651: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_func_getloadavg
=yes
8655 echo "$as_me: failed program was:" >&5
8656 cat conftest.
$ac_ext >&5
8657 ac_cv_func_getloadavg
=no
8659 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8661 echo "$as_me:8661: result: $ac_cv_func_getloadavg" >&5
8662 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8663 if test $ac_cv_func_getloadavg = yes; then
8668 ) && ac_have_func
=yes
8670 # On HPUX9, an unprivileged user can get load averages through this function.
8672 for ac_func
in pstat_getdynamic
8674 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8675 echo "$as_me:8675: checking for $ac_func" >&5
8676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8677 if eval "test \"\${$as_ac_var+set}\" = set"; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 cat >conftest.
$ac_ext <<_ACEOF
8681 #line 8681 "configure"
8682 #include "confdefs.h"
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func (); below. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8698 /* The GNU C library defines this for functions which it implements
8699 to always fail with ENOSYS. Some functions are actually named
8700 something starting with __ and the normal name is an alias. */
8701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8711 rm -f conftest.
$ac_objext conftest
$ac_exeext
8712 if { (eval echo "$as_me:8712: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>&5
8715 echo "$as_me:8715: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try
='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:8718: \"$ac_try\"") >&5
8721 echo "$as_me:8721: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 eval "$as_ac_var=yes"
8725 echo "$as_me: failed program was:" >&5
8726 cat conftest.
$ac_ext >&5
8727 eval "$as_ac_var=no"
8729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8731 echo "$as_me:8731: result: `eval echo '${'$as_ac_var'}'`" >&5
8732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8733 if test `eval echo '${'$as_ac_var'}'` = yes; then
8734 cat >>confdefs.h
<<EOF
8735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8741 # Solaris has libkstat which does not require root.
8743 echo "$as_me:8743: checking for kstat_open in -lkstat" >&5
8744 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8745 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 ac_check_lib_save_LIBS
=$LIBS
8749 LIBS
="-lkstat $LIBS"
8750 cat >conftest.
$ac_ext <<_ACEOF
8751 #line 8751 "configure"
8752 #include "confdefs.h"
8754 /* Override any gcc2 internal prototype to avoid an error. */
8758 /* We use char because int might match the return type of a gcc2
8759 builtin and then its argument prototype would still apply. */
8769 rm -f conftest.
$ac_objext conftest
$ac_exeext
8770 if { (eval echo "$as_me:8770: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8773 echo "$as_me:8773: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try
='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:8776: \"$ac_try\"") >&5
8779 echo "$as_me:8779: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_lib_kstat_kstat_open
=yes
8783 echo "$as_me: failed program was:" >&5
8784 cat conftest.
$ac_ext >&5
8785 ac_cv_lib_kstat_kstat_open
=no
8787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8788 LIBS
=$ac_check_lib_save_LIBS
8790 echo "$as_me:8790: result: $ac_cv_lib_kstat_kstat_open" >&5
8791 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8792 if test $ac_cv_lib_kstat_kstat_open = yes; then
8793 cat >>confdefs.h
<<EOF
8794 #define HAVE_LIBKSTAT 1
8797 LIBS
="-lkstat $LIBS"
8801 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8803 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8804 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8805 # to get the right answer into the cache.
8806 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8807 if test $ac_have_func = no
; then
8808 echo "$as_me:8808: checking for elf_begin in -lelf" >&5
8809 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8810 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 ac_check_lib_save_LIBS
=$LIBS
8815 cat >conftest.
$ac_ext <<_ACEOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8819 /* Override any gcc2 internal prototype to avoid an error. */
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext
8835 if { (eval echo "$as_me:8835: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8838 echo "$as_me:8838: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try
='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:8841: \"$ac_try\"") >&5
8844 echo "$as_me:8844: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 ac_cv_lib_elf_elf_begin
=yes
8848 echo "$as_me: failed program was:" >&5
8849 cat conftest.
$ac_ext >&5
8850 ac_cv_lib_elf_elf_begin
=no
8852 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8853 LIBS
=$ac_check_lib_save_LIBS
8855 echo "$as_me:8855: result: $ac_cv_lib_elf_elf_begin" >&5
8856 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8857 if test $ac_cv_lib_elf_elf_begin = yes; then
8862 if test $ac_have_func = no
; then
8863 echo "$as_me:8863: checking for kvm_open in -lkvm" >&5
8864 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8865 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 ac_check_lib_save_LIBS
=$LIBS
8870 cat >conftest.
$ac_ext <<_ACEOF
8871 #line 8871 "configure"
8872 #include "confdefs.h"
8874 /* Override any gcc2 internal prototype to avoid an error. */
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8889 rm -f conftest.
$ac_objext conftest
$ac_exeext
8890 if { (eval echo "$as_me:8890: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>&5
8893 echo "$as_me:8893: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try
='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:8896: \"$ac_try\"") >&5
8899 echo "$as_me:8899: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_lib_kvm_kvm_open
=yes
8903 echo "$as_me: failed program was:" >&5
8904 cat conftest.
$ac_ext >&5
8905 ac_cv_lib_kvm_kvm_open
=no
8907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8908 LIBS
=$ac_check_lib_save_LIBS
8910 echo "$as_me:8910: result: $ac_cv_lib_kvm_kvm_open" >&5
8911 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8912 if test $ac_cv_lib_kvm_kvm_open = yes; then
8916 # Check for the 4.4BSD definition of getloadavg.
8917 echo "$as_me:8917: checking for getloadavg in -lutil" >&5
8918 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8919 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 ac_check_lib_save_LIBS
=$LIBS
8924 cat >conftest.
$ac_ext <<_ACEOF
8925 #line 8925 "configure"
8926 #include "confdefs.h"
8928 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8943 rm -f conftest.
$ac_objext conftest
$ac_exeext
8944 if { (eval echo "$as_me:8944: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>&5
8947 echo "$as_me:8947: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try
='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:8950: \"$ac_try\"") >&5
8953 echo "$as_me:8953: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_lib_util_getloadavg
=yes
8957 echo "$as_me: failed program was:" >&5
8958 cat conftest.
$ac_ext >&5
8959 ac_cv_lib_util_getloadavg
=no
8961 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8962 LIBS
=$ac_check_lib_save_LIBS
8964 echo "$as_me:8964: result: $ac_cv_lib_util_getloadavg" >&5
8965 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8966 if test $ac_cv_lib_util_getloadavg = yes; then
8967 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
8972 if test $ac_have_func = no
; then
8973 # There is a commonly available library for RS/6000 AIX.
8974 # Since it is not a standard part of AIX, it might be installed locally.
8975 ac_getloadavg_LIBS
=$LIBS
8976 LIBS
="-L/usr/local/lib $LIBS"
8977 echo "$as_me:8977: checking for getloadavg in -lgetloadavg" >&5
8978 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8979 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 ac_check_lib_save_LIBS
=$LIBS
8983 LIBS
="-lgetloadavg $LIBS"
8984 cat >conftest.
$ac_ext <<_ACEOF
8985 #line 8985 "configure"
8986 #include "confdefs.h"
8988 /* Override any gcc2 internal prototype to avoid an error. */
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
9003 rm -f conftest.
$ac_objext conftest
$ac_exeext
9004 if { (eval echo "$as_me:9004: \"$ac_link\"") >&5
9005 (eval $ac_link) 2>&5
9007 echo "$as_me:9007: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try
='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:9010: \"$ac_try\"") >&5
9013 echo "$as_me:9013: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_lib_getloadavg_getloadavg
=yes
9017 echo "$as_me: failed program was:" >&5
9018 cat conftest.
$ac_ext >&5
9019 ac_cv_lib_getloadavg_getloadavg
=no
9021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9022 LIBS
=$ac_check_lib_save_LIBS
9024 echo "$as_me:9024: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9025 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9026 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9027 LIBS
="-lgetloadavg $LIBS"
9029 LIBS
=$ac_getloadavg_LIBS
9034 # Make sure it is really in the library, if we think we found it,
9035 # otherwise set up the replacement function.
9037 for ac_func
in getloadavg
9039 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9040 echo "$as_me:9040: checking for $ac_func" >&5
9041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9042 if eval "test \"\${$as_ac_var+set}\" = set"; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 cat >conftest.
$ac_ext <<_ACEOF
9046 #line 9046 "configure"
9047 #include "confdefs.h"
9048 /* System header to define __stub macros and hopefully few prototypes,
9049 which can conflict with char $ac_func (); below. */
9051 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9063 /* The GNU C library defines this for functions which it implements
9064 to always fail with ENOSYS. Some functions are actually named
9065 something starting with __ and the normal name is an alias. */
9066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9076 rm -f conftest.
$ac_objext conftest
$ac_exeext
9077 if { (eval echo "$as_me:9077: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try
='test -s conftest$ac_exeext'
9083 { (eval echo "$as_me:9083: \"$ac_try\"") >&5
9086 echo "$as_me:9086: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 eval "$as_ac_var=yes"
9090 echo "$as_me: failed program was:" >&5
9091 cat conftest.
$ac_ext >&5
9092 eval "$as_ac_var=no"
9094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9096 echo "$as_me:9096: result: `eval echo '${'$as_ac_var'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9098 if test `eval echo '${'$as_ac_var'}'` = yes; then
9099 cat >>confdefs.h
<<EOF
9100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9106 cat >>confdefs.h
<<\EOF
9107 #define C_GETLOADAVG 1
9110 # Figure out what our getloadavg.c needs.
9112 echo "$as_me:9112: checking for sys/dg_sys_info.h" >&5
9113 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9114 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cat >conftest.
$ac_ext <<_ACEOF
9118 #line 9118 "configure"
9119 #include "confdefs.h"
9120 #include <sys/dg_sys_info.h>
9122 if { (eval echo "$as_me:9122: \"$ac_cpp conftest.$ac_ext\"") >&5
9123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9125 egrep -v '^ *\+' conftest.er1
>conftest.err
9127 cat conftest.err
>&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); } >/dev
/null
; then
9130 if test -s conftest.err
; then
9131 ac_cpp_err
=$ac_c_preproc_warn_flag
9138 if test -z "$ac_cpp_err"; then
9139 ac_cv_header_sys_dg_sys_info_h
=yes
9141 echo "$as_me: failed program was:" >&5
9142 cat conftest.
$ac_ext >&5
9143 ac_cv_header_sys_dg_sys_info_h
=no
9145 rm -f conftest.err conftest.
$ac_ext
9147 echo "$as_me:9147: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9148 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9149 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9152 cat >>confdefs.h
<<\EOF
9156 echo "$as_me:9156: checking for dg_sys_info in -ldgc" >&5
9157 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9158 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_check_lib_save_LIBS
=$LIBS
9163 cat >conftest.
$ac_ext <<_ACEOF
9164 #line 9164 "configure"
9165 #include "confdefs.h"
9167 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char dg_sys_info ();
9182 rm -f conftest.
$ac_objext conftest
$ac_exeext
9183 if { (eval echo "$as_me:9183: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:9186: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try
='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:9189: \"$ac_try\"") >&5
9192 echo "$as_me:9192: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_dgc_dg_sys_info
=yes
9196 echo "$as_me: failed program was:" >&5
9197 cat conftest.
$ac_ext >&5
9198 ac_cv_lib_dgc_dg_sys_info
=no
9200 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9201 LIBS
=$ac_check_lib_save_LIBS
9203 echo "$as_me:9203: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9204 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9205 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9206 cat >>confdefs.h
<<EOF
9207 #define HAVE_LIBDGC 1
9216 echo "$as_me:9216: checking for locale.h" >&5
9217 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9218 if test "${ac_cv_header_locale_h+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9222 #line 9222 "configure"
9223 #include "confdefs.h"
9226 if { (eval echo "$as_me:9226: \"$ac_cpp conftest.$ac_ext\"") >&5
9227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9229 egrep -v '^ *\+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 echo "$as_me:9232: \$? = $ac_status" >&5
9233 (exit $ac_status); } >/dev
/null
; then
9234 if test -s conftest.err
; then
9235 ac_cpp_err
=$ac_c_preproc_warn_flag
9242 if test -z "$ac_cpp_err"; then
9243 ac_cv_header_locale_h
=yes
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.
$ac_ext >&5
9247 ac_cv_header_locale_h
=no
9249 rm -f conftest.err conftest.
$ac_ext
9251 echo "$as_me:9251: result: $ac_cv_header_locale_h" >&5
9252 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9254 for ac_func
in setlocale
9256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9257 echo "$as_me:9257: checking for $ac_func" >&5
9258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9259 if eval "test \"\${$as_ac_var+set}\" = set"; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 cat >conftest.
$ac_ext <<_ACEOF
9263 #line 9263 "configure"
9264 #include "confdefs.h"
9265 /* System header to define __stub macros and hopefully few prototypes,
9266 which can conflict with char $ac_func (); below. */
9268 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9280 /* The GNU C library defines this for functions which it implements
9281 to always fail with ENOSYS. Some functions are actually named
9282 something starting with __ and the normal name is an alias. */
9283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9293 rm -f conftest.
$ac_objext conftest
$ac_exeext
9294 if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try
='test -s conftest$ac_exeext'
9300 { (eval echo "$as_me:9300: \"$ac_try\"") >&5
9303 echo "$as_me:9303: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 eval "$as_ac_var=yes"
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.
$ac_ext >&5
9309 eval "$as_ac_var=no"
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9313 echo "$as_me:9313: result: `eval echo '${'$as_ac_var'}'`" >&5
9314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9315 if test `eval echo '${'$as_ac_var'}'` = yes; then
9316 cat >>confdefs.h
<<EOF
9317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9323 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9324 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9325 # Irix 4.0.5F has the header but not the library.
9326 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9329 cat >>confdefs.h
<<\EOF
9335 if test $ac_have_func = no
; then
9336 echo "$as_me:9336: checking for inq_stats/cpustats.h" >&5
9337 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9338 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 cat >conftest.
$ac_ext <<_ACEOF
9342 #line 9342 "configure"
9343 #include "confdefs.h"
9344 #include <inq_stats/cpustats.h>
9346 if { (eval echo "$as_me:9346: \"$ac_cpp conftest.$ac_ext\"") >&5
9347 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9349 egrep -v '^ *\+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev
/null
; then
9354 if test -s conftest.err
; then
9355 ac_cpp_err
=$ac_c_preproc_warn_flag
9362 if test -z "$ac_cpp_err"; then
9363 ac_cv_header_inq_stats_cpustats_h
=yes
9365 echo "$as_me: failed program was:" >&5
9366 cat conftest.
$ac_ext >&5
9367 ac_cv_header_inq_stats_cpustats_h
=no
9369 rm -f conftest.err conftest.
$ac_ext
9371 echo "$as_me:9371: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9373 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9376 cat >>confdefs.h
<<\EOF
9380 cat >>confdefs.h
<<\EOF
9388 if test $ac_have_func = no
; then
9389 echo "$as_me:9389: checking for sys/cpustats.h" >&5
9390 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9391 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.
$ac_ext <<_ACEOF
9395 #line 9395 "configure"
9396 #include "confdefs.h"
9397 #include <sys/cpustats.h>
9399 if { (eval echo "$as_me:9399: \"$ac_cpp conftest.$ac_ext\"") >&5
9400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9402 egrep -v '^ *\+' conftest.er1
>conftest.err
9404 cat conftest.err
>&5
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 (exit $ac_status); } >/dev
/null
; then
9407 if test -s conftest.err
; then
9408 ac_cpp_err
=$ac_c_preproc_warn_flag
9415 if test -z "$ac_cpp_err"; then
9416 ac_cv_header_sys_cpustats_h
=yes
9418 echo "$as_me: failed program was:" >&5
9419 cat conftest.
$ac_ext >&5
9420 ac_cv_header_sys_cpustats_h
=no
9422 rm -f conftest.err conftest.
$ac_ext
9424 echo "$as_me:9424: result: $ac_cv_header_sys_cpustats_h" >&5
9425 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9426 if test $ac_cv_header_sys_cpustats_h = yes; then
9427 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9435 if test $ac_have_func = no
; then
9437 for ac_header
in mach
/mach.h
9439 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 echo "$as_me:9440: checking for $ac_header" >&5
9441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.
$ac_ext <<_ACEOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9448 #include <$ac_header>
9450 if { (eval echo "$as_me:9450: \"$ac_cpp conftest.$ac_ext\"") >&5
9451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9453 egrep -v '^ *\+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:9456: \$? = $ac_status" >&5
9457 (exit $ac_status); } >/dev
/null
; then
9458 if test -s conftest.err
; then
9459 ac_cpp_err
=$ac_c_preproc_warn_flag
9466 if test -z "$ac_cpp_err"; then
9467 eval "$as_ac_Header=yes"
9469 echo "$as_me: failed program was:" >&5
9470 cat conftest.
$ac_ext >&5
9471 eval "$as_ac_Header=no"
9473 rm -f conftest.err conftest.
$ac_ext
9475 echo "$as_me:9475: result: `eval echo '${'$as_ac_Header'}'`" >&5
9476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9478 cat >>confdefs.h
<<EOF
9479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9487 for ac_header
in nlist.h
9489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9490 echo "$as_me:9490: checking for $ac_header" >&5
9491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.
$ac_ext <<_ACEOF
9496 #line 9496 "configure"
9497 #include "confdefs.h"
9498 #include <$ac_header>
9500 if { (eval echo "$as_me:9500: \"$ac_cpp conftest.$ac_ext\"") >&5
9501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9503 egrep -v '^ *\+' conftest.er1
>conftest.err
9505 cat conftest.err
>&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev
/null
; then
9508 if test -s conftest.err
; then
9509 ac_cpp_err
=$ac_c_preproc_warn_flag
9516 if test -z "$ac_cpp_err"; then
9517 eval "$as_ac_Header=yes"
9519 echo "$as_me: failed program was:" >&5
9520 cat conftest.
$ac_ext >&5
9521 eval "$as_ac_Header=no"
9523 rm -f conftest.err conftest.
$ac_ext
9525 echo "$as_me:9525: result: `eval echo '${'$as_ac_Header'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9528 cat >>confdefs.h
<<EOF
9529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531 echo "$as_me:9531: checking for struct nlist.n_un.n_name" >&5
9532 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9533 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 cat >conftest.
$ac_ext <<_ACEOF
9537 #line 9537 "configure"
9538 #include "confdefs.h"
9544 static struct nlist ac_aggr;
9545 if (ac_aggr.n_un.n_name)
9551 rm -f conftest.
$ac_objext
9552 if { (eval echo "$as_me:9552: \"$ac_compile\"") >&5
9553 (eval $ac_compile) 2>&5
9555 echo "$as_me:9555: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try
='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:9558: \"$ac_try\"") >&5
9561 echo "$as_me:9561: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_member_struct_nlist_n_un_n_name
=yes
9565 echo "$as_me: failed program was:" >&5
9566 cat conftest.
$ac_ext >&5
9567 ac_cv_member_struct_nlist_n_un_n_name
=no
9569 rm -f conftest.
$ac_objext conftest.
$ac_ext
9571 echo "$as_me:9571: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9572 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9573 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9575 cat >>confdefs.h
<<EOF
9576 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9579 cat >>confdefs.h
<<\EOF
9580 #define NLIST_NAME_UNION 1
9591 # Some definitions of getloadavg require that the program be installed setgid.
9592 echo "$as_me:9592: checking whether getloadavg requires setgid" >&5
9593 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9594 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 cat >conftest.
$ac_ext <<_ACEOF
9598 #line 9598 "configure"
9599 #include "confdefs.h"
9600 #include "$srcdir/getloadavg.c"
9601 #ifdef LDAV_PRIVILEGED
9602 Yowza Am I SETGID yet
9605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9606 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9607 ac_cv_func_getloadavg_setgid
=yes
9609 ac_cv_func_getloadavg_setgid
=no
9614 echo "$as_me:9614: result: $ac_cv_func_getloadavg_setgid" >&5
9615 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9616 if test $ac_cv_func_getloadavg_setgid = yes; then
9619 cat >>confdefs.h
<<\EOF
9620 #define GETLOADAVG_PRIVILEGED 1
9627 if test $ac_cv_func_getloadavg_setgid = yes; then
9628 echo "$as_me:9628: checking group of /dev/kmem" >&5
9629 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9630 if test "${ac_cv_group_kmem+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9634 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9635 # If we got an error (system does not support symlinks), try without -L.
9636 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9637 ac_cv_group_kmem
=`echo $ac_ls_output \
9638 | sed -ne 's/[ ][ ]*/ /g;
9639 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9643 echo "$as_me:9643: result: $ac_cv_group_kmem" >&5
9644 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9645 KMEM_GROUP
=$ac_cv_group_kmem
9647 if test "x$ac_save_LIBS" = x
; then
9648 GETLOADAVG_LIBS
=$LIBS
9650 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9654 echo "$as_me:9654: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9655 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9656 if test "${ac_cv_sys_largefile_source+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_cv_sys_largefile_source
=no
9661 cat >conftest.
$ac_ext <<_ACEOF
9662 #line 9662 "configure"
9663 #include "confdefs.h"
9673 rm -f conftest.
$ac_objext
9674 if { (eval echo "$as_me:9674: \"$ac_compile\"") >&5
9675 (eval $ac_compile) 2>&5
9677 echo "$as_me:9677: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try
='test -s conftest.$ac_objext'
9680 { (eval echo "$as_me:9680: \"$ac_try\"") >&5
9683 echo "$as_me:9683: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9687 echo "$as_me: failed program was:" >&5
9688 cat conftest.
$ac_ext >&5
9690 rm -f conftest.
$ac_objext conftest.
$ac_ext
9691 cat >conftest.
$ac_ext <<_ACEOF
9692 #line 9692 "configure"
9693 #include "confdefs.h"
9694 #define _LARGEFILE_SOURCE 1
9704 rm -f conftest.
$ac_objext
9705 if { (eval echo "$as_me:9705: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try
='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:9711: \"$ac_try\"") >&5
9714 echo "$as_me:9714: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_cv_sys_largefile_source
=1; break
9718 echo "$as_me: failed program was:" >&5
9719 cat conftest.
$ac_ext >&5
9721 rm -f conftest.
$ac_objext conftest.
$ac_ext
9725 echo "$as_me:9725: result: $ac_cv_sys_largefile_source" >&5
9726 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9727 if test "$ac_cv_sys_largefile_source" != no
; then
9729 cat >>confdefs.h
<<EOF
9730 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9736 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9737 # in glibc 2.1.3, but that breaks too many other things.
9738 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9739 echo "$as_me:9739: checking for fseeko" >&5
9740 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9741 if test "${ac_cv_func_fseeko+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 cat >conftest.
$ac_ext <<_ACEOF
9745 #line 9745 "configure"
9746 #include "confdefs.h"
9751 return fseeko && fseeko (stdin, 0, 0);
9756 rm -f conftest.
$ac_objext conftest
$ac_exeext
9757 if { (eval echo "$as_me:9757: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9760 echo "$as_me:9760: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try
='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:9763: \"$ac_try\"") >&5
9766 echo "$as_me:9766: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_func_fseeko
=yes
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.
$ac_ext >&5
9772 ac_cv_func_fseeko
=no
9774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9776 echo "$as_me:9776: result: $ac_cv_func_fseeko" >&5
9777 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9778 if test $ac_cv_func_fseeko = yes; then
9780 cat >>confdefs.h
<<\EOF
9781 #define HAVE_FSEEKO 1
9788 for ac_func
in grantpt
9790 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9791 echo "$as_me:9791: checking for $ac_func" >&5
9792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9793 if eval "test \"\${$as_ac_var+set}\" = set"; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.
$ac_ext <<_ACEOF
9797 #line 9797 "configure"
9798 #include "confdefs.h"
9799 /* System header to define __stub macros and hopefully few prototypes,
9800 which can conflict with char $ac_func (); below. */
9802 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9827 rm -f conftest.
$ac_objext conftest
$ac_exeext
9828 if { (eval echo "$as_me:9828: \"$ac_link\"") >&5
9829 (eval $ac_link) 2>&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try
='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:9834: \"$ac_try\"") >&5
9837 echo "$as_me:9837: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 eval "$as_ac_var=yes"
9841 echo "$as_me: failed program was:" >&5
9842 cat conftest.
$ac_ext >&5
9843 eval "$as_ac_var=no"
9845 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9847 echo "$as_me:9847: result: `eval echo '${'$as_ac_var'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9849 if test `eval echo '${'$as_ac_var'}'` = yes; then
9850 cat >>confdefs.h
<<EOF
9851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9857 # PTY-related GNU extensions.
9859 for ac_func
in getpt
9861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9862 echo "$as_me:9862: checking for $ac_func" >&5
9863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_var+set}\" = set"; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.
$ac_ext <<_ACEOF
9868 #line 9868 "configure"
9869 #include "confdefs.h"
9870 /* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char $ac_func (); below. */
9873 /* Override any gcc2 internal prototype to avoid an error. */
9877 /* We use char because int might match the return type of a gcc2
9878 builtin and then its argument prototype would still apply. */
9885 /* The GNU C library defines this for functions which it implements
9886 to always fail with ENOSYS. Some functions are actually named
9887 something starting with __ and the normal name is an alias. */
9888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 rm -f conftest.
$ac_objext conftest
$ac_exeext
9899 if { (eval echo "$as_me:9899: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>&5
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try
='test -s conftest$ac_exeext'
9905 { (eval echo "$as_me:9905: \"$ac_try\"") >&5
9908 echo "$as_me:9908: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 eval "$as_ac_var=yes"
9912 echo "$as_me: failed program was:" >&5
9913 cat conftest.
$ac_ext >&5
9914 eval "$as_ac_var=no"
9916 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9918 echo "$as_me:9918: result: `eval echo '${'$as_ac_var'}'`" >&5
9919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9920 if test `eval echo '${'$as_ac_var'}'` = yes; then
9921 cat >>confdefs.h
<<EOF
9922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9928 # Check this now, so that we will NOT find the above functions in ncurses.
9929 # That is because we have not set up to link ncurses in lib-src.
9930 # It's better to believe a function is not available
9931 # than to expect to find it in ncurses.
9933 echo "$as_me:9933: checking for tparm in -lncurses" >&5
9934 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9935 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 ac_check_lib_save_LIBS
=$LIBS
9939 LIBS
="-lncurses $LIBS"
9940 cat >conftest.
$ac_ext <<_ACEOF
9941 #line 9941 "configure"
9942 #include "confdefs.h"
9944 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9959 rm -f conftest.
$ac_objext conftest
$ac_exeext
9960 if { (eval echo "$as_me:9960: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>&5
9963 echo "$as_me:9963: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try
='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:9966: \"$ac_try\"") >&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_lib_ncurses_tparm
=yes
9973 echo "$as_me: failed program was:" >&5
9974 cat conftest.
$ac_ext >&5
9975 ac_cv_lib_ncurses_tparm
=no
9977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9978 LIBS
=$ac_check_lib_save_LIBS
9980 echo "$as_me:9980: result: $ac_cv_lib_ncurses_tparm" >&5
9981 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9982 if test $ac_cv_lib_ncurses_tparm = yes; then
9983 cat >>confdefs.h
<<EOF
9984 #define HAVE_LIBNCURSES 1
9987 LIBS
="-lncurses $LIBS"
9991 # Do we need the Hesiod library to provide the support routines?
9992 if test "$with_hesiod" = yes ; then
9993 # Don't set $LIBS here -- see comments above.
9995 echo "$as_me:9995: checking for res_send" >&5
9996 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
9997 if test "${ac_cv_func_res_send+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.
$ac_ext <<_ACEOF
10001 #line 10001 "configure"
10002 #include "confdefs.h"
10003 /* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char res_send (); below. */
10005 #include <assert.h>
10006 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined (__stub_res_send) || defined (__stub___res_send)
10031 rm -f conftest.
$ac_objext conftest
$ac_exeext
10032 if { (eval echo "$as_me:10032: \"$ac_link\"") >&5
10033 (eval $ac_link) 2>&5
10035 echo "$as_me:10035: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try
='test -s conftest$ac_exeext'
10038 { (eval echo "$as_me:10038: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:10041: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_func_res_send
=yes
10045 echo "$as_me: failed program was:" >&5
10046 cat conftest.
$ac_ext >&5
10047 ac_cv_func_res_send
=no
10049 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10051 echo "$as_me:10051: result: $ac_cv_func_res_send" >&5
10052 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10053 if test $ac_cv_func_res_send = yes; then
10056 echo "$as_me:10056: checking for __res_send" >&5
10057 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10058 if test "${ac_cv_func___res_send+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 cat >conftest.
$ac_ext <<_ACEOF
10062 #line 10062 "configure"
10063 #include "confdefs.h"
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char __res_send (); below. */
10066 #include <assert.h>
10067 /* Override any gcc2 internal prototype to avoid an error. */
10071 /* We use char because int might match the return type of a gcc2
10072 builtin and then its argument prototype would still apply. */
10073 char __res_send ();
10079 /* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082 #if defined (__stub___res_send) || defined (__stub_____res_send)
10092 rm -f conftest.
$ac_objext conftest
$ac_exeext
10093 if { (eval echo "$as_me:10093: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try
='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_func___res_send
=yes
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.
$ac_ext >&5
10108 ac_cv_func___res_send
=no
10110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10112 echo "$as_me:10112: result: $ac_cv_func___res_send" >&5
10113 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10114 if test $ac_cv_func___res_send = yes; then
10117 echo "$as_me:10117: checking for res_send in -lresolv" >&5
10118 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10119 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 ac_check_lib_save_LIBS
=$LIBS
10123 LIBS
="-lresolv $LIBS"
10124 cat >conftest.
$ac_ext <<_ACEOF
10125 #line 10125 "configure"
10126 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error. */
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10143 rm -f conftest.
$ac_objext conftest
$ac_exeext
10144 if { (eval echo "$as_me:10144: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try
='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:10150: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_lib_resolv_res_send
=yes
10157 echo "$as_me: failed program was:" >&5
10158 cat conftest.
$ac_ext >&5
10159 ac_cv_lib_resolv_res_send
=no
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10162 LIBS
=$ac_check_lib_save_LIBS
10164 echo "$as_me:10164: result: $ac_cv_lib_resolv_res_send" >&5
10165 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10166 if test $ac_cv_lib_resolv_res_send = yes; then
10169 echo "$as_me:10169: checking for __res_send in -lresolv" >&5
10170 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10171 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 ac_check_lib_save_LIBS
=$LIBS
10175 LIBS
="-lresolv $LIBS"
10176 cat >conftest.
$ac_ext <<_ACEOF
10177 #line 10177 "configure"
10178 #include "confdefs.h"
10180 /* Override any gcc2 internal prototype to avoid an error. */
10184 /* We use char because int might match the return type of a gcc2
10185 builtin and then its argument prototype would still apply. */
10186 char __res_send ();
10195 rm -f conftest.
$ac_objext conftest
$ac_exeext
10196 if { (eval echo "$as_me:10196: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>&5
10199 echo "$as_me:10199: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try
='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:10202: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:10205: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_lib_resolv___res_send
=yes
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.
$ac_ext >&5
10211 ac_cv_lib_resolv___res_send
=no
10213 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10214 LIBS
=$ac_check_lib_save_LIBS
10216 echo "$as_me:10216: result: $ac_cv_lib_resolv___res_send" >&5
10217 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10218 if test $ac_cv_lib_resolv___res_send = yes; then
10228 if test "$resolv" = yes ; then
10230 cat >>confdefs.h
<<\EOF
10231 #define HAVE_LIBRESOLV 1
10237 echo "$as_me:10237: checking for hes_getmailhost" >&5
10238 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10239 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 cat >conftest.
$ac_ext <<_ACEOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10245 /* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char hes_getmailhost (); below. */
10247 #include <assert.h>
10248 /* Override any gcc2 internal prototype to avoid an error. */
10252 /* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10254 char hes_getmailhost ();
10260 /* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10266 f = hes_getmailhost;
10273 rm -f conftest.
$ac_objext conftest
$ac_exeext
10274 if { (eval echo "$as_me:10274: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10277 echo "$as_me:10277: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try
='test -s conftest$ac_exeext'
10280 { (eval echo "$as_me:10280: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:10283: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_cv_func_hes_getmailhost
=yes
10287 echo "$as_me: failed program was:" >&5
10288 cat conftest.
$ac_ext >&5
10289 ac_cv_func_hes_getmailhost
=no
10291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10293 echo "$as_me:10293: result: $ac_cv_func_hes_getmailhost" >&5
10294 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10295 if test $ac_cv_func_hes_getmailhost = yes; then
10298 echo "$as_me:10298: checking for hes_getmailhost in -lhesiod" >&5
10299 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10300 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 ac_check_lib_save_LIBS
=$LIBS
10304 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10305 cat >conftest.
$ac_ext <<_ACEOF
10306 #line 10306 "configure"
10307 #include "confdefs.h"
10309 /* Override any gcc2 internal prototype to avoid an error. */
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315 char hes_getmailhost ();
10319 hes_getmailhost ();
10324 rm -f conftest.
$ac_objext conftest
$ac_exeext
10325 if { (eval echo "$as_me:10325: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>&5
10328 echo "$as_me:10328: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try
='test -s conftest$ac_exeext'
10331 { (eval echo "$as_me:10331: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:10334: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_lib_hesiod_hes_getmailhost
=yes
10338 echo "$as_me: failed program was:" >&5
10339 cat conftest.
$ac_ext >&5
10340 ac_cv_lib_hesiod_hes_getmailhost
=no
10342 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10343 LIBS
=$ac_check_lib_save_LIBS
10345 echo "$as_me:10345: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10346 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10347 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10348 cat >>confdefs.h
<<\EOF
10349 #define HAVE_LIBHESIOD 1
10360 # These tell us which Kerberos-related libraries to use.
10361 if test "${with_kerberos+set}" = set; then
10363 echo "$as_me:10363: checking for com_err in -lcom_err" >&5
10364 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10365 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS
=$LIBS
10369 LIBS
="-lcom_err $LIBS"
10370 cat >conftest.
$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10374 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10389 rm -f conftest.
$ac_objext conftest
$ac_exeext
10390 if { (eval echo "$as_me:10390: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10393 echo "$as_me:10393: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try
='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:10396: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_lib_com_err_com_err
=yes
10403 echo "$as_me: failed program was:" >&5
10404 cat conftest.
$ac_ext >&5
10405 ac_cv_lib_com_err_com_err
=no
10407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10408 LIBS
=$ac_check_lib_save_LIBS
10410 echo "$as_me:10410: result: $ac_cv_lib_com_err_com_err" >&5
10411 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10412 if test $ac_cv_lib_com_err_com_err = yes; then
10413 cat >>confdefs.h
<<EOF
10414 #define HAVE_LIBCOM_ERR 1
10417 LIBS
="-lcom_err $LIBS"
10421 echo "$as_me:10421: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10422 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 ac_check_lib_save_LIBS
=$LIBS
10427 LIBS
="-lk5crypto $LIBS"
10428 cat >conftest.
$ac_ext <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10432 /* Override any gcc2 internal prototype to avoid an error. */
10436 /* We use char because int might match the return type of a gcc2
10437 builtin and then its argument prototype would still apply. */
10438 char mit_des_cbc_encrypt ();
10442 mit_des_cbc_encrypt ();
10447 rm -f conftest.
$ac_objext conftest
$ac_exeext
10448 if { (eval echo "$as_me:10448: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>&5
10451 echo "$as_me:10451: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try
='test -s conftest$ac_exeext'
10454 { (eval echo "$as_me:10454: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:10457: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10461 echo "$as_me: failed program was:" >&5
10462 cat conftest.
$ac_ext >&5
10463 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10466 LIBS
=$ac_check_lib_save_LIBS
10468 echo "$as_me:10468: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10469 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10470 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10471 cat >>confdefs.h
<<EOF
10472 #define HAVE_LIBK5CRYPTO 1
10475 LIBS
="-lk5crypto $LIBS"
10479 echo "$as_me:10479: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10480 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10481 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 ac_check_lib_save_LIBS
=$LIBS
10485 LIBS
="-lcrypto $LIBS"
10486 cat >conftest.
$ac_ext <<_ACEOF
10487 #line 10487 "configure"
10488 #include "confdefs.h"
10490 /* Override any gcc2 internal prototype to avoid an error. */
10494 /* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496 char mit_des_cbc_encrypt ();
10500 mit_des_cbc_encrypt ();
10505 rm -f conftest.
$ac_objext conftest
$ac_exeext
10506 if { (eval echo "$as_me:10506: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>&5
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try
='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:10512: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:10515: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10519 echo "$as_me: failed program was:" >&5
10520 cat conftest.
$ac_ext >&5
10521 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10523 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10524 LIBS
=$ac_check_lib_save_LIBS
10526 echo "$as_me:10526: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10527 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10528 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10529 cat >>confdefs.h
<<EOF
10530 #define HAVE_LIBCRYPTO 1
10533 LIBS
="-lcrypto $LIBS"
10537 echo "$as_me:10537: checking for krb5_init_context in -lkrb5" >&5
10538 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10539 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 ac_check_lib_save_LIBS
=$LIBS
10543 LIBS
="-lkrb5 $LIBS"
10544 cat >conftest.
$ac_ext <<_ACEOF
10545 #line 10545 "configure"
10546 #include "confdefs.h"
10548 /* Override any gcc2 internal prototype to avoid an error. */
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10554 char krb5_init_context ();
10558 krb5_init_context ();
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (eval echo "$as_me:10564: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:10567: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try
='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:10570: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:10573: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_lib_krb5_krb5_init_context
=yes
10577 echo "$as_me: failed program was:" >&5
10578 cat conftest.
$ac_ext >&5
10579 ac_cv_lib_krb5_krb5_init_context
=no
10581 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10582 LIBS
=$ac_check_lib_save_LIBS
10584 echo "$as_me:10584: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10585 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10586 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10587 cat >>confdefs.h
<<EOF
10588 #define HAVE_LIBKRB5 1
10591 LIBS
="-lkrb5 $LIBS"
10595 if test "${with_kerberos5+set}" != set; then
10597 echo "$as_me:10597: checking for des_cbc_encrypt in -ldes425" >&5
10598 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10599 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 ac_check_lib_save_LIBS
=$LIBS
10603 LIBS
="-ldes425 $LIBS"
10604 cat >conftest.
$ac_ext <<_ACEOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614 char des_cbc_encrypt ();
10618 des_cbc_encrypt ();
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext
10624 if { (eval echo "$as_me:10624: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try
='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_lib_des425_des_cbc_encrypt
=yes
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.
$ac_ext >&5
10639 ac_cv_lib_des425_des_cbc_encrypt
=no
10641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10642 LIBS
=$ac_check_lib_save_LIBS
10644 echo "$as_me:10644: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10645 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10646 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10647 cat >>confdefs.h
<<EOF
10648 #define HAVE_LIBDES425 1
10651 LIBS
="-ldes425 $LIBS"
10655 echo "$as_me:10655: checking for des_cbc_encrypt in -ldes" >&5
10656 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10657 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 ac_check_lib_save_LIBS
=$LIBS
10662 cat >conftest.
$ac_ext <<_ACEOF
10663 #line 10663 "configure"
10664 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */
10670 /* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10672 char des_cbc_encrypt ();
10676 des_cbc_encrypt ();
10681 rm -f conftest.
$ac_objext conftest
$ac_exeext
10682 if { (eval echo "$as_me:10682: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>&5
10685 echo "$as_me:10685: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try
='test -s conftest$ac_exeext'
10688 { (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:10691: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_lib_des_des_cbc_encrypt
=yes
10695 echo "$as_me: failed program was:" >&5
10696 cat conftest.
$ac_ext >&5
10697 ac_cv_lib_des_des_cbc_encrypt
=no
10699 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10700 LIBS
=$ac_check_lib_save_LIBS
10702 echo "$as_me:10702: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10703 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10704 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10705 cat >>confdefs.h
<<EOF
10706 #define HAVE_LIBDES 1
10715 echo "$as_me:10715: checking for krb_get_cred in -lkrb4" >&5
10716 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10717 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 ac_check_lib_save_LIBS
=$LIBS
10721 LIBS
="-lkrb4 $LIBS"
10722 cat >conftest.
$ac_ext <<_ACEOF
10723 #line 10723 "configure"
10724 #include "confdefs.h"
10726 /* Override any gcc2 internal prototype to avoid an error. */
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732 char krb_get_cred ();
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext
10742 if { (eval echo "$as_me:10742: \"$ac_link\"") >&5
10743 (eval $ac_link) 2>&5
10745 echo "$as_me:10745: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try
='test -s conftest$ac_exeext'
10748 { (eval echo "$as_me:10748: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:10751: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_cv_lib_krb4_krb_get_cred
=yes
10755 echo "$as_me: failed program was:" >&5
10756 cat conftest.
$ac_ext >&5
10757 ac_cv_lib_krb4_krb_get_cred
=no
10759 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10760 LIBS
=$ac_check_lib_save_LIBS
10762 echo "$as_me:10762: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10763 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10764 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10765 cat >>confdefs.h
<<EOF
10766 #define HAVE_LIBKRB4 1
10769 LIBS
="-lkrb4 $LIBS"
10773 echo "$as_me:10773: checking for krb_get_cred in -lkrb" >&5
10774 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10775 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 ac_check_lib_save_LIBS
=$LIBS
10780 cat >conftest.
$ac_ext <<_ACEOF
10781 #line 10781 "configure"
10782 #include "confdefs.h"
10784 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char krb_get_cred ();
10799 rm -f conftest.
$ac_objext conftest
$ac_exeext
10800 if { (eval echo "$as_me:10800: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>&5
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try
='test -s conftest$ac_exeext'
10806 { (eval echo "$as_me:10806: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:10809: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_lib_krb_krb_get_cred
=yes
10813 echo "$as_me: failed program was:" >&5
10814 cat conftest.
$ac_ext >&5
10815 ac_cv_lib_krb_krb_get_cred
=no
10817 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10818 LIBS
=$ac_check_lib_save_LIBS
10820 echo "$as_me:10820: result: $ac_cv_lib_krb_krb_get_cred" >&5
10821 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10822 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10823 cat >>confdefs.h
<<EOF
10824 #define HAVE_LIBKRB 1
10835 if test "${with_kerberos5+set}" = set; then
10837 for ac_header
in krb5.h
10839 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10840 echo "$as_me:10840: checking for $ac_header" >&5
10841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.
$ac_ext <<_ACEOF
10846 #line 10846 "configure"
10847 #include "confdefs.h"
10848 #include <$ac_header>
10850 if { (eval echo "$as_me:10850: \"$ac_cpp conftest.$ac_ext\"") >&5
10851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10853 egrep -v '^ *\+' conftest.er1
>conftest.err
10855 cat conftest.err
>&5
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev
/null
; then
10858 if test -s conftest.err
; then
10859 ac_cpp_err
=$ac_c_preproc_warn_flag
10866 if test -z "$ac_cpp_err"; then
10867 eval "$as_ac_Header=yes"
10869 echo "$as_me: failed program was:" >&5
10870 cat conftest.
$ac_ext >&5
10871 eval "$as_ac_Header=no"
10873 rm -f conftest.err conftest.
$ac_ext
10875 echo "$as_me:10875: result: `eval echo '${'$as_ac_Header'}'`" >&5
10876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10878 cat >>confdefs.h
<<EOF
10879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887 for ac_header
in des.h
10889 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10890 echo "$as_me:10890: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 cat >conftest.
$ac_ext <<_ACEOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10898 #include <$ac_header>
10900 if { (eval echo "$as_me:10900: \"$ac_cpp conftest.$ac_ext\"") >&5
10901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10903 egrep -v '^ *\+' conftest.er1
>conftest.err
10905 cat conftest.err
>&5
10906 echo "$as_me:10906: \$? = $ac_status" >&5
10907 (exit $ac_status); } >/dev
/null
; then
10908 if test -s conftest.err
; then
10909 ac_cpp_err
=$ac_c_preproc_warn_flag
10916 if test -z "$ac_cpp_err"; then
10917 eval "$as_ac_Header=yes"
10919 echo "$as_me: failed program was:" >&5
10920 cat conftest.
$ac_ext >&5
10921 eval "$as_ac_Header=no"
10923 rm -f conftest.err conftest.
$ac_ext
10925 echo "$as_me:10925: result: `eval echo '${'$as_ac_Header'}'`" >&5
10926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10928 cat >>confdefs.h
<<EOF
10929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10934 for ac_header
in kerberosIV
/des.h
10936 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 echo "$as_me:10937: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 cat >conftest.
$ac_ext <<_ACEOF
10943 #line 10943 "configure"
10944 #include "confdefs.h"
10945 #include <$ac_header>
10947 if { (eval echo "$as_me:10947: \"$ac_cpp conftest.$ac_ext\"") >&5
10948 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10950 egrep -v '^ *\+' conftest.er1
>conftest.err
10952 cat conftest.err
>&5
10953 echo "$as_me:10953: \$? = $ac_status" >&5
10954 (exit $ac_status); } >/dev
/null
; then
10955 if test -s conftest.err
; then
10956 ac_cpp_err
=$ac_c_preproc_warn_flag
10963 if test -z "$ac_cpp_err"; then
10964 eval "$as_ac_Header=yes"
10966 echo "$as_me: failed program was:" >&5
10967 cat conftest.
$ac_ext >&5
10968 eval "$as_ac_Header=no"
10970 rm -f conftest.err conftest.
$ac_ext
10972 echo "$as_me:10972: result: `eval echo '${'$as_ac_Header'}'`" >&5
10973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10975 cat >>confdefs.h
<<EOF
10976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10981 for ac_header
in kerberos
/des.h
10983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984 echo "$as_me:10984: checking for $ac_header" >&5
10985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 cat >conftest.
$ac_ext <<_ACEOF
10990 #line 10990 "configure"
10991 #include "confdefs.h"
10992 #include <$ac_header>
10994 if { (eval echo "$as_me:10994: \"$ac_cpp conftest.$ac_ext\"") >&5
10995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10997 egrep -v '^ *\+' conftest.er1
>conftest.err
10999 cat conftest.err
>&5
11000 echo "$as_me:11000: \$? = $ac_status" >&5
11001 (exit $ac_status); } >/dev
/null
; then
11002 if test -s conftest.err
; then
11003 ac_cpp_err
=$ac_c_preproc_warn_flag
11010 if test -z "$ac_cpp_err"; then
11011 eval "$as_ac_Header=yes"
11013 echo "$as_me: failed program was:" >&5
11014 cat conftest.
$ac_ext >&5
11015 eval "$as_ac_Header=no"
11017 rm -f conftest.err conftest.
$ac_ext
11019 echo "$as_me:11019: result: `eval echo '${'$as_ac_Header'}'`" >&5
11020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h
<<EOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035 for ac_header
in krb.h
11037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 echo "$as_me:11038: checking for $ac_header" >&5
11039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.
$ac_ext <<_ACEOF
11044 #line 11044 "configure"
11045 #include "confdefs.h"
11046 #include <$ac_header>
11048 if { (eval echo "$as_me:11048: \"$ac_cpp conftest.$ac_ext\"") >&5
11049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11051 egrep -v '^ *\+' conftest.er1
>conftest.err
11053 cat conftest.err
>&5
11054 echo "$as_me:11054: \$? = $ac_status" >&5
11055 (exit $ac_status); } >/dev
/null
; then
11056 if test -s conftest.err
; then
11057 ac_cpp_err
=$ac_c_preproc_warn_flag
11064 if test -z "$ac_cpp_err"; then
11065 eval "$as_ac_Header=yes"
11067 echo "$as_me: failed program was:" >&5
11068 cat conftest.
$ac_ext >&5
11069 eval "$as_ac_Header=no"
11071 rm -f conftest.err conftest.
$ac_ext
11073 echo "$as_me:11073: result: `eval echo '${'$as_ac_Header'}'`" >&5
11074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h
<<EOF
11077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 for ac_header
in kerberosIV
/krb.h
11084 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11085 echo "$as_me:11085: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 cat >conftest.
$ac_ext <<_ACEOF
11091 #line 11091 "configure"
11092 #include "confdefs.h"
11093 #include <$ac_header>
11095 if { (eval echo "$as_me:11095: \"$ac_cpp conftest.$ac_ext\"") >&5
11096 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11098 egrep -v '^ *\+' conftest.er1
>conftest.err
11100 cat conftest.err
>&5
11101 echo "$as_me:11101: \$? = $ac_status" >&5
11102 (exit $ac_status); } >/dev
/null
; then
11103 if test -s conftest.err
; then
11104 ac_cpp_err
=$ac_c_preproc_warn_flag
11111 if test -z "$ac_cpp_err"; then
11112 eval "$as_ac_Header=yes"
11114 echo "$as_me: failed program was:" >&5
11115 cat conftest.
$ac_ext >&5
11116 eval "$as_ac_Header=no"
11118 rm -f conftest.err conftest.
$ac_ext
11120 echo "$as_me:11120: result: `eval echo '${'$as_ac_Header'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h
<<EOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11129 for ac_header
in kerberos
/krb.h
11131 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 echo "$as_me:11132: checking for $ac_header" >&5
11133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.
$ac_ext <<_ACEOF
11138 #line 11138 "configure"
11139 #include "confdefs.h"
11140 #include <$ac_header>
11142 if { (eval echo "$as_me:11142: \"$ac_cpp conftest.$ac_ext\"") >&5
11143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11145 egrep -v '^ *\+' conftest.er1
>conftest.err
11147 cat conftest.err
>&5
11148 echo "$as_me:11148: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev
/null
; then
11150 if test -s conftest.err
; then
11151 ac_cpp_err
=$ac_c_preproc_warn_flag
11158 if test -z "$ac_cpp_err"; then
11159 eval "$as_ac_Header=yes"
11161 echo "$as_me: failed program was:" >&5
11162 cat conftest.
$ac_ext >&5
11163 eval "$as_ac_Header=no"
11165 rm -f conftest.err conftest.
$ac_ext
11167 echo "$as_me:11167: result: `eval echo '${'$as_ac_Header'}'`" >&5
11168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11170 cat >>confdefs.h
<<EOF
11171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11185 for ac_header
in com_err.h
11187 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11188 echo "$as_me:11188: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 cat >conftest.
$ac_ext <<_ACEOF
11194 #line 11194 "configure"
11195 #include "confdefs.h"
11196 #include <$ac_header>
11198 if { (eval echo "$as_me:11198: \"$ac_cpp conftest.$ac_ext\"") >&5
11199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11201 egrep -v '^ *\+' conftest.er1
>conftest.err
11203 cat conftest.err
>&5
11204 echo "$as_me:11204: \$? = $ac_status" >&5
11205 (exit $ac_status); } >/dev
/null
; then
11206 if test -s conftest.err
; then
11207 ac_cpp_err
=$ac_c_preproc_warn_flag
11214 if test -z "$ac_cpp_err"; then
11215 eval "$as_ac_Header=yes"
11217 echo "$as_me: failed program was:" >&5
11218 cat conftest.
$ac_ext >&5
11219 eval "$as_ac_Header=no"
11221 rm -f conftest.err conftest.
$ac_ext
11223 echo "$as_me:11223: result: `eval echo '${'$as_ac_Header'}'`" >&5
11224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11226 cat >>confdefs.h
<<EOF
11227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11235 # Solaris requires -lintl if you want strerror (which calls dgettext)
11236 # to return localized messages.
11238 echo "$as_me:11238: checking for dgettext in -lintl" >&5
11239 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11240 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 ac_check_lib_save_LIBS
=$LIBS
11244 LIBS
="-lintl $LIBS"
11245 cat >conftest.
$ac_ext <<_ACEOF
11246 #line 11246 "configure"
11247 #include "confdefs.h"
11249 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11264 rm -f conftest.
$ac_objext conftest
$ac_exeext
11265 if { (eval echo "$as_me:11265: \"$ac_link\"") >&5
11266 (eval $ac_link) 2>&5
11268 echo "$as_me:11268: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try
='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:11271: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_lib_intl_dgettext
=yes
11278 echo "$as_me: failed program was:" >&5
11279 cat conftest.
$ac_ext >&5
11280 ac_cv_lib_intl_dgettext
=no
11282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11283 LIBS
=$ac_check_lib_save_LIBS
11285 echo "$as_me:11285: result: $ac_cv_lib_intl_dgettext" >&5
11286 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11287 if test $ac_cv_lib_intl_dgettext = yes; then
11288 cat >>confdefs.h
<<EOF
11289 #define HAVE_LIBINTL 1
11292 LIBS
="-lintl $LIBS"
11296 echo "$as_me:11296: checking whether localtime caches TZ" >&5
11297 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11298 if test "${emacs_cv_localtime_cache+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 if test x
$ac_cv_func_tzset = xyes
; then
11302 if test "$cross_compiling" = yes; then
11303 # If we have tzset, assume the worst when cross-compiling.
11304 emacs_cv_localtime_cache
=yes
11306 cat >conftest.
$ac_ext <<_ACEOF
11307 #line 11307 "configure"
11308 #include "confdefs.h"
11310 extern char **environ;
11314 for (to = from = environ; (*to = *from); from++)
11315 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11318 char TZ_GMT0[] = "TZ=GMT0";
11319 char TZ_PST8[] = "TZ=PST8";
11322 time_t now = time ((time_t *) 0);
11323 int hour_GMT0, hour_unset;
11324 if (putenv (TZ_GMT0) != 0)
11326 hour_GMT0 = localtime (&now)->tm_hour;
11328 hour_unset = localtime (&now)->tm_hour;
11329 if (putenv (TZ_PST8) != 0)
11331 if (localtime (&now)->tm_hour == hour_GMT0)
11334 if (localtime (&now)->tm_hour != hour_unset)
11339 rm -f conftest
$ac_exeext
11340 if { (eval echo "$as_me:11340: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11345 { (eval echo "$as_me:11345: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:11348: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 emacs_cv_localtime_cache
=no
11352 echo "$as_me: program exited with status $ac_status" >&5
11353 echo "$as_me: failed program was:" >&5
11354 cat conftest.
$ac_ext >&5
11355 emacs_cv_localtime_cache
=yes
11357 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11360 # If we lack tzset, report that localtime does not cache TZ,
11361 # since we can't invalidate the cache if we don't have tzset.
11362 emacs_cv_localtime_cache
=no
11365 echo "$as_me:11365: result: $emacs_cv_localtime_cache" >&5
11366 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11367 if test $emacs_cv_localtime_cache = yes; then
11368 cat >>confdefs.h
<<\EOF
11369 #define LOCALTIME_CACHE 1
11374 if test "x$HAVE_TIMEVAL" = xyes
; then
11376 for ac_func
in gettimeofday
11378 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379 echo "$as_me:11379: checking for $ac_func" >&5
11380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11381 if eval "test \"\${$as_ac_var+set}\" = set"; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.
$ac_ext <<_ACEOF
11385 #line 11385 "configure"
11386 #include "confdefs.h"
11387 /* System header to define __stub macros and hopefully few prototypes,
11388 which can conflict with char $ac_func (); below. */
11389 #include <assert.h>
11390 /* Override any gcc2 internal prototype to avoid an error. */
11394 /* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11415 rm -f conftest.
$ac_objext conftest
$ac_exeext
11416 if { (eval echo "$as_me:11416: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>&5
11419 echo "$as_me:11419: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try
='test -s conftest$ac_exeext'
11422 { (eval echo "$as_me:11422: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:11425: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "$as_ac_var=yes"
11429 echo "$as_me: failed program was:" >&5
11430 cat conftest.
$ac_ext >&5
11431 eval "$as_ac_var=no"
11433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11435 echo "$as_me:11435: result: `eval echo '${'$as_ac_var'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11437 if test `eval echo '${'$as_ac_var'}'` = yes; then
11438 cat >>confdefs.h
<<EOF
11439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 echo "$as_me:11445: checking whether gettimeofday can accept two arguments" >&5
11446 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11447 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.
$ac_ext <<_ACEOF
11451 #line 11451 "configure"
11452 #include "confdefs.h"
11454 #ifdef TIME_WITH_SYS_TIME
11455 #include <sys/time.h>
11458 #ifdef HAVE_SYS_TIME_H
11459 #include <sys/time.h>
11467 struct timeval time;
11468 gettimeofday (&time, 0);
11473 rm -f conftest.
$ac_objext
11474 if { (eval echo "$as_me:11474: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11477 echo "$as_me:11477: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try
='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:11480: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11483 echo "$as_me:11483: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 emacs_cv_gettimeofday_two_arguments
=yes
11487 echo "$as_me: failed program was:" >&5
11488 cat conftest.
$ac_ext >&5
11489 emacs_cv_gettimeofday_two_arguments
=no
11491 rm -f conftest.
$ac_objext conftest.
$ac_ext
11493 echo "$as_me:11493: result: $emacs_cv_gettimeofday_two_arguments" >&5
11494 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11495 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11496 cat >>confdefs.h
<<\EOF
11497 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11503 if test "$ac_cv_func_gettimeofday" = yes; then
11504 echo "$as_me:11504: checking for struct timezone" >&5
11505 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11506 if test "${emacs_cv_struct_timezone+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 cat >conftest.
$ac_ext <<_ACEOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11512 #include <sys/time.h>
11516 struct timezone tz;
11521 rm -f conftest.
$ac_objext
11522 if { (eval echo "$as_me:11522: \"$ac_compile\"") >&5
11523 (eval $ac_compile) 2>&5
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try
='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:11528: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:11531: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 if test "$cross_compiling" = yes; then
11534 emacs_cv_struct_timezone
=yes
11536 cat >conftest.
$ac_ext <<_ACEOF
11537 #line 11537 "configure"
11538 #include "confdefs.h"
11540 #ifdef TIME_WITH_SYS_TIME
11541 #include <sys/time.h>
11544 #ifdef HAVE_SYS_TIME_H
11545 #include <sys/time.h>
11551 struct timeval time;
11552 struct timezone dummy;
11553 exit (gettimeofday (&time, &dummy));
11556 rm -f conftest
$ac_exeext
11557 if { (eval echo "$as_me:11557: \"$ac_link\"") >&5
11558 (eval $ac_link) 2>&5
11560 echo "$as_me:11560: \$? = $ac_status" >&5
11561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11562 { (eval echo "$as_me:11562: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:11565: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 emacs_cv_struct_timezone
=yes
11569 echo "$as_me: program exited with status $ac_status" >&5
11570 echo "$as_me: failed program was:" >&5
11571 cat conftest.
$ac_ext >&5
11572 emacs_cv_struct_timezone
=no
11574 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11577 echo "$as_me: failed program was:" >&5
11578 cat conftest.
$ac_ext >&5
11579 emacs_cv_struct_timezone
=no
11581 rm -f conftest.
$ac_objext conftest.
$ac_ext
11583 echo "$as_me:11583: result: $emacs_cv_struct_timezone" >&5
11584 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11588 echo "$as_me:11588: checking for socket" >&5
11589 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11590 if test "${ac_cv_func_socket+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 cat >conftest.
$ac_ext <<_ACEOF
11594 #line 11594 "configure"
11595 #include "confdefs.h"
11596 /* System header to define __stub macros and hopefully few prototypes,
11597 which can conflict with char socket (); below. */
11598 #include <assert.h>
11599 /* Override any gcc2 internal prototype to avoid an error. */
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11611 /* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614 #if defined (__stub_socket) || defined (__stub___socket)
11624 rm -f conftest.
$ac_objext conftest
$ac_exeext
11625 if { (eval echo "$as_me:11625: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try
='test -s conftest$ac_exeext'
11631 { (eval echo "$as_me:11631: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:11634: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_func_socket
=yes
11638 echo "$as_me: failed program was:" >&5
11639 cat conftest.
$ac_ext >&5
11640 ac_cv_func_socket
=no
11642 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11644 echo "$as_me:11644: result: $ac_cv_func_socket" >&5
11645 echo "${ECHO_T}$ac_cv_func_socket" >&6
11646 if test $ac_cv_func_socket = yes; then
11652 if test $ok_so_far = yes; then
11653 echo "$as_me:11653: checking for netinet/in.h" >&5
11654 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.
$ac_ext <<_ACEOF
11659 #line 11659 "configure"
11660 #include "confdefs.h"
11661 #include <netinet/in.h>
11663 if { (eval echo "$as_me:11663: \"$ac_cpp conftest.$ac_ext\"") >&5
11664 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11666 egrep -v '^ *\+' conftest.er1
>conftest.err
11668 cat conftest.err
>&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit $ac_status); } >/dev
/null
; then
11671 if test -s conftest.err
; then
11672 ac_cpp_err
=$ac_c_preproc_warn_flag
11679 if test -z "$ac_cpp_err"; then
11680 ac_cv_header_netinet_in_h
=yes
11682 echo "$as_me: failed program was:" >&5
11683 cat conftest.
$ac_ext >&5
11684 ac_cv_header_netinet_in_h
=no
11686 rm -f conftest.err conftest.
$ac_ext
11688 echo "$as_me:11688: result: $ac_cv_header_netinet_in_h" >&5
11689 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11690 if test $ac_cv_header_netinet_in_h = yes; then
11697 if test $ok_so_far = yes; then
11698 echo "$as_me:11698: checking for arpa/inet.h" >&5
11699 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11700 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.
$ac_ext <<_ACEOF
11704 #line 11704 "configure"
11705 #include "confdefs.h"
11706 #include <arpa/inet.h>
11708 if { (eval echo "$as_me:11708: \"$ac_cpp conftest.$ac_ext\"") >&5
11709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11711 egrep -v '^ *\+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev
/null
; then
11716 if test -s conftest.err
; then
11717 ac_cpp_err
=$ac_c_preproc_warn_flag
11724 if test -z "$ac_cpp_err"; then
11725 ac_cv_header_arpa_inet_h
=yes
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.
$ac_ext >&5
11729 ac_cv_header_arpa_inet_h
=no
11731 rm -f conftest.err conftest.
$ac_ext
11733 echo "$as_me:11733: result: $ac_cv_header_arpa_inet_h" >&5
11734 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11735 if test $ac_cv_header_arpa_inet_h = yes; then
11742 if test $ok_so_far = yes; then
11743 cat >>confdefs.h
<<\EOF
11744 #define HAVE_INET_SOCKETS 1
11749 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11750 cat >>confdefs.h
<<\EOF
11751 #define HAVE_AIX_SMT_EXP 1
11756 echo "$as_me:11756: checking whether system supports dynamic ptys" >&5
11757 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11758 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11759 echo "$as_me:11759: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6
11761 cat >>confdefs.h
<<\EOF
11762 #define HAVE_DEV_PTMX 1
11766 echo "$as_me:11766: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11770 echo "$as_me:11770: checking for pid_t" >&5
11771 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11772 if test "${ac_cv_type_pid_t+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 cat >conftest.
$ac_ext <<_ACEOF
11776 #line 11776 "configure"
11777 #include "confdefs.h"
11778 $ac_includes_default
11784 if (sizeof (pid_t))
11790 rm -f conftest.
$ac_objext
11791 if { (eval echo "$as_me:11791: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11794 echo "$as_me:11794: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try
='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:11797: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_pid_t
=yes
11804 echo "$as_me: failed program was:" >&5
11805 cat conftest.
$ac_ext >&5
11806 ac_cv_type_pid_t
=no
11808 rm -f conftest.
$ac_objext conftest.
$ac_ext
11810 echo "$as_me:11810: result: $ac_cv_type_pid_t" >&5
11811 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11812 if test $ac_cv_type_pid_t = yes; then
11816 cat >>confdefs.h
<<EOF
11822 for ac_header
in unistd.h vfork.h
11824 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11825 echo "$as_me:11825: checking for $ac_header" >&5
11826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >conftest.
$ac_ext <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11833 #include <$ac_header>
11835 if { (eval echo "$as_me:11835: \"$ac_cpp conftest.$ac_ext\"") >&5
11836 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11838 egrep -v '^ *\+' conftest.er1
>conftest.err
11840 cat conftest.err
>&5
11841 echo "$as_me:11841: \$? = $ac_status" >&5
11842 (exit $ac_status); } >/dev
/null
; then
11843 if test -s conftest.err
; then
11844 ac_cpp_err
=$ac_c_preproc_warn_flag
11851 if test -z "$ac_cpp_err"; then
11852 eval "$as_ac_Header=yes"
11854 echo "$as_me: failed program was:" >&5
11855 cat conftest.
$ac_ext >&5
11856 eval "$as_ac_Header=no"
11858 rm -f conftest.err conftest.
$ac_ext
11860 echo "$as_me:11860: result: `eval echo '${'$as_ac_Header'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11863 cat >>confdefs.h
<<EOF
11864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11870 for ac_func
in fork vfork
11872 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11873 echo "$as_me:11873: checking for $ac_func" >&5
11874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11875 if eval "test \"\${$as_ac_var+set}\" = set"; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 cat >conftest.
$ac_ext <<_ACEOF
11879 #line 11879 "configure"
11880 #include "confdefs.h"
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func (); below. */
11883 #include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11896 /* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11909 rm -f conftest.
$ac_objext conftest
$ac_exeext
11910 if { (eval echo "$as_me:11910: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>&5
11913 echo "$as_me:11913: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try
='test -s conftest$ac_exeext'
11916 { (eval echo "$as_me:11916: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:11919: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
11923 echo "$as_me: failed program was:" >&5
11924 cat conftest.
$ac_ext >&5
11925 eval "$as_ac_var=no"
11927 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11929 echo "$as_me:11929: result: `eval echo '${'$as_ac_var'}'`" >&5
11930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11931 if test `eval echo '${'$as_ac_var'}'` = yes; then
11932 cat >>confdefs.h
<<EOF
11933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 ac_cv_func_fork_works
=$ac_cv_func_fork
11940 if test "x$ac_cv_func_fork" = xyes
; then
11941 echo "$as_me:11941: checking for working fork" >&5
11942 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11943 if test "${ac_cv_func_fork_works+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 if test "$cross_compiling" = yes; then
11947 ac_cv_func_fork_works
=cross
11949 cat >conftest.
$ac_ext <<_ACEOF
11950 /* By Rüdiger Kuhlmann. */
11951 #include <sys/types.h>
11953 # include <unistd.h>
11955 /* Some systems only have a dummy stub for fork() */
11963 rm -f conftest
$ac_exeext
11964 if { (eval echo "$as_me:11964: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>&5
11967 echo "$as_me:11967: \$? = $ac_status" >&5
11968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11969 { (eval echo "$as_me:11969: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:11972: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_cv_func_fork_works
=yes
11976 echo "$as_me: program exited with status $ac_status" >&5
11977 echo "$as_me: failed program was:" >&5
11978 cat conftest.
$ac_ext >&5
11979 ac_cv_func_fork_works
=no
11981 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11984 echo "$as_me:11984: result: $ac_cv_func_fork_works" >&5
11985 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11988 if test "x$ac_cv_func_fork_works" = xcross
; then
11990 *-*-amigaos* |
*-*-msdosdjgpp*)
11991 # Override, as these systems have only a dummy fork() stub
11992 ac_cv_func_fork_works
=no
11995 ac_cv_func_fork_works
=yes
11998 { echo "$as_me:11998: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
11999 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12001 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12002 if test "x$ac_cv_func_vfork" = xyes
; then
12003 echo "$as_me:12003: checking for working vfork" >&5
12004 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12005 if test "${ac_cv_func_vfork_works+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 if test "$cross_compiling" = yes; then
12009 ac_cv_func_vfork_works
=cross
12011 cat >conftest.
$ac_ext <<_ACEOF
12012 #line 12012 "configure"
12013 #include "confdefs.h"
12014 /* Thanks to Paul Eggert for this test. */
12016 #include <sys/types.h>
12017 #include <sys/stat.h>
12019 # include <unistd.h>
12022 # include <vfork.h>
12024 /* On some sparc systems, changes by the child to local and incoming
12025 argument registers are propagated back to the parent. The compiler
12026 is told about this with #include <vfork.h>, but some compilers
12027 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12028 static variable whose address is put into a register that is
12029 clobbered by the vfork. */
12032 sparc_address_test (int arg)
12034 sparc_address_test (arg) int arg;
12037 static pid_t child;
12055 pid_t parent = getpid ();
12058 sparc_address_test ();
12063 /* Here is another test for sparc vfork register problems. This
12064 test uses lots of local variables, at least as many local
12065 variables as main has allocated so far including compiler
12066 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12067 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12068 reuse the register of parent for one of the local variables,
12069 since it will think that parent can't possibly be used any more
12070 in this routine. Assigning to the local variable will thus
12071 munge parent in the parent process. */
12073 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12074 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12075 /* Convince the compiler that p..p7 are live; otherwise, it might
12076 use the same hardware register for all 8 local variables. */
12077 if (p != p1 || p != p2 || p != p3 || p != p4
12078 || p != p5 || p != p6 || p != p7)
12081 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12082 from child file descriptors. If the child closes a descriptor
12083 before it execs or exits, this munges the parent's descriptor
12084 as well. Test for this by closing stdout in the child. */
12085 _exit(close(fileno(stdout)) != 0);
12090 while (wait(&status) != child)
12093 /* Was there some problem with vforking? */
12096 /* Did the child fail? (This shouldn't happen.) */
12099 /* Did the vfork/compiler bug occur? */
12100 || parent != getpid()
12102 /* Did the file descriptor bug occur? */
12103 || fstat(fileno(stdout), &st) != 0
12108 rm -f conftest
$ac_exeext
12109 if { (eval echo "$as_me:12109: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>&5
12112 echo "$as_me:12112: \$? = $ac_status" >&5
12113 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12114 { (eval echo "$as_me:12114: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:12117: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_func_vfork_works
=yes
12121 echo "$as_me: program exited with status $ac_status" >&5
12122 echo "$as_me: failed program was:" >&5
12123 cat conftest.
$ac_ext >&5
12124 ac_cv_func_vfork_works
=no
12126 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12129 echo "$as_me:12129: result: $ac_cv_func_vfork_works" >&5
12130 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12133 if test "x$ac_cv_func_fork_works" = xcross
; then
12134 ac_cv_func_vfork_works
=ac_cv_func_vfork
12135 { echo "$as_me:12135: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12136 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12139 if test "x$ac_cv_func_vfork_works" = xyes
; then
12141 cat >>confdefs.h
<<\EOF
12142 #define HAVE_WORKING_VFORK 1
12147 cat >>confdefs.h
<<\EOF
12152 if test "x$ac_cv_func_fork_works" = xyes
; then
12154 cat >>confdefs.h
<<\EOF
12155 #define HAVE_WORKING_FORK 1
12160 # Fixme: This should be replaced when we have autoconf 2.14.
12161 echo "$as_me:12161: checking for size_t" >&5
12162 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12163 if test "${ac_cv_type_size_t+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 cat >conftest.
$ac_ext <<_ACEOF
12167 #line 12167 "configure"
12168 #include "confdefs.h"
12169 $ac_includes_default
12175 if (sizeof (size_t))
12181 rm -f conftest.
$ac_objext
12182 if { (eval echo "$as_me:12182: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try
='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:12188: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_type_size_t
=yes
12195 echo "$as_me: failed program was:" >&5
12196 cat conftest.
$ac_ext >&5
12197 ac_cv_type_size_t
=no
12199 rm -f conftest.
$ac_objext conftest.
$ac_ext
12201 echo "$as_me:12201: result: $ac_cv_type_size_t" >&5
12202 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12203 if test $ac_cv_type_size_t = yes; then
12207 cat >>confdefs.h
<<EOF
12208 #define size_t unsigned
12213 # Set up the CFLAGS for real compilation, so we can substitute it.
12214 CFLAGS
="$REAL_CFLAGS"
12215 CPPFLAGS
="$REAL_CPPFLAGS"
12217 #### Find out which version of Emacs this is.
12218 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12219 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12220 if test x
"${version}" = x
; then
12221 { { echo "$as_me:12221: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12222 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12223 { (exit 1); exit 1; }; }
12226 ### Specify what sort of things we'll be editing into Makefile and config.h.
12227 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12229 cat >>confdefs.h
<<EOF
12230 #define EMACS_CONFIGURATION "${canonical}"
12233 cat >>confdefs.h
<<EOF
12234 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12237 cat >>confdefs.h
<<EOF
12238 #define config_machfile "${machfile}"
12241 cat >>confdefs.h
<<EOF
12242 #define config_opsysfile "${opsysfile}"
12245 cat >>confdefs.h
<<EOF
12246 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12249 cat >>confdefs.h
<<EOF
12250 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12253 cat >>confdefs.h
<<EOF
12254 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12257 cat >>confdefs.h
<<EOF
12258 #define UNEXEC_SRC ${UNEXEC_SRC}
12261 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12262 cat >>confdefs.h
<<\EOF
12263 #define HAVE_X_WINDOWS 1
12267 if test "${USE_X_TOOLKIT}" != "none" ; then
12268 cat >>confdefs.h
<<\EOF
12269 #define USE_X_TOOLKIT 1
12273 if test "${HAVE_X11}" = "yes" ; then
12274 cat >>confdefs.h
<<\EOF
12279 if test "${HAVE_XFREE386}" = "yes" ; then
12280 cat >>confdefs.h
<<\EOF
12281 #define HAVE_XFREE386 1
12285 if test "${HAVE_MENUS}" = "yes" ; then
12286 cat >>confdefs.h
<<\EOF
12287 #define HAVE_MENUS 1
12291 if test "${GNU_MALLOC}" = "yes" ; then
12292 cat >>confdefs.h
<<\EOF
12293 #define GNU_MALLOC 1
12297 if test "${REL_ALLOC}" = "yes" ; then
12298 cat >>confdefs.h
<<\EOF
12299 #define REL_ALLOC 1
12304 for ac_header
in nlist.h
12306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 echo "$as_me:12307: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.
$ac_ext <<_ACEOF
12313 #line 12313 "configure"
12314 #include "confdefs.h"
12315 #include <$ac_header>
12317 if { (eval echo "$as_me:12317: \"$ac_cpp conftest.$ac_ext\"") >&5
12318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12320 egrep -v '^ *\+' conftest.er1
>conftest.err
12322 cat conftest.err
>&5
12323 echo "$as_me:12323: \$? = $ac_status" >&5
12324 (exit $ac_status); } >/dev
/null
; then
12325 if test -s conftest.err
; then
12326 ac_cpp_err
=$ac_c_preproc_warn_flag
12333 if test -z "$ac_cpp_err"; then
12334 eval "$as_ac_Header=yes"
12336 echo "$as_me: failed program was:" >&5
12337 cat conftest.
$ac_ext >&5
12338 eval "$as_ac_Header=no"
12340 rm -f conftest.err conftest.
$ac_ext
12342 echo "$as_me:12342: result: `eval echo '${'$as_ac_Header'}'`" >&5
12343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12345 cat >>confdefs.h
<<EOF
12346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349 cat >>confdefs.h
<<\EOF
12350 #define NLIST_STRUCT 1
12356 #### Report on what we decided to do.
12358 Configured for \`${canonical}'.
12360 Where should the build process find the source code? ${srcdir}
12361 What operating system and machine description files should Emacs use?
12362 \`${opsysfile}' and \`${machfile}'
12363 What compiler should emacs be built with? ${CC} ${CFLAGS}
12364 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12365 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12366 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12367 What window system should Emacs use? ${window_system}
12368 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12370 if test -n "${x_includes}"; then
12371 echo " Where do we find X Windows header files? ${x_includes}"
12373 echo " Where do we find X Windows header files? Standard dirs"
12375 if test -n "${x_libraries}"; then
12376 echo " Where do we find X Windows libraries? ${x_libraries}"
12378 echo " Where do we find X Windows libraries? Standard dirs"
12381 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12382 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12383 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12384 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12385 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12386 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12387 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12390 # Remove any trailing slashes in these variables.
12391 test "${prefix}" != NONE
&&
12392 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12393 test "${exec_prefix}" != NONE
&&
12394 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12396 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12397 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12398 ## from Makefile.c can correctly provide the arg `-traditional' to the
12401 cat >conftest.
$ac_ext <<_ACEOF
12402 #line 12402 "configure"
12403 #include "confdefs.h"
12406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12407 egrep "yes..yes" >/dev
/null
2>&1; then
12408 CPP_NEED_TRADITIONAL
=no
12410 CPP_NEED_TRADITIONAL
=yes
12414 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"
12415 ac_config_commands
="$ac_config_commands default"
12416 cat >confcache
<<\_ACEOF
12417 # This file is a shell script that caches the results of configure
12418 # tests run on this system so they can be shared between configure
12419 # scripts and configure runs, see configure's option --config-cache.
12420 # It is not useful on other systems. If it contains results you don't
12421 # want to keep, you may remove or edit it.
12423 # config.status only pays attention to the cache file if you give it
12424 # the --recheck option to rerun configure.
12426 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12428 # following values.
12432 # The following way of writing the cache mishandles newlines in values,
12433 # but we know of no workaround that is simple, portable, and efficient.
12434 # So, don't put newlines in cache variables' values.
12435 # Ultrix sh set writes to stderr and can't be redirected directly,
12436 # and sets the high bit in the cache file unless we assign to the vars.
12439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12441 # `set' does not quote correctly, so add quotes (double-quote
12442 # substitution turns \\\\ into \\, and sed turns \\ into \).
12445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12448 # `set' quotes correctly as required by POSIX, so do not add quotes.
12450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12461 if cmp -s $cache_file confcache
; then :; else
12462 if test -w $cache_file; then
12463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12464 cat confcache
>$cache_file
12466 echo "not updating unwritable cache $cache_file"
12471 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12472 # Let make expand exec_prefix.
12473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12477 # trailing colons and then remove the whole line if VPATH becomes empty
12478 # (actually we leave an empty line to preserve line numbers).
12479 if test "x$srcdir" = x.
; then
12480 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12481 s/:*\$(srcdir):*/:/;
12482 s/:*\${srcdir}:*/:/;
12484 s/^\([^=]*=[ ]*\):*/\1/;
12490 DEFS
=-DHAVE_CONFIG_H
12492 : ${CONFIG_STATUS=./config.status}
12493 ac_clean_files_save
=$ac_clean_files
12494 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12495 { echo "$as_me:12495: creating $CONFIG_STATUS" >&5
12496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12497 cat >$CONFIG_STATUS <<_ACEOF
12499 # Generated automatically by configure.
12500 # Run this file to recreate the current configuration.
12501 # Compiler output produced by configure, useful for debugging
12502 # configure, is in config.log if it exists.
12505 SHELL=\${CONFIG_SHELL-$SHELL}
12506 ac_cs_invocation="\$0 \$@"
12510 cat >>$CONFIG_STATUS <<\_ACEOF
12511 # Be Bourne compatible
12512 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12515 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12519 # Name of the executable.
12520 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12522 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12528 rm -f conf$$ conf$$.exe conf$$.
file
12530 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12531 # We could just check for DJGPP; but this test a) works b) is more generic
12532 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12533 if test -f conf$$.exe
; then
12534 # Don't use ln at all; we don't have any links
12539 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12544 rm -f conf$$ conf$$.exe conf$$.
file
12546 as_executable_p
="test -f"
12548 # Support unset when possible.
12549 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12556 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12557 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12558 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12559 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12560 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12561 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12562 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12563 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12566 # We need space, tab and new line, in precisely that order.
12572 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12578 # Files that config.status was made for.
12579 if test -n "$ac_config_files"; then
12580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12583 if test -n "$ac_config_headers"; then
12584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12587 if test -n "$ac_config_links"; then
12588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12591 if test -n "$ac_config_commands"; then
12592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12595 cat >>$CONFIG_STATUS <<\EOF
12598 \`$as_me' instantiates files from templates according to the
12599 current configuration.
12601 Usage: $0 [OPTIONS] [FILE]...
12603 -h, --help print this help, then exit
12604 -V, --version print version number, then exit
12605 -d, --debug don't remove temporary files
12606 --recheck update $as_me by reconfiguring in the same conditions
12607 --file=FILE[:TEMPLATE]
12608 instantiate the configuration file FILE
12609 --header=FILE[:TEMPLATE]
12610 instantiate the configuration header FILE
12612 Configuration files:
12615 Configuration headers:
12618 Configuration commands:
12621 Report bugs to <bug-autoconf@gnu.org>."
12624 cat >>$CONFIG_STATUS <<EOF
12627 configured by $0, generated by GNU Autoconf 2.52,
12628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12630 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12631 Free Software Foundation, Inc.
12632 This config.status script is free software; the Free Software Foundation
12633 gives unlimited permission to copy, distribute and modify it."
12638 cat >>$CONFIG_STATUS <<\EOF
12639 # If no file are specified by the user, then we need to provide default
12640 # value. By we need to know if files were specified by the user.
12646 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12647 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12649 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12653 *) # This is not an option, so the user has probably given explicit
12655 ac_need_defaults
=false
;;
12659 # Handling of the options.
12661 cat >>$CONFIG_STATUS <<EOF
12662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12663 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12664 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12666 cat >>$CONFIG_STATUS <<\EOF
12667 --version |
--vers* |
-V )
12668 echo "$ac_cs_version"; exit 0 ;;
12670 # Conflict between --help and --header
12671 { { echo "$as_me:12671: error: ambiguous option: $1
12672 Try \`$0 --help' for more information." >&5
12673 echo "$as_me: error: ambiguous option: $1
12674 Try \`$0 --help' for more information." >&2;}
12675 { (exit 1); exit 1; }; };;
12676 --help |
--hel |
-h )
12677 echo "$ac_cs_usage"; exit 0 ;;
12678 --debug |
--d* |
-d )
12680 --file |
--fil |
--fi |
--f )
12682 CONFIG_FILES
="$CONFIG_FILES $1"
12683 ac_need_defaults
=false
;;
12684 --header |
--heade |
--head |
--hea )
12686 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12687 ac_need_defaults
=false
;;
12689 # This is an error.
12690 -*) { { echo "$as_me:12690: error: unrecognized option: $1
12691 Try \`$0 --help' for more information." >&5
12692 echo "$as_me: error: unrecognized option: $1
12693 Try \`$0 --help' for more information." >&2;}
12694 { (exit 1); exit 1; }; } ;;
12696 *) ac_config_targets
="$ac_config_targets $1" ;;
12705 ## ----------------------- ##
12706 ## Running config.status. ##
12707 ## ----------------------- ##
12709 This file was extended by $as_me 2.52, executed with
12710 CONFIG_FILES = $CONFIG_FILES
12711 CONFIG_HEADERS = $CONFIG_HEADERS
12712 CONFIG_LINKS = $CONFIG_LINKS
12713 CONFIG_COMMANDS = $CONFIG_COMMANDS
12714 > $ac_cs_invocation
12715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12720 cat >>$CONFIG_STATUS <<EOF
12722 # INIT-COMMANDS section.
12725 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12729 cat >>$CONFIG_STATUS <<\EOF
12730 for ac_config_target
in $ac_config_targets
12732 case "$ac_config_target" in
12733 # Handling of arguments.
12734 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12735 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12736 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12737 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12738 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12739 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12740 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12741 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12742 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
12743 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12744 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12745 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12746 *) { { echo "$as_me:12746: error: invalid argument: $ac_config_target" >&5
12747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12748 { (exit 1); exit 1; }; };;
12752 # If the user did not use the arguments to specify the items to instantiate,
12753 # then the envvar interface is used. Set only those that are not.
12754 # We use the long form for the default assignment because of an extremely
12755 # bizarre bug on SunOS 4.1.3.
12756 if $ac_need_defaults; then
12757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12762 # Create a temporary directory, and hook for its removal unless debugging.
12765 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12766 trap '{ (exit 1); exit 1; }' 1 2 13 15
12769 # Create a (secure) tmp directory for tmp files.
12772 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12773 test -n "$tmp" && test -d "$tmp"
12776 tmp
=$TMPDIR/cs$$
-$RANDOM
12777 (umask 077 && mkdir
$tmp)
12780 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12781 { (exit 1); exit 1; }
12786 cat >>$CONFIG_STATUS <<EOF
12789 # CONFIG_FILES section.
12792 # No need to generate the scripts if there are no CONFIG_FILES.
12793 # This happens for instance when ./config.status config.h
12794 if test -n "\$CONFIG_FILES"; then
12795 # Protect against being on the right side of a sed subst in config.status.
12796 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12797 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12798 s,@SHELL@,$SHELL,;t t
12799 s,@exec_prefix@,$exec_prefix,;t t
12800 s,@prefix@,$prefix,;t t
12801 s,@program_transform_name@,$program_transform_name,;t t
12802 s,@bindir@,$bindir,;t t
12803 s,@sbindir@,$sbindir,;t t
12804 s,@libexecdir@,$libexecdir,;t t
12805 s,@datadir@,$datadir,;t t
12806 s,@sysconfdir@,$sysconfdir,;t t
12807 s,@sharedstatedir@,$sharedstatedir,;t t
12808 s,@localstatedir@,$localstatedir,;t t
12809 s,@libdir@,$libdir,;t t
12810 s,@includedir@,$includedir,;t t
12811 s,@oldincludedir@,$oldincludedir,;t t
12812 s,@infodir@,$infodir,;t t
12813 s,@mandir@,$mandir,;t t
12814 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12815 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12816 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12817 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12818 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12819 s,@build_alias@,$build_alias,;t t
12820 s,@host_alias@,$host_alias,;t t
12821 s,@target_alias@,$target_alias,;t t
12822 s,@ECHO_C@,$ECHO_C,;t t
12823 s,@ECHO_N@,$ECHO_N,;t t
12824 s,@ECHO_T@,$ECHO_T,;t t
12825 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12826 s,@DEFS@,$DEFS,;t t
12827 s,@LIBS@,$LIBS,;t t
12828 s,@build@,$build,;t t
12829 s,@build_cpu@,$build_cpu,;t t
12830 s,@build_vendor@,$build_vendor,;t t
12831 s,@build_os@,$build_os,;t t
12832 s,@host@,$host,;t t
12833 s,@host_cpu@,$host_cpu,;t t
12834 s,@host_vendor@,$host_vendor,;t t
12835 s,@host_os@,$host_os,;t t
12837 s,@CFLAGS@,$CFLAGS,;t t
12838 s,@LDFLAGS@,$LDFLAGS,;t t
12839 s,@CPPFLAGS@,$CPPFLAGS,;t t
12840 s,@ac_ct_CC@,$ac_ct_CC,;t t
12841 s,@EXEEXT@,$EXEEXT,;t t
12842 s,@OBJEXT@,$OBJEXT,;t t
12843 s,@LN_S@,$LN_S,;t t
12845 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12846 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12847 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12848 s,@YACC@,$YACC,;t t
12849 s,@RANLIB@,$RANLIB,;t t
12850 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12851 s,@LIBSOUND@,$LIBSOUND,;t t
12852 s,@SET_MAKE@,$SET_MAKE,;t t
12853 s,@ALLOCA@,$ALLOCA,;t t
12854 s,@liblockfile@,$liblockfile,;t t
12855 s,@LIBOBJS@,$LIBOBJS,;t t
12856 s,@NEED_SETGID@,$NEED_SETGID,;t t
12857 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12858 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12859 s,@version@,$version,;t t
12860 s,@configuration@,$configuration,;t t
12861 s,@canonical@,$canonical,;t t
12862 s,@srcdir@,$srcdir,;t t
12863 s,@lispdir@,$lispdir,;t t
12864 s,@locallisppath@,$locallisppath,;t t
12865 s,@lisppath@,$lisppath,;t t
12866 s,@x_default_search_path@,$x_default_search_path,;t t
12867 s,@etcdir@,$etcdir,;t t
12868 s,@archlibdir@,$archlibdir,;t t
12869 s,@docdir@,$docdir,;t t
12870 s,@bitmapdir@,$bitmapdir,;t t
12871 s,@c_switch_system@,$c_switch_system,;t t
12872 s,@c_switch_machine@,$c_switch_machine,;t t
12873 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12874 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12875 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12876 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12877 s,@machfile@,$machfile,;t t
12878 s,@opsysfile@,$opsysfile,;t t
12883 cat >>$CONFIG_STATUS <<\EOF
12884 # Split the substitutions into bite-sized pieces for seds with
12885 # small command number limits, like on Digital OSF/1 and HP-UX.
12886 ac_max_sed_lines
=48
12887 ac_sed_frag
=1 # Number of current file.
12888 ac_beg
=1 # First line for current file.
12889 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12892 while $ac_more_lines; do
12893 if test $ac_beg -gt 1; then
12894 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12896 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12898 if test ! -s $tmp/subs.frag
; then
12899 ac_more_lines
=false
12901 # The purpose of the label and of the branching condition is to
12902 # speed up the sed processing (if there are no `@' at all, there
12903 # is no need to browse any of the substitutions).
12904 # These are the two extra sed commands mentioned above.
12906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12907 if test -z "$ac_sed_cmds"; then
12908 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12910 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12912 ac_sed_frag
=`expr $ac_sed_frag + 1`
12914 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12917 if test -z "$ac_sed_cmds"; then
12920 fi # test -n "$CONFIG_FILES"
12923 cat >>$CONFIG_STATUS <<\EOF
12924 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12927 - |
*:- |
*:-:* ) # input from stdin
12929 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12930 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12931 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12932 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12933 * ) ac_file_in
=$ac_file.
in ;;
12936 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12937 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$ac_file" : 'X\(//\)[^/]' \| \
12939 X"$ac_file" : 'X\(//\)$' \| \
12940 X"$ac_file" : 'X\(/\)' \| \
12941 . : '\(.\)' 2>/dev/null ||
12943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12945 /^X\(\/\/\)$/{ s//\1/; q; }
12946 /^X\(\/\).*/{ s//\1/; q; }
12948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12949 { case "$ac_dir" in
12950 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12954 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12955 case $as_mkdir_dir in
12956 # Skip DOS drivespec
12957 ?
:) as_incr_dir
=$as_mkdir_dir ;;
12959 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
12960 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
12965 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
12966 # A "../" for each directory in $ac_dir_suffix.
12967 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12969 ac_dir_suffix
= ac_dots
=
12974 if test -z "$ac_dots"; then
12977 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
12979 [\\/]* | ?
:[\\/]* )
12980 ac_srcdir
=$srcdir$ac_dir_suffix;
12981 ac_top_srcdir
=$srcdir ;;
12982 *) # Relative path.
12983 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
12984 ac_top_srcdir
=$ac_dots$srcdir ;;
12988 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12989 *) ac_INSTALL
=$ac_dots$INSTALL ;;
12992 if test x
"$ac_file" != x-
; then
12993 { echo "$as_me:12993: creating $ac_file" >&5
12994 echo "$as_me: creating $ac_file" >&6;}
12997 # Let's still pretend it is `configure' which instantiates (i.e., don't
12998 # use $as_me), people would be surprised to read:
12999 # /* config.h. Generated automatically by config.status. */
13000 configure_input
="Generated automatically from `echo $ac_file_in |
13001 sed 's,.*/,,'` by configure."
13003 # First look for the input files in the build tree, otherwise in the
13005 ac_file_inputs
=`IFS=:
13006 for f in $ac_file_in; do
13008 -) echo $tmp/stdin ;;
13010 # Absolute (can't be DOS-style, as IFS=:)
13011 test -f "$f" || { { echo "$as_me:13011: error: cannot find input file: $f" >&5
13012 echo "$as_me: error: cannot find input file: $f" >&2;}
13013 { (exit 1); exit 1; }; }
13016 if test -f "$f"; then
13019 elif test -f "$srcdir/$f"; then
13024 { { echo "$as_me:13024: error: cannot find input file: $f" >&5
13025 echo "$as_me: error: cannot find input file: $f" >&2;}
13026 { (exit 1); exit 1; }; }
13029 done` ||
{ (exit 1); exit 1; }
13031 cat >>$CONFIG_STATUS <<EOF
13035 cat >>$CONFIG_STATUS <<\EOF
13037 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13038 s
,@configure_input@
,$configure_input,;t t
13039 s
,@srcdir@
,$ac_srcdir,;t t
13040 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13041 s
,@INSTALL@
,$ac_INSTALL,;t t
13042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13044 if test x"$ac_file" != x-; then
13045 mv $tmp/out $ac_file
13053 cat >>$CONFIG_STATUS <<\EOF
13056 # CONFIG_HEADER section.
13059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13062 # ac_d sets the value in "#define NAME VALUE" lines.
13063 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13064 ac_dB
='[ ].*$,\1#\2'
13067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13068 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13069 ac_uB
='$,\1#\2define\3'
13073 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13076 - |
*:- |
*:-:* ) # input from stdin
13078 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13079 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13080 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13081 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13082 * ) ac_file_in
=$ac_file.
in ;;
13085 test x
"$ac_file" != x-
&& { echo "$as_me:13085: creating $ac_file" >&5
13086 echo "$as_me: creating $ac_file" >&6;}
13088 # First look for the input files in the build tree, otherwise in the
13090 ac_file_inputs
=`IFS=:
13091 for f in $ac_file_in; do
13093 -) echo $tmp/stdin ;;
13095 # Absolute (can't be DOS-style, as IFS=:)
13096 test -f "$f" || { { echo "$as_me:13096: error: cannot find input file: $f" >&5
13097 echo "$as_me: error: cannot find input file: $f" >&2;}
13098 { (exit 1); exit 1; }; }
13101 if test -f "$f"; then
13104 elif test -f "$srcdir/$f"; then
13109 { { echo "$as_me:13109: error: cannot find input file: $f" >&5
13110 echo "$as_me: error: cannot find input file: $f" >&2;}
13111 { (exit 1); exit 1; }; }
13114 done` ||
{ (exit 1); exit 1; }
13115 # Remove the trailing spaces.
13116 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13121 # `conftest.undefs', that substitutes the proper values into
13122 # config.h.in to produce config.h. The first handles `#define'
13123 # templates, and the second `#undef' templates.
13124 # And first: Protect against being on the right side of a sed subst in
13125 # config.status. Protect against being in an unquoted here document
13126 # in config.status.
13127 rm -f conftest.defines conftest.undefs
13128 # Using a here document instead of a string reduces the quoting nightmare.
13129 # Putting comments in sed scripts is not portable.
13131 # `end' is used to avoid that the second main sed command (meant for
13132 # 0-ary CPP macros) applies to n-ary macro definitions.
13133 # See the Autoconf documentation for `clear'.
13134 cat >confdef2sed.
sed <<\EOF
13139 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13141 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13144 # If some macros were called several times there might be several times
13145 # the same #defines, which is useless. Nevertheless, we may not want to
13146 # sort them, since we want the *last* AC-DEFINE to be honored.
13147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13149 rm -f confdef2sed.sed
13151 # This sed command replaces #undef with comments. This is necessary, for
13152 # example, in the case of _POSIX_SOURCE, which is predefined and required
13153 # on some systems where configure will not decide to define it.
13154 cat >>conftest.undefs <<\EOF
13155 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13158 # Break up conftest.defines because some shells have a limit on the size
13159 # of here documents, and old seds have small limits too (100 cmds).
13160 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13161 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13162 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13163 echo ' :' >>$CONFIG_STATUS
13164 rm -f conftest.tail
13165 while grep . conftest.defines >/dev/null
13167 # Write a limited-size here document to $tmp/defines.sed.
13168 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13169 # Speed up: don't consider the non `#define' lines.
13170 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13171 # Work around the forget-to-reset-the-flag bug.
13172 echo 't clr' >>$CONFIG_STATUS
13173 echo ': clr' >>$CONFIG_STATUS
13174 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13176 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13178 mv $tmp/out $tmp/in
13180 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13181 rm -f conftest.defines
13182 mv conftest.
tail conftest.defines
13184 rm -f conftest.defines
13185 echo ' fi # egrep' >>$CONFIG_STATUS
13186 echo >>$CONFIG_STATUS
13188 # Break up conftest.undefs because some shells have a limit on the size
13189 # of here documents, and old seds have small limits too (100 cmds).
13190 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13191 rm -f conftest.
tail
13192 while grep . conftest.undefs
>/dev
/null
13194 # Write a limited-size here document to $tmp/undefs.sed.
13195 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13196 # Speed up: don't consider the non
`#undef'
13197 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13198 # Work around the forget-to-reset-the-flag bug.
13199 echo 't clr' >>$CONFIG_STATUS
13200 echo ': clr' >>$CONFIG_STATUS
13201 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13203 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13205 mv $tmp/out $tmp/in
13207 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13208 rm -f conftest.undefs
13209 mv conftest.tail conftest.undefs
13211 rm -f conftest.undefs
13213 cat >>$CONFIG_STATUS <<\EOF
13214 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13215 # use $as_me), people would be surprised to read:
13216 # /* config.h. Generated automatically by config.status. */
13217 if test x
"$ac_file" = x-
; then
13218 echo "/* Generated automatically by configure. */" >$tmp/config.h
13220 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13222 cat $tmp/in >>$tmp/config.h
13224 if test x
"$ac_file" != x-
; then
13225 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13226 { echo "$as_me:13226: $ac_file is unchanged" >&5
13227 echo "$as_me: $ac_file is unchanged" >&6;}
13229 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13230 X"$ac_file" : 'X\(//\)[^/]' \| \
13231 X"$ac_file" : 'X\(//\)$' \| \
13232 X"$ac_file" : 'X\(/\)' \| \
13233 . : '\(.\)' 2>/dev/null ||
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13237 /^X\(\/\/\)$/{ s//\1/; q; }
13238 /^X\(\/\).*/{ s//\1/; q; }
13240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13241 { case "$ac_dir" in
13242 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13246 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13247 case $as_mkdir_dir in
13248 # Skip DOS drivespec
13249 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13251 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13252 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13259 mv $tmp/config.h
$ac_file
13263 rm -f $tmp/config.h
13267 cat >>$CONFIG_STATUS <<\EOF
13270 # CONFIG_COMMANDS section.
13272 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13273 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13274 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13279 ### Make the necessary directories, if they don't exist.
13280 for dir
in etc lisp
; do
13281 test -d ${dir} || mkdir
${dir}
13284 # Build src/Makefile from ${srcdir}/src/Makefile.c
13285 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13286 # This must be done after src/config.h is built, since we rely on that file.
13288 # Now get this: Some word that is part of the ${srcdir} directory name
13289 # or the ${configuration} value might, just might, happen to be an
13290 # identifier like `sun4' or `i386' or something, and be predefined by
13291 # the C preprocessor to some helpful value like 1, or maybe the empty
13292 # string. Needless to say consequent macro substitutions are less
13293 # than conducive to the makefile finding the correct directory.
13294 undefs
="`echo $top_srcdir $configuration $canonical |
13295 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13296 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13299 echo creating src
/epaths.h
13300 ${MAKE-make} epaths-force
13302 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13303 # `..' to `. .' unless invoked with -traditional
13305 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13306 CPPFLAGS
="$CPPFLAGS -traditional"
13309 echo creating lib-src
/Makefile
13311 rm -f junk.c junk1.c junk2.c
13312 sed -e '/start of cpp stuff/q' \
13313 < Makefile.c
> junk1.c
13314 sed -e '1,/start of cpp stuff/d'\
13315 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13316 < Makefile.c
> junk.c
13317 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13318 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13319 cat junk1.c junk2.c
> Makefile.new
13320 rm -f junk.c junk1.c junk2.c
13321 chmod 444 Makefile.new
13322 mv -f Makefile.new Makefile
13325 echo creating src
/Makefile
13327 rm -f junk.c junk1.c junk2.c
13328 sed -e '/start of cpp stuff/q' \
13329 < Makefile.c
> junk1.c
13330 sed -e '1,/start of cpp stuff/d'\
13331 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13332 < Makefile.c
> junk.c
13333 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13334 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13335 cat junk1.c junk2.c
> Makefile.new
13336 rm -f junk.c junk1.c junk2.c
13337 chmod 444 Makefile.new
13338 mv -f Makefile.new Makefile
13341 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13342 echo creating src
/.gdbinit
13343 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13346 # This is how we know whether to re-run configure in certain cases.
13347 touch src
/config.stamp
13354 cat >>$CONFIG_STATUS <<\EOF
13356 { (exit 0); exit 0; }
13358 chmod +x
$CONFIG_STATUS
13359 ac_clean_files
=$ac_clean_files_save
13361 # configure is writing to config.log, and then calls config.status.
13362 # config.status does its own redirection, appending to config.log.
13363 # Unfortunately, on DOS this fails, as config.log is still kept open
13364 # by configure, so config.status won't be able to write to it; its
13365 # output is simply discarded. So we exec the FD to /dev/null,
13366 # effectively closing config.log, so it can be properly (re)opened and
13367 # appended to by config.status. When coming back to configure, we
13368 # need to make the FD available again.
13369 if test "$no_create" != yes; then
13372 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13375 # would make configure fail if this is the last instruction.
13376 $ac_cs_success ||
{ (exit 1); exit 1; }