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
*-*-freebsd*) machine
=alpha
;;
1304 i
[3456]86-*-freebsd*) machine
=intel386
;;
1311 case "${canonical}" in
1312 alpha
*-*-netbsd*) machine
=alpha
;;
1313 i
[3456]86-*-netbsd*) machine
=intel386
;;
1315 # This is somewhat bogus.
1316 machine
=hp9000s300
;;
1317 powerpc-apple-netbsd
*) machine
=macppc
;;
1318 mips-
*-netbsd*) machine
=pmax
;;
1319 mipsel-
*-netbsd*) machine
=pmax
;;
1320 ns32k-
*-netbsd*) machine
=ns32000
;;
1321 powerpc-
*-netbsd*) machine
=macppc
;;
1322 sparc
*-*-netbsd*) machine
=sparc
;;
1323 vax-
*-netbsd*) machine
=vax
;;
1324 arm-
*-netbsd*) machine
=arm
;;
1331 case "${canonical}" in
1332 alpha
*-*-openbsd*) machine
=alpha
;;
1333 i386-
*-openbsd*) machine
=intel386
;;
1334 m68k-
*-openbsd*) machine
=hp9000s300
;;
1335 mipsel-
*-openbsd*) machine
=pmax
;;
1336 ns32k-
*-openbsd*) machine
=ns32000
;;
1337 sparc-
*-openbsd*) machine
=sparc
;;
1338 vax-
*-openbsd*) machine
=vax
;;
1343 arm-acorn-riscix1.1
* )
1344 machine
=acorn opsys
=riscix1-1
1346 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1347 ## This name is riscix12 instead of riscix1.2
1348 ## to avoid a file name conflict on MSDOS.
1349 machine
=acorn opsys
=riscix12
1355 case "${canonical}" in
1356 i
[345]86-*-bsdi*) machine
=intel386
;;
1357 sparc-
*-bsdi*) machine
=sparc
;;
1358 powerpc-
*-bsdi*) machine
=macppc
;;
1360 case "${canonical}" in
1361 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1362 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1363 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1364 *-*-bsdi3* ) opsys
=bsdos3
;;
1365 *-*-bsdi4* ) opsys
=bsdos4
;;
1370 ## Strictly speaking, we need the version of the alliant operating
1371 ## system to choose the right machine file, but currently the
1372 ## configuration name doesn't tell us enough to choose the right
1373 ## one; we need to give alliants their own operating system name to
1374 ## do this right. When someone cares, they can help us.
1376 machine
=alliant4 opsys
=bsd4-2
1379 machine
=alliant-2800 opsys
=bsd4-3
1382 ## Alpha (DEC) machines.
1384 machine
=alpha opsys
=osf1
1385 # This is needed to find X11R6.1 libraries for certain tests.
1386 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1387 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1388 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1389 # due to non-traditional preprocessing with the current compiler
1390 # defaults. OSF 4 can also have that compiler version, and there
1391 # seems always to have been a usable /usr/bin/cpp.
1392 NON_GNU_CPP
=/usr
/bin
/cpp
1393 case "${canonical}" in
1394 alpha
*-dec-osf[5-9]*)
1399 alpha
*-*-linux-gnu* )
1400 machine
=alpha opsys
=gnu-linux
1404 machine
=arm opsys
=gnu-linux
1409 machine
=macppc opsys
=gnu-linux
1414 machine
=altos opsys
=usg5-2
1419 machine
=amdahl opsys
=usg5-2-2
1422 ## Apollo, Domain/OS
1424 machine
=apollo opsys
=bsd4-3
1427 ## AT&T 3b2, 3b5, 3b15, 3b20
1429 machine
=att3b opsys
=usg5-2-2
1432 ## AT&T 3b1 - The Mighty Unix PC!
1434 machine
=7300 opsys
=usg5-2-2
1439 machine
=ibmrs6000 opsys
=aix3-2
1444 machine
=dpx2 opsys
=usg5-3
1449 machine
=sps7 opsys
=usg5-2
1452 ## CCI 5/32, 6/32 -- see "Tahoe".
1455 ## I don't know what configuration name to use for this; config.sub
1456 ## doesn't seem to know anything about it. Hey, Celerity users, get
1457 ## in touch with us!
1458 celerity-celerity-bsd
* )
1459 machine
=celerity opsys
=bsd4-2
1463 ## What operating systems does this chip run that Emacs has been
1467 ## We'll use the catch-all code at the bottom to guess the
1468 ## operating system.
1472 *-convex-bsd* |
*-convex-convexos* )
1473 machine
=convex opsys
=bsd4-3
1474 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1475 NON_GNU_CPP
="cc -E -P"
1479 i
[3456]86-cubix-sysv* )
1480 machine
=intel386 opsys
=usg5-3
1484 cydra
*-cydrome-sysv* )
1485 machine
=cydra5 opsys
=usg5-3
1488 ## Data General AViiON Machines
1489 ## DG changed naming conventions with the release of 5.4.4.10, they
1490 ## dropped the initial 5.4 but left the intervening R. Because of the
1491 ## R this shouldn't conflict with older versions of the OS (which I
1492 ## think were named like dgux4.*). In addition, DG new AViiONs series
1493 ## uses either Motorola M88k or Intel Pentium CPUs.
1494 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1495 machine
=aviion opsys
=dgux4
1497 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1498 ## This name is dgux5-4-3 instead of dgux5-4r3
1499 ## to avoid a file name conflict on MSDOS.
1500 machine
=aviion opsys
=dgux5-4-3
1502 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1503 machine
=aviion opsys
=dgux5-4r2
1506 machine
=aviion opsys
=dgux
1509 ## Data General AViiON Intel (x86) Machines
1510 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1511 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1512 i
[345]86-dg-dguxR4* )
1513 machine
=aviion-intel opsys
=dgux4
1517 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1518 machine
=pmax opsys
=bsd4-2
1520 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1521 machine
=pmax opsys
=bsd4-3
1524 machine
=pmax opsys
=ultrix4-3
1527 machine
=pmax opsys
=osf1
1529 mips-dec-mach_bsd4.3
* )
1530 machine
=pmax opsys
=mach-bsd4-3
1533 ## Motorola Delta machines
1534 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1535 machine
=delta opsys
=usg5-3
1536 if test -z "`type gnucc | grep 'not found'`"
1538 if test -s /etc
/167config
1539 then CC
="gnucc -m68040"
1540 else CC
="gnucc -m68881"
1543 if test -z "`type gcc | grep 'not found'`"
1549 m88k-motorola-sysv4
* )
1550 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1551 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1552 # I hope there are not other 4.0 versions for this machine
1553 # which really need usg5-4 instead.
1554 machine
=delta88k opsys
=usg5-4-2
1556 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1557 machine
=delta88k opsys
=usg5-3
1562 machine
=dual opsys
=usg5-2
1564 m68
*-dual-uniplus* )
1565 machine
=dual opsys
=unipl5-2
1570 machine
=elxsi opsys
=usg5-2
1575 machine
=ns16000 opsys
=umax
1578 ## The GEC 63 - apparently, this port isn't really finished yet.
1579 # I'm sure we finished off the last of the machines, though. -- fx
1581 ## Gould Power Node and NP1
1583 machine
=gould opsys
=bsd4-2
1586 machine
=gould opsys
=bsd4-3
1589 machine
=gould-np1 opsys
=bsd4-3
1592 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1593 ## as far as Emacs is concerned).
1595 # Build needs to be different on 7.0 and later releases
1596 case "`uname -r`" in
1597 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1598 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1600 NON_GNU_CPP
="/lib/cpp"
1602 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1604 machine
=nh3000 opsys
=cxux
1606 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1607 powerpc-harris-powerunix
)
1608 machine
=nh6000 opsys
=powerunix
1609 NON_GNU_CPP
="cc -Xo -E -P"
1611 ## SR2001/SR2201 running HI-UX/MPP
1612 hppa1.1
-hitachi-hiuxmpp* )
1613 machine
=sr2k opsys
=hiuxmpp
1615 hppa1.1
-hitachi-hiuxwe2* )
1616 machine
=sr2k opsys
=hiuxwe2
1619 xps
*-honeywell-sysv* )
1620 machine
=xps100 opsys
=usg5-2
1623 ## HP 9000 series 200 or 300
1625 machine
=hp9000s300 opsys
=bsd4-3
1627 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1629 case "`uname -r`" in
1630 ## Someone's system reports A.B8.05 for this.
1631 ## I wonder what other possibilities there are.
1632 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1633 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1634 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1635 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1636 *) machine
=hp9000s300 opsys
=hpux
;;
1640 ## HP 9000 series 700 and 800, running HP/UX
1642 machine
=hp800 opsys
=hpux
1645 machine
=hp800 opsys
=hpux8
1647 hppa
*-hp-hpux9shr* )
1648 machine
=hp800 opsys
=hpux9shr
1651 machine
=hp800 opsys
=hpux9
1654 machine
=hp800 opsys
=hpux10
1656 hppa
*-hp-hpux1[1-9]* )
1657 machine
=hp800 opsys
=hpux11
1660 ## HP 9000 series 700 and 800, running HP/UX
1662 ## Cross-compilation? Nah!
1663 case "`uname -r`" in
1664 ## Someone's system reports A.B8.05 for this.
1665 ## I wonder what other possibilities there are.
1666 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1667 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1668 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1669 *) machine
=hp800 opsys
=hpux10
;;
1673 machine
=hp800 opsys
=nextstep
1678 machine
=orion opsys
=bsd4-2
1680 clipper-orion-bsd
* )
1681 machine
=orion105 opsys
=bsd4-2
1685 i
[3456]86-ibm-aix1.1
* )
1686 machine
=ibmps2-aix opsys
=usg5-2-2
1688 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1689 machine
=ibmps2-aix opsys
=usg5-3
1692 machine
=ibm370aix opsys
=usg5-3
1695 machine
=ibms390 opsys
=gnu-linux
1697 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1698 machine
=ibmrs6000 opsys
=aix3-1
1700 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1701 machine
=ibmrs6000 opsys
=aix3-2-5
1703 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1704 machine
=ibmrs6000 opsys
=aix4-1
1706 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1707 machine
=ibmrs6000 opsys
=aix4-2
1709 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1710 machine
=ibmrs6000 opsys
=aix4
1712 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1713 machine
=ibmrs6000 opsys
=aix4-1
1715 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1716 machine
=ibmrs6000 opsys
=aix3-2
1719 machine
=ibmrt opsys
=bsd4-3
1722 machine
=ibmrt opsys
=bsd4-2
1725 machine
=ibmrt opsys
=bsd4-3
1728 machine
=ibmrt opsys
=bsd4-2
1731 machine
=ibmrt opsys
=bsd4-3
1734 machine
=ibmrt opsys
=bsd4-3
1737 machine
=ibmrt-aix opsys
=usg5-2-2
1740 ## Integrated Solutions `Optimum V'
1742 machine
=isi-ov opsys
=bsd4-2
1745 machine
=isi-ov opsys
=bsd4-3
1748 ## Intel 386 machines where we do care about the manufacturer
1749 i
[3456]86-intsys-sysv* )
1750 machine
=is386 opsys
=usg5-2-2
1754 i
[3456]86-prime-sysv* )
1755 machine
=i386 opsys
=usg5-3
1758 ## Sequent Symmetry running Dynix
1759 i
[3456]86-sequent-bsd* )
1760 machine
=symmetry opsys
=bsd4-3
1763 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1764 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1765 machine
=sequent-ptx opsys
=ptx4
1766 NON_GNU_CPP
=/lib
/cpp
1769 ## Sequent Symmetry running DYNIX/ptx
1770 ## Use the old cpp rather than the newer ANSI one.
1771 i
[3456]86-sequent-ptx* )
1772 machine
=sequent-ptx opsys
=ptx
1773 NON_GNU_CPP
="/lib/cpp"
1776 ## ncr machine running svr4.3.
1777 i
[3456]86-ncr-sysv4.3
)
1778 machine
=ncr386 opsys
=usg5-4-3
1781 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1782 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1783 i
[3456]86-ncr-sysv* )
1784 machine
=ncr386 opsys
=usg5-4-2
1787 ## Intel Paragon OSF/1
1789 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1794 machine
=i860 opsys
=usg5-4
1795 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1796 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1799 ## Macintosh PowerPC
1800 powerpc
*-*-linux-gnu* )
1801 machine
=macppc opsys
=gnu-linux
1804 ## Masscomp machines
1805 m68
*-masscomp-rtu* )
1806 machine
=masscomp opsys
=rtu
1809 ## Megatest machines
1810 m68
*-megatest-bsd* )
1811 machine
=mega68 opsys
=bsd4-2
1814 ## Workstations sold by MIPS
1815 ## This is not necessarily all workstations using the MIPS processor -
1816 ## Irises are produced by SGI, and DECstations by DEC.
1818 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1819 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1820 ## it gives for choosing between the alternatives seems to be "Use
1821 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1822 ## the BSD world." I'll assume that these are instructions for
1823 ## handling two odd situations, and that every other situation
1824 ## should use mips.h and usg5-2-2, they being listed first.
1827 ## Fall through to the general code at the bottom to decide on the OS.
1829 mips-mips-riscos4
* )
1830 machine
=mips4 opsys
=bsd4-3
1831 NON_GNU_CC
="cc -systype bsd43"
1832 NON_GNU_CPP
="cc -systype bsd43 -E"
1834 mips-mips-riscos5
* )
1835 machine
=mips4 opsys
=riscos5
1836 NON_GNU_CC
="cc -systype bsd43"
1837 NON_GNU_CPP
="cc -systype bsd43 -E"
1840 machine
=mips opsys
=bsd4-3
1843 machine
=mips opsys
=usg5-2-2
1847 m68
*-next-* | m68k-
*-nextstep* )
1848 machine
=m68k opsys
=nextstep
1851 ## The complete machine from National Semiconductor
1853 machine
=ns32000 opsys
=usg5-2
1857 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1858 machine
=tower32 opsys
=usg5-2-2
1860 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1861 machine
=tower32v3 opsys
=usg5-3
1866 machine
=ews4800 opsys
=ux4800
1869 ## Nixdorf Targon 31
1870 m68
*-nixdorf-sysv* )
1871 machine
=targon31 opsys
=usg5-2-2
1876 machine
=nu opsys
=usg5-2
1881 machine
=plexus opsys
=usg5-2
1884 ## PowerPC reference platform
1885 powerpcle-
*-solaris2* )
1891 ## I don't really have any idea what sort of processor the Pyramid has,
1892 ## so I'm assuming it is its own architecture.
1893 pyramid-pyramid-bsd
* )
1894 machine
=pyramid opsys
=bsd4-2
1898 ns32k-sequent-bsd4.2
* )
1899 machine
=sequent opsys
=bsd4-2
1901 ns32k-sequent-bsd4.3
* )
1902 machine
=sequent opsys
=bsd4-3
1906 mips-siemens-sysv
* | mips-sni-sysv
*)
1907 machine
=mips-siemens opsys
=usg5-4
1908 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1909 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1912 ## Silicon Graphics machines
1913 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1915 machine
=irist opsys
=iris3-5
1917 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1918 machine
=irist opsys
=iris3-6
1922 machine
=iris4d opsys
=irix3-3
1925 machine
=iris4d opsys
=irix4-0
1928 machine
=iris4d opsys
=irix6-5
1929 # Without defining _LANGUAGE_C, things get masked out in the headers
1930 # so that, for instance, grepping for `free' in stdlib.h fails and
1931 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1932 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1933 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1936 machine
=iris4d opsys
=irix6-0
1937 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1938 # but presumably it does no harm.
1939 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1940 # -32 probably isn't necessary in later v.6s -- anyone know which?
1941 NON_GCC_TEST_OPTIONS
=-32
1943 mips-sgi-irix5.
[01]* )
1944 machine
=iris4d opsys
=irix5-0
1946 mips-sgi-irix5
* | mips-sgi-irix
* )
1947 machine
=iris4d opsys
=irix5-2
1952 machine
=news opsys
=bsd4-2
1955 machine
=news opsys
=bsd4-3
1957 m68
*-sony-newsos3* | m68
*-sony-news3*)
1958 machine
=news opsys
=bsd4-3
1960 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1961 machine
=news-risc opsys
=bsd4-3
1963 mips-sony-newsos6
* )
1964 machine
=news-r6 opsys
=newsos6
1967 machine
=news-risc opsys
=newsos5
1972 machine
=stride opsys
=usg5-2
1976 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1977 machine
=sparc opsys
=gnu-linux
1980 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1981 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1982 | rs6000-
*-solaris2*)
1983 case "${canonical}" in
1984 m68
*-sunos1* ) machine
=sun1
;;
1985 m68
*-sunos2* ) machine
=sun2
;;
1986 m68
* ) machine
=sun3
;;
1987 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1988 i
[3456]86-*-* ) machine
=intel386
;;
1989 powerpcle
* ) machine
=powerpcle
;;
1990 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1991 sparc
* ) machine
=sparc
;;
1994 case "${canonical}" in
1995 ## The Sun386 didn't get past 4.0.
1996 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1997 *-sunos4.0
* ) opsys
=sunos4-0
;;
1998 *-sunos4.1.
[3-9]*noshare
)
1999 ## This name is sunos413 instead of sunos4-1-3
2000 ## to avoid a file name conflict on MSDOS.
2002 NON_GNU_CPP
=/usr
/lib
/cpp
2003 NON_GCC_TEST_OPTIONS
=-Bstatic
2004 GCC_TEST_OPTIONS
=-static
2006 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2008 NON_GNU_CPP
=/usr
/lib
/cpp
2010 *-sunos4* |
*-sunos )
2012 NON_GCC_TEST_OPTIONS
=-Bstatic
2013 GCC_TEST_OPTIONS
=-static
2015 *-sunos5.3
* |
*-solaris2.3
* )
2017 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2019 *-sunos5.4
* |
*-solaris2.4
* )
2021 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2024 *-sunos5.5
* |
*-solaris2.5
* )
2026 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2029 *-sunos5* |
*-solaris* )
2031 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2035 ## Watch out for a compiler that we know will not work.
2036 case "${canonical}" in
2037 *-solaris* |
*-sunos5* )
2038 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2039 ## /usr/ucb/cc doesn't work;
2040 ## we should find some other compiler that does work.
2048 machine
=sparc opsys
=nextstep
2052 m68
*-tadpole-sysv* )
2053 machine
=tad68k opsys
=usg5-3
2057 tahoe-tahoe-bsd4.2
* )
2058 machine
=tahoe opsys
=bsd4-2
2060 tahoe-tahoe-bsd4.3
* )
2061 machine
=tahoe opsys
=bsd4-3
2064 ## Tandem Integrity S2
2066 machine
=tandem-s2 opsys
=usg5-3
2070 m88k-tektronix-sysv3
* )
2071 machine
=tekxd88 opsys
=usg5-3
2074 ## Tektronix 16000 box (6130?)
2075 ns16k-tektronix-bsd
* )
2076 machine
=ns16000 opsys
=bsd4-2
2079 ## src/m/tek4300.h hints that this is a m68k machine.
2080 m68
*-tektronix-bsd* )
2081 machine
=tek4300 opsys
=bsd4-3
2085 ## We seem to have lost the machine-description file titan.h!
2087 machine
=titan opsys
=usg5-3
2090 ## Ustation E30 (SS5E)
2091 m68
*-unisys-uniplus* )
2092 machine
=ustation opsystem
=unipl5-2
2098 case "${canonical}" in
2099 *-bsd4.1
* ) opsys
=bsd4-1
;;
2100 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2101 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2102 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2103 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2104 *-vms* ) opsys
=vms
;;
2110 ns16k-whitechapel-
* )
2112 ## We don't know what sort of OS runs on these; we'll let the
2113 ## operating system guessing code below try.
2118 machine
=wicat opsys
=usg5-2
2123 machine
=ia64 opsys
=gnu-linux
2126 ## Intel 386 machines where we don't care about the manufacturer
2129 case "${canonical}" in
2130 *-lynxos* ) opsys
=lynxos
;;
2131 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2132 *-isc2.2
* ) opsys
=isc2-2
;;
2133 *-isc4.0
* ) opsys
=isc4-0
;;
2134 *-isc4.
* ) opsys
=isc4-1
2135 GCC_TEST_OPTIONS
=-posix
2136 NON_GCC_TEST_OPTIONS
=-Xp
2138 *-isc* ) opsys
=isc3-0
;;
2139 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2140 *-esix* ) opsys
=esix
;;
2141 *-xenix* ) opsys
=xenix
;;
2142 *-linux-gnu* ) opsys
=gnu-linux
;;
2143 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2144 *-sco3.2v5
* ) opsys
=sco5
2145 NON_GNU_CPP
=/lib
/cpp
2146 # Prevent -belf from being passed to $CPP.
2147 # /lib/cpp does not accept it.
2148 OVERRIDE_CPPFLAGS
=" "
2150 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2151 *-386bsd* ) opsys
=386bsd
;;
2152 *-nextstep* ) opsys
=nextstep
;;
2153 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2157 ## m68k Linux-based GNU system
2159 machine
=m68k opsys
=gnu-linux
2162 ## Mips Linux-based GNU system
2164 machine
=mips opsys
=gnu-linux
2168 sparc-fujitsu-sysv4
* )
2169 machine
=sparc opsys
=uxpds
2170 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2175 f301-fujitsu-uxpv4.1
)
2176 machine
=f301 opsys
=uxpv
2184 ### If the code above didn't choose an operating system, just choose
2185 ### an operating system based on the configuration name. You really
2186 ### only want to use this when you have no idea what the right
2187 ### operating system is; if you know what operating systems a machine
2188 ### runs, it's cleaner to make it explicit in the case statement
2190 if test x
"${opsys}" = x
; then
2191 case "${canonical}" in
2192 *-gnu* ) opsys
=gnu
;;
2193 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2194 *-bsd4.2
) opsys
=bsd4-2
;;
2195 *-bsd4.3
) opsys
=bsd4-3
;;
2196 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2197 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2198 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2199 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2200 *-sysv4.2uw
* ) opsys
=unixware
;;
2201 *-sysv4.1
* |
*-sysvr4.1
* )
2202 NON_GNU_CPP
=/usr
/lib
/cpp
2204 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2205 if [ x
$NON_GNU_CPP = x
]; then
2206 if [ -f /usr
/ccs
/lib
/cpp
]; then
2207 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2209 NON_GNU_CPP
=/lib
/cpp
2213 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2220 if test $unported = yes; then
2221 { { echo "$as_me:2221: error: Emacs hasn't been ported to \`${canonical}' systems.
2222 Check \`etc/MACHINES' for recognized configuration names." >&5
2223 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2224 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2225 { (exit 1); exit 1; }; }
2228 machfile
="m/${machine}.h"
2229 opsysfile
="s/${opsys}.h"
2231 #### Choose a compiler.
2232 test -n "$CC" && cc_specified
=yes
2234 # Save the value of CFLAGS that the user specified.
2235 SPECIFIED_CFLAGS
="$CFLAGS"
2238 "yes" ) CC
="gcc" GCC
=yes ;;
2239 "no" ) : ${CC=cc} ;;
2243 ac_cpp
='$CPP $CPPFLAGS'
2244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2247 if test -n "$ac_tool_prefix"; then
2248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2249 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2250 echo "$as_me:2250: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC
="$CC" # Let the user override the test.
2258 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2260 for ac_dir
in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir
=.
2263 $as_executable_p "$ac_dir/$ac_word" ||
continue
2264 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2265 echo "$as_me:2265: found $ac_dir/$ac_word" >&5
2272 if test -n "$CC"; then
2273 echo "$as_me:2273: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2276 echo "$as_me:2276: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2281 if test -z "$ac_cv_prog_CC"; then
2283 # Extract the first word of "gcc", so it can be a program name with args.
2284 set dummy gcc
; ac_word
=$2
2285 echo "$as_me:2285: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2293 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2295 for ac_dir
in $ac_dummy; do
2297 test -z "$ac_dir" && ac_dir
=.
2298 $as_executable_p "$ac_dir/$ac_word" ||
continue
2299 ac_cv_prog_ac_ct_CC
="gcc"
2300 echo "$as_me:2300: found $ac_dir/$ac_word" >&5
2306 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 echo "$as_me:2308: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6
2311 echo "$as_me:2311: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2320 if test -z "$CC"; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2323 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2324 echo "$as_me:2324: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC
="$CC" # Let the user override the test.
2332 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2334 for ac_dir
in $ac_dummy; do
2336 test -z "$ac_dir" && ac_dir
=.
2337 $as_executable_p "$ac_dir/$ac_word" ||
continue
2338 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2339 echo "$as_me:2339: found $ac_dir/$ac_word" >&5
2346 if test -n "$CC"; then
2347 echo "$as_me:2347: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:2350: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2355 if test -z "$ac_cv_prog_CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc
; ac_word
=$2
2359 echo "$as_me:2359: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2367 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2369 for ac_dir
in $ac_dummy; do
2371 test -z "$ac_dir" && ac_dir
=.
2372 $as_executable_p "$ac_dir/$ac_word" ||
continue
2373 ac_cv_prog_ac_ct_CC
="cc"
2374 echo "$as_me:2374: found $ac_dir/$ac_word" >&5
2380 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 echo "$as_me:2382: result: $ac_ct_CC" >&5
2383 echo "${ECHO_T}$ac_ct_CC" >&6
2385 echo "$as_me:2385: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2395 if test -z "$CC"; then
2396 # Extract the first word of "cc", so it can be a program name with args.
2397 set dummy cc
; ac_word
=$2
2398 echo "$as_me:2398: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC
="$CC" # Let the user override the test.
2407 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2409 for ac_dir
in $ac_dummy; do
2411 test -z "$ac_dir" && ac_dir
=.
2412 $as_executable_p "$ac_dir/$ac_word" ||
continue
2413 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2414 ac_prog_rejected
=yes
2418 echo "$as_me:2418: found $ac_dir/$ac_word" >&5
2422 if test $ac_prog_rejected = yes; then
2423 # We found a bogon in the path, so make sure we never use it.
2424 set dummy
$ac_cv_prog_CC
2426 if test $# != 0; then
2427 # We chose a different compiler from the bogus one.
2428 # However, it has the same basename, so the bogon will be chosen
2429 # first if we set CC to just the basename; use the full file name.
2431 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2439 if test -n "$CC"; then
2440 echo "$as_me:2440: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6
2443 echo "$as_me:2443: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2454 echo "$as_me:2454: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC
="$CC" # Let the user override the test.
2462 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2464 for ac_dir
in $ac_dummy; do
2466 test -z "$ac_dir" && ac_dir
=.
2467 $as_executable_p "$ac_dir/$ac_word" ||
continue
2468 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2469 echo "$as_me:2469: found $ac_dir/$ac_word" >&5
2476 if test -n "$CC"; then
2477 echo "$as_me:2477: result: $CC" >&5
2478 echo "${ECHO_T}$CC" >&6
2480 echo "$as_me:2480: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2484 test -n "$CC" && break
2487 if test -z "$CC"; then
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy
$ac_prog; ac_word
=$2
2493 echo "$as_me:2493: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2501 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2503 for ac_dir
in $ac_dummy; do
2505 test -z "$ac_dir" && ac_dir
=.
2506 $as_executable_p "$ac_dir/$ac_word" ||
continue
2507 ac_cv_prog_ac_ct_CC
="$ac_prog"
2508 echo "$as_me:2508: found $ac_dir/$ac_word" >&5
2514 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2515 if test -n "$ac_ct_CC"; then
2516 echo "$as_me:2516: result: $ac_ct_CC" >&5
2517 echo "${ECHO_T}$ac_ct_CC" >&6
2519 echo "$as_me:2519: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2523 test -n "$ac_ct_CC" && break
2531 test -z "$CC" && { { echo "$as_me:2531: error: no acceptable cc found in \$PATH" >&5
2532 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2533 { (exit 1); exit 1; }; }
2535 # Provide some information about the compiler.
2536 echo "$as_me:2536:" \
2537 "checking for C compiler version" >&5
2538 ac_compiler
=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:2539: \"$ac_compiler --version </dev/null >&5\"") >&5
2540 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2542 echo "$as_me:2542: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (eval echo "$as_me:2544: \"$ac_compiler -v </dev/null >&5\"") >&5
2545 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2547 echo "$as_me:2547: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:2549: \"$ac_compiler -V </dev/null >&5\"") >&5
2550 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2555 cat >conftest.
$ac_ext <<_ACEOF
2556 #line 2556 "configure"
2557 #include "confdefs.h"
2567 ac_clean_files_save
=$ac_clean_files
2568 ac_clean_files
="$ac_clean_files a.out a.exe"
2569 # Try to create an executable without -o first, disregard a.out.
2570 # It will help us diagnose broken compilers, and finding out an intuition
2572 echo "$as_me:2572: checking for C compiler default output" >&5
2573 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2574 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2575 if { (eval echo "$as_me:2575: \"$ac_link_default\"") >&5
2576 (eval $ac_link_default) 2>&5
2578 echo "$as_me:2578: \$? = $ac_status" >&5
2579 (exit $ac_status); }; then
2580 # Find the output, starting from the most likely. This scheme is
2581 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2583 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2584 ls a.out conftest 2>/dev/null;
2585 ls a.* conftest.* 2>/dev/null`; do
2587 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2588 a.out
) # We found the default executable, but exeext='' is most
2591 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2601 { { echo "$as_me:2601: error: C compiler cannot create executables" >&5
2602 echo "$as_me: error: C compiler cannot create executables" >&2;}
2603 { (exit 77); exit 77; }; }
2606 ac_exeext
=$ac_cv_exeext
2607 echo "$as_me:2607: result: $ac_file" >&5
2608 echo "${ECHO_T}$ac_file" >&6
2610 # Check the compiler produces executables we can run. If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:2612: checking whether the C compiler works" >&5
2613 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2614 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2615 # If not cross compiling, check that we can run a simple program.
2616 if test "$cross_compiling" != yes; then
2617 if { ac_try
='./$ac_file'
2618 { (eval echo "$as_me:2618: \"$ac_try\"") >&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 if test "$cross_compiling" = maybe
; then
2628 { { echo "$as_me:2628: error: cannot run C compiled programs.
2629 If you meant to cross compile, use \`--host'." >&5
2630 echo "$as_me: error: cannot run C compiled programs.
2631 If you meant to cross compile, use \`--host'." >&2;}
2632 { (exit 1); exit 1; }; }
2636 echo "$as_me:2636: result: yes" >&5
2637 echo "${ECHO_T}yes" >&6
2639 rm -f a.out a.exe conftest
$ac_cv_exeext
2640 ac_clean_files
=$ac_clean_files_save
2641 # Check the compiler produces executables we can run. If not, either
2642 # the compiler is broken, or we cross compile.
2643 echo "$as_me:2643: checking whether we are cross compiling" >&5
2644 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2645 echo "$as_me:2645: result: $cross_compiling" >&5
2646 echo "${ECHO_T}$cross_compiling" >&6
2648 echo "$as_me:2648: checking for executable suffix" >&5
2649 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2650 if { (eval echo "$as_me:2650: \"$ac_link\"") >&5
2651 (eval $ac_link) 2>&5
2653 echo "$as_me:2653: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2657 # work properly (i.e., refer to `conftest.exe'), while it won't with
2659 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2661 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2662 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2669 { { echo "$as_me:2669: error: cannot compute EXEEXT: cannot compile and link" >&5
2670 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2671 { (exit 1); exit 1; }; }
2674 rm -f conftest
$ac_cv_exeext
2675 echo "$as_me:2675: result: $ac_cv_exeext" >&5
2676 echo "${ECHO_T}$ac_cv_exeext" >&6
2678 rm -f conftest.
$ac_ext
2679 EXEEXT
=$ac_cv_exeext
2681 echo "$as_me:2681: checking for object suffix" >&5
2682 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2683 if test "${ac_cv_objext+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.
$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2706 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2707 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2712 echo "$as_me: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2714 { { echo "$as_me:2714: error: cannot compute OBJEXT: cannot compile" >&5
2715 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2716 { (exit 1); exit 1; }; }
2719 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2721 echo "$as_me:2721: result: $ac_cv_objext" >&5
2722 echo "${ECHO_T}$ac_cv_objext" >&6
2723 OBJEXT
=$ac_cv_objext
2725 echo "$as_me:2725: checking whether we are using the GNU C compiler" >&5
2726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.
$ac_ext <<_ACEOF
2731 #line 2731 "configure"
2732 #include "confdefs.h"
2745 rm -f conftest.
$ac_objext
2746 if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try
='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:2752: \"$ac_try\"") >&5
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2763 rm -f conftest.
$ac_objext conftest.
$ac_ext
2764 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2767 echo "$as_me:2767: result: $ac_cv_c_compiler_gnu" >&5
2768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2770 ac_test_CFLAGS
=${CFLAGS+set}
2771 ac_save_CFLAGS
=$CFLAGS
2773 echo "$as_me:2773: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 cat >conftest.
$ac_ext <<_ACEOF
2779 #line 2779 "configure"
2780 #include "confdefs.h"
2790 rm -f conftest.
$ac_objext
2791 if { (eval echo "$as_me:2791: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2794 echo "$as_me:2794: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try
='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:2797: \"$ac_try\"") >&5
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2804 echo "$as_me: failed program was:" >&5
2805 cat conftest.
$ac_ext >&5
2808 rm -f conftest.
$ac_objext conftest.
$ac_ext
2810 echo "$as_me:2810: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS
=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 # Some people use a C++ compiler to compile C. Since we use `exit',
2828 # in C++ we need to declare it. In case someone uses the same compiler
2829 # for both compiling C and C++ we need to have the C++ compiler decide
2830 # the declaration of exit, since it's the most demanding environment.
2831 cat >conftest.
$ac_ext <<_ACEOF
2836 rm -f conftest.
$ac_objext
2837 if { (eval echo "$as_me:2837: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>&5
2840 echo "$as_me:2840: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try
='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:2843: \"$ac_try\"") >&5
2846 echo "$as_me:2846: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 for ac_declaration
in \
2850 '#include <stdlib.h>' \
2851 'extern "C" void std::exit (int) throw (); using std::exit;' \
2852 'extern "C" void std::exit (int); using std::exit;' \
2853 'extern "C" void exit (int) throw ();' \
2854 'extern "C" void exit (int);' \
2857 cat >conftest.
$ac_ext <<_ACEOF
2858 #line 2858 "configure"
2859 #include "confdefs.h"
2870 rm -f conftest.
$ac_objext
2871 if { (eval echo "$as_me:2871: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>&5
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try
='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:2877: \"$ac_try\"") >&5
2880 echo "$as_me:2880: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2884 echo "$as_me: failed program was:" >&5
2885 cat conftest.
$ac_ext >&5
2888 rm -f conftest.
$ac_objext conftest.
$ac_ext
2889 cat >conftest.
$ac_ext <<_ACEOF
2890 #line 2890 "configure"
2891 #include "confdefs.h"
2901 rm -f conftest.
$ac_objext
2902 if { (eval echo "$as_me:2902: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>&5
2905 echo "$as_me:2905: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try
='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:2908: \"$ac_try\"") >&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2915 echo "$as_me: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 rm -f conftest.
$ac_objext conftest.
$ac_ext
2921 if test -n "$ac_declaration"; then
2922 echo '#ifdef __cplusplus' >>confdefs.h
2923 echo $ac_declaration >>confdefs.h
2924 echo '#endif' >>confdefs.h
2928 echo "$as_me: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2931 rm -f conftest.
$ac_objext conftest.
$ac_ext
2933 ac_cpp
='$CPP $CPPFLAGS'
2934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2938 # On Suns, sometimes $CPP names a directory.
2939 if test -n "$CPP" && test -d "$CPP"; then
2943 #### Some systems specify a CPP 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_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2951 #### Some systems specify a CC to use unless we are using GCC.
2952 #### Now that we know whether we are using GCC, we can decide whether
2953 #### to use that one.
2954 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2955 test x
$cc_specified != xyes
2960 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2962 CC
="$CC $GCC_TEST_OPTIONS"
2965 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2967 CC
="$CC $NON_GCC_TEST_OPTIONS"
2970 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2972 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2975 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2977 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2980 #### Some other nice autoconf tests. If you add a test here which
2981 #### should make an entry in src/config.h, don't forget to add an
2982 #### #undef clause to src/config.h.in for autoconf to modify.
2984 echo "$as_me:2984: checking whether ln -s works" >&5
2985 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2987 if test "$LN_S" = "ln -s"; then
2988 echo "$as_me:2988: result: yes" >&5
2989 echo "${ECHO_T}yes" >&6
2991 echo "$as_me:2991: result: no, using $LN_S" >&5
2992 echo "${ECHO_T}no, using $LN_S" >&6
2996 ac_cpp
='$CPP $CPPFLAGS'
2997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3000 echo "$as_me:3000: checking how to run the C preprocessor" >&5
3001 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3002 # On Suns, sometimes $CPP names a directory.
3003 if test -n "$CPP" && test -d "$CPP"; then
3006 if test -z "$CPP"; then
3007 if test "${ac_cv_prog_CPP+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 # Double quotes because CPP needs to be expanded
3011 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3014 for ac_c_preproc_warn_flag
in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # On the NeXT, cc -E runs the code through the compiler's parser,
3019 # not just through cpp. "Syntax error" is here to catch this case.
3020 cat >conftest.
$ac_ext <<_ACEOF
3021 #line 3021 "configure"
3022 #include "confdefs.h"
3026 if { (eval echo "$as_me:3026: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3029 egrep -v '^ *\+' conftest.er1
>conftest.err
3031 cat conftest.err
>&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev
/null
; then
3034 if test -s conftest.err
; then
3035 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 if test -z "$ac_cpp_err"; then
3045 echo "$as_me: failed program was:" >&5
3046 cat conftest.
$ac_ext >&5
3047 # Broken: fails on valid input.
3050 rm -f conftest.err conftest.
$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.
$ac_ext <<_ACEOF
3055 #line 3055 "configure"
3056 #include "confdefs.h"
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:3059: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 egrep -v '^ *\+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:3065: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3075 if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3079 echo "$as_me: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3081 # Passes both tests.
3085 rm -f conftest.err conftest.
$ac_ext
3088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089 rm -f conftest.err conftest.
$ac_ext
3090 if $ac_preproc_ok; then
3102 echo "$as_me:3102: result: $CPP" >&5
3103 echo "${ECHO_T}$CPP" >&6
3105 for ac_c_preproc_warn_flag
in '' yes
3107 # Use a header file that comes with gcc, so configuring glibc
3108 # with a fresh cross-compiler works.
3109 # On the NeXT, cc -E runs the code through the compiler's parser,
3110 # not just through cpp. "Syntax error" is here to catch this case.
3111 cat >conftest.
$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3117 if { (eval echo "$as_me:3117: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3120 egrep -v '^ *\+' conftest.er1
>conftest.err
3122 cat conftest.err
>&5
3123 echo "$as_me:3123: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev
/null
; then
3125 if test -s conftest.err
; then
3126 ac_cpp_err
=$ac_c_preproc_warn_flag
3133 if test -z "$ac_cpp_err"; then
3136 echo "$as_me: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3138 # Broken: fails on valid input.
3141 rm -f conftest.err conftest.
$ac_ext
3143 # OK, works on sane cases. Now check whether non-existent headers
3144 # can be detected and how.
3145 cat >conftest.
$ac_ext <<_ACEOF
3146 #line 3146 "configure"
3147 #include "confdefs.h"
3148 #include <ac_nonexistent.h>
3150 if { (eval echo "$as_me:3150: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3153 egrep -v '^ *\+' conftest.er1
>conftest.err
3155 cat conftest.err
>&5
3156 echo "$as_me:3156: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev
/null
; then
3158 if test -s conftest.err
; then
3159 ac_cpp_err
=$ac_c_preproc_warn_flag
3166 if test -z "$ac_cpp_err"; then
3167 # Broken: success on invalid input.
3170 echo "$as_me: failed program was:" >&5
3171 cat conftest.
$ac_ext >&5
3172 # Passes both tests.
3176 rm -f conftest.err conftest.
$ac_ext
3179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3180 rm -f conftest.err conftest.
$ac_ext
3181 if $ac_preproc_ok; then
3184 { { echo "$as_me:3184: error: C preprocessor \"$CPP\" fails sanity check" >&5
3185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3186 { (exit 1); exit 1; }; }
3190 ac_cpp
='$CPP $CPPFLAGS'
3191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3195 # Find a good install program. We prefer a C program (faster),
3196 # so one script is as good as another. But avoid the broken or
3197 # incompatible versions:
3198 # SysV /etc/install, /usr/sbin/install
3199 # SunOS /usr/etc/install
3200 # IRIX /sbin/install
3202 # AmigaOS /C/install, which installs bootblocks on floppy discs
3203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3206 # ./install, which can be erroneously created by make from ./install.sh.
3207 echo "$as_me:3207: checking for a BSD compatible install" >&5
3208 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3214 for ac_dir
in $PATH; do
3216 # Account for people who put trailing slashes in PATH elements.
3218 / | .
/ | .
// |
/cC
/* \
3219 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3222 # OSF1 and SCO ODT 3.0 have their own names for install.
3223 # Don't use installbsd from OSF since it installs stuff as root
3225 for ac_prog
in ginstall scoinst
install; do
3226 if $as_executable_p "$ac_dir/$ac_prog"; then
3227 if test $ac_prog = install &&
3228 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3229 # AIX install. It has an incompatible calling convention.
3231 elif test $ac_prog = install &&
3232 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3233 # program-specific install script used by HP pwplus--don't use.
3236 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3246 if test "${ac_cv_path_install+set}" = set; then
3247 INSTALL
=$ac_cv_path_install
3249 # As a last resort, use the slow shell script. We don't cache a
3250 # path for INSTALL within a source directory, because that will
3251 # break other packages using the cache if that directory is
3252 # removed, or if the path is relative.
3253 INSTALL
=$ac_install_sh
3256 echo "$as_me:3256: result: $INSTALL" >&5
3257 echo "${ECHO_T}$INSTALL" >&6
3259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3260 # It thinks the first close brace ends the variable substitution.
3261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3265 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3267 for ac_prog
in 'bison -y' byacc
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy
$ac_prog; ac_word
=$2
3271 echo "$as_me:3271: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273 if test "${ac_cv_prog_YACC+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if test -n "$YACC"; then
3277 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3279 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3281 for ac_dir
in $ac_dummy; do
3283 test -z "$ac_dir" && ac_dir
=.
3284 $as_executable_p "$ac_dir/$ac_word" ||
continue
3285 ac_cv_prog_YACC
="$ac_prog"
3286 echo "$as_me:3286: found $ac_dir/$ac_word" >&5
3292 YACC
=$ac_cv_prog_YACC
3293 if test -n "$YACC"; then
3294 echo "$as_me:3294: result: $YACC" >&5
3295 echo "${ECHO_T}$YACC" >&6
3297 echo "$as_me:3297: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3301 test -n "$YACC" && break
3303 test -n "$YACC" || YACC
="yacc"
3305 if test "x$RANLIB" = x
; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3308 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3309 echo "$as_me:3309: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3311 if test "${ac_cv_prog_RANLIB+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if test -n "$RANLIB"; then
3315 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3317 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3319 for ac_dir
in $ac_dummy; do
3321 test -z "$ac_dir" && ac_dir
=.
3322 $as_executable_p "$ac_dir/$ac_word" ||
continue
3323 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3324 echo "$as_me:3324: found $ac_dir/$ac_word" >&5
3330 RANLIB
=$ac_cv_prog_RANLIB
3331 if test -n "$RANLIB"; then
3332 echo "$as_me:3332: result: $RANLIB" >&5
3333 echo "${ECHO_T}$RANLIB" >&6
3335 echo "$as_me:3335: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3340 if test -z "$ac_cv_prog_RANLIB"; then
3341 ac_ct_RANLIB
=$RANLIB
3342 # Extract the first word of "ranlib", so it can be a program name with args.
3343 set dummy ranlib
; ac_word
=$2
3344 echo "$as_me:3344: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$ac_ct_RANLIB"; then
3350 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3352 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3354 for ac_dir
in $ac_dummy; do
3356 test -z "$ac_dir" && ac_dir
=.
3357 $as_executable_p "$ac_dir/$ac_word" ||
continue
3358 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3359 echo "$as_me:3359: found $ac_dir/$ac_word" >&5
3363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3366 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3367 if test -n "$ac_ct_RANLIB"; then
3368 echo "$as_me:3368: result: $ac_ct_RANLIB" >&5
3369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3371 echo "$as_me:3371: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 RANLIB
=$ac_ct_RANLIB
3377 RANLIB
="$ac_cv_prog_RANLIB"
3382 echo "$as_me:3382: checking for AIX" >&5
3383 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3384 cat >conftest.
$ac_ext <<_ACEOF
3385 #line 3385 "configure"
3386 #include "confdefs.h"
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 egrep "yes" >/dev
/null
2>&1; then
3394 echo "$as_me:3394: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396 cat >>confdefs.h
<<\EOF
3397 #define _ALL_SOURCE 1
3401 echo "$as_me:3401: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3406 #### Extract some information from the operating system and machine files.
3408 { echo "$as_me:3408: checking the machine- and system-dependent files to find out
3409 - which libraries the lib-src programs will want, and
3410 - whether the GNU malloc routines are usable..." >&5
3411 echo "$as_me: checking the machine- and system-dependent files to find out
3412 - which libraries the lib-src programs will want, and
3413 - whether the GNU malloc routines are usable..." >&6;}
3415 ### First figure out CFLAGS (which we use for running the compiler here)
3416 ### and REAL_CFLAGS (which we use for real compilation).
3417 ### The two are the same except on a few systems, where they are made
3418 ### different to work around various lossages. For example,
3419 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3420 ### as implying static linking.
3422 ### If the CFLAGS env var is specified, we use that value
3423 ### instead of the default.
3425 ### It's not important that this name contain the PID; you can't run
3426 ### two configures in the same directory and have anything work
3428 tempcname
="conftest.c"
3431 #include "'${srcdir}'/src/'${opsysfile}'"
3432 #include "'${srcdir}'/src/'${machfile}'"
3433 #ifndef LIBS_MACHINE
3434 #define LIBS_MACHINE
3439 #ifndef C_SWITCH_SYSTEM
3440 #define C_SWITCH_SYSTEM
3442 #ifndef C_SWITCH_MACHINE
3443 #define C_SWITCH_MACHINE
3445 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3446 configure___ c_switch_system=C_SWITCH_SYSTEM
3447 configure___ c_switch_machine=C_SWITCH_MACHINE
3450 #define LIB_X11_LIB -lX11
3453 #ifndef LIBX11_MACHINE
3454 #define LIBX11_MACHINE
3457 #ifndef LIBX11_SYSTEM
3458 #define LIBX11_SYSTEM
3460 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3463 configure___ unexec=UNEXEC
3465 configure___ unexec=unexec.o
3468 #ifdef SYSTEM_MALLOC
3469 configure___ system_malloc=yes
3471 configure___ system_malloc=no
3474 #ifdef USE_MMAP_FOR_BUFFERS
3475 configure___ use_mmap_for_buffers=yes
3477 configure___ use_mmap_for_buffers=no
3480 #ifndef C_DEBUG_SWITCH
3481 #define C_DEBUG_SWITCH -g
3484 #ifndef C_OPTIMIZE_SWITCH
3486 #define C_OPTIMIZE_SWITCH -O2
3488 #define C_OPTIMIZE_SWITCH -O
3492 #ifndef LD_SWITCH_MACHINE
3493 #define LD_SWITCH_MACHINE
3496 #ifndef LD_SWITCH_SYSTEM
3497 #define LD_SWITCH_SYSTEM
3500 #ifndef LD_SWITCH_X_SITE_AUX
3501 #define LD_SWITCH_X_SITE_AUX
3504 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3505 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3507 #ifdef THIS_IS_CONFIGURE
3509 /* Get the CFLAGS for tests in configure. */
3511 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3513 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3516 #else /* not THIS_IS_CONFIGURE */
3518 /* Get the CFLAGS for real compilation. */
3520 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3522 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3525 #endif /* not THIS_IS_CONFIGURE */
3528 # The value of CPP is a quoted variable reference, so we need to do this
3529 # to get its actual value...
3530 CPP
=`eval "echo $CPP"`
3531 eval `${CPP} -Isrc ${tempcname} \
3532 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3533 if test "x$SPECIFIED_CFLAGS" = x
; then
3534 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3535 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3537 REAL_CFLAGS
="$CFLAGS"
3541 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3543 ### Make sure subsequent tests use flags consistent with the build flags.
3545 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3546 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3548 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3551 # Check whether --enable-largefile or --disable-largefile was given.
3552 if test "${enable_largefile+set}" = set; then
3553 enableval
="$enable_largefile"
3556 if test "$enable_largefile" != no
; then
3558 echo "$as_me:3558: checking for special C compiler options needed for large files" >&5
3559 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3560 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_cv_sys_largefile_CC
=no
3564 if test "$GCC" != yes; then
3567 # IRIX 6.2 and later do not support large files by default,
3568 # so use the C compiler's -n32 option if that helps.
3569 cat >conftest.
$ac_ext <<_ACEOF
3570 #line 3570 "configure"
3571 #include "confdefs.h"
3572 #include <sys/types.h>
3573 /* Check that off_t can represent 2**63 - 1 correctly.
3574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3575 since some C++ compilers masquerading as C compilers
3576 incorrectly reject 9223372036854775807. */
3577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3579 && LARGE_OFF_T % 2147483647 == 1)
3589 rm -f conftest.
$ac_objext
3590 if { (eval echo "$as_me:3590: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>&5
3593 echo "$as_me:3593: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try
='test -s conftest.$ac_objext'
3596 { (eval echo "$as_me:3596: \"$ac_try\"") >&5
3599 echo "$as_me:3599: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
3603 echo "$as_me: failed program was:" >&5
3604 cat conftest.
$ac_ext >&5
3606 rm -f conftest.
$ac_objext
3608 rm -f conftest.
$ac_objext
3609 if { (eval echo "$as_me:3609: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>&5
3612 echo "$as_me:3612: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try
='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:3615: \"$ac_try\"") >&5
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_sys_largefile_CC
=' -n32'; break
3622 echo "$as_me: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3625 rm -f conftest.
$ac_objext
3629 rm -f conftest.
$ac_ext
3632 echo "$as_me:3632: result: $ac_cv_sys_largefile_CC" >&5
3633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3634 if test "$ac_cv_sys_largefile_CC" != no
; then
3635 CC
=$CC$ac_cv_sys_largefile_CC
3638 echo "$as_me:3638: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 ac_cv_sys_file_offset_bits
=no
3645 cat >conftest.
$ac_ext <<_ACEOF
3646 #line 3646 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3649 /* Check that off_t can represent 2**63 - 1 correctly.
3650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3651 since some C++ compilers masquerading as C compilers
3652 incorrectly reject 9223372036854775807. */
3653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3655 && LARGE_OFF_T % 2147483647 == 1)
3665 rm -f conftest.
$ac_objext
3666 if { (eval echo "$as_me:3666: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>&5
3669 echo "$as_me:3669: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try
='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:3672: \"$ac_try\"") >&5
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3679 echo "$as_me: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 rm -f conftest.
$ac_objext conftest.
$ac_ext
3683 cat >conftest.
$ac_ext <<_ACEOF
3684 #line 3684 "configure"
3685 #include "confdefs.h"
3686 #define _FILE_OFFSET_BITS 64
3687 #include <sys/types.h>
3688 /* Check that off_t can represent 2**63 - 1 correctly.
3689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3690 since some C++ compilers masquerading as C compilers
3691 incorrectly reject 9223372036854775807. */
3692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3694 && LARGE_OFF_T % 2147483647 == 1)
3704 rm -f conftest.
$ac_objext
3705 if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try
='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_sys_file_offset_bits
=64; break
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3721 rm -f conftest.
$ac_objext conftest.
$ac_ext
3725 echo "$as_me:3725: result: $ac_cv_sys_file_offset_bits" >&5
3726 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3727 if test "$ac_cv_sys_file_offset_bits" != no
; then
3729 cat >>confdefs.h
<<EOF
3730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3735 echo "$as_me:3735: checking for _LARGE_FILES value needed for large files" >&5
3736 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3737 if test "${ac_cv_sys_large_files+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 ac_cv_sys_large_files
=no
3742 cat >conftest.
$ac_ext <<_ACEOF
3743 #line 3743 "configure"
3744 #include "confdefs.h"
3745 #include <sys/types.h>
3746 /* Check that off_t can represent 2**63 - 1 correctly.
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3748 since some C++ compilers masquerading as C compilers
3749 incorrectly reject 9223372036854775807. */
3750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3752 && LARGE_OFF_T % 2147483647 == 1)
3762 rm -f conftest.
$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try
='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3779 rm -f conftest.
$ac_objext conftest.
$ac_ext
3780 cat >conftest.
$ac_ext <<_ACEOF
3781 #line 3781 "configure"
3782 #include "confdefs.h"
3783 #define _LARGE_FILES 1
3784 #include <sys/types.h>
3785 /* Check that off_t can represent 2**63 - 1 correctly.
3786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3787 since some C++ compilers masquerading as C compilers
3788 incorrectly reject 9223372036854775807. */
3789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3791 && LARGE_OFF_T % 2147483647 == 1)
3801 rm -f conftest.
$ac_objext
3802 if { (eval echo "$as_me:3802: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>&5
3805 echo "$as_me:3805: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try
='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_sys_large_files
=1; break
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.
$ac_ext >&5
3818 rm -f conftest.
$ac_objext conftest.
$ac_ext
3822 echo "$as_me:3822: result: $ac_cv_sys_large_files" >&5
3823 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3824 if test "$ac_cv_sys_large_files" != no
; then
3826 cat >>confdefs.h
<<EOF
3827 #define _LARGE_FILES $ac_cv_sys_large_files
3834 # Sound support for GNU/Linux and the free BSDs.
3836 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3839 echo "$as_me:3839: checking for $ac_header" >&5
3840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 cat >conftest.
$ac_ext <<_ACEOF
3845 #line 3845 "configure"
3846 #include "confdefs.h"
3847 #include <$ac_header>
3849 if { (eval echo "$as_me:3849: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3852 egrep -v '^ *\+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:3855: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev
/null
; then
3857 if test -s conftest.err
; then
3858 ac_cpp_err
=$ac_c_preproc_warn_flag
3865 if test -z "$ac_cpp_err"; then
3866 eval "$as_ac_Header=yes"
3868 echo "$as_me: failed program was:" >&5
3869 cat conftest.
$ac_ext >&5
3870 eval "$as_ac_Header=no"
3872 rm -f conftest.err conftest.
$ac_ext
3874 echo "$as_me:3874: result: `eval echo '${'$as_ac_Header'}'`" >&5
3875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877 cat >>confdefs.h
<<EOF
3878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884 # Emulation library used on NetBSD.
3885 echo "$as_me:3885: checking for _oss_ioctl in -lossaudio" >&5
3886 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3887 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_check_lib_save_LIBS
=$LIBS
3891 LIBS
="-lossaudio $LIBS"
3892 cat >conftest.
$ac_ext <<_ACEOF
3893 #line 3893 "configure"
3894 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3911 rm -f conftest.
$ac_objext conftest
$ac_exeext
3912 if { (eval echo "$as_me:3912: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3915 echo "$as_me:3915: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try
='test -s conftest$ac_exeext'
3918 { (eval echo "$as_me:3918: \"$ac_try\"") >&5
3921 echo "$as_me:3921: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_lib_ossaudio__oss_ioctl
=yes
3925 echo "$as_me: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3927 ac_cv_lib_ossaudio__oss_ioctl
=no
3929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3930 LIBS
=$ac_check_lib_save_LIBS
3932 echo "$as_me:3932: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3933 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3934 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3940 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3941 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3942 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
3944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3945 echo "$as_me:3945: checking for $ac_header" >&5
3946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 cat >conftest.
$ac_ext <<_ACEOF
3951 #line 3951 "configure"
3952 #include "confdefs.h"
3953 #include <$ac_header>
3955 if { (eval echo "$as_me:3955: \"$ac_cpp conftest.$ac_ext\"") >&5
3956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3958 egrep -v '^ *\+' conftest.er1
>conftest.err
3960 cat conftest.err
>&5
3961 echo "$as_me:3961: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev
/null
; then
3963 if test -s conftest.err
; then
3964 ac_cpp_err
=$ac_c_preproc_warn_flag
3971 if test -z "$ac_cpp_err"; then
3972 eval "$as_ac_Header=yes"
3974 echo "$as_me: failed program was:" >&5
3975 cat conftest.
$ac_ext >&5
3976 eval "$as_ac_Header=no"
3978 rm -f conftest.err conftest.
$ac_ext
3980 echo "$as_me:3980: result: `eval echo '${'$as_ac_Header'}'`" >&5
3981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3983 cat >>confdefs.h
<<EOF
3984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990 echo "$as_me:3990: checking for ANSI C header files" >&5
3991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3992 if test "${ac_cv_header_stdc+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 cat >conftest.
$ac_ext <<_ACEOF
3996 #line 3996 "configure"
3997 #include "confdefs.h"
4004 if { (eval echo "$as_me:4004: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4007 egrep -v '^ *\+' conftest.er1
>conftest.err
4009 cat conftest.err
>&5
4010 echo "$as_me:4010: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev
/null
; then
4012 if test -s conftest.err
; then
4013 ac_cpp_err
=$ac_c_preproc_warn_flag
4020 if test -z "$ac_cpp_err"; then
4021 ac_cv_header_stdc
=yes
4023 echo "$as_me: failed program was:" >&5
4024 cat conftest.
$ac_ext >&5
4025 ac_cv_header_stdc
=no
4027 rm -f conftest.err conftest.
$ac_ext
4029 if test $ac_cv_header_stdc = yes; then
4030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4031 cat >conftest.
$ac_ext <<_ACEOF
4032 #line 4032 "configure"
4033 #include "confdefs.h"
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 egrep "memchr" >/dev
/null
2>&1; then
4041 ac_cv_header_stdc
=no
4047 if test $ac_cv_header_stdc = yes; then
4048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4049 cat >conftest.
$ac_ext <<_ACEOF
4050 #line 4050 "configure"
4051 #include "confdefs.h"
4055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4056 egrep "free" >/dev
/null
2>&1; then
4059 ac_cv_header_stdc
=no
4065 if test $ac_cv_header_stdc = yes; then
4066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4067 if test "$cross_compiling" = yes; then
4070 cat >conftest.
$ac_ext <<_ACEOF
4071 #line 4071 "configure"
4072 #include "confdefs.h"
4074 #if ((' ' & 0x0FF) == 0x020)
4075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4078 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4079 || ('j' <= (c) && (c) <= 'r') \
4080 || ('s' <= (c) && (c) <= 'z'))
4081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4089 for (i = 0; i < 256; i++)
4090 if (XOR (islower (i), ISLOWER (i))
4091 || toupper (i) != TOUPPER (i))
4096 rm -f conftest
$ac_exeext
4097 if { (eval echo "$as_me:4097: \"$ac_link\"") >&5
4098 (eval $ac_link) 2>&5
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4102 { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4109 echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 cat conftest.
$ac_ext >&5
4112 ac_cv_header_stdc
=no
4114 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4118 echo "$as_me:4118: result: $ac_cv_header_stdc" >&5
4119 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4120 if test $ac_cv_header_stdc = yes; then
4122 cat >>confdefs.h
<<\EOF
4123 #define STDC_HEADERS 1
4128 echo "$as_me:4128: checking whether time.h and sys/time.h may both be included" >&5
4129 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4130 if test "${ac_cv_header_time+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 cat >conftest.
$ac_ext <<_ACEOF
4134 #line 4134 "configure"
4135 #include "confdefs.h"
4136 #include <sys/types.h>
4137 #include <sys/time.h>
4143 if ((struct tm *) 0)
4149 rm -f conftest.
$ac_objext
4150 if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:4153: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try
='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:4156: \"$ac_try\"") >&5
4159 echo "$as_me:4159: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_header_time
=yes
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.
$ac_ext >&5
4165 ac_cv_header_time
=no
4167 rm -f conftest.
$ac_objext conftest.
$ac_ext
4169 echo "$as_me:4169: result: $ac_cv_header_time" >&5
4170 echo "${ECHO_T}$ac_cv_header_time" >&6
4171 if test $ac_cv_header_time = yes; then
4173 cat >>confdefs.h
<<\EOF
4174 #define TIME_WITH_SYS_TIME 1
4179 echo "$as_me:4179: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4180 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4181 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 cat >conftest.
$ac_ext <<_ACEOF
4185 #line 4185 "configure"
4186 #include "confdefs.h"
4187 #include <sys/types.h>
4189 /* NetBSD declares sys_siglist in unistd.h. */
4191 # include <unistd.h>
4197 char *msg = *(sys_siglist + 1);
4202 rm -f conftest.
$ac_objext
4203 if { (eval echo "$as_me:4203: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>&5
4206 echo "$as_me:4206: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try
='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:4209: \"$ac_try\"") >&5
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_decl_sys_siglist
=yes
4216 echo "$as_me: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4218 ac_cv_decl_sys_siglist
=no
4220 rm -f conftest.
$ac_objext conftest.
$ac_ext
4222 echo "$as_me:4222: result: $ac_cv_decl_sys_siglist" >&5
4223 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4224 if test $ac_cv_decl_sys_siglist = yes; then
4226 cat >>confdefs.h
<<\EOF
4227 #define SYS_SIGLIST_DECLARED 1
4232 echo "$as_me:4232: checking for sys/wait.h that is POSIX.1 compatible" >&5
4233 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4234 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 cat >conftest.
$ac_ext <<_ACEOF
4238 #line 4238 "configure"
4239 #include "confdefs.h"
4240 #include <sys/types.h>
4241 #include <sys/wait.h>
4243 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4246 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4254 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4259 rm -f conftest.
$ac_objext
4260 if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4263 echo "$as_me:4263: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try
='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:4266: \"$ac_try\"") >&5
4269 echo "$as_me:4269: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_header_sys_wait_h
=yes
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4275 ac_cv_header_sys_wait_h
=no
4277 rm -f conftest.
$ac_objext conftest.
$ac_ext
4279 echo "$as_me:4279: result: $ac_cv_header_sys_wait_h" >&5
4280 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4281 if test $ac_cv_header_sys_wait_h = yes; then
4283 cat >>confdefs.h
<<\EOF
4284 #define HAVE_SYS_WAIT_H 1
4289 echo "$as_me:4289: checking for struct utimbuf" >&5
4290 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4291 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.
$ac_ext <<_ACEOF
4295 #line 4295 "configure"
4296 #include "confdefs.h"
4297 #ifdef TIME_WITH_SYS_TIME
4298 #include <sys/time.h>
4301 #ifdef HAVE_SYS_TIME_H
4302 #include <sys/time.h>
4313 static struct utimbuf x; x.actime = x.modtime;
4318 rm -f conftest.
$ac_objext
4319 if { (eval echo "$as_me:4319: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4322 echo "$as_me:4322: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try
='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:4325: \"$ac_try\"") >&5
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 emacs_cv_struct_utimbuf
=yes
4332 echo "$as_me: failed program was:" >&5
4333 cat conftest.
$ac_ext >&5
4334 emacs_cv_struct_utimbuf
=no
4336 rm -f conftest.
$ac_objext conftest.
$ac_ext
4338 echo "$as_me:4338: result: $emacs_cv_struct_utimbuf" >&5
4339 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4340 if test $emacs_cv_struct_utimbuf = yes; then
4341 cat >>confdefs.h
<<\EOF
4342 #define HAVE_STRUCT_UTIMBUF 1
4347 echo "$as_me:4347: checking return type of signal handlers" >&5
4348 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4349 if test "${ac_cv_type_signal+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 cat >conftest.
$ac_ext <<_ACEOF
4353 #line 4353 "configure"
4354 #include "confdefs.h"
4355 #include <sys/types.h>
4361 extern "C" void (*signal (int, void (*)(int)))(int);
4363 void (*signal ()) ();
4374 rm -f conftest.
$ac_objext
4375 if { (eval echo "$as_me:4375: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4378 echo "$as_me:4378: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try
='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:4381: \"$ac_try\"") >&5
4384 echo "$as_me:4384: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_type_signal
=void
4388 echo "$as_me: failed program was:" >&5
4389 cat conftest.
$ac_ext >&5
4390 ac_cv_type_signal
=int
4392 rm -f conftest.
$ac_objext conftest.
$ac_ext
4394 echo "$as_me:4394: result: $ac_cv_type_signal" >&5
4395 echo "${ECHO_T}$ac_cv_type_signal" >&6
4397 cat >>confdefs.h
<<EOF
4398 #define RETSIGTYPE $ac_cv_type_signal
4401 echo "$as_me:4401: checking for speed_t" >&5
4402 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4403 if test "${emacs_cv_speed_t+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 cat >conftest.
$ac_ext <<_ACEOF
4407 #line 4407 "configure"
4408 #include "confdefs.h"
4409 #include <termios.h>
4418 rm -f conftest.
$ac_objext
4419 if { (eval echo "$as_me:4419: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4422 echo "$as_me:4422: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try
='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:4425: \"$ac_try\"") >&5
4428 echo "$as_me:4428: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 emacs_cv_speed_t
=yes
4432 echo "$as_me: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4436 rm -f conftest.
$ac_objext conftest.
$ac_ext
4438 echo "$as_me:4438: result: $emacs_cv_speed_t" >&5
4439 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4440 if test $emacs_cv_speed_t = yes; then
4441 cat >>confdefs.h
<<\EOF
4442 #define HAVE_SPEED_T 1
4447 echo "$as_me:4447: checking for struct timeval" >&5
4448 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4449 if test "${emacs_cv_struct_timeval+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 cat >conftest.
$ac_ext <<_ACEOF
4453 #line 4453 "configure"
4454 #include "confdefs.h"
4455 #ifdef TIME_WITH_SYS_TIME
4456 #include <sys/time.h>
4459 #ifdef HAVE_SYS_TIME_H
4460 #include <sys/time.h>
4468 static struct timeval x; x.tv_sec = x.tv_usec;
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:4474: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4477 echo "$as_me:4477: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try
='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:4480: \"$ac_try\"") >&5
4483 echo "$as_me:4483: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 emacs_cv_struct_timeval
=yes
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4489 emacs_cv_struct_timeval
=no
4491 rm -f conftest.
$ac_objext conftest.
$ac_ext
4493 echo "$as_me:4493: result: $emacs_cv_struct_timeval" >&5
4494 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4495 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4496 if test $emacs_cv_struct_timeval = yes; then
4497 cat >>confdefs.h
<<\EOF
4498 #define HAVE_TIMEVAL 1
4503 echo "$as_me:4503: checking for struct exception" >&5
4504 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4505 if test "${emacs_cv_struct_exception+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cat >conftest.
$ac_ext <<_ACEOF
4509 #line 4509 "configure"
4510 #include "confdefs.h"
4515 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4520 rm -f conftest.
$ac_objext
4521 if { (eval echo "$as_me:4521: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4524 echo "$as_me:4524: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try
='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:4527: \"$ac_try\"") >&5
4530 echo "$as_me:4530: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 emacs_cv_struct_exception
=yes
4534 echo "$as_me: failed program was:" >&5
4535 cat conftest.
$ac_ext >&5
4536 emacs_cv_struct_exception
=no
4538 rm -f conftest.
$ac_objext conftest.
$ac_ext
4540 echo "$as_me:4540: result: $emacs_cv_struct_exception" >&5
4541 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4542 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4543 if test $emacs_cv_struct_exception != yes; then
4544 cat >>confdefs.h
<<\EOF
4545 #define NO_MATHERR 1
4550 echo "$as_me:4550: checking whether struct tm is in sys/time.h or time.h" >&5
4551 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4552 if test "${ac_cv_struct_tm+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 cat >conftest.
$ac_ext <<_ACEOF
4556 #line 4556 "configure"
4557 #include "confdefs.h"
4558 #include <sys/types.h>
4564 struct tm *tp; tp->tm_sec;
4569 rm -f conftest.
$ac_objext
4570 if { (eval echo "$as_me:4570: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4573 echo "$as_me:4573: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:4576: \"$ac_try\"") >&5
4579 echo "$as_me:4579: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_struct_tm
=time.h
4583 echo "$as_me: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4585 ac_cv_struct_tm
=sys
/time.h
4587 rm -f conftest.
$ac_objext conftest.
$ac_ext
4589 echo "$as_me:4589: result: $ac_cv_struct_tm" >&5
4590 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4591 if test $ac_cv_struct_tm = sys
/time.h
; then
4593 cat >>confdefs.h
<<\EOF
4594 #define TM_IN_SYS_TIME 1
4599 echo "$as_me:4599: checking for struct tm.tm_zone" >&5
4600 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4601 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 cat >conftest.
$ac_ext <<_ACEOF
4605 #line 4605 "configure"
4606 #include "confdefs.h"
4607 #include <sys/types.h>
4608 #include <$ac_cv_struct_tm>
4613 static struct tm ac_aggr;
4614 if (ac_aggr.tm_zone)
4620 rm -f conftest.
$ac_objext
4621 if { (eval echo "$as_me:4621: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>&5
4624 echo "$as_me:4624: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try
='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:4627: \"$ac_try\"") >&5
4630 echo "$as_me:4630: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_cv_member_struct_tm_tm_zone
=yes
4634 echo "$as_me: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4636 ac_cv_member_struct_tm_tm_zone
=no
4638 rm -f conftest.
$ac_objext conftest.
$ac_ext
4640 echo "$as_me:4640: result: $ac_cv_member_struct_tm_tm_zone" >&5
4641 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4642 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4644 cat >>confdefs.h
<<EOF
4645 #define HAVE_STRUCT_TM_TM_ZONE 1
4650 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4652 cat >>confdefs.h
<<\EOF
4653 #define HAVE_TM_ZONE 1
4657 echo "$as_me:4657: checking for tzname" >&5
4658 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4659 if test "${ac_cv_var_tzname+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cat >conftest.
$ac_ext <<_ACEOF
4663 #line 4663 "configure"
4664 #include "confdefs.h"
4666 #ifndef tzname /* For SGI. */
4667 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4678 rm -f conftest.
$ac_objext conftest
$ac_exeext
4679 if { (eval echo "$as_me:4679: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4682 echo "$as_me:4682: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try
='test -s conftest$ac_exeext'
4685 { (eval echo "$as_me:4685: \"$ac_try\"") >&5
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_var_tzname
=yes
4692 echo "$as_me: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4696 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4698 echo "$as_me:4698: result: $ac_cv_var_tzname" >&5
4699 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4700 if test $ac_cv_var_tzname = yes; then
4702 cat >>confdefs.h
<<\EOF
4703 #define HAVE_TZNAME 1
4709 echo "$as_me:4709: checking for tm_gmtoff in struct tm" >&5
4710 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4711 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.
$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4721 struct tm t; t.tm_gmtoff = 0
4726 rm -f conftest.
$ac_objext conftest
$ac_exeext
4727 if { (eval echo "$as_me:4727: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4730 echo "$as_me:4730: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try
='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:4733: \"$ac_try\"") >&5
4736 echo "$as_me:4736: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 emacs_cv_tm_gmtoff
=yes
4740 echo "$as_me: failed program was:" >&5
4741 cat conftest.
$ac_ext >&5
4742 emacs_cv_tm_gmtoff
=no
4744 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4746 echo "$as_me:4746: result: $emacs_cv_tm_gmtoff" >&5
4747 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4748 if test $emacs_cv_tm_gmtoff = yes; then
4749 cat >>confdefs.h
<<\EOF
4750 #define HAVE_TM_GMTOFF 1
4755 echo "$as_me:4755: checking for $CC option to accept ANSI C" >&5
4756 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4757 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 ac_cv_prog_cc_stdc
=no
4762 cat >conftest.
$ac_ext <<_ACEOF
4763 #line 4763 "configure"
4764 #include "confdefs.h"
4767 #include <sys/types.h>
4768 #include <sys/stat.h>
4769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4770 struct buf { int x; };
4771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4772 static char *e (p, i)
4778 static char *f (char * (*g) (char **, int), char **p, ...)
4783 s = g (p, va_arg (v,int));
4787 int test (int i, double x);
4788 struct s1 {int (*f) (int a);};
4789 struct s2 {int (*f) (double a);};
4790 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4796 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4801 # Don't try gcc -ansi; that turns off useful extensions and
4802 # breaks some systems' header files.
4803 # AIX -qlanglvl=ansi
4804 # Ultrix and OSF/1 -std1
4805 # HP-UX 10.20 and later -Ae
4806 # HP-UX older versions -Aa -D_HPUX_SOURCE
4807 # SVR4 -Xc -D__EXTENSIONS__
4808 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4810 CC
="$ac_save_CC $ac_arg"
4811 rm -f conftest.
$ac_objext
4812 if { (eval echo "$as_me:4812: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>&5
4815 echo "$as_me:4815: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try
='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:4818: \"$ac_try\"") >&5
4821 echo "$as_me:4821: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_prog_cc_stdc
=$ac_arg
4826 echo "$as_me: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 rm -f conftest.
$ac_objext
4831 rm -f conftest.
$ac_ext conftest.
$ac_objext
4836 case "x$ac_cv_prog_cc_stdc" in
4838 echo "$as_me:4838: result: none needed" >&5
4839 echo "${ECHO_T}none needed" >&6 ;;
4841 echo "$as_me:4841: result: $ac_cv_prog_cc_stdc" >&5
4842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4843 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4846 echo "$as_me:4846: checking for function prototypes" >&5
4847 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4848 if test "$ac_cv_prog_cc_stdc" != no
; then
4849 echo "$as_me:4849: result: yes" >&5
4850 echo "${ECHO_T}yes" >&6
4852 cat >>confdefs.h
<<\EOF
4853 #define PROTOTYPES 1
4857 echo "$as_me:4857: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4861 echo "$as_me:4861: checking for working volatile" >&5
4862 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4863 if test "${ac_cv_c_volatile+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.
$ac_ext <<_ACEOF
4867 #line 4867 "configure"
4868 #include "confdefs.h"
4880 rm -f conftest.
$ac_objext
4881 if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try
='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_c_volatile
=yes
4894 echo "$as_me: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4898 rm -f conftest.
$ac_objext conftest.
$ac_ext
4900 echo "$as_me:4900: result: $ac_cv_c_volatile" >&5
4901 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4902 if test $ac_cv_c_volatile = no
; then
4904 cat >>confdefs.h
<<\EOF
4910 echo "$as_me:4910: checking for an ANSI C-conforming const" >&5
4911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4912 if test "${ac_cv_c_const+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 cat >conftest.
$ac_ext <<_ACEOF
4916 #line 4916 "configure"
4917 #include "confdefs.h"
4922 /* FIXME: Include the comments suggested by Paul. */
4924 /* Ultrix mips cc rejects this. */
4925 typedef int charset[2];
4927 /* SunOS 4.1.1 cc rejects this. */
4928 char const *const *ccp;
4930 /* NEC SVR4.0.2 mips cc rejects this. */
4931 struct point {int x, y;};
4932 static struct point const zero = {0,0};
4933 /* AIX XL C 1.02.0.0 rejects this.
4934 It does not let you subtract one const X* pointer from another in
4935 an arm of an if-expression whose if-part is not a constant
4937 const char *g = "string";
4938 ccp = &g + (g ? g-g : 0);
4939 /* HPUX 7.0 cc rejects these. */
4942 ccp = (char const *const *) p;
4943 { /* SCO 3.2v4 cc rejects this. */
4945 char const *s = 0 ? (char *) 0 : (char const *) 0;
4949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4951 const int *foo = &x[0];
4954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4955 typedef const int *iptr;
4959 { /* AIX XL C 1.02.0.0 rejects this saying
4960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4961 struct s { int j; const int *ap[3]; };
4962 struct s *b; b->j = 5;
4964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4973 rm -f conftest.
$ac_objext
4974 if { (eval echo "$as_me:4974: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4977 echo "$as_me:4977: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try
='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:4980: \"$ac_try\"") >&5
4983 echo "$as_me:4983: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4987 echo "$as_me: failed program was:" >&5
4988 cat conftest.
$ac_ext >&5
4991 rm -f conftest.
$ac_objext conftest.
$ac_ext
4993 echo "$as_me:4993: result: $ac_cv_c_const" >&5
4994 echo "${ECHO_T}$ac_cv_c_const" >&6
4995 if test $ac_cv_c_const = no
; then
4997 cat >>confdefs.h
<<\EOF
5003 echo "$as_me:5003: checking for void * support" >&5
5004 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5005 if test "${emacs_cv_void_star+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 cat >conftest.
$ac_ext <<_ACEOF
5009 #line 5009 "configure"
5010 #include "confdefs.h"
5020 rm -f conftest.
$ac_objext
5021 if { (eval echo "$as_me:5021: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>&5
5024 echo "$as_me:5024: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try
='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:5027: \"$ac_try\"") >&5
5030 echo "$as_me:5030: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 emacs_cv_void_star
=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5036 emacs_cv_void_star
=no
5038 rm -f conftest.
$ac_objext conftest.
$ac_ext
5040 echo "$as_me:5040: result: $emacs_cv_void_star" >&5
5041 echo "${ECHO_T}$emacs_cv_void_star" >&6
5042 if test $emacs_cv_void_star = yes; then
5043 cat >>confdefs.h
<<\EOF
5044 #define POINTER_TYPE void
5048 cat >>confdefs.h
<<\EOF
5049 #define POINTER_TYPE char
5054 echo "$as_me:5054: checking whether ${MAKE-make} sets \${MAKE}" >&5
5055 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5056 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5057 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 cat >conftest.
make <<\EOF
5062 @
echo 'ac_maketemp="${MAKE}"'
5064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5065 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5066 if test -n "$ac_maketemp"; then
5067 eval ac_cv_prog_make_
${ac_make}_set
=yes
5069 eval ac_cv_prog_make_
${ac_make}_set
=no
5073 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5074 echo "$as_me:5074: result: yes" >&5
5075 echo "${ECHO_T}yes" >&6
5078 echo "$as_me:5078: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5080 SET_MAKE
="MAKE=${MAKE-make}"
5083 echo "$as_me:5083: checking for long file names" >&5
5084 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5085 if test "${ac_cv_sys_long_file_names+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 ac_cv_sys_long_file_names
=yes
5089 # Test for long file names in all the places we know might matter:
5090 # . the current directory, where building will happen
5091 # $prefix/lib where we will be installing things
5092 # $exec_prefix/lib likewise
5093 # eval it to expand exec_prefix.
5094 # $TMPDIR if set, where it might want to write temporary files
5095 # if $TMPDIR is not set:
5096 # /tmp where it might want to write temporary files
5099 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5102 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5104 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5105 test -d $ac_dir ||
continue
5106 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5107 ac_xdir
=$ac_dir/cf$$
5108 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5109 ac_tf1
=$ac_xdir/conftest9012345
5110 ac_tf2
=$ac_xdir/conftest9012346
5111 (echo 1 >$ac_tf1) 2>/dev
/null
5112 (echo 2 >$ac_tf2) 2>/dev
/null
5113 ac_val
=`cat $ac_tf1 2>/dev/null`
5114 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5115 ac_cv_sys_long_file_names
=no
5116 rm -rf $ac_xdir 2>/dev
/null
5119 rm -rf $ac_xdir 2>/dev
/null
5122 echo "$as_me:5122: result: $ac_cv_sys_long_file_names" >&5
5123 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5124 if test $ac_cv_sys_long_file_names = yes; then
5126 cat >>confdefs.h
<<\EOF
5127 #define HAVE_LONG_FILE_NAMES 1
5132 #### Choose a window system.
5134 echo "$as_me:5134: checking for X" >&5
5135 echo $ECHO_N "checking for X... $ECHO_C" >&6
5137 # Check whether --with-x or --without-x was given.
5138 if test "${with_x+set}" = set; then
5142 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5143 if test "x$with_x" = xno
; then
5144 # The user explicitly disabled X.
5147 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5148 # Both variables are already set.
5151 if test "${ac_cv_have_x+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 # One or both of the vars are not set, and there is no cached value.
5155 ac_x_includes
=no ac_x_libraries
=no
5157 if mkdir conftest.dir
; then
5159 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5160 cat >Imakefile
<<'EOF'
5162 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5164 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5166 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5168 for ac_extension
in a so sl
; do
5169 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5170 test -f $ac_im_libdir/libX11.
$ac_extension; then
5171 ac_im_usrlibdir
=$ac_im_libdir; break
5174 # Screen out bogus values from the imake configuration. They are
5175 # bogus both because they are the default anyway, and because
5176 # using them would break gcc on systems where it needs fixed includes.
5177 case $ac_im_incroot in
5179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5181 case $ac_im_usrlibdir in
5183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5190 # Standard set of common directories for X headers.
5191 # Check X11 before X11Rn because it is often a symlink to the current release.
5203 /usr/local/X11/include
5204 /usr/local/X11R6/include
5205 /usr/local/X11R5/include
5206 /usr/local/X11R4/include
5208 /usr/local/include/X11
5209 /usr/local/include/X11R6
5210 /usr/local/include/X11R5
5211 /usr/local/include/X11R4
5215 /usr/XFree86/include/X11
5219 /usr/unsupported/include
5221 /usr/local/x11r5/include
5222 /usr/lpp/Xamples/include
5224 /usr/openwin/include
5225 /usr/openwin/share/include'
5227 if test "$ac_x_includes" = no
; then
5228 # Guess where to find include files, by looking for Intrinsic.h.
5229 # First, try using that file with no special directory specified.
5230 cat >conftest.
$ac_ext <<_ACEOF
5231 #line 5231 "configure"
5232 #include "confdefs.h"
5233 #include <X11/Intrinsic.h>
5235 if { (eval echo "$as_me:5235: \"$ac_cpp conftest.$ac_ext\"") >&5
5236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5238 egrep -v '^ *\+' conftest.er1
>conftest.err
5240 cat conftest.err
>&5
5241 echo "$as_me:5241: \$? = $ac_status" >&5
5242 (exit $ac_status); } >/dev
/null
; then
5243 if test -s conftest.err
; then
5244 ac_cpp_err
=$ac_c_preproc_warn_flag
5251 if test -z "$ac_cpp_err"; then
5252 # We can compile using X headers with no special include directory.
5255 echo "$as_me: failed program was:" >&5
5256 cat conftest.
$ac_ext >&5
5257 for ac_dir
in $ac_x_header_dirs; do
5258 if test -r "$ac_dir/X11/Intrinsic.h"; then
5259 ac_x_includes
=$ac_dir
5264 rm -f conftest.err conftest.
$ac_ext
5265 fi # $ac_x_includes = no
5267 if test "$ac_x_libraries" = no
; then
5268 # Check for the libraries.
5269 # See if we find them without any special options.
5270 # Don't add to $LIBS permanently.
5273 cat >conftest.
$ac_ext <<_ACEOF
5274 #line 5274 "configure"
5275 #include "confdefs.h"
5276 #include <X11/Intrinsic.h>
5285 rm -f conftest.
$ac_objext conftest
$ac_exeext
5286 if { (eval echo "$as_me:5286: \"$ac_link\"") >&5
5287 (eval $ac_link) 2>&5
5289 echo "$as_me:5289: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try
='test -s conftest$ac_exeext'
5292 { (eval echo "$as_me:5292: \"$ac_try\"") >&5
5295 echo "$as_me:5295: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5298 # We can link X programs with no special library path.
5301 echo "$as_me: failed program was:" >&5
5302 cat conftest.
$ac_ext >&5
5304 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5306 # Don't even attempt the hair of trying to link an X program!
5307 for ac_extension
in a so sl
; do
5308 if test -r $ac_dir/libXt.
$ac_extension; then
5309 ac_x_libraries
=$ac_dir
5315 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5316 fi # $ac_x_libraries = no
5318 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5319 # Didn't find X anywhere. Cache the known absence of X.
5320 ac_cv_have_x
="have_x=no"
5322 # Record where we found X for the cache.
5323 ac_cv_have_x
="have_x=yes \
5324 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5329 eval "$ac_cv_have_x"
5332 if test "$have_x" != yes; then
5333 echo "$as_me:5333: result: $have_x" >&5
5334 echo "${ECHO_T}$have_x" >&6
5337 # If each of the values was on the command line, it overrides each guess.
5338 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5339 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5340 # Update the cache value to reflect the command line values.
5341 ac_cv_have_x
="have_x=yes \
5342 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5343 echo "$as_me:5343: result: libraries $x_libraries, headers $x_includes" >&5
5344 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5347 if test "$no_x" = yes; then
5353 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5354 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5355 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5356 x_default_search_path
=""
5357 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5359 ${x_library}/X11/%L/%T/%N%C%S:\
5360 ${x_library}/X11/%l/%T/%N%C%S:\
5361 ${x_library}/X11/%T/%N%C%S:\
5362 ${x_library}/X11/%L/%T/%N%S:\
5363 ${x_library}/X11/%l/%T/%N%S:\
5364 ${x_library}/X11/%T/%N%S"
5365 if test x
"${x_default_search_path}" = x
; then
5366 x_default_search_path
=${x_search_path}
5368 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5372 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5373 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5376 if test x
"${x_includes}" = x
; then
5377 bitmapdir
=/usr
/include
/X11
/bitmaps
5379 # accumulate include directories that have X11 bitmap subdirectories
5381 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5382 if test -d "${bmd}/X11/bitmaps"; then
5383 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5385 if test -d "${bmd}/bitmaps"; then
5386 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5389 if test ${bmd_acc} != "dummyval"; then
5390 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5394 case "${window_system}" in
5398 case "${with_x_toolkit}" in
5399 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5400 motif
) USE_X_TOOLKIT
=MOTIF
;;
5401 no
) USE_X_TOOLKIT
=none
;;
5402 * ) USE_X_TOOLKIT
=maybe
;;
5412 ### If we're using X11, we should use the X menu package.
5415 yes ) HAVE_MENUS
=yes ;;
5418 if test "${opsys}" = "hpux9"; then
5419 case "${x_libraries}" in
5421 opsysfile
="s/hpux9-x11r4.h"
5426 if test "${opsys}" = "hpux9shr"; then
5427 case "${x_libraries}" in
5429 opsysfile
="s/hpux9shxr4.h"
5434 ### Compute the unexec source name from the object name.
5435 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5437 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5438 # Assume not, until told otherwise.
5441 echo "$as_me:5441: checking for malloc_get_state" >&5
5442 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5443 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.
$ac_ext <<_ACEOF
5447 #line 5447 "configure"
5448 #include "confdefs.h"
5449 /* System header to define __stub macros and hopefully few prototypes,
5450 which can conflict with char malloc_get_state (); below. */
5452 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5458 char malloc_get_state ();
5464 /* The GNU C library defines this for functions which it implements
5465 to always fail with ENOSYS. Some functions are actually named
5466 something starting with __ and the normal name is an alias. */
5467 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5470 f = malloc_get_state;
5477 rm -f conftest.
$ac_objext conftest
$ac_exeext
5478 if { (eval echo "$as_me:5478: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>&5
5481 echo "$as_me:5481: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try
='test -s conftest$ac_exeext'
5484 { (eval echo "$as_me:5484: \"$ac_try\"") >&5
5487 echo "$as_me:5487: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_func_malloc_get_state
=yes
5491 echo "$as_me: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5493 ac_cv_func_malloc_get_state
=no
5495 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5497 echo "$as_me:5497: result: $ac_cv_func_malloc_get_state" >&5
5498 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5499 if test $ac_cv_func_malloc_get_state = yes; then
5505 echo "$as_me:5505: checking for malloc_set_state" >&5
5506 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5507 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 cat >conftest.
$ac_ext <<_ACEOF
5511 #line 5511 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char malloc_set_state (); below. */
5516 /* Override any gcc2 internal prototype to avoid an error. */
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5522 char malloc_set_state ();
5528 /* The GNU C library defines this for functions which it implements
5529 to always fail with ENOSYS. Some functions are actually named
5530 something starting with __ and the normal name is an alias. */
5531 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5534 f = malloc_set_state;
5541 rm -f conftest.
$ac_objext conftest
$ac_exeext
5542 if { (eval echo "$as_me:5542: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try
='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:5548: \"$ac_try\"") >&5
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_func_malloc_set_state
=yes
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5557 ac_cv_func_malloc_set_state
=no
5559 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5561 echo "$as_me:5561: result: $ac_cv_func_malloc_set_state" >&5
5562 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5563 if test $ac_cv_func_malloc_set_state = yes; then
5569 echo "$as_me:5569: checking whether __after_morecore_hook exists" >&5
5570 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5571 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 cat >conftest.
$ac_ext <<_ACEOF
5575 #line 5575 "configure"
5576 #include "confdefs.h"
5577 extern void (* __after_morecore_hook)();
5581 __after_morecore_hook = 0
5586 rm -f conftest.
$ac_objext conftest
$ac_exeext
5587 if { (eval echo "$as_me:5587: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:5593: \"$ac_try\"") >&5
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 emacs_cv_var___after_morecore_hook
=yes
5600 echo "$as_me: failed program was:" >&5
5601 cat conftest.
$ac_ext >&5
5602 emacs_cv_var___after_morecore_hook
=no
5604 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5606 echo "$as_me:5606: result: $emacs_cv_var___after_morecore_hook" >&5
5607 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5608 if test $emacs_cv_var___after_morecore_hook = no
; then
5611 if test "${system_malloc}" = "yes"; then
5614 (The GNU allocators don't work with this system configuration.)"
5616 if test "$doug_lea_malloc" = "yes" ; then
5617 if test "$GNU_MALLOC" = yes ; then
5619 (Using Doug Lea's new malloc from the GNU C Library.)"
5621 cat >>confdefs.h
<<\EOF
5622 #define DOUG_LEA_MALLOC 1
5627 if test x
"${REL_ALLOC}" = x
; then
5628 REL_ALLOC
=${GNU_MALLOC}
5631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5633 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5634 inttypes.h stdint.h unistd.h
5636 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:5637: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.
$ac_ext <<_ACEOF
5643 #line 5643 "configure"
5644 #include "confdefs.h"
5645 $ac_includes_default
5646 #include <$ac_header>
5648 rm -f conftest.
$ac_objext
5649 if { (eval echo "$as_me:5649: \"$ac_compile\"") >&5
5650 (eval $ac_compile) 2>&5
5652 echo "$as_me:5652: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try
='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:5655: \"$ac_try\"") >&5
5658 echo "$as_me:5658: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 eval "$as_ac_Header=yes"
5662 echo "$as_me: failed program was:" >&5
5663 cat conftest.
$ac_ext >&5
5664 eval "$as_ac_Header=no"
5666 rm -f conftest.
$ac_objext conftest.
$ac_ext
5668 echo "$as_me:5668: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5671 cat >>confdefs.h
<<EOF
5672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 for ac_header
in stdlib.h unistd.h
5680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681 echo "$as_me:5681: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 cat >conftest.
$ac_ext <<_ACEOF
5687 #line 5687 "configure"
5688 #include "confdefs.h"
5689 #include <$ac_header>
5691 if { (eval echo "$as_me:5691: \"$ac_cpp conftest.$ac_ext\"") >&5
5692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5694 egrep -v '^ *\+' conftest.er1
>conftest.err
5696 cat conftest.err
>&5
5697 echo "$as_me:5697: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev
/null
; then
5699 if test -s conftest.err
; then
5700 ac_cpp_err
=$ac_c_preproc_warn_flag
5707 if test -z "$ac_cpp_err"; then
5708 eval "$as_ac_Header=yes"
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.
$ac_ext >&5
5712 eval "$as_ac_Header=no"
5714 rm -f conftest.err conftest.
$ac_ext
5716 echo "$as_me:5716: result: `eval echo '${'$as_ac_Header'}'`" >&5
5717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5719 cat >>confdefs.h
<<EOF
5720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5726 for ac_func
in getpagesize
5728 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5729 echo "$as_me:5729: checking for $ac_func" >&5
5730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5731 if eval "test \"\${$as_ac_var+set}\" = set"; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.
$ac_ext <<_ACEOF
5735 #line 5735 "configure"
5736 #include "confdefs.h"
5737 /* System header to define __stub macros and hopefully few prototypes,
5738 which can conflict with char $ac_func (); below. */
5740 /* Override any gcc2 internal prototype to avoid an error. */
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5765 rm -f conftest.
$ac_objext conftest
$ac_exeext
5766 if { (eval echo "$as_me:5766: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try
='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:5772: \"$ac_try\"") >&5
5775 echo "$as_me:5775: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 eval "$as_ac_var=yes"
5779 echo "$as_me: failed program was:" >&5
5780 cat conftest.
$ac_ext >&5
5781 eval "$as_ac_var=no"
5783 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5785 echo "$as_me:5785: result: `eval echo '${'$as_ac_var'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5787 if test `eval echo '${'$as_ac_var'}'` = yes; then
5788 cat >>confdefs.h
<<EOF
5789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5795 echo "$as_me:5795: checking for working mmap" >&5
5796 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5797 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 if test "$cross_compiling" = yes; then
5801 ac_cv_func_mmap_fixed_mapped
=no
5803 cat >conftest.
$ac_ext <<_ACEOF
5804 #line 5804 "configure"
5805 #include "confdefs.h"
5806 $ac_includes_default
5807 /* Thanks to Mike Haertel and Jim Avera for this test.
5808 Here is a matrix of mmap possibilities:
5809 mmap private not fixed
5810 mmap private fixed at somewhere currently unmapped
5811 mmap private fixed at somewhere already mapped
5812 mmap shared not fixed
5813 mmap shared fixed at somewhere currently unmapped
5814 mmap shared fixed at somewhere already mapped
5815 For private mappings, we should verify that changes cannot be read()
5816 back from the file, nor mmap's back from the file at a different
5817 address. (There have been systems where private was not correctly
5818 implemented like the infamous i386 svr4.0, and systems where the
5819 VM page cache was not coherent with the file system buffer cache
5820 like early versions of FreeBSD and possibly contemporary NetBSD.)
5821 For shared mappings, we should conversely verify that changes get
5822 propogated back to all the places they're supposed to be.
5824 Grep wants private fixed already mapped.
5825 The main things grep needs to know about mmap are:
5826 * does it exist and is it safe to write into the mmap'd area
5827 * how to use it (BSD variants) */
5830 #include <sys/mman.h>
5832 #if !STDC_HEADERS && !HAVE_STDLIB_H
5836 /* This mess was copied from the GNU getpagesize.h. */
5837 #if !HAVE_GETPAGESIZE
5838 /* Assume that all systems that can run configure have sys/param.h. */
5839 # if !HAVE_SYS_PARAM_H
5840 # define HAVE_SYS_PARAM_H 1
5843 # ifdef _SC_PAGESIZE
5844 # define getpagesize() sysconf(_SC_PAGESIZE)
5845 # else /* no _SC_PAGESIZE */
5846 # if HAVE_SYS_PARAM_H
5847 # include <sys/param.h>
5848 # ifdef EXEC_PAGESIZE
5849 # define getpagesize() EXEC_PAGESIZE
5850 # else /* no EXEC_PAGESIZE */
5852 # define getpagesize() NBPG * CLSIZE
5855 # endif /* no CLSIZE */
5856 # else /* no NBPG */
5858 # define getpagesize() NBPC
5859 # else /* no NBPC */
5861 # define getpagesize() PAGESIZE
5862 # endif /* PAGESIZE */
5863 # endif /* no NBPC */
5864 # endif /* no NBPG */
5865 # endif /* no EXEC_PAGESIZE */
5866 # else /* no HAVE_SYS_PARAM_H */
5867 # define getpagesize() 8192 /* punt totally */
5868 # endif /* no HAVE_SYS_PARAM_H */
5869 # endif /* no _SC_PAGESIZE */
5871 #endif /* no HAVE_GETPAGESIZE */
5876 char *data, *data2, *data3;
5880 pagesize = getpagesize ();
5882 /* First, make a file with some known garbage in it. */
5883 data = (char *) malloc (pagesize);
5886 for (i = 0; i < pagesize; ++i)
5887 *(data + i) = rand ();
5889 fd = creat ("conftest.mmap", 0600);
5892 if (write (fd, data, pagesize) != pagesize)
5896 /* Next, try to mmap the file at a fixed address which already has
5897 something else allocated at it. If we can, also make sure that
5898 we see the same garbage. */
5899 fd = open ("conftest.mmap", O_RDWR);
5902 data2 = (char *) malloc (2 * pagesize);
5905 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5909 for (i = 0; i < pagesize; ++i)
5910 if (*(data + i) != *(data2 + i))
5913 /* Finally, make sure that changes to the mapped area do not
5914 percolate back to the file as seen by read(). (This is a bug on
5915 some variants of i386 svr4.0.) */
5916 for (i = 0; i < pagesize; ++i)
5917 *(data2 + i) = *(data2 + i) + 1;
5918 data3 = (char *) malloc (pagesize);
5921 if (read (fd, data3, pagesize) != pagesize)
5923 for (i = 0; i < pagesize; ++i)
5924 if (*(data + i) != *(data3 + i))
5930 rm -f conftest
$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5936 { (eval echo "$as_me:5936: \"$ac_try\"") >&5
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_func_mmap_fixed_mapped
=yes
5943 echo "$as_me: program exited with status $ac_status" >&5
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.
$ac_ext >&5
5946 ac_cv_func_mmap_fixed_mapped
=no
5948 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5951 echo "$as_me:5951: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5955 cat >>confdefs.h
<<\EOF
5962 if test $use_mmap_for_buffers = yes; then
5966 LIBS
="$libsrc_libs $LIBS"
5968 echo "$as_me:5968: checking for dnet_ntoa in -ldnet" >&5
5969 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5970 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_check_lib_save_LIBS
=$LIBS
5975 cat >conftest.
$ac_ext <<_ACEOF
5976 #line 5976 "configure"
5977 #include "confdefs.h"
5979 /* Override any gcc2 internal prototype to avoid an error. */
5983 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */
5994 rm -f conftest.
$ac_objext conftest
$ac_exeext
5995 if { (eval echo "$as_me:5995: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5998 echo "$as_me:5998: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try
='test -s conftest$ac_exeext'
6001 { (eval echo "$as_me:6001: \"$ac_try\"") >&5
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_lib_dnet_dnet_ntoa
=yes
6008 echo "$as_me: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6010 ac_cv_lib_dnet_dnet_ntoa
=no
6012 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6013 LIBS
=$ac_check_lib_save_LIBS
6015 echo "$as_me:6015: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6016 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6017 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6018 cat >>confdefs.h
<<EOF
6019 #define HAVE_LIBDNET 1
6026 echo "$as_me:6026: checking for main in -lXbsd" >&5
6027 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6028 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_check_lib_save_LIBS
=$LIBS
6033 cat >conftest.
$ac_ext <<_ACEOF
6034 #line 6034 "configure"
6035 #include "confdefs.h"
6045 rm -f conftest.
$ac_objext conftest
$ac_exeext
6046 if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:6049: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try
='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:6052: \"$ac_try\"") >&5
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_lib_Xbsd_main
=yes
6059 echo "$as_me: failed program was:" >&5
6060 cat conftest.
$ac_ext >&5
6061 ac_cv_lib_Xbsd_main
=no
6063 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6064 LIBS
=$ac_check_lib_save_LIBS
6066 echo "$as_me:6066: result: $ac_cv_lib_Xbsd_main" >&5
6067 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6068 if test $ac_cv_lib_Xbsd_main = yes; then
6069 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6072 echo "$as_me:6072: checking for cma_open in -lpthreads" >&5
6073 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6074 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_check_lib_save_LIBS
=$LIBS
6078 LIBS
="-lpthreads $LIBS"
6079 cat >conftest.
$ac_ext <<_ACEOF
6080 #line 6080 "configure"
6081 #include "confdefs.h"
6083 /* Override any gcc2 internal prototype to avoid an error. */
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6098 rm -f conftest.
$ac_objext conftest
$ac_exeext
6099 if { (eval echo "$as_me:6099: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>&5
6102 echo "$as_me:6102: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try
='test -s conftest$ac_exeext'
6105 { (eval echo "$as_me:6105: \"$ac_try\"") >&5
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_lib_pthreads_cma_open
=yes
6112 echo "$as_me: failed program was:" >&5
6113 cat conftest.
$ac_ext >&5
6114 ac_cv_lib_pthreads_cma_open
=no
6116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6117 LIBS
=$ac_check_lib_save_LIBS
6119 echo "$as_me:6119: result: $ac_cv_lib_pthreads_cma_open" >&5
6120 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6121 if test $ac_cv_lib_pthreads_cma_open = yes; then
6122 cat >>confdefs.h
<<EOF
6123 #define HAVE_LIBPTHREADS 1
6126 LIBS
="-lpthreads $LIBS"
6130 echo "$as_me:6130: checking for XFree86 in /usr/X386" >&5
6131 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6132 if test -d /usr
/X386
/include
; then
6134 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6138 echo "$as_me:6138: result: $HAVE_XFREE386" >&5
6139 echo "${ECHO_T}$HAVE_XFREE386" >&6
6141 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6142 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6144 REAL_CPPFLAGS
="$CPPFLAGS"
6146 if test "${HAVE_X11}" = "yes"; then
6147 DEFS
="$C_SWITCH_X_SITE $DEFS"
6148 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6150 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6151 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6153 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6154 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6155 # but it's more convenient here to set LD_RUN_PATH
6156 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6157 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6158 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6162 if test "${opsys}" = "gnu-linux"; then
6163 echo "$as_me:6163: checking whether X on GNU/Linux needs -b to link" >&5
6164 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6165 cat >conftest.
$ac_ext <<_ACEOF
6166 #line 6166 "configure"
6167 #include "confdefs.h"
6172 XOpenDisplay ("foo");
6177 rm -f conftest.
$ac_objext conftest
$ac_exeext
6178 if { (eval echo "$as_me:6178: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:6181: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try
='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:6184: \"$ac_try\"") >&5
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 xlinux_first_failure
=no
6191 echo "$as_me: failed program was:" >&5
6192 cat conftest.
$ac_ext >&5
6193 xlinux_first_failure
=yes
6195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6196 if test "${xlinux_first_failure}" = "yes"; then
6197 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6198 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6199 OLD_CPPFLAGS
="$CPPFLAGS"
6201 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6202 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6203 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6204 LIBS
="$LIBS -b i486-linuxaout"
6205 cat >conftest.
$ac_ext <<_ACEOF
6206 #line 6206 "configure"
6207 #include "confdefs.h"
6212 XOpenDisplay ("foo");
6217 rm -f conftest.
$ac_objext conftest
$ac_exeext
6218 if { (eval echo "$as_me:6218: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>&5
6221 echo "$as_me:6221: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try
='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:6224: \"$ac_try\"") >&5
6227 echo "$as_me:6227: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 xlinux_second_failure
=no
6231 echo "$as_me: failed program was:" >&5
6232 cat conftest.
$ac_ext >&5
6233 xlinux_second_failure
=yes
6235 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6236 if test "${xlinux_second_failure}" = "yes"; then
6237 # If we get the same failure with -b, there is no use adding -b.
6238 # So take it out. This plays safe.
6239 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6240 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6241 CPPFLAGS
="$OLD_CPPFLAGS"
6243 echo "$as_me:6243: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6246 echo "$as_me:6246: result: yes" >&5
6247 echo "${ECHO_T}yes" >&6
6250 echo "$as_me:6250: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6255 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6256 # header files included from there.
6257 echo "$as_me:6257: checking for Xkb" >&5
6258 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6259 cat >conftest.
$ac_ext <<_ACEOF
6260 #line 6260 "configure"
6261 #include "confdefs.h"
6262 #include <X11/Xlib.h>
6263 #include <X11/XKBlib.h>
6267 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6272 rm -f conftest.
$ac_objext conftest
$ac_exeext
6273 if { (eval echo "$as_me:6273: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>&5
6276 echo "$as_me:6276: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try
='test -s conftest$ac_exeext'
6279 { (eval echo "$as_me:6279: \"$ac_try\"") >&5
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6286 echo "$as_me: failed program was:" >&5
6287 cat conftest.
$ac_ext >&5
6290 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6291 echo "$as_me:6291: result: $emacs_xkb" >&5
6292 echo "${ECHO_T}$emacs_xkb" >&6
6293 if test $emacs_xkb = yes; then
6294 cat >>confdefs.h
<<\EOF
6295 #define HAVE_XKBGETKEYBOARD 1
6300 for ac_func
in XrmSetDatabase XScreenResourceString \
6301 XScreenNumberOfScreen XSetWMProtocols
6303 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6304 echo "$as_me:6304: checking for $ac_func" >&5
6305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6306 if eval "test \"\${$as_ac_var+set}\" = set"; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 cat >conftest.
$ac_ext <<_ACEOF
6310 #line 6310 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char $ac_func (); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6340 rm -f conftest.
$ac_objext conftest
$ac_exeext
6341 if { (eval echo "$as_me:6341: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>&5
6344 echo "$as_me:6344: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try
='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:6347: \"$ac_try\"") >&5
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 eval "$as_ac_var=yes"
6354 echo "$as_me: failed program was:" >&5
6355 cat conftest.
$ac_ext >&5
6356 eval "$as_ac_var=no"
6358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6360 echo "$as_me:6360: result: `eval echo '${'$as_ac_var'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6362 if test `eval echo '${'$as_ac_var'}'` = yes; then
6363 cat >>confdefs.h
<<EOF
6364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6372 if test "${window_system}" = "x11"; then
6373 echo "$as_me:6373: checking X11 version 6" >&5
6374 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6375 if test "${emacs_cv_x11_version_6+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 cat >conftest.
$ac_ext <<_ACEOF
6379 #line 6379 "configure"
6380 #include "confdefs.h"
6381 #include <X11/Xlib.h>
6385 #if XlibSpecificationRelease < 6
6393 rm -f conftest.
$ac_objext conftest
$ac_exeext
6394 if { (eval echo "$as_me:6394: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:6397: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try
='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:6400: \"$ac_try\"") >&5
6403 echo "$as_me:6403: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 emacs_cv_x11_version_6
=yes
6407 echo "$as_me: failed program was:" >&5
6408 cat conftest.
$ac_ext >&5
6409 emacs_cv_x11_version_6
=no
6411 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6414 if test $emacs_cv_x11_version_6 = yes; then
6415 echo "$as_me:6415: result: 6 or newer" >&5
6416 echo "${ECHO_T}6 or newer" >&6
6417 cat >>confdefs.h
<<\EOF
6418 #define HAVE_X11R6 1
6422 echo "$as_me:6422: result: before 6" >&5
6423 echo "${ECHO_T}before 6" >&6
6427 if test "${window_system}" = "x11"; then
6428 echo "$as_me:6428: checking X11 version 5" >&5
6429 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6430 if test "${emacs_cv_x11_version_5+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 cat >conftest.
$ac_ext <<_ACEOF
6434 #line 6434 "configure"
6435 #include "confdefs.h"
6436 #include <X11/Xlib.h>
6440 #if XlibSpecificationRelease < 5
6448 rm -f conftest.
$ac_objext conftest
$ac_exeext
6449 if { (eval echo "$as_me:6449: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>&5
6452 echo "$as_me:6452: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try
='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:6455: \"$ac_try\"") >&5
6458 echo "$as_me:6458: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 emacs_cv_x11_version_5
=yes
6462 echo "$as_me: failed program was:" >&5
6463 cat conftest.
$ac_ext >&5
6464 emacs_cv_x11_version_5
=no
6466 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6469 if test $emacs_cv_x11_version_5 = yes; then
6470 echo "$as_me:6470: result: 5 or newer" >&5
6471 echo "${ECHO_T}5 or newer" >&6
6473 cat >>confdefs.h
<<\EOF
6474 #define HAVE_X11R5 1
6479 echo "$as_me:6479: result: before 5" >&5
6480 echo "${ECHO_T}before 5" >&6
6484 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6485 if test x
"${HAVE_X11R5}" = xyes
; then
6486 echo "$as_me:6486: checking X11 version 5 with Xaw" >&5
6487 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6488 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cat >conftest.
$ac_ext <<_ACEOF
6492 #line 6492 "configure"
6493 #include "confdefs.h"
6495 #include <X11/Intrinsic.h>
6496 #include <X11/Xaw/Simple.h>
6505 rm -f conftest.
$ac_objext conftest
$ac_exeext
6506 if { (eval echo "$as_me:6506: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>&5
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try
='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:6512: \"$ac_try\"") >&5
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 emacs_cv_x11_version_5_with_xaw
=yes
6519 echo "$as_me: failed program was:" >&5
6520 cat conftest.
$ac_ext >&5
6521 emacs_cv_x11_version_5_with_xaw
=no
6523 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6526 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6527 echo "$as_me:6527: result: 5 or newer, with Xaw; use toolkit by default" >&5
6528 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6531 echo "$as_me:6531: result: before 5 or no Xaw; do not use toolkit by default" >&5
6532 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6540 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6542 if test "${USE_X_TOOLKIT}" != "none"; then
6543 echo "$as_me:6543: checking X11 toolkit version" >&5
6544 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6545 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 cat >conftest.
$ac_ext <<_ACEOF
6549 #line 6549 "configure"
6550 #include "confdefs.h"
6551 #include <X11/Intrinsic.h>
6555 #if XtSpecificationRelease < 6
6563 rm -f conftest.
$ac_objext conftest
$ac_exeext
6564 if { (eval echo "$as_me:6564: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6567 echo "$as_me:6567: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try
='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:6570: \"$ac_try\"") >&5
6573 echo "$as_me:6573: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 emacs_cv_x11_toolkit_version_6
=yes
6577 echo "$as_me: failed program was:" >&5
6578 cat conftest.
$ac_ext >&5
6579 emacs_cv_x11_toolkit_version_6
=no
6581 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6584 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6585 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6586 echo "$as_me:6586: result: 6 or newer" >&5
6587 echo "${ECHO_T}6 or newer" >&6
6588 cat >>confdefs.h
<<\EOF
6589 #define HAVE_X11XTR6 1
6593 echo "$as_me:6593: result: before 6" >&5
6594 echo "${ECHO_T}before 6" >&6
6598 if test x
$HAVE_X11XTR6 = xyes
; then
6599 LIBS
="-lXt -lSM -lICE $LIBS"
6604 echo "$as_me:6604: checking for XmuConvertStandardSelection in -lXmu" >&5
6605 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6606 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 ac_check_lib_save_LIBS
=$LIBS
6611 cat >conftest.
$ac_ext <<_ACEOF
6612 #line 6612 "configure"
6613 #include "confdefs.h"
6615 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char XmuConvertStandardSelection ();
6625 XmuConvertStandardSelection ();
6630 rm -f conftest.
$ac_objext conftest
$ac_exeext
6631 if { (eval echo "$as_me:6631: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>&5
6634 echo "$as_me:6634: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try
='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:6637: \"$ac_try\"") >&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6644 echo "$as_me: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6646 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6649 LIBS
=$ac_check_lib_save_LIBS
6651 echo "$as_me:6651: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6652 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6653 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6654 cat >>confdefs.h
<<EOF
6655 #define HAVE_LIBXMU 1
6662 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6665 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6666 if test "${HAVE_X11}" = "yes"; then
6667 if test "${USE_X_TOOLKIT}" != "none"; then
6669 echo "$as_me:6669: checking for XShapeQueryExtension in -lXext" >&5
6670 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6671 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_check_lib_save_LIBS
=$LIBS
6676 cat >conftest.
$ac_ext <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6686 char XShapeQueryExtension ();
6690 XShapeQueryExtension ();
6695 rm -f conftest.
$ac_objext conftest
$ac_exeext
6696 if { (eval echo "$as_me:6696: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>&5
6699 echo "$as_me:6699: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try
='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:6702: \"$ac_try\"") >&5
6705 echo "$as_me:6705: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6709 echo "$as_me: failed program was:" >&5
6710 cat conftest.
$ac_ext >&5
6711 ac_cv_lib_Xext_XShapeQueryExtension
=no
6713 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6714 LIBS
=$ac_check_lib_save_LIBS
6716 echo "$as_me:6716: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6717 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6718 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6719 cat >>confdefs.h
<<EOF
6720 #define HAVE_LIBXEXT 1
6730 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6731 echo "$as_me:6731: checking for Motif version 2.1" >&5
6732 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6733 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.
$ac_ext <<_ACEOF
6737 #line 6737 "configure"
6738 #include "confdefs.h"
6743 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6746 Motif version prior to 2.1.
6752 rm -f conftest.
$ac_objext
6753 if { (eval echo "$as_me:6753: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>&5
6756 echo "$as_me:6756: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:6759: \"$ac_try\"") >&5
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 emacs_cv_motif_version_2_1
=yes
6766 echo "$as_me: failed program was:" >&5
6767 cat conftest.
$ac_ext >&5
6768 emacs_cv_motif_version_2_1
=no
6770 rm -f conftest.
$ac_objext conftest.
$ac_ext
6772 echo "$as_me:6772: result: $emacs_cv_motif_version_2_1" >&5
6773 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6774 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6775 if test $emacs_cv_motif_version_2_1 = yes; then
6777 cat >>confdefs.h
<<\EOF
6778 #define HAVE_MOTIF_2_1 1
6781 echo "$as_me:6781: checking for XpCreateContext in -lXp" >&5
6782 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6783 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 ac_check_lib_save_LIBS
=$LIBS
6788 cat >conftest.
$ac_ext <<_ACEOF
6789 #line 6789 "configure"
6790 #include "confdefs.h"
6792 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6798 char XpCreateContext ();
6807 rm -f conftest.
$ac_objext conftest
$ac_exeext
6808 if { (eval echo "$as_me:6808: \"$ac_link\"") >&5
6809 (eval $ac_link) 2>&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try
='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:6814: \"$ac_try\"") >&5
6817 echo "$as_me:6817: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_lib_Xp_XpCreateContext
=yes
6821 echo "$as_me: failed program was:" >&5
6822 cat conftest.
$ac_ext >&5
6823 ac_cv_lib_Xp_XpCreateContext
=no
6825 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6826 LIBS
=$ac_check_lib_save_LIBS
6828 echo "$as_me:6828: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6829 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6830 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6834 if test ${HAVE_LIBXP} = yes; then
6835 cat >>confdefs.h
<<\EOF
6836 #define HAVE_LIBXP 1
6843 ### Is -lXaw3d available?
6845 if test "${HAVE_X11}" = "yes"; then
6846 if test "${USE_X_TOOLKIT}" != "none"; then
6847 echo "$as_me:6847: checking for X11/Xaw3d/Scrollbar.h" >&5
6848 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6849 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 cat >conftest.
$ac_ext <<_ACEOF
6853 #line 6853 "configure"
6854 #include "confdefs.h"
6855 #include <X11/Xaw3d/Scrollbar.h>
6857 if { (eval echo "$as_me:6857: \"$ac_cpp conftest.$ac_ext\"") >&5
6858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6860 egrep -v '^ *\+' conftest.er1
>conftest.err
6862 cat conftest.err
>&5
6863 echo "$as_me:6863: \$? = $ac_status" >&5
6864 (exit $ac_status); } >/dev
/null
; then
6865 if test -s conftest.err
; then
6866 ac_cpp_err
=$ac_c_preproc_warn_flag
6873 if test -z "$ac_cpp_err"; then
6874 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6876 echo "$as_me: failed program was:" >&5
6877 cat conftest.
$ac_ext >&5
6878 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6880 rm -f conftest.err conftest.
$ac_ext
6882 echo "$as_me:6882: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6883 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6884 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6885 echo "$as_me:6885: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6886 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6887 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_check_lib_save_LIBS
=$LIBS
6891 LIBS
="-lXaw3d $LIBS"
6892 cat >conftest.
$ac_ext <<_ACEOF
6893 #line 6893 "configure"
6894 #include "confdefs.h"
6896 /* Override any gcc2 internal prototype to avoid an error. */
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6902 char XawScrollbarSetThumb ();
6906 XawScrollbarSetThumb ();
6911 rm -f conftest.
$ac_objext conftest
$ac_exeext
6912 if { (eval echo "$as_me:6912: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>&5
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try
='test -s conftest$ac_exeext'
6918 { (eval echo "$as_me:6918: \"$ac_try\"") >&5
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6925 echo "$as_me: failed program was:" >&5
6926 cat conftest.
$ac_ext >&5
6927 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6930 LIBS
=$ac_check_lib_save_LIBS
6932 echo "$as_me:6932: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6933 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6934 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6940 if test "${HAVE_XAW3D}" = "yes"; then
6941 cat >>confdefs.h
<<\EOF
6942 #define HAVE_XAW3D 1
6949 USE_TOOLKIT_SCROLL_BARS
=no
6950 if test "${with_toolkit_scroll_bars}" != "no"; then
6951 if test "${USE_X_TOOLKIT}" != "none"; then
6952 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6953 cat >>confdefs.h
<<\EOF
6954 #define USE_TOOLKIT_SCROLL_BARS 1
6958 USE_TOOLKIT_SCROLL_BARS
=yes
6959 elif test "${HAVE_XAW3D}" = "yes"; then
6960 cat >>confdefs.h
<<\EOF
6961 #define USE_TOOLKIT_SCROLL_BARS 1
6964 USE_TOOLKIT_SCROLL_BARS
=yes
6969 if test "${with_xim}" != "no"; then
6970 cat >>confdefs.h
<<\EOF
6976 ### Use -lXpm if available, unless `--with-xpm=no'.
6978 if test "${HAVE_X11}" = "yes"; then
6979 if test "${with_xpm}" != "no"; then
6980 echo "$as_me:6980: checking for X11/xpm.h" >&5
6981 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6982 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.
$ac_ext <<_ACEOF
6986 #line 6986 "configure"
6987 #include "confdefs.h"
6988 #include <X11/xpm.h>
6990 if { (eval echo "$as_me:6990: \"$ac_cpp conftest.$ac_ext\"") >&5
6991 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6993 egrep -v '^ *\+' conftest.er1
>conftest.err
6995 cat conftest.err
>&5
6996 echo "$as_me:6996: \$? = $ac_status" >&5
6997 (exit $ac_status); } >/dev
/null
; then
6998 if test -s conftest.err
; then
6999 ac_cpp_err
=$ac_c_preproc_warn_flag
7006 if test -z "$ac_cpp_err"; then
7007 ac_cv_header_X11_xpm_h
=yes
7009 echo "$as_me: failed program was:" >&5
7010 cat conftest.
$ac_ext >&5
7011 ac_cv_header_X11_xpm_h
=no
7013 rm -f conftest.err conftest.
$ac_ext
7015 echo "$as_me:7015: result: $ac_cv_header_X11_xpm_h" >&5
7016 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7017 if test $ac_cv_header_X11_xpm_h = yes; then
7018 echo "$as_me:7018: checking for XpmReadFileToPixmap in -lXpm" >&5
7019 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7020 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 ac_check_lib_save_LIBS
=$LIBS
7024 LIBS
="-lXpm -lX11 $LIBS"
7025 cat >conftest.
$ac_ext <<_ACEOF
7026 #line 7026 "configure"
7027 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035 char XpmReadFileToPixmap ();
7039 XpmReadFileToPixmap ();
7044 rm -f conftest.
$ac_objext conftest
$ac_exeext
7045 if { (eval echo "$as_me:7045: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7048 echo "$as_me:7048: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try
='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:7051: \"$ac_try\"") >&5
7054 echo "$as_me:7054: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7058 echo "$as_me: failed program was:" >&5
7059 cat conftest.
$ac_ext >&5
7060 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7062 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7063 LIBS
=$ac_check_lib_save_LIBS
7065 echo "$as_me:7065: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7066 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7067 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7073 if test "${HAVE_XPM}" = "yes"; then
7074 echo "$as_me:7074: checking for XpmReturnAllocPixels preprocessor define" >&5
7075 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7076 cat >conftest.
$ac_ext <<_ACEOF
7077 #line 7077 "configure"
7078 #include "confdefs.h"
7079 #include "X11/xpm.h"
7080 #ifndef XpmReturnAllocPixels
7081 no_return_alloc_pixels
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7093 if test "${HAVE_XPM}" = "yes"; then
7094 echo "$as_me:7094: result: yes" >&5
7095 echo "${ECHO_T}yes" >&6
7097 echo "$as_me:7097: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7103 if test "${HAVE_XPM}" = "yes"; then
7104 cat >>confdefs.h
<<\EOF
7111 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7113 if test "${HAVE_X11}" = "yes"; then
7114 if test "${with_jpeg}" != "no"; then
7115 echo "$as_me:7115: checking for jerror.h" >&5
7116 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7117 if test "${ac_cv_header_jerror_h+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.
$ac_ext <<_ACEOF
7121 #line 7121 "configure"
7122 #include "confdefs.h"
7125 if { (eval echo "$as_me:7125: \"$ac_cpp conftest.$ac_ext\"") >&5
7126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7128 egrep -v '^ *\+' conftest.er1
>conftest.err
7130 cat conftest.err
>&5
7131 echo "$as_me:7131: \$? = $ac_status" >&5
7132 (exit $ac_status); } >/dev
/null
; then
7133 if test -s conftest.err
; then
7134 ac_cpp_err
=$ac_c_preproc_warn_flag
7141 if test -z "$ac_cpp_err"; then
7142 ac_cv_header_jerror_h
=yes
7144 echo "$as_me: failed program was:" >&5
7145 cat conftest.
$ac_ext >&5
7146 ac_cv_header_jerror_h
=no
7148 rm -f conftest.err conftest.
$ac_ext
7150 echo "$as_me:7150: result: $ac_cv_header_jerror_h" >&5
7151 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7152 if test $ac_cv_header_jerror_h = yes; then
7153 echo "$as_me:7153: checking for jpeg_destroy_compress in -ljpeg" >&5
7154 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7155 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_check_lib_save_LIBS
=$LIBS
7160 cat >conftest.
$ac_ext <<_ACEOF
7161 #line 7161 "configure"
7162 #include "confdefs.h"
7164 /* Override any gcc2 internal prototype to avoid an error. */
7168 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170 char jpeg_destroy_compress ();
7174 jpeg_destroy_compress ();
7179 rm -f conftest.
$ac_objext conftest
$ac_exeext
7180 if { (eval echo "$as_me:7180: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>&5
7183 echo "$as_me:7183: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try
='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:7186: \"$ac_try\"") >&5
7189 echo "$as_me:7189: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7193 echo "$as_me: failed program was:" >&5
7194 cat conftest.
$ac_ext >&5
7195 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7198 LIBS
=$ac_check_lib_save_LIBS
7200 echo "$as_me:7200: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7201 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7202 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7210 if test "${HAVE_JPEG}" = "yes"; then
7211 cat >>confdefs.h
<<\EOF
7218 ### Use -lpng if available, unless `--with-png=no'.
7220 if test "${HAVE_X11}" = "yes"; then
7221 if test "${with_png}" != "no"; then
7222 echo "$as_me:7222: checking for png.h" >&5
7223 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7224 if test "${ac_cv_header_png_h+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.
$ac_ext <<_ACEOF
7228 #line 7228 "configure"
7229 #include "confdefs.h"
7232 if { (eval echo "$as_me:7232: \"$ac_cpp conftest.$ac_ext\"") >&5
7233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7235 egrep -v '^ *\+' conftest.er1
>conftest.err
7237 cat conftest.err
>&5
7238 echo "$as_me:7238: \$? = $ac_status" >&5
7239 (exit $ac_status); } >/dev
/null
; then
7240 if test -s conftest.err
; then
7241 ac_cpp_err
=$ac_c_preproc_warn_flag
7248 if test -z "$ac_cpp_err"; then
7249 ac_cv_header_png_h
=yes
7251 echo "$as_me: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7253 ac_cv_header_png_h
=no
7255 rm -f conftest.err conftest.
$ac_ext
7257 echo "$as_me:7257: result: $ac_cv_header_png_h" >&5
7258 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7259 if test $ac_cv_header_png_h = yes; then
7260 echo "$as_me:7260: checking for png_get_channels in -lpng" >&5
7261 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7262 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_check_lib_save_LIBS
=$LIBS
7266 LIBS
="-lpng -lz -lm $LIBS"
7267 cat >conftest.
$ac_ext <<_ACEOF
7268 #line 7268 "configure"
7269 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char png_get_channels ();
7281 png_get_channels ();
7286 rm -f conftest.
$ac_objext conftest
$ac_exeext
7287 if { (eval echo "$as_me:7287: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>&5
7290 echo "$as_me:7290: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try
='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:7293: \"$ac_try\"") >&5
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_lib_png_png_get_channels
=yes
7300 echo "$as_me: failed program was:" >&5
7301 cat conftest.
$ac_ext >&5
7302 ac_cv_lib_png_png_get_channels
=no
7304 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7305 LIBS
=$ac_check_lib_save_LIBS
7307 echo "$as_me:7307: result: $ac_cv_lib_png_png_get_channels" >&5
7308 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7309 if test $ac_cv_lib_png_png_get_channels = yes; then
7317 if test "${HAVE_PNG}" = "yes"; then
7318 cat >>confdefs.h
<<\EOF
7325 ### Use -ltiff if available, unless `--with-tiff=no'.
7327 if test "${HAVE_X11}" = "yes"; then
7328 if test "${with_tiff}" != "no"; then
7329 echo "$as_me:7329: checking for tiffio.h" >&5
7330 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7331 if test "${ac_cv_header_tiffio_h+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 cat >conftest.
$ac_ext <<_ACEOF
7335 #line 7335 "configure"
7336 #include "confdefs.h"
7339 if { (eval echo "$as_me:7339: \"$ac_cpp conftest.$ac_ext\"") >&5
7340 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7342 egrep -v '^ *\+' conftest.er1
>conftest.err
7344 cat conftest.err
>&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); } >/dev
/null
; then
7347 if test -s conftest.err
; then
7348 ac_cpp_err
=$ac_c_preproc_warn_flag
7355 if test -z "$ac_cpp_err"; then
7356 ac_cv_header_tiffio_h
=yes
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.
$ac_ext >&5
7360 ac_cv_header_tiffio_h
=no
7362 rm -f conftest.err conftest.
$ac_ext
7364 echo "$as_me:7364: result: $ac_cv_header_tiffio_h" >&5
7365 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7366 if test $ac_cv_header_tiffio_h = yes; then
7368 # At least one tiff package requires the jpeg library.
7369 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7370 echo "$as_me:7370: checking for TIFFGetVersion in -ltiff" >&5
7371 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7372 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_check_lib_save_LIBS
=$LIBS
7376 LIBS
="-ltiff $tifflibs $LIBS"
7377 cat >conftest.
$ac_ext <<_ACEOF
7378 #line 7378 "configure"
7379 #include "confdefs.h"
7381 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7387 char TIFFGetVersion ();
7396 rm -f conftest.
$ac_objext conftest
$ac_exeext
7397 if { (eval echo "$as_me:7397: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7400 echo "$as_me:7400: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try
='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:7403: \"$ac_try\"") >&5
7406 echo "$as_me:7406: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_lib_tiff_TIFFGetVersion
=yes
7410 echo "$as_me: failed program was:" >&5
7411 cat conftest.
$ac_ext >&5
7412 ac_cv_lib_tiff_TIFFGetVersion
=no
7414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7415 LIBS
=$ac_check_lib_save_LIBS
7417 echo "$as_me:7417: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7418 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7419 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7427 if test "${HAVE_TIFF}" = "yes"; then
7428 cat >>confdefs.h
<<\EOF
7435 ### Use -lgif if available, unless `--with-gif=no'.
7437 if test "${HAVE_X11}" = "yes"; then
7438 if test "${with_gif}" != "no"; then
7439 echo "$as_me:7439: checking for gif_lib.h" >&5
7440 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7441 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.
$ac_ext <<_ACEOF
7445 #line 7445 "configure"
7446 #include "confdefs.h"
7447 #include <gif_lib.h>
7449 if { (eval echo "$as_me:7449: \"$ac_cpp conftest.$ac_ext\"") >&5
7450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7452 egrep -v '^ *\+' conftest.er1
>conftest.err
7454 cat conftest.err
>&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev
/null
; then
7457 if test -s conftest.err
; then
7458 ac_cpp_err
=$ac_c_preproc_warn_flag
7465 if test -z "$ac_cpp_err"; then
7466 ac_cv_header_gif_lib_h
=yes
7468 echo "$as_me: failed program was:" >&5
7469 cat conftest.
$ac_ext >&5
7470 ac_cv_header_gif_lib_h
=no
7472 rm -f conftest.err conftest.
$ac_ext
7474 echo "$as_me:7474: result: $ac_cv_header_gif_lib_h" >&5
7475 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7476 if test $ac_cv_header_gif_lib_h = yes; then
7477 echo "$as_me:7477: checking for DGifOpen in -lungif" >&5
7478 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7479 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 ac_check_lib_save_LIBS
=$LIBS
7483 LIBS
="-lungif $LIBS"
7484 cat >conftest.
$ac_ext <<_ACEOF
7485 #line 7485 "configure"
7486 #include "confdefs.h"
7488 /* Override any gcc2 internal prototype to avoid an error. */
7492 /* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7503 rm -f conftest.
$ac_objext conftest
$ac_exeext
7504 if { (eval echo "$as_me:7504: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7507 echo "$as_me:7507: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try
='test -s conftest$ac_exeext'
7510 { (eval echo "$as_me:7510: \"$ac_try\"") >&5
7513 echo "$as_me:7513: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_cv_lib_ungif_DGifOpen
=yes
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.
$ac_ext >&5
7519 ac_cv_lib_ungif_DGifOpen
=no
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7522 LIBS
=$ac_check_lib_save_LIBS
7524 echo "$as_me:7524: result: $ac_cv_lib_ungif_DGifOpen" >&5
7525 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7526 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7534 if test "${HAVE_GIF}" = "yes"; then
7535 cat >>confdefs.h
<<\EOF
7542 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7543 echo "$as_me:7543: checking whether netdb declares h_errno" >&5
7544 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7545 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 cat >conftest.
$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7560 rm -f conftest.
$ac_objext conftest
$ac_exeext
7561 if { (eval echo "$as_me:7561: \"$ac_link\"") >&5
7562 (eval $ac_link) 2>&5
7564 echo "$as_me:7564: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try
='test -s conftest$ac_exeext'
7567 { (eval echo "$as_me:7567: \"$ac_try\"") >&5
7570 echo "$as_me:7570: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 emacs_cv_netdb_declares_h_errno
=yes
7574 echo "$as_me: failed program was:" >&5
7575 cat conftest.
$ac_ext >&5
7576 emacs_cv_netdb_declares_h_errno
=no
7578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7580 echo "$as_me:7580: result: $emacs_cv_netdb_declares_h_errno" >&5
7581 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7582 if test $emacs_cv_netdb_declares_h_errno = yes; then
7583 cat >>confdefs.h
<<\EOF
7584 #define HAVE_H_ERRNO 1
7589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7590 # for constant arguments. Useless!
7591 echo "$as_me:7591: checking for working alloca.h" >&5
7592 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7593 if test "${ac_cv_working_alloca_h+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 cat >conftest.
$ac_ext <<_ACEOF
7597 #line 7597 "configure"
7598 #include "confdefs.h"
7603 char *p = (char *) alloca (2 * sizeof (int));
7608 rm -f conftest.
$ac_objext conftest
$ac_exeext
7609 if { (eval echo "$as_me:7609: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 echo "$as_me:7612: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try
='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:7615: \"$ac_try\"") >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_working_alloca_h
=yes
7622 echo "$as_me: failed program was:" >&5
7623 cat conftest.
$ac_ext >&5
7624 ac_cv_working_alloca_h
=no
7626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7628 echo "$as_me:7628: result: $ac_cv_working_alloca_h" >&5
7629 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7630 if test $ac_cv_working_alloca_h = yes; then
7632 cat >>confdefs.h
<<\EOF
7633 #define HAVE_ALLOCA_H 1
7638 echo "$as_me:7638: checking for alloca" >&5
7639 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7640 if test "${ac_cv_func_alloca_works+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 cat >conftest.
$ac_ext <<_ACEOF
7644 #line 7644 "configure"
7645 #include "confdefs.h"
7647 # define alloca __builtin_alloca
7650 # include <malloc.h>
7651 # define alloca _alloca
7654 # include <alloca.h>
7659 # ifndef alloca /* predefined by HP cc +Olibcalls */
7670 char *p = (char *) alloca (1);
7675 rm -f conftest.
$ac_objext conftest
$ac_exeext
7676 if { (eval echo "$as_me:7676: \"$ac_link\"") >&5
7677 (eval $ac_link) 2>&5
7679 echo "$as_me:7679: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try
='test -s conftest$ac_exeext'
7682 { (eval echo "$as_me:7682: \"$ac_try\"") >&5
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_cv_func_alloca_works
=yes
7689 echo "$as_me: failed program was:" >&5
7690 cat conftest.
$ac_ext >&5
7691 ac_cv_func_alloca_works
=no
7693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7695 echo "$as_me:7695: result: $ac_cv_func_alloca_works" >&5
7696 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7698 if test $ac_cv_func_alloca_works = yes; then
7700 cat >>confdefs.h
<<\EOF
7701 #define HAVE_ALLOCA 1
7705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7706 # that cause trouble. Some versions do not even contain alloca or
7707 # contain a buggy version. If you still want to use their alloca,
7708 # use ar to extract alloca.o from them instead of compiling alloca.c.
7710 ALLOCA
=alloca.
$ac_objext
7712 cat >>confdefs.h
<<\EOF
7716 echo "$as_me:7716: checking whether \`alloca.c' needs Cray hooks" >&5
7717 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7718 if test "${ac_cv_os_cray+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.
$ac_ext <<_ACEOF
7722 #line 7722 "configure"
7723 #include "confdefs.h"
7724 #if defined(CRAY) && ! defined(CRAY2)
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 egrep "webecray" >/dev
/null
2>&1; then
7740 echo "$as_me:7740: result: $ac_cv_os_cray" >&5
7741 echo "${ECHO_T}$ac_cv_os_cray" >&6
7742 if test $ac_cv_os_cray = yes; then
7743 for ac_func
in _getb67 GETB67 getb67
; do
7744 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7745 echo "$as_me:7745: checking for $ac_func" >&5
7746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7747 if eval "test \"\${$as_ac_var+set}\" = set"; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.
$ac_ext <<_ACEOF
7751 #line 7751 "configure"
7752 #include "confdefs.h"
7753 /* System header to define __stub macros and hopefully few prototypes,
7754 which can conflict with char $ac_func (); below. */
7756 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7768 /* The GNU C library defines this for functions which it implements
7769 to always fail with ENOSYS. Some functions are actually named
7770 something starting with __ and the normal name is an alias. */
7771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 rm -f conftest.
$ac_objext conftest
$ac_exeext
7782 if { (eval echo "$as_me:7782: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>&5
7785 echo "$as_me:7785: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try
='test -s conftest$ac_exeext'
7788 { (eval echo "$as_me:7788: \"$ac_try\"") >&5
7791 echo "$as_me:7791: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 eval "$as_ac_var=yes"
7795 echo "$as_me: failed program was:" >&5
7796 cat conftest.
$ac_ext >&5
7797 eval "$as_ac_var=no"
7799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7801 echo "$as_me:7801: result: `eval echo '${'$as_ac_var'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7803 if test `eval echo '${'$as_ac_var'}'` = yes; then
7805 cat >>confdefs.h
<<EOF
7806 #define CRAY_STACKSEG_END $ac_func
7815 echo "$as_me:7815: checking stack direction for C alloca" >&5
7816 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7817 if test "${ac_cv_c_stack_direction+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 if test "$cross_compiling" = yes; then
7821 ac_cv_c_stack_direction
=0
7823 cat >conftest.
$ac_ext <<_ACEOF
7824 #line 7824 "configure"
7825 #include "confdefs.h"
7827 find_stack_direction ()
7829 static char *addr = 0;
7834 return find_stack_direction ();
7837 return (&dummy > addr) ? 1 : -1;
7843 exit (find_stack_direction () < 0);
7846 rm -f conftest
$ac_exeext
7847 if { (eval echo "$as_me:7847: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>&5
7850 echo "$as_me:7850: \$? = $ac_status" >&5
7851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7852 { (eval echo "$as_me:7852: \"$ac_try\"") >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_cv_c_stack_direction
=1
7859 echo "$as_me: program exited with status $ac_status" >&5
7860 echo "$as_me: failed program was:" >&5
7861 cat conftest.
$ac_ext >&5
7862 ac_cv_c_stack_direction
=-1
7864 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7867 echo "$as_me:7867: result: $ac_cv_c_stack_direction" >&5
7868 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7870 cat >>confdefs.h
<<EOF
7871 #define STACK_DIRECTION $ac_cv_c_stack_direction
7876 # fmod, logb, and frexp are found in -lm on most systems.
7877 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7879 echo "$as_me:7879: checking for sqrt in -lm" >&5
7880 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7881 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 ac_check_lib_save_LIBS
=$LIBS
7886 cat >conftest.
$ac_ext <<_ACEOF
7887 #line 7887 "configure"
7888 #include "confdefs.h"
7890 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7905 rm -f conftest.
$ac_objext conftest
$ac_exeext
7906 if { (eval echo "$as_me:7906: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>&5
7909 echo "$as_me:7909: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try
='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:7912: \"$ac_try\"") >&5
7915 echo "$as_me:7915: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_cv_lib_m_sqrt
=yes
7919 echo "$as_me: failed program was:" >&5
7920 cat conftest.
$ac_ext >&5
7923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7924 LIBS
=$ac_check_lib_save_LIBS
7926 echo "$as_me:7926: result: $ac_cv_lib_m_sqrt" >&5
7927 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7928 if test $ac_cv_lib_m_sqrt = yes; then
7929 cat >>confdefs.h
<<EOF
7937 # Check for mail-locking functions in a "mail" library
7939 echo "$as_me:7939: checking for maillock in -lmail" >&5
7940 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7941 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_check_lib_save_LIBS
=$LIBS
7946 cat >conftest.
$ac_ext <<_ACEOF
7947 #line 7947 "configure"
7948 #include "confdefs.h"
7950 /* Override any gcc2 internal prototype to avoid an error. */
7954 /* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext
7966 if { (eval echo "$as_me:7966: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try
='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:7972: \"$ac_try\"") >&5
7975 echo "$as_me:7975: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_lib_mail_maillock
=yes
7979 echo "$as_me: failed program was:" >&5
7980 cat conftest.
$ac_ext >&5
7981 ac_cv_lib_mail_maillock
=no
7983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7984 LIBS
=$ac_check_lib_save_LIBS
7986 echo "$as_me:7986: result: $ac_cv_lib_mail_maillock" >&5
7987 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7988 if test $ac_cv_lib_mail_maillock = yes; then
7989 cat >>confdefs.h
<<EOF
7990 #define HAVE_LIBMAIL 1
7997 echo "$as_me:7997: checking for maillock in -llockfile" >&5
7998 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
7999 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 ac_check_lib_save_LIBS
=$LIBS
8003 LIBS
="-llockfile $LIBS"
8004 cat >conftest.
$ac_ext <<_ACEOF
8005 #line 8005 "configure"
8006 #include "confdefs.h"
8008 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext
8024 if { (eval echo "$as_me:8024: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8027 echo "$as_me:8027: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try
='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:8030: \"$ac_try\"") >&5
8033 echo "$as_me:8033: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_lib_lockfile_maillock
=yes
8037 echo "$as_me: failed program was:" >&5
8038 cat conftest.
$ac_ext >&5
8039 ac_cv_lib_lockfile_maillock
=no
8041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8042 LIBS
=$ac_check_lib_save_LIBS
8044 echo "$as_me:8044: result: $ac_cv_lib_lockfile_maillock" >&5
8045 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8046 if test $ac_cv_lib_lockfile_maillock = yes; then
8047 cat >>confdefs.h
<<EOF
8048 #define HAVE_LIBLOCKFILE 1
8051 LIBS
="-llockfile $LIBS"
8055 # If we have the shared liblockfile, assume we must use it for mail
8056 # locking (e.g. Debian). If we couldn't link against liblockfile
8057 # (no liblockfile.a installed), ensure that we don't need to.
8058 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8059 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8060 set dummy liblockfile.so
; ac_word
=$2
8061 echo "$as_me:8061: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063 if test "${ac_cv_prog_liblockfile+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 if test -n "$liblockfile"; then
8067 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8069 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8070 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8071 for ac_dir
in $ac_dummy; do
8073 test -z "$ac_dir" && ac_dir
=.
8074 $as_executable_p "$ac_dir/$ac_word" ||
continue
8075 ac_cv_prog_liblockfile
="yes"
8076 echo "$as_me:8076: found $ac_dir/$ac_word" >&5
8080 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8083 liblockfile
=$ac_cv_prog_liblockfile
8084 if test -n "$liblockfile"; then
8085 echo "$as_me:8085: result: $liblockfile" >&5
8086 echo "${ECHO_T}$liblockfile" >&6
8088 echo "$as_me:8088: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8092 if test $ac_cv_prog_liblockfile = yes; then
8093 { { echo "$as_me:8093: error: Shared liblockfile found but can't link against it.
8094 This probably means that movemail could lose mail.
8095 There may be a \`development' package to install containing liblockfile." >&5
8096 echo "$as_me: error: Shared liblockfile found but can't link against it.
8097 This probably means that movemail could lose mail.
8098 There may be a \`development' package to install containing liblockfile." >&2;}
8099 { (exit 1); exit 1; }; }
8100 else cat >>confdefs.h
<<\EOF
8101 #define LIBMAIL -llockfile
8108 for ac_func
in touchlock
8110 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8111 echo "$as_me:8111: checking for $ac_func" >&5
8112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8113 if eval "test \"\${$as_ac_var+set}\" = set"; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.
$ac_ext <<_ACEOF
8117 #line 8117 "configure"
8118 #include "confdefs.h"
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char $ac_func (); below. */
8122 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8134 /* The GNU C library defines this for functions which it implements
8135 to always fail with ENOSYS. Some functions are actually named
8136 something starting with __ and the normal name is an alias. */
8137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8147 rm -f conftest.
$ac_objext conftest
$ac_exeext
8148 if { (eval echo "$as_me:8148: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8151 echo "$as_me:8151: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try
='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:8154: \"$ac_try\"") >&5
8157 echo "$as_me:8157: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 eval "$as_ac_var=yes"
8161 echo "$as_me: failed program was:" >&5
8162 cat conftest.
$ac_ext >&5
8163 eval "$as_ac_var=no"
8165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8167 echo "$as_me:8167: result: `eval echo '${'$as_ac_var'}'`" >&5
8168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8169 if test `eval echo '${'$as_ac_var'}'` = yes; then
8170 cat >>confdefs.h
<<EOF
8171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8177 for ac_header
in maillock.h
8179 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 echo "$as_me:8180: checking for $ac_header" >&5
8181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 cat >conftest.
$ac_ext <<_ACEOF
8186 #line 8186 "configure"
8187 #include "confdefs.h"
8188 #include <$ac_header>
8190 if { (eval echo "$as_me:8190: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8193 egrep -v '^ *\+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev
/null
; then
8198 if test -s conftest.err
; then
8199 ac_cpp_err
=$ac_c_preproc_warn_flag
8206 if test -z "$ac_cpp_err"; then
8207 eval "$as_ac_Header=yes"
8209 echo "$as_me: failed program was:" >&5
8210 cat conftest.
$ac_ext >&5
8211 eval "$as_ac_Header=no"
8213 rm -f conftest.err conftest.
$ac_ext
8215 echo "$as_me:8215: result: `eval echo '${'$as_ac_Header'}'`" >&5
8216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8218 cat >>confdefs.h
<<EOF
8219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 for ac_func
in gethostname getdomainname dup2 \
8226 rename closedir mkdir
rmdir sysinfo \
8227 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8228 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8229 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8230 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
8231 gai_strerror mkstemp
8233 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8234 echo "$as_me:8234: checking for $ac_func" >&5
8235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8236 if eval "test \"\${$as_ac_var+set}\" = set"; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 cat >conftest.
$ac_ext <<_ACEOF
8240 #line 8240 "configure"
8241 #include "confdefs.h"
8242 /* System header to define __stub macros and hopefully few prototypes,
8243 which can conflict with char $ac_func (); below. */
8245 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8270 rm -f conftest.
$ac_objext conftest
$ac_exeext
8271 if { (eval echo "$as_me:8271: \"$ac_link\"") >&5
8272 (eval $ac_link) 2>&5
8274 echo "$as_me:8274: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try
='test -s conftest$ac_exeext'
8277 { (eval echo "$as_me:8277: \"$ac_try\"") >&5
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 eval "$as_ac_var=yes"
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.
$ac_ext >&5
8286 eval "$as_ac_var=no"
8288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8290 echo "$as_me:8290: result: `eval echo '${'$as_ac_var'}'`" >&5
8291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8292 if test `eval echo '${'$as_ac_var'}'` = yes; then
8293 cat >>confdefs.h
<<EOF
8294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8300 for ac_header
in sys
/time.h unistd.h
8302 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8303 echo "$as_me:8303: checking for $ac_header" >&5
8304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8309 #line 8309 "configure"
8310 #include "confdefs.h"
8311 #include <$ac_header>
8313 if { (eval echo "$as_me:8313: \"$ac_cpp conftest.$ac_ext\"") >&5
8314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8316 egrep -v '^ *\+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:8319: \$? = $ac_status" >&5
8320 (exit $ac_status); } >/dev
/null
; then
8321 if test -s conftest.err
; then
8322 ac_cpp_err
=$ac_c_preproc_warn_flag
8329 if test -z "$ac_cpp_err"; then
8330 eval "$as_ac_Header=yes"
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.
$ac_ext >&5
8334 eval "$as_ac_Header=no"
8336 rm -f conftest.err conftest.
$ac_ext
8338 echo "$as_me:8338: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8341 cat >>confdefs.h
<<EOF
8342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 for ac_func
in alarm
8350 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8351 echo "$as_me:8351: checking for $ac_func" >&5
8352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8353 if eval "test \"\${$as_ac_var+set}\" = set"; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.
$ac_ext <<_ACEOF
8357 #line 8357 "configure"
8358 #include "confdefs.h"
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char $ac_func (); below. */
8362 /* Override any gcc2 internal prototype to avoid an error. */
8366 /* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8387 rm -f conftest.
$ac_objext conftest
$ac_exeext
8388 if { (eval echo "$as_me:8388: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8391 echo "$as_me:8391: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try
='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:8394: \"$ac_try\"") >&5
8397 echo "$as_me:8397: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 eval "$as_ac_var=yes"
8401 echo "$as_me: failed program was:" >&5
8402 cat conftest.
$ac_ext >&5
8403 eval "$as_ac_var=no"
8405 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8407 echo "$as_me:8407: result: `eval echo '${'$as_ac_var'}'`" >&5
8408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8409 if test `eval echo '${'$as_ac_var'}'` = yes; then
8410 cat >>confdefs.h
<<EOF
8411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8417 echo "$as_me:8417: checking for working mktime" >&5
8418 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8419 if test "${ac_cv_func_working_mktime+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test "$cross_compiling" = yes; then
8423 ac_cv_func_working_mktime
=no
8425 cat >conftest.
$ac_ext <<_ACEOF
8426 #line 8426 "configure"
8427 #include "confdefs.h"
8428 /* Test program from Paul Eggert and Tony Leneis. */
8429 #if TIME_WITH_SYS_TIME
8430 # include <sys/time.h>
8433 # if HAVE_SYS_TIME_H
8434 # include <sys/time.h>
8441 # include <unistd.h>
8445 # define alarm(X) /* empty */
8448 /* Work around redefinition to rpl_putenv by other config tests. */
8451 static time_t time_t_max;
8453 /* Values we'll use to set the TZ environment variable. */
8454 static const char *const tz_strings[] = {
8455 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8456 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8458 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8460 /* Fail if mktime fails to convert a date in the spring-forward gap.
8461 Based on a problem report from Andreas Jaeger. */
8463 spring_forward_gap ()
8465 /* glibc (up to about 1998-10-07) failed this test. */
8468 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8469 instead of "TZ=America/Vancouver" in order to detect the bug even
8470 on systems that don't support the Olson extension, or don't have the
8471 full zoneinfo tables installed. */
8472 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8481 if (mktime (&tm) == (time_t)-1)
8490 if ((lt = localtime (&now)) && mktime (lt) != now)
8492 now = time_t_max - now;
8493 if ((lt = localtime (&now)) && mktime (lt) != now)
8500 /* Based on code from Ariel Faigon. */
8510 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8520 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8522 if (now != (time_t) -1)
8524 struct tm *lt = localtime (&now);
8526 && lt->tm_year == tm.tm_year
8527 && lt->tm_mon == tm.tm_mon
8528 && lt->tm_mday == tm.tm_mday
8529 && lt->tm_hour == tm.tm_hour
8530 && lt->tm_min == tm.tm_min
8531 && lt->tm_sec == tm.tm_sec
8532 && lt->tm_yday == tm.tm_yday
8533 && lt->tm_wday == tm.tm_wday
8534 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8535 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8546 /* This test makes some buggy mktime implementations loop.
8547 Give up after 60 seconds; a mktime slower than that
8548 isn't worth using anyway. */
8551 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8554 delta = time_t_max / 997; /* a suitable prime number */
8555 for (i = 0; i < N_STRINGS; i++)
8558 putenv (tz_strings[i]);
8560 for (t = 0; t <= time_t_max - delta; t += delta)
8562 mktime_test ((time_t) 60 * 60);
8563 mktime_test ((time_t) 60 * 60 * 24);
8565 for (j = 1; 0 < j; j *= 2)
8567 bigtime_test (j - 1);
8570 spring_forward_gap ();
8574 rm -f conftest
$ac_exeext
8575 if { (eval echo "$as_me:8575: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>&5
8578 echo "$as_me:8578: \$? = $ac_status" >&5
8579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8580 { (eval echo "$as_me:8580: \"$ac_try\"") >&5
8583 echo "$as_me:8583: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_func_working_mktime
=yes
8587 echo "$as_me: program exited with status $ac_status" >&5
8588 echo "$as_me: failed program was:" >&5
8589 cat conftest.
$ac_ext >&5
8590 ac_cv_func_working_mktime
=no
8592 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8595 echo "$as_me:8595: result: $ac_cv_func_working_mktime" >&5
8596 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8597 if test $ac_cv_func_working_mktime = no
; then
8598 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8601 if test "$ac_cv_func_working_mktime" = no
; then
8602 cat >>confdefs.h
<<\EOF
8603 #define BROKEN_MKTIME 1
8608 ac_have_func
=no
# yes means we've found a way to get the load average.
8612 # Check for getloadavg, but be sure not to touch the cache variable.
8613 (echo "$as_me:8613: checking for getloadavg" >&5
8614 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8615 if test "${ac_cv_func_getloadavg+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.
$ac_ext <<_ACEOF
8619 #line 8619 "configure"
8620 #include "confdefs.h"
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char getloadavg (); below. */
8624 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8636 /* The GNU C library defines this for functions which it implements
8637 to always fail with ENOSYS. Some functions are actually named
8638 something starting with __ and the normal name is an alias. */
8639 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8649 rm -f conftest.
$ac_objext conftest
$ac_exeext
8650 if { (eval echo "$as_me:8650: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>&5
8653 echo "$as_me:8653: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try
='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:8656: \"$ac_try\"") >&5
8659 echo "$as_me:8659: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_func_getloadavg
=yes
8663 echo "$as_me: failed program was:" >&5
8664 cat conftest.
$ac_ext >&5
8665 ac_cv_func_getloadavg
=no
8667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8669 echo "$as_me:8669: result: $ac_cv_func_getloadavg" >&5
8670 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8671 if test $ac_cv_func_getloadavg = yes; then
8676 ) && ac_have_func
=yes
8678 # On HPUX9, an unprivileged user can get load averages through this function.
8680 for ac_func
in pstat_getdynamic
8682 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8683 echo "$as_me:8683: checking for $ac_func" >&5
8684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_var+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 cat >conftest.
$ac_ext <<_ACEOF
8689 #line 8689 "configure"
8690 #include "confdefs.h"
8691 /* System header to define __stub macros and hopefully few prototypes,
8692 which can conflict with char $ac_func (); below. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8706 /* The GNU C library defines this for functions which it implements
8707 to always fail with ENOSYS. Some functions are actually named
8708 something starting with __ and the normal name is an alias. */
8709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8719 rm -f conftest.
$ac_objext conftest
$ac_exeext
8720 if { (eval echo "$as_me:8720: \"$ac_link\"") >&5
8721 (eval $ac_link) 2>&5
8723 echo "$as_me:8723: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try
='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:8726: \"$ac_try\"") >&5
8729 echo "$as_me:8729: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 eval "$as_ac_var=yes"
8733 echo "$as_me: failed program was:" >&5
8734 cat conftest.
$ac_ext >&5
8735 eval "$as_ac_var=no"
8737 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8739 echo "$as_me:8739: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742 cat >>confdefs.h
<<EOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 # Solaris has libkstat which does not require root.
8751 echo "$as_me:8751: checking for kstat_open in -lkstat" >&5
8752 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8753 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 ac_check_lib_save_LIBS
=$LIBS
8757 LIBS
="-lkstat $LIBS"
8758 cat >conftest.
$ac_ext <<_ACEOF
8759 #line 8759 "configure"
8760 #include "confdefs.h"
8762 /* Override any gcc2 internal prototype to avoid an error. */
8766 /* We use char because int might match the return type of a gcc2
8767 builtin and then its argument prototype would still apply. */
8777 rm -f conftest.
$ac_objext conftest
$ac_exeext
8778 if { (eval echo "$as_me:8778: \"$ac_link\"") >&5
8779 (eval $ac_link) 2>&5
8781 echo "$as_me:8781: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try
='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:8784: \"$ac_try\"") >&5
8787 echo "$as_me:8787: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_lib_kstat_kstat_open
=yes
8791 echo "$as_me: failed program was:" >&5
8792 cat conftest.
$ac_ext >&5
8793 ac_cv_lib_kstat_kstat_open
=no
8795 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8796 LIBS
=$ac_check_lib_save_LIBS
8798 echo "$as_me:8798: result: $ac_cv_lib_kstat_kstat_open" >&5
8799 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8800 if test $ac_cv_lib_kstat_kstat_open = yes; then
8801 cat >>confdefs.h
<<EOF
8802 #define HAVE_LIBKSTAT 1
8805 LIBS
="-lkstat $LIBS"
8809 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8811 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8812 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8813 # to get the right answer into the cache.
8814 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8815 if test $ac_have_func = no
; then
8816 echo "$as_me:8816: checking for elf_begin in -lelf" >&5
8817 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8818 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_check_lib_save_LIBS
=$LIBS
8823 cat >conftest.
$ac_ext <<_ACEOF
8824 #line 8824 "configure"
8825 #include "confdefs.h"
8827 /* Override any gcc2 internal prototype to avoid an error. */
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8842 rm -f conftest.
$ac_objext conftest
$ac_exeext
8843 if { (eval echo "$as_me:8843: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8846 echo "$as_me:8846: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try
='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:8849: \"$ac_try\"") >&5
8852 echo "$as_me:8852: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_elf_elf_begin
=yes
8856 echo "$as_me: failed program was:" >&5
8857 cat conftest.
$ac_ext >&5
8858 ac_cv_lib_elf_elf_begin
=no
8860 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8861 LIBS
=$ac_check_lib_save_LIBS
8863 echo "$as_me:8863: result: $ac_cv_lib_elf_elf_begin" >&5
8864 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8865 if test $ac_cv_lib_elf_elf_begin = yes; then
8870 if test $ac_have_func = no
; then
8871 echo "$as_me:8871: checking for kvm_open in -lkvm" >&5
8872 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8873 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 ac_check_lib_save_LIBS
=$LIBS
8878 cat >conftest.
$ac_ext <<_ACEOF
8879 #line 8879 "configure"
8880 #include "confdefs.h"
8882 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8897 rm -f conftest.
$ac_objext conftest
$ac_exeext
8898 if { (eval echo "$as_me:8898: \"$ac_link\"") >&5
8899 (eval $ac_link) 2>&5
8901 echo "$as_me:8901: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try
='test -s conftest$ac_exeext'
8904 { (eval echo "$as_me:8904: \"$ac_try\"") >&5
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_lib_kvm_kvm_open
=yes
8911 echo "$as_me: failed program was:" >&5
8912 cat conftest.
$ac_ext >&5
8913 ac_cv_lib_kvm_kvm_open
=no
8915 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8916 LIBS
=$ac_check_lib_save_LIBS
8918 echo "$as_me:8918: result: $ac_cv_lib_kvm_kvm_open" >&5
8919 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8920 if test $ac_cv_lib_kvm_kvm_open = yes; then
8924 # Check for the 4.4BSD definition of getloadavg.
8925 echo "$as_me:8925: checking for getloadavg in -lutil" >&5
8926 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8927 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 ac_check_lib_save_LIBS
=$LIBS
8932 cat >conftest.
$ac_ext <<_ACEOF
8933 #line 8933 "configure"
8934 #include "confdefs.h"
8936 /* Override any gcc2 internal prototype to avoid an error. */
8940 /* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8951 rm -f conftest.
$ac_objext conftest
$ac_exeext
8952 if { (eval echo "$as_me:8952: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>&5
8955 echo "$as_me:8955: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try
='test -s conftest$ac_exeext'
8958 { (eval echo "$as_me:8958: \"$ac_try\"") >&5
8961 echo "$as_me:8961: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_cv_lib_util_getloadavg
=yes
8965 echo "$as_me: failed program was:" >&5
8966 cat conftest.
$ac_ext >&5
8967 ac_cv_lib_util_getloadavg
=no
8969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8970 LIBS
=$ac_check_lib_save_LIBS
8972 echo "$as_me:8972: result: $ac_cv_lib_util_getloadavg" >&5
8973 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8974 if test $ac_cv_lib_util_getloadavg = yes; then
8975 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
8980 if test $ac_have_func = no
; then
8981 # There is a commonly available library for RS/6000 AIX.
8982 # Since it is not a standard part of AIX, it might be installed locally.
8983 ac_getloadavg_LIBS
=$LIBS
8984 LIBS
="-L/usr/local/lib $LIBS"
8985 echo "$as_me:8985: checking for getloadavg in -lgetloadavg" >&5
8986 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8987 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 ac_check_lib_save_LIBS
=$LIBS
8991 LIBS
="-lgetloadavg $LIBS"
8992 cat >conftest.
$ac_ext <<_ACEOF
8993 #line 8993 "configure"
8994 #include "confdefs.h"
8996 /* Override any gcc2 internal prototype to avoid an error. */
9000 /* We use char because int might match the return type of a gcc2
9001 builtin and then its argument prototype would still apply. */
9011 rm -f conftest.
$ac_objext conftest
$ac_exeext
9012 if { (eval echo "$as_me:9012: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>&5
9015 echo "$as_me:9015: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try
='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:9018: \"$ac_try\"") >&5
9021 echo "$as_me:9021: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_lib_getloadavg_getloadavg
=yes
9025 echo "$as_me: failed program was:" >&5
9026 cat conftest.
$ac_ext >&5
9027 ac_cv_lib_getloadavg_getloadavg
=no
9029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9030 LIBS
=$ac_check_lib_save_LIBS
9032 echo "$as_me:9032: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9033 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9034 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9035 LIBS
="-lgetloadavg $LIBS"
9037 LIBS
=$ac_getloadavg_LIBS
9042 # Make sure it is really in the library, if we think we found it,
9043 # otherwise set up the replacement function.
9045 for ac_func
in getloadavg
9047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9048 echo "$as_me:9048: checking for $ac_func" >&5
9049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_var+set}\" = set"; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 cat >conftest.
$ac_ext <<_ACEOF
9054 #line 9054 "configure"
9055 #include "confdefs.h"
9056 /* System header to define __stub macros and hopefully few prototypes,
9057 which can conflict with char $ac_func (); below. */
9059 /* Override any gcc2 internal prototype to avoid an error. */
9063 /* We use char because int might match the return type of a gcc2
9064 builtin and then its argument prototype would still apply. */
9071 /* The GNU C library defines this for functions which it implements
9072 to always fail with ENOSYS. Some functions are actually named
9073 something starting with __ and the normal name is an alias. */
9074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9084 rm -f conftest.
$ac_objext conftest
$ac_exeext
9085 if { (eval echo "$as_me:9085: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>&5
9088 echo "$as_me:9088: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try
='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:9091: \"$ac_try\"") >&5
9094 echo "$as_me:9094: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 eval "$as_ac_var=yes"
9098 echo "$as_me: failed program was:" >&5
9099 cat conftest.
$ac_ext >&5
9100 eval "$as_ac_var=no"
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9104 echo "$as_me:9104: result: `eval echo '${'$as_ac_var'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9106 if test `eval echo '${'$as_ac_var'}'` = yes; then
9107 cat >>confdefs.h
<<EOF
9108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9112 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9114 cat >>confdefs.h
<<\EOF
9115 #define C_GETLOADAVG 1
9118 # Figure out what our getloadavg.c needs.
9120 echo "$as_me:9120: checking for sys/dg_sys_info.h" >&5
9121 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9122 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 cat >conftest.
$ac_ext <<_ACEOF
9126 #line 9126 "configure"
9127 #include "confdefs.h"
9128 #include <sys/dg_sys_info.h>
9130 if { (eval echo "$as_me:9130: \"$ac_cpp conftest.$ac_ext\"") >&5
9131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9133 egrep -v '^ *\+' conftest.er1
>conftest.err
9135 cat conftest.err
>&5
9136 echo "$as_me:9136: \$? = $ac_status" >&5
9137 (exit $ac_status); } >/dev
/null
; then
9138 if test -s conftest.err
; then
9139 ac_cpp_err
=$ac_c_preproc_warn_flag
9146 if test -z "$ac_cpp_err"; then
9147 ac_cv_header_sys_dg_sys_info_h
=yes
9149 echo "$as_me: failed program was:" >&5
9150 cat conftest.
$ac_ext >&5
9151 ac_cv_header_sys_dg_sys_info_h
=no
9153 rm -f conftest.err conftest.
$ac_ext
9155 echo "$as_me:9155: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9156 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9157 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9160 cat >>confdefs.h
<<\EOF
9164 echo "$as_me:9164: checking for dg_sys_info in -ldgc" >&5
9165 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9166 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 ac_check_lib_save_LIBS
=$LIBS
9171 cat >conftest.
$ac_ext <<_ACEOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9175 /* Override any gcc2 internal prototype to avoid an error. */
9179 /* We use char because int might match the return type of a gcc2
9180 builtin and then its argument prototype would still apply. */
9181 char dg_sys_info ();
9190 rm -f conftest.
$ac_objext conftest
$ac_exeext
9191 if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>&5
9194 echo "$as_me:9194: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try
='test -s conftest$ac_exeext'
9197 { (eval echo "$as_me:9197: \"$ac_try\"") >&5
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_cv_lib_dgc_dg_sys_info
=yes
9204 echo "$as_me: failed program was:" >&5
9205 cat conftest.
$ac_ext >&5
9206 ac_cv_lib_dgc_dg_sys_info
=no
9208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9209 LIBS
=$ac_check_lib_save_LIBS
9211 echo "$as_me:9211: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9212 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9213 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9214 cat >>confdefs.h
<<EOF
9215 #define HAVE_LIBDGC 1
9224 echo "$as_me:9224: checking for locale.h" >&5
9225 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9226 if test "${ac_cv_header_locale_h+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9230 #line 9230 "configure"
9231 #include "confdefs.h"
9234 if { (eval echo "$as_me:9234: \"$ac_cpp conftest.$ac_ext\"") >&5
9235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9237 egrep -v '^ *\+' conftest.er1
>conftest.err
9239 cat conftest.err
>&5
9240 echo "$as_me:9240: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev
/null
; then
9242 if test -s conftest.err
; then
9243 ac_cpp_err
=$ac_c_preproc_warn_flag
9250 if test -z "$ac_cpp_err"; then
9251 ac_cv_header_locale_h
=yes
9253 echo "$as_me: failed program was:" >&5
9254 cat conftest.
$ac_ext >&5
9255 ac_cv_header_locale_h
=no
9257 rm -f conftest.err conftest.
$ac_ext
9259 echo "$as_me:9259: result: $ac_cv_header_locale_h" >&5
9260 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9262 for ac_func
in setlocale
9264 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9265 echo "$as_me:9265: checking for $ac_func" >&5
9266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9267 if eval "test \"\${$as_ac_var+set}\" = set"; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.
$ac_ext <<_ACEOF
9271 #line 9271 "configure"
9272 #include "confdefs.h"
9273 /* System header to define __stub macros and hopefully few prototypes,
9274 which can conflict with char $ac_func (); below. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9288 /* The GNU C library defines this for functions which it implements
9289 to always fail with ENOSYS. Some functions are actually named
9290 something starting with __ and the normal name is an alias. */
9291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9301 rm -f conftest.
$ac_objext conftest
$ac_exeext
9302 if { (eval echo "$as_me:9302: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9305 echo "$as_me:9305: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try
='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:9308: \"$ac_try\"") >&5
9311 echo "$as_me:9311: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 eval "$as_ac_var=yes"
9315 echo "$as_me: failed program was:" >&5
9316 cat conftest.
$ac_ext >&5
9317 eval "$as_ac_var=no"
9319 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9321 echo "$as_me:9321: result: `eval echo '${'$as_ac_var'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9323 if test `eval echo '${'$as_ac_var'}'` = yes; then
9324 cat >>confdefs.h
<<EOF
9325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9332 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9333 # Irix 4.0.5F has the header but not the library.
9334 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9337 cat >>confdefs.h
<<\EOF
9343 if test $ac_have_func = no
; then
9344 echo "$as_me:9344: checking for inq_stats/cpustats.h" >&5
9345 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9346 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 cat >conftest.
$ac_ext <<_ACEOF
9350 #line 9350 "configure"
9351 #include "confdefs.h"
9352 #include <inq_stats/cpustats.h>
9354 if { (eval echo "$as_me:9354: \"$ac_cpp conftest.$ac_ext\"") >&5
9355 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9357 egrep -v '^ *\+' conftest.er1
>conftest.err
9359 cat conftest.err
>&5
9360 echo "$as_me:9360: \$? = $ac_status" >&5
9361 (exit $ac_status); } >/dev
/null
; then
9362 if test -s conftest.err
; then
9363 ac_cpp_err
=$ac_c_preproc_warn_flag
9370 if test -z "$ac_cpp_err"; then
9371 ac_cv_header_inq_stats_cpustats_h
=yes
9373 echo "$as_me: failed program was:" >&5
9374 cat conftest.
$ac_ext >&5
9375 ac_cv_header_inq_stats_cpustats_h
=no
9377 rm -f conftest.err conftest.
$ac_ext
9379 echo "$as_me:9379: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9380 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9381 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9384 cat >>confdefs.h
<<\EOF
9388 cat >>confdefs.h
<<\EOF
9396 if test $ac_have_func = no
; then
9397 echo "$as_me:9397: checking for sys/cpustats.h" >&5
9398 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9399 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 cat >conftest.
$ac_ext <<_ACEOF
9403 #line 9403 "configure"
9404 #include "confdefs.h"
9405 #include <sys/cpustats.h>
9407 if { (eval echo "$as_me:9407: \"$ac_cpp conftest.$ac_ext\"") >&5
9408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9410 egrep -v '^ *\+' conftest.er1
>conftest.err
9412 cat conftest.err
>&5
9413 echo "$as_me:9413: \$? = $ac_status" >&5
9414 (exit $ac_status); } >/dev
/null
; then
9415 if test -s conftest.err
; then
9416 ac_cpp_err
=$ac_c_preproc_warn_flag
9423 if test -z "$ac_cpp_err"; then
9424 ac_cv_header_sys_cpustats_h
=yes
9426 echo "$as_me: failed program was:" >&5
9427 cat conftest.
$ac_ext >&5
9428 ac_cv_header_sys_cpustats_h
=no
9430 rm -f conftest.err conftest.
$ac_ext
9432 echo "$as_me:9432: result: $ac_cv_header_sys_cpustats_h" >&5
9433 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9434 if test $ac_cv_header_sys_cpustats_h = yes; then
9435 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9443 if test $ac_have_func = no
; then
9445 for ac_header
in mach
/mach.h
9447 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9448 echo "$as_me:9448: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.
$ac_ext <<_ACEOF
9454 #line 9454 "configure"
9455 #include "confdefs.h"
9456 #include <$ac_header>
9458 if { (eval echo "$as_me:9458: \"$ac_cpp conftest.$ac_ext\"") >&5
9459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9461 egrep -v '^ *\+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:9464: \$? = $ac_status" >&5
9465 (exit $ac_status); } >/dev
/null
; then
9466 if test -s conftest.err
; then
9467 ac_cpp_err
=$ac_c_preproc_warn_flag
9474 if test -z "$ac_cpp_err"; then
9475 eval "$as_ac_Header=yes"
9477 echo "$as_me: failed program was:" >&5
9478 cat conftest.
$ac_ext >&5
9479 eval "$as_ac_Header=no"
9481 rm -f conftest.err conftest.
$ac_ext
9483 echo "$as_me:9483: result: `eval echo '${'$as_ac_Header'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486 cat >>confdefs.h
<<EOF
9487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9495 for ac_header
in nlist.h
9497 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9498 echo "$as_me:9498: checking for $ac_header" >&5
9499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.
$ac_ext <<_ACEOF
9504 #line 9504 "configure"
9505 #include "confdefs.h"
9506 #include <$ac_header>
9508 if { (eval echo "$as_me:9508: \"$ac_cpp conftest.$ac_ext\"") >&5
9509 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9511 egrep -v '^ *\+' conftest.er1
>conftest.err
9513 cat conftest.err
>&5
9514 echo "$as_me:9514: \$? = $ac_status" >&5
9515 (exit $ac_status); } >/dev
/null
; then
9516 if test -s conftest.err
; then
9517 ac_cpp_err
=$ac_c_preproc_warn_flag
9524 if test -z "$ac_cpp_err"; then
9525 eval "$as_ac_Header=yes"
9527 echo "$as_me: failed program was:" >&5
9528 cat conftest.
$ac_ext >&5
9529 eval "$as_ac_Header=no"
9531 rm -f conftest.err conftest.
$ac_ext
9533 echo "$as_me:9533: result: `eval echo '${'$as_ac_Header'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9536 cat >>confdefs.h
<<EOF
9537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9539 echo "$as_me:9539: checking for struct nlist.n_un.n_name" >&5
9540 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9541 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 cat >conftest.
$ac_ext <<_ACEOF
9545 #line 9545 "configure"
9546 #include "confdefs.h"
9552 static struct nlist ac_aggr;
9553 if (ac_aggr.n_un.n_name)
9559 rm -f conftest.
$ac_objext
9560 if { (eval echo "$as_me:9560: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9563 echo "$as_me:9563: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try
='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:9566: \"$ac_try\"") >&5
9569 echo "$as_me:9569: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_member_struct_nlist_n_un_n_name
=yes
9573 echo "$as_me: failed program was:" >&5
9574 cat conftest.
$ac_ext >&5
9575 ac_cv_member_struct_nlist_n_un_n_name
=no
9577 rm -f conftest.
$ac_objext conftest.
$ac_ext
9579 echo "$as_me:9579: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9580 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9581 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9583 cat >>confdefs.h
<<EOF
9584 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9587 cat >>confdefs.h
<<\EOF
9588 #define NLIST_NAME_UNION 1
9599 # Some definitions of getloadavg require that the program be installed setgid.
9600 echo "$as_me:9600: checking whether getloadavg requires setgid" >&5
9601 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9602 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.
$ac_ext <<_ACEOF
9606 #line 9606 "configure"
9607 #include "confdefs.h"
9608 #include "$srcdir/getloadavg.c"
9609 #ifdef LDAV_PRIVILEGED
9610 Yowza Am I SETGID yet
9613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9615 ac_cv_func_getloadavg_setgid
=yes
9617 ac_cv_func_getloadavg_setgid
=no
9622 echo "$as_me:9622: result: $ac_cv_func_getloadavg_setgid" >&5
9623 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9624 if test $ac_cv_func_getloadavg_setgid = yes; then
9627 cat >>confdefs.h
<<\EOF
9628 #define GETLOADAVG_PRIVILEGED 1
9635 if test $ac_cv_func_getloadavg_setgid = yes; then
9636 echo "$as_me:9636: checking group of /dev/kmem" >&5
9637 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9638 if test "${ac_cv_group_kmem+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9642 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9643 # If we got an error (system does not support symlinks), try without -L.
9644 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9645 ac_cv_group_kmem
=`echo $ac_ls_output \
9646 | sed -ne 's/[ ][ ]*/ /g;
9647 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9651 echo "$as_me:9651: result: $ac_cv_group_kmem" >&5
9652 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9653 KMEM_GROUP
=$ac_cv_group_kmem
9655 if test "x$ac_save_LIBS" = x
; then
9656 GETLOADAVG_LIBS
=$LIBS
9658 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9662 echo "$as_me:9662: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9663 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9664 if test "${ac_cv_sys_largefile_source+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_cv_sys_largefile_source
=no
9669 cat >conftest.
$ac_ext <<_ACEOF
9670 #line 9670 "configure"
9671 #include "confdefs.h"
9681 rm -f conftest.
$ac_objext
9682 if { (eval echo "$as_me:9682: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try
='test -s conftest.$ac_objext'
9688 { (eval echo "$as_me:9688: \"$ac_try\"") >&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.
$ac_ext >&5
9698 rm -f conftest.
$ac_objext conftest.
$ac_ext
9699 cat >conftest.
$ac_ext <<_ACEOF
9700 #line 9700 "configure"
9701 #include "confdefs.h"
9702 #define _LARGEFILE_SOURCE 1
9712 rm -f conftest.
$ac_objext
9713 if { (eval echo "$as_me:9713: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>&5
9716 echo "$as_me:9716: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try
='test -s conftest.$ac_objext'
9719 { (eval echo "$as_me:9719: \"$ac_try\"") >&5
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_sys_largefile_source
=1; break
9726 echo "$as_me: failed program was:" >&5
9727 cat conftest.
$ac_ext >&5
9729 rm -f conftest.
$ac_objext conftest.
$ac_ext
9733 echo "$as_me:9733: result: $ac_cv_sys_largefile_source" >&5
9734 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9735 if test "$ac_cv_sys_largefile_source" != no
; then
9737 cat >>confdefs.h
<<EOF
9738 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9744 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9745 # in glibc 2.1.3, but that breaks too many other things.
9746 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9747 echo "$as_me:9747: checking for fseeko" >&5
9748 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9749 if test "${ac_cv_func_fseeko+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 cat >conftest.
$ac_ext <<_ACEOF
9753 #line 9753 "configure"
9754 #include "confdefs.h"
9759 return fseeko && fseeko (stdin, 0, 0);
9764 rm -f conftest.
$ac_objext conftest
$ac_exeext
9765 if { (eval echo "$as_me:9765: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9768 echo "$as_me:9768: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try
='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:9771: \"$ac_try\"") >&5
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_func_fseeko
=yes
9778 echo "$as_me: failed program was:" >&5
9779 cat conftest.
$ac_ext >&5
9780 ac_cv_func_fseeko
=no
9782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9784 echo "$as_me:9784: result: $ac_cv_func_fseeko" >&5
9785 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9786 if test $ac_cv_func_fseeko = yes; then
9788 cat >>confdefs.h
<<\EOF
9789 #define HAVE_FSEEKO 1
9796 for ac_func
in grantpt
9798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9799 echo "$as_me:9799: checking for $ac_func" >&5
9800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9801 if eval "test \"\${$as_ac_var+set}\" = set"; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.
$ac_ext <<_ACEOF
9805 #line 9805 "configure"
9806 #include "confdefs.h"
9807 /* System header to define __stub macros and hopefully few prototypes,
9808 which can conflict with char $ac_func (); below. */
9810 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9822 /* The GNU C library defines this for functions which it implements
9823 to always fail with ENOSYS. Some functions are actually named
9824 something starting with __ and the normal name is an alias. */
9825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835 rm -f conftest.
$ac_objext conftest
$ac_exeext
9836 if { (eval echo "$as_me:9836: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>&5
9839 echo "$as_me:9839: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try
='test -s conftest$ac_exeext'
9842 { (eval echo "$as_me:9842: \"$ac_try\"") >&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 eval "$as_ac_var=yes"
9849 echo "$as_me: failed program was:" >&5
9850 cat conftest.
$ac_ext >&5
9851 eval "$as_ac_var=no"
9853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9855 echo "$as_me:9855: result: `eval echo '${'$as_ac_var'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9857 if test `eval echo '${'$as_ac_var'}'` = yes; then
9858 cat >>confdefs.h
<<EOF
9859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9865 # PTY-related GNU extensions.
9867 for ac_func
in getpt
9869 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9870 echo "$as_me:9870: checking for $ac_func" >&5
9871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9872 if eval "test \"\${$as_ac_var+set}\" = set"; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.
$ac_ext <<_ACEOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9878 /* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char $ac_func (); below. */
9881 /* Override any gcc2 internal prototype to avoid an error. */
9885 /* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext
9907 if { (eval echo "$as_me:9907: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try
='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:9913: \"$ac_try\"") >&5
9916 echo "$as_me:9916: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 eval "$as_ac_var=yes"
9920 echo "$as_me: failed program was:" >&5
9921 cat conftest.
$ac_ext >&5
9922 eval "$as_ac_var=no"
9924 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9926 echo "$as_me:9926: result: `eval echo '${'$as_ac_var'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9928 if test `eval echo '${'$as_ac_var'}'` = yes; then
9929 cat >>confdefs.h
<<EOF
9930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9936 # Check this now, so that we will NOT find the above functions in ncurses.
9937 # That is because we have not set up to link ncurses in lib-src.
9938 # It's better to believe a function is not available
9939 # than to expect to find it in ncurses.
9941 echo "$as_me:9941: checking for tparm in -lncurses" >&5
9942 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9943 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_check_lib_save_LIBS
=$LIBS
9947 LIBS
="-lncurses $LIBS"
9948 cat >conftest.
$ac_ext <<_ACEOF
9949 #line 9949 "configure"
9950 #include "confdefs.h"
9952 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9967 rm -f conftest.
$ac_objext conftest
$ac_exeext
9968 if { (eval echo "$as_me:9968: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>&5
9971 echo "$as_me:9971: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:9974: \"$ac_try\"") >&5
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_lib_ncurses_tparm
=yes
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.
$ac_ext >&5
9983 ac_cv_lib_ncurses_tparm
=no
9985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9986 LIBS
=$ac_check_lib_save_LIBS
9988 echo "$as_me:9988: result: $ac_cv_lib_ncurses_tparm" >&5
9989 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9990 if test $ac_cv_lib_ncurses_tparm = yes; then
9991 cat >>confdefs.h
<<EOF
9992 #define HAVE_LIBNCURSES 1
9995 LIBS
="-lncurses $LIBS"
9999 # Do we need the Hesiod library to provide the support routines?
10000 if test "$with_hesiod" = yes ; then
10001 # Don't set $LIBS here -- see comments above.
10003 echo "$as_me:10003: checking for res_send" >&5
10004 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10005 if test "${ac_cv_func_res_send+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.
$ac_ext <<_ACEOF
10009 #line 10009 "configure"
10010 #include "confdefs.h"
10011 /* System header to define __stub macros and hopefully few prototypes,
10012 which can conflict with char res_send (); below. */
10013 #include <assert.h>
10014 /* Override any gcc2 internal prototype to avoid an error. */
10018 /* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
10026 /* The GNU C library defines this for functions which it implements
10027 to always fail with ENOSYS. Some functions are actually named
10028 something starting with __ and the normal name is an alias. */
10029 #if defined (__stub_res_send) || defined (__stub___res_send)
10039 rm -f conftest.
$ac_objext conftest
$ac_exeext
10040 if { (eval echo "$as_me:10040: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>&5
10043 echo "$as_me:10043: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try
='test -s conftest$ac_exeext'
10046 { (eval echo "$as_me:10046: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_func_res_send
=yes
10053 echo "$as_me: failed program was:" >&5
10054 cat conftest.
$ac_ext >&5
10055 ac_cv_func_res_send
=no
10057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10059 echo "$as_me:10059: result: $ac_cv_func_res_send" >&5
10060 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10061 if test $ac_cv_func_res_send = yes; then
10064 echo "$as_me:10064: checking for __res_send" >&5
10065 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10066 if test "${ac_cv_func___res_send+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10072 /* System header to define __stub macros and hopefully few prototypes,
10073 which can conflict with char __res_send (); below. */
10074 #include <assert.h>
10075 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char __res_send ();
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined (__stub___res_send) || defined (__stub_____res_send)
10100 rm -f conftest.
$ac_objext conftest
$ac_exeext
10101 if { (eval echo "$as_me:10101: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>&5
10104 echo "$as_me:10104: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try
='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:10107: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:10110: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_func___res_send
=yes
10114 echo "$as_me: failed program was:" >&5
10115 cat conftest.
$ac_ext >&5
10116 ac_cv_func___res_send
=no
10118 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10120 echo "$as_me:10120: result: $ac_cv_func___res_send" >&5
10121 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10122 if test $ac_cv_func___res_send = yes; then
10125 echo "$as_me:10125: checking for res_send in -lresolv" >&5
10126 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10127 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_check_lib_save_LIBS
=$LIBS
10131 LIBS
="-lresolv $LIBS"
10132 cat >conftest.
$ac_ext <<_ACEOF
10133 #line 10133 "configure"
10134 #include "confdefs.h"
10136 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext
10152 if { (eval echo "$as_me:10152: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10155 echo "$as_me:10155: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try
='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:10158: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:10161: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_resolv_res_send
=yes
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.
$ac_ext >&5
10167 ac_cv_lib_resolv_res_send
=no
10169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10170 LIBS
=$ac_check_lib_save_LIBS
10172 echo "$as_me:10172: result: $ac_cv_lib_resolv_res_send" >&5
10173 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10174 if test $ac_cv_lib_resolv_res_send = yes; then
10177 echo "$as_me:10177: checking for __res_send in -lresolv" >&5
10178 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10179 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 ac_check_lib_save_LIBS
=$LIBS
10183 LIBS
="-lresolv $LIBS"
10184 cat >conftest.
$ac_ext <<_ACEOF
10185 #line 10185 "configure"
10186 #include "confdefs.h"
10188 /* Override any gcc2 internal prototype to avoid an error. */
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194 char __res_send ();
10203 rm -f conftest.
$ac_objext conftest
$ac_exeext
10204 if { (eval echo "$as_me:10204: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>&5
10207 echo "$as_me:10207: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -s conftest$ac_exeext'
10210 { (eval echo "$as_me:10210: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_lib_resolv___res_send
=yes
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.
$ac_ext >&5
10219 ac_cv_lib_resolv___res_send
=no
10221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10222 LIBS
=$ac_check_lib_save_LIBS
10224 echo "$as_me:10224: result: $ac_cv_lib_resolv___res_send" >&5
10225 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10226 if test $ac_cv_lib_resolv___res_send = yes; then
10236 if test "$resolv" = yes ; then
10238 cat >>confdefs.h
<<\EOF
10239 #define HAVE_LIBRESOLV 1
10245 echo "$as_me:10245: checking for hes_getmailhost" >&5
10246 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10247 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 cat >conftest.
$ac_ext <<_ACEOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10253 /* System header to define __stub macros and hopefully few prototypes,
10254 which can conflict with char hes_getmailhost (); below. */
10255 #include <assert.h>
10256 /* Override any gcc2 internal prototype to avoid an error. */
10260 /* We use char because int might match the return type of a gcc2
10261 builtin and then its argument prototype would still apply. */
10262 char hes_getmailhost ();
10268 /* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10274 f = hes_getmailhost;
10281 rm -f conftest.
$ac_objext conftest
$ac_exeext
10282 if { (eval echo "$as_me:10282: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>&5
10285 echo "$as_me:10285: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try
='test -s conftest$ac_exeext'
10288 { (eval echo "$as_me:10288: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_cv_func_hes_getmailhost
=yes
10295 echo "$as_me: failed program was:" >&5
10296 cat conftest.
$ac_ext >&5
10297 ac_cv_func_hes_getmailhost
=no
10299 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10301 echo "$as_me:10301: result: $ac_cv_func_hes_getmailhost" >&5
10302 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10303 if test $ac_cv_func_hes_getmailhost = yes; then
10306 echo "$as_me:10306: checking for hes_getmailhost in -lhesiod" >&5
10307 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10308 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_check_lib_save_LIBS
=$LIBS
10312 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10313 cat >conftest.
$ac_ext <<_ACEOF
10314 #line 10314 "configure"
10315 #include "confdefs.h"
10317 /* Override any gcc2 internal prototype to avoid an error. */
10321 /* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10323 char hes_getmailhost ();
10327 hes_getmailhost ();
10332 rm -f conftest.
$ac_objext conftest
$ac_exeext
10333 if { (eval echo "$as_me:10333: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>&5
10336 echo "$as_me:10336: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try
='test -s conftest$ac_exeext'
10339 { (eval echo "$as_me:10339: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:10342: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_lib_hesiod_hes_getmailhost
=yes
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.
$ac_ext >&5
10348 ac_cv_lib_hesiod_hes_getmailhost
=no
10350 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10351 LIBS
=$ac_check_lib_save_LIBS
10353 echo "$as_me:10353: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10354 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10355 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10356 cat >>confdefs.h
<<\EOF
10357 #define HAVE_LIBHESIOD 1
10368 # These tell us which Kerberos-related libraries to use.
10369 if test "${with_kerberos+set}" = set; then
10371 echo "$as_me:10371: checking for com_err in -lcom_err" >&5
10372 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 ac_check_lib_save_LIBS
=$LIBS
10377 LIBS
="-lcom_err $LIBS"
10378 cat >conftest.
$ac_ext <<_ACEOF
10379 #line 10379 "configure"
10380 #include "confdefs.h"
10382 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10397 rm -f conftest.
$ac_objext conftest
$ac_exeext
10398 if { (eval echo "$as_me:10398: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10401 echo "$as_me:10401: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try
='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:10404: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:10407: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_com_err_com_err
=yes
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.
$ac_ext >&5
10413 ac_cv_lib_com_err_com_err
=no
10415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10416 LIBS
=$ac_check_lib_save_LIBS
10418 echo "$as_me:10418: result: $ac_cv_lib_com_err_com_err" >&5
10419 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10420 if test $ac_cv_lib_com_err_com_err = yes; then
10421 cat >>confdefs.h
<<EOF
10422 #define HAVE_LIBCOM_ERR 1
10425 LIBS
="-lcom_err $LIBS"
10429 echo "$as_me:10429: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10430 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10431 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_check_lib_save_LIBS
=$LIBS
10435 LIBS
="-lk5crypto $LIBS"
10436 cat >conftest.
$ac_ext <<_ACEOF
10437 #line 10437 "configure"
10438 #include "confdefs.h"
10440 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char mit_des_cbc_encrypt ();
10450 mit_des_cbc_encrypt ();
10455 rm -f conftest.
$ac_objext conftest
$ac_exeext
10456 if { (eval echo "$as_me:10456: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10459 echo "$as_me:10459: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:10462: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:10465: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10469 echo "$as_me: failed program was:" >&5
10470 cat conftest.
$ac_ext >&5
10471 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10473 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10474 LIBS
=$ac_check_lib_save_LIBS
10476 echo "$as_me:10476: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10477 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10478 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10479 cat >>confdefs.h
<<EOF
10480 #define HAVE_LIBK5CRYPTO 1
10483 LIBS
="-lk5crypto $LIBS"
10487 echo "$as_me:10487: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10488 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10489 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 ac_check_lib_save_LIBS
=$LIBS
10493 LIBS
="-lcrypto $LIBS"
10494 cat >conftest.
$ac_ext <<_ACEOF
10495 #line 10495 "configure"
10496 #include "confdefs.h"
10498 /* Override any gcc2 internal prototype to avoid an error. */
10502 /* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504 char mit_des_cbc_encrypt ();
10508 mit_des_cbc_encrypt ();
10513 rm -f conftest.
$ac_objext conftest
$ac_exeext
10514 if { (eval echo "$as_me:10514: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>&5
10517 echo "$as_me:10517: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try
='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:10520: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:10523: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10527 echo "$as_me: failed program was:" >&5
10528 cat conftest.
$ac_ext >&5
10529 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10532 LIBS
=$ac_check_lib_save_LIBS
10534 echo "$as_me:10534: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10535 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10536 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10537 cat >>confdefs.h
<<EOF
10538 #define HAVE_LIBCRYPTO 1
10541 LIBS
="-lcrypto $LIBS"
10545 echo "$as_me:10545: checking for krb5_init_context in -lkrb5" >&5
10546 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10547 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 ac_check_lib_save_LIBS
=$LIBS
10551 LIBS
="-lkrb5 $LIBS"
10552 cat >conftest.
$ac_ext <<_ACEOF
10553 #line 10553 "configure"
10554 #include "confdefs.h"
10556 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10562 char krb5_init_context ();
10566 krb5_init_context ();
10571 rm -f conftest.
$ac_objext conftest
$ac_exeext
10572 if { (eval echo "$as_me:10572: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>&5
10575 echo "$as_me:10575: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try
='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:10578: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_lib_krb5_krb5_init_context
=yes
10585 echo "$as_me: failed program was:" >&5
10586 cat conftest.
$ac_ext >&5
10587 ac_cv_lib_krb5_krb5_init_context
=no
10589 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10590 LIBS
=$ac_check_lib_save_LIBS
10592 echo "$as_me:10592: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10593 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10594 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10595 cat >>confdefs.h
<<EOF
10596 #define HAVE_LIBKRB5 1
10599 LIBS
="-lkrb5 $LIBS"
10603 if test "${with_kerberos5+set}" != set; then
10605 echo "$as_me:10605: checking for des_cbc_encrypt in -ldes425" >&5
10606 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10607 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 ac_check_lib_save_LIBS
=$LIBS
10611 LIBS
="-ldes425 $LIBS"
10612 cat >conftest.
$ac_ext <<_ACEOF
10613 #line 10613 "configure"
10614 #include "confdefs.h"
10616 /* Override any gcc2 internal prototype to avoid an error. */
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10622 char des_cbc_encrypt ();
10626 des_cbc_encrypt ();
10631 rm -f conftest.
$ac_objext conftest
$ac_exeext
10632 if { (eval echo "$as_me:10632: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>&5
10635 echo "$as_me:10635: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try
='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:10638: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:10641: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_lib_des425_des_cbc_encrypt
=yes
10645 echo "$as_me: failed program was:" >&5
10646 cat conftest.
$ac_ext >&5
10647 ac_cv_lib_des425_des_cbc_encrypt
=no
10649 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10650 LIBS
=$ac_check_lib_save_LIBS
10652 echo "$as_me:10652: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10653 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10654 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10655 cat >>confdefs.h
<<EOF
10656 #define HAVE_LIBDES425 1
10659 LIBS
="-ldes425 $LIBS"
10663 echo "$as_me:10663: checking for des_cbc_encrypt in -ldes" >&5
10664 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10665 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 ac_check_lib_save_LIBS
=$LIBS
10670 cat >conftest.
$ac_ext <<_ACEOF
10671 #line 10671 "configure"
10672 #include "confdefs.h"
10674 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10680 char des_cbc_encrypt ();
10684 des_cbc_encrypt ();
10689 rm -f conftest.
$ac_objext conftest
$ac_exeext
10690 if { (eval echo "$as_me:10690: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>&5
10693 echo "$as_me:10693: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try
='test -s conftest$ac_exeext'
10696 { (eval echo "$as_me:10696: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_lib_des_des_cbc_encrypt
=yes
10703 echo "$as_me: failed program was:" >&5
10704 cat conftest.
$ac_ext >&5
10705 ac_cv_lib_des_des_cbc_encrypt
=no
10707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10708 LIBS
=$ac_check_lib_save_LIBS
10710 echo "$as_me:10710: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10711 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10712 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10713 cat >>confdefs.h
<<EOF
10714 #define HAVE_LIBDES 1
10723 echo "$as_me:10723: checking for krb_get_cred in -lkrb4" >&5
10724 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10725 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 ac_check_lib_save_LIBS
=$LIBS
10729 LIBS
="-lkrb4 $LIBS"
10730 cat >conftest.
$ac_ext <<_ACEOF
10731 #line 10731 "configure"
10732 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10738 /* We use char because int might match the return type of a gcc2
10739 builtin and then its argument prototype would still apply. */
10740 char krb_get_cred ();
10749 rm -f conftest.
$ac_objext conftest
$ac_exeext
10750 if { (eval echo "$as_me:10750: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>&5
10753 echo "$as_me:10753: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try
='test -s conftest$ac_exeext'
10756 { (eval echo "$as_me:10756: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_lib_krb4_krb_get_cred
=yes
10763 echo "$as_me: failed program was:" >&5
10764 cat conftest.
$ac_ext >&5
10765 ac_cv_lib_krb4_krb_get_cred
=no
10767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10768 LIBS
=$ac_check_lib_save_LIBS
10770 echo "$as_me:10770: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10771 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10772 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10773 cat >>confdefs.h
<<EOF
10774 #define HAVE_LIBKRB4 1
10777 LIBS
="-lkrb4 $LIBS"
10781 echo "$as_me:10781: checking for krb_get_cred in -lkrb" >&5
10782 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10783 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 ac_check_lib_save_LIBS
=$LIBS
10788 cat >conftest.
$ac_ext <<_ACEOF
10789 #line 10789 "configure"
10790 #include "confdefs.h"
10792 /* Override any gcc2 internal prototype to avoid an error. */
10796 /* We use char because int might match the return type of a gcc2
10797 builtin and then its argument prototype would still apply. */
10798 char krb_get_cred ();
10807 rm -f conftest.
$ac_objext conftest
$ac_exeext
10808 if { (eval echo "$as_me:10808: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>&5
10811 echo "$as_me:10811: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try
='test -s conftest$ac_exeext'
10814 { (eval echo "$as_me:10814: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:10817: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_lib_krb_krb_get_cred
=yes
10821 echo "$as_me: failed program was:" >&5
10822 cat conftest.
$ac_ext >&5
10823 ac_cv_lib_krb_krb_get_cred
=no
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10826 LIBS
=$ac_check_lib_save_LIBS
10828 echo "$as_me:10828: result: $ac_cv_lib_krb_krb_get_cred" >&5
10829 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10830 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10831 cat >>confdefs.h
<<EOF
10832 #define HAVE_LIBKRB 1
10843 if test "${with_kerberos5+set}" = set; then
10845 for ac_header
in krb5.h
10847 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10848 echo "$as_me:10848: checking for $ac_header" >&5
10849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10856 #include <$ac_header>
10858 if { (eval echo "$as_me:10858: \"$ac_cpp conftest.$ac_ext\"") >&5
10859 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10861 egrep -v '^ *\+' conftest.er1
>conftest.err
10863 cat conftest.err
>&5
10864 echo "$as_me:10864: \$? = $ac_status" >&5
10865 (exit $ac_status); } >/dev
/null
; then
10866 if test -s conftest.err
; then
10867 ac_cpp_err
=$ac_c_preproc_warn_flag
10874 if test -z "$ac_cpp_err"; then
10875 eval "$as_ac_Header=yes"
10877 echo "$as_me: failed program was:" >&5
10878 cat conftest.
$ac_ext >&5
10879 eval "$as_ac_Header=no"
10881 rm -f conftest.err conftest.
$ac_ext
10883 echo "$as_me:10883: result: `eval echo '${'$as_ac_Header'}'`" >&5
10884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10886 cat >>confdefs.h
<<EOF
10887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10895 for ac_header
in des.h
10897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10898 echo "$as_me:10898: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 cat >conftest.
$ac_ext <<_ACEOF
10904 #line 10904 "configure"
10905 #include "confdefs.h"
10906 #include <$ac_header>
10908 if { (eval echo "$as_me:10908: \"$ac_cpp conftest.$ac_ext\"") >&5
10909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10911 egrep -v '^ *\+' conftest.er1
>conftest.err
10913 cat conftest.err
>&5
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); } >/dev
/null
; then
10916 if test -s conftest.err
; then
10917 ac_cpp_err
=$ac_c_preproc_warn_flag
10924 if test -z "$ac_cpp_err"; then
10925 eval "$as_ac_Header=yes"
10927 echo "$as_me: failed program was:" >&5
10928 cat conftest.
$ac_ext >&5
10929 eval "$as_ac_Header=no"
10931 rm -f conftest.err conftest.
$ac_ext
10933 echo "$as_me:10933: result: `eval echo '${'$as_ac_Header'}'`" >&5
10934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936 cat >>confdefs.h
<<EOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10942 for ac_header
in kerberosIV
/des.h
10944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945 echo "$as_me:10945: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 cat >conftest.
$ac_ext <<_ACEOF
10951 #line 10951 "configure"
10952 #include "confdefs.h"
10953 #include <$ac_header>
10955 if { (eval echo "$as_me:10955: \"$ac_cpp conftest.$ac_ext\"") >&5
10956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10958 egrep -v '^ *\+' conftest.er1
>conftest.err
10960 cat conftest.err
>&5
10961 echo "$as_me:10961: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev
/null
; then
10963 if test -s conftest.err
; then
10964 ac_cpp_err
=$ac_c_preproc_warn_flag
10971 if test -z "$ac_cpp_err"; then
10972 eval "$as_ac_Header=yes"
10974 echo "$as_me: failed program was:" >&5
10975 cat conftest.
$ac_ext >&5
10976 eval "$as_ac_Header=no"
10978 rm -f conftest.err conftest.
$ac_ext
10980 echo "$as_me:10980: result: `eval echo '${'$as_ac_Header'}'`" >&5
10981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h
<<EOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10989 for ac_header
in kerberos
/des.h
10991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992 echo "$as_me:10992: checking for $ac_header" >&5
10993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.
$ac_ext <<_ACEOF
10998 #line 10998 "configure"
10999 #include "confdefs.h"
11000 #include <$ac_header>
11002 if { (eval echo "$as_me:11002: \"$ac_cpp conftest.$ac_ext\"") >&5
11003 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11005 egrep -v '^ *\+' conftest.er1
>conftest.err
11007 cat conftest.err
>&5
11008 echo "$as_me:11008: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev
/null
; then
11010 if test -s conftest.err
; then
11011 ac_cpp_err
=$ac_c_preproc_warn_flag
11018 if test -z "$ac_cpp_err"; then
11019 eval "$as_ac_Header=yes"
11021 echo "$as_me: failed program was:" >&5
11022 cat conftest.
$ac_ext >&5
11023 eval "$as_ac_Header=no"
11025 rm -f conftest.err conftest.
$ac_ext
11027 echo "$as_me:11027: result: `eval echo '${'$as_ac_Header'}'`" >&5
11028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11030 cat >>confdefs.h
<<EOF
11031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11043 for ac_header
in krb.h
11045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11046 echo "$as_me:11046: checking for $ac_header" >&5
11047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.
$ac_ext <<_ACEOF
11052 #line 11052 "configure"
11053 #include "confdefs.h"
11054 #include <$ac_header>
11056 if { (eval echo "$as_me:11056: \"$ac_cpp conftest.$ac_ext\"") >&5
11057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11059 egrep -v '^ *\+' conftest.er1
>conftest.err
11061 cat conftest.err
>&5
11062 echo "$as_me:11062: \$? = $ac_status" >&5
11063 (exit $ac_status); } >/dev
/null
; then
11064 if test -s conftest.err
; then
11065 ac_cpp_err
=$ac_c_preproc_warn_flag
11072 if test -z "$ac_cpp_err"; then
11073 eval "$as_ac_Header=yes"
11075 echo "$as_me: failed program was:" >&5
11076 cat conftest.
$ac_ext >&5
11077 eval "$as_ac_Header=no"
11079 rm -f conftest.err conftest.
$ac_ext
11081 echo "$as_me:11081: result: `eval echo '${'$as_ac_Header'}'`" >&5
11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11084 cat >>confdefs.h
<<EOF
11085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11090 for ac_header
in kerberosIV
/krb.h
11092 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093 echo "$as_me:11093: checking for $ac_header" >&5
11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.
$ac_ext <<_ACEOF
11099 #line 11099 "configure"
11100 #include "confdefs.h"
11101 #include <$ac_header>
11103 if { (eval echo "$as_me:11103: \"$ac_cpp conftest.$ac_ext\"") >&5
11104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11106 egrep -v '^ *\+' conftest.er1
>conftest.err
11108 cat conftest.err
>&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); } >/dev
/null
; then
11111 if test -s conftest.err
; then
11112 ac_cpp_err
=$ac_c_preproc_warn_flag
11119 if test -z "$ac_cpp_err"; then
11120 eval "$as_ac_Header=yes"
11122 echo "$as_me: failed program was:" >&5
11123 cat conftest.
$ac_ext >&5
11124 eval "$as_ac_Header=no"
11126 rm -f conftest.err conftest.
$ac_ext
11128 echo "$as_me:11128: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h
<<EOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11137 for ac_header
in kerberos
/krb.h
11139 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11140 echo "$as_me:11140: checking for $ac_header" >&5
11141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.
$ac_ext <<_ACEOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11148 #include <$ac_header>
11150 if { (eval echo "$as_me:11150: \"$ac_cpp conftest.$ac_ext\"") >&5
11151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11153 egrep -v '^ *\+' conftest.er1
>conftest.err
11155 cat conftest.err
>&5
11156 echo "$as_me:11156: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev
/null
; then
11158 if test -s conftest.err
; then
11159 ac_cpp_err
=$ac_c_preproc_warn_flag
11166 if test -z "$ac_cpp_err"; then
11167 eval "$as_ac_Header=yes"
11169 echo "$as_me: failed program was:" >&5
11170 cat conftest.
$ac_ext >&5
11171 eval "$as_ac_Header=no"
11173 rm -f conftest.err conftest.
$ac_ext
11175 echo "$as_me:11175: result: `eval echo '${'$as_ac_Header'}'`" >&5
11176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11178 cat >>confdefs.h
<<EOF
11179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11193 for ac_header
in com_err.h
11195 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196 echo "$as_me:11196: checking for $ac_header" >&5
11197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.
$ac_ext <<_ACEOF
11202 #line 11202 "configure"
11203 #include "confdefs.h"
11204 #include <$ac_header>
11206 if { (eval echo "$as_me:11206: \"$ac_cpp conftest.$ac_ext\"") >&5
11207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11209 egrep -v '^ *\+' conftest.er1
>conftest.err
11211 cat conftest.err
>&5
11212 echo "$as_me:11212: \$? = $ac_status" >&5
11213 (exit $ac_status); } >/dev
/null
; then
11214 if test -s conftest.err
; then
11215 ac_cpp_err
=$ac_c_preproc_warn_flag
11222 if test -z "$ac_cpp_err"; then
11223 eval "$as_ac_Header=yes"
11225 echo "$as_me: failed program was:" >&5
11226 cat conftest.
$ac_ext >&5
11227 eval "$as_ac_Header=no"
11229 rm -f conftest.err conftest.
$ac_ext
11231 echo "$as_me:11231: result: `eval echo '${'$as_ac_Header'}'`" >&5
11232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11234 cat >>confdefs.h
<<EOF
11235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11243 # Solaris requires -lintl if you want strerror (which calls dgettext)
11244 # to return localized messages.
11246 echo "$as_me:11246: checking for dgettext in -lintl" >&5
11247 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11248 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 ac_check_lib_save_LIBS
=$LIBS
11252 LIBS
="-lintl $LIBS"
11253 cat >conftest.
$ac_ext <<_ACEOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11257 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11272 rm -f conftest.
$ac_objext conftest
$ac_exeext
11273 if { (eval echo "$as_me:11273: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>&5
11276 echo "$as_me:11276: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try
='test -s conftest$ac_exeext'
11279 { (eval echo "$as_me:11279: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:11282: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_lib_intl_dgettext
=yes
11286 echo "$as_me: failed program was:" >&5
11287 cat conftest.
$ac_ext >&5
11288 ac_cv_lib_intl_dgettext
=no
11290 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11291 LIBS
=$ac_check_lib_save_LIBS
11293 echo "$as_me:11293: result: $ac_cv_lib_intl_dgettext" >&5
11294 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11295 if test $ac_cv_lib_intl_dgettext = yes; then
11296 cat >>confdefs.h
<<EOF
11297 #define HAVE_LIBINTL 1
11300 LIBS
="-lintl $LIBS"
11304 echo "$as_me:11304: checking whether localtime caches TZ" >&5
11305 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11306 if test "${emacs_cv_localtime_cache+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 if test x
$ac_cv_func_tzset = xyes
; then
11310 if test "$cross_compiling" = yes; then
11311 # If we have tzset, assume the worst when cross-compiling.
11312 emacs_cv_localtime_cache
=yes
11314 cat >conftest.
$ac_ext <<_ACEOF
11315 #line 11315 "configure"
11316 #include "confdefs.h"
11318 extern char **environ;
11322 for (to = from = environ; (*to = *from); from++)
11323 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11326 char TZ_GMT0[] = "TZ=GMT0";
11327 char TZ_PST8[] = "TZ=PST8";
11330 time_t now = time ((time_t *) 0);
11331 int hour_GMT0, hour_unset;
11332 if (putenv (TZ_GMT0) != 0)
11334 hour_GMT0 = localtime (&now)->tm_hour;
11336 hour_unset = localtime (&now)->tm_hour;
11337 if (putenv (TZ_PST8) != 0)
11339 if (localtime (&now)->tm_hour == hour_GMT0)
11342 if (localtime (&now)->tm_hour != hour_unset)
11347 rm -f conftest
$ac_exeext
11348 if { (eval echo "$as_me:11348: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11353 { (eval echo "$as_me:11353: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:11356: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 emacs_cv_localtime_cache
=no
11360 echo "$as_me: program exited with status $ac_status" >&5
11361 echo "$as_me: failed program was:" >&5
11362 cat conftest.
$ac_ext >&5
11363 emacs_cv_localtime_cache
=yes
11365 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11368 # If we lack tzset, report that localtime does not cache TZ,
11369 # since we can't invalidate the cache if we don't have tzset.
11370 emacs_cv_localtime_cache
=no
11373 echo "$as_me:11373: result: $emacs_cv_localtime_cache" >&5
11374 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11375 if test $emacs_cv_localtime_cache = yes; then
11376 cat >>confdefs.h
<<\EOF
11377 #define LOCALTIME_CACHE 1
11382 if test "x$HAVE_TIMEVAL" = xyes
; then
11384 for ac_func
in gettimeofday
11386 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11387 echo "$as_me:11387: checking for $ac_func" >&5
11388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_var+set}\" = set"; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 cat >conftest.
$ac_ext <<_ACEOF
11393 #line 11393 "configure"
11394 #include "confdefs.h"
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below. */
11397 #include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11410 /* The GNU C library defines this for functions which it implements
11411 to always fail with ENOSYS. Some functions are actually named
11412 something starting with __ and the normal name is an alias. */
11413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11423 rm -f conftest.
$ac_objext conftest
$ac_exeext
11424 if { (eval echo "$as_me:11424: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>&5
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try
='test -s conftest$ac_exeext'
11430 { (eval echo "$as_me:11430: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:11433: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 eval "$as_ac_var=yes"
11437 echo "$as_me: failed program was:" >&5
11438 cat conftest.
$ac_ext >&5
11439 eval "$as_ac_var=no"
11441 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11443 echo "$as_me:11443: result: `eval echo '${'$as_ac_var'}'`" >&5
11444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11446 cat >>confdefs.h
<<EOF
11447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11453 echo "$as_me:11453: checking whether gettimeofday can accept two arguments" >&5
11454 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11455 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.
$ac_ext <<_ACEOF
11459 #line 11459 "configure"
11460 #include "confdefs.h"
11462 #ifdef TIME_WITH_SYS_TIME
11463 #include <sys/time.h>
11466 #ifdef HAVE_SYS_TIME_H
11467 #include <sys/time.h>
11475 struct timeval time;
11476 gettimeofday (&time, 0);
11481 rm -f conftest.
$ac_objext
11482 if { (eval echo "$as_me:11482: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>&5
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try
='test -s conftest.$ac_objext'
11488 { (eval echo "$as_me:11488: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:11491: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 emacs_cv_gettimeofday_two_arguments
=yes
11495 echo "$as_me: failed program was:" >&5
11496 cat conftest.
$ac_ext >&5
11497 emacs_cv_gettimeofday_two_arguments
=no
11499 rm -f conftest.
$ac_objext conftest.
$ac_ext
11501 echo "$as_me:11501: result: $emacs_cv_gettimeofday_two_arguments" >&5
11502 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11503 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11504 cat >>confdefs.h
<<\EOF
11505 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11511 if test "$ac_cv_func_gettimeofday" = yes; then
11512 echo "$as_me:11512: checking for struct timezone" >&5
11513 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11514 if test "${emacs_cv_struct_timezone+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 cat >conftest.
$ac_ext <<_ACEOF
11518 #line 11518 "configure"
11519 #include "confdefs.h"
11520 #include <sys/time.h>
11524 struct timezone tz;
11529 rm -f conftest.
$ac_objext
11530 if { (eval echo "$as_me:11530: \"$ac_compile\"") >&5
11531 (eval $ac_compile) 2>&5
11533 echo "$as_me:11533: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try
='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:11536: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 if test "$cross_compiling" = yes; then
11542 emacs_cv_struct_timezone
=yes
11544 cat >conftest.
$ac_ext <<_ACEOF
11545 #line 11545 "configure"
11546 #include "confdefs.h"
11548 #ifdef TIME_WITH_SYS_TIME
11549 #include <sys/time.h>
11552 #ifdef HAVE_SYS_TIME_H
11553 #include <sys/time.h>
11559 struct timeval time;
11560 struct timezone dummy;
11561 exit (gettimeofday (&time, &dummy));
11564 rm -f conftest
$ac_exeext
11565 if { (eval echo "$as_me:11565: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11570 { (eval echo "$as_me:11570: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:11573: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 emacs_cv_struct_timezone
=yes
11577 echo "$as_me: program exited with status $ac_status" >&5
11578 echo "$as_me: failed program was:" >&5
11579 cat conftest.
$ac_ext >&5
11580 emacs_cv_struct_timezone
=no
11582 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11585 echo "$as_me: failed program was:" >&5
11586 cat conftest.
$ac_ext >&5
11587 emacs_cv_struct_timezone
=no
11589 rm -f conftest.
$ac_objext conftest.
$ac_ext
11591 echo "$as_me:11591: result: $emacs_cv_struct_timezone" >&5
11592 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11596 echo "$as_me:11596: checking for socket" >&5
11597 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11598 if test "${ac_cv_func_socket+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.
$ac_ext <<_ACEOF
11602 #line 11602 "configure"
11603 #include "confdefs.h"
11604 /* System header to define __stub macros and hopefully few prototypes,
11605 which can conflict with char socket (); below. */
11606 #include <assert.h>
11607 /* Override any gcc2 internal prototype to avoid an error. */
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11619 /* The GNU C library defines this for functions which it implements
11620 to always fail with ENOSYS. Some functions are actually named
11621 something starting with __ and the normal name is an alias. */
11622 #if defined (__stub_socket) || defined (__stub___socket)
11632 rm -f conftest.
$ac_objext conftest
$ac_exeext
11633 if { (eval echo "$as_me:11633: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>&5
11636 echo "$as_me:11636: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try
='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:11639: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_func_socket
=yes
11646 echo "$as_me: failed program was:" >&5
11647 cat conftest.
$ac_ext >&5
11648 ac_cv_func_socket
=no
11650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11652 echo "$as_me:11652: result: $ac_cv_func_socket" >&5
11653 echo "${ECHO_T}$ac_cv_func_socket" >&6
11654 if test $ac_cv_func_socket = yes; then
11660 if test $ok_so_far = yes; then
11661 echo "$as_me:11661: checking for netinet/in.h" >&5
11662 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11663 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.
$ac_ext <<_ACEOF
11667 #line 11667 "configure"
11668 #include "confdefs.h"
11669 #include <netinet/in.h>
11671 if { (eval echo "$as_me:11671: \"$ac_cpp conftest.$ac_ext\"") >&5
11672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11674 egrep -v '^ *\+' conftest.er1
>conftest.err
11676 cat conftest.err
>&5
11677 echo "$as_me:11677: \$? = $ac_status" >&5
11678 (exit $ac_status); } >/dev
/null
; then
11679 if test -s conftest.err
; then
11680 ac_cpp_err
=$ac_c_preproc_warn_flag
11687 if test -z "$ac_cpp_err"; then
11688 ac_cv_header_netinet_in_h
=yes
11690 echo "$as_me: failed program was:" >&5
11691 cat conftest.
$ac_ext >&5
11692 ac_cv_header_netinet_in_h
=no
11694 rm -f conftest.err conftest.
$ac_ext
11696 echo "$as_me:11696: result: $ac_cv_header_netinet_in_h" >&5
11697 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11698 if test $ac_cv_header_netinet_in_h = yes; then
11705 if test $ok_so_far = yes; then
11706 echo "$as_me:11706: checking for arpa/inet.h" >&5
11707 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11708 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.
$ac_ext <<_ACEOF
11712 #line 11712 "configure"
11713 #include "confdefs.h"
11714 #include <arpa/inet.h>
11716 if { (eval echo "$as_me:11716: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11719 egrep -v '^ *\+' conftest.er1
>conftest.err
11721 cat conftest.err
>&5
11722 echo "$as_me:11722: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev
/null
; then
11724 if test -s conftest.err
; then
11725 ac_cpp_err
=$ac_c_preproc_warn_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_cv_header_arpa_inet_h
=yes
11735 echo "$as_me: failed program was:" >&5
11736 cat conftest.
$ac_ext >&5
11737 ac_cv_header_arpa_inet_h
=no
11739 rm -f conftest.err conftest.
$ac_ext
11741 echo "$as_me:11741: result: $ac_cv_header_arpa_inet_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11743 if test $ac_cv_header_arpa_inet_h = yes; then
11750 if test $ok_so_far = yes; then
11751 cat >>confdefs.h
<<\EOF
11752 #define HAVE_INET_SOCKETS 1
11757 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11758 cat >>confdefs.h
<<\EOF
11759 #define HAVE_AIX_SMT_EXP 1
11764 echo "$as_me:11764: checking whether system supports dynamic ptys" >&5
11765 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11766 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11767 echo "$as_me:11767: result: yes" >&5
11768 echo "${ECHO_T}yes" >&6
11769 cat >>confdefs.h
<<\EOF
11770 #define HAVE_DEV_PTMX 1
11774 echo "$as_me:11774: result: no" >&5
11775 echo "${ECHO_T}no" >&6
11778 echo "$as_me:11778: checking for pid_t" >&5
11779 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11780 if test "${ac_cv_type_pid_t+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 cat >conftest.
$ac_ext <<_ACEOF
11784 #line 11784 "configure"
11785 #include "confdefs.h"
11786 $ac_includes_default
11792 if (sizeof (pid_t))
11798 rm -f conftest.
$ac_objext
11799 if { (eval echo "$as_me:11799: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>&5
11802 echo "$as_me:11802: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try
='test -s conftest.$ac_objext'
11805 { (eval echo "$as_me:11805: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:11808: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_type_pid_t
=yes
11812 echo "$as_me: failed program was:" >&5
11813 cat conftest.
$ac_ext >&5
11814 ac_cv_type_pid_t
=no
11816 rm -f conftest.
$ac_objext conftest.
$ac_ext
11818 echo "$as_me:11818: result: $ac_cv_type_pid_t" >&5
11819 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11820 if test $ac_cv_type_pid_t = yes; then
11824 cat >>confdefs.h
<<EOF
11830 for ac_header
in unistd.h vfork.h
11832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11833 echo "$as_me:11833: checking for $ac_header" >&5
11834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 cat >conftest.
$ac_ext <<_ACEOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11841 #include <$ac_header>
11843 if { (eval echo "$as_me:11843: \"$ac_cpp conftest.$ac_ext\"") >&5
11844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11846 egrep -v '^ *\+' conftest.er1
>conftest.err
11848 cat conftest.err
>&5
11849 echo "$as_me:11849: \$? = $ac_status" >&5
11850 (exit $ac_status); } >/dev
/null
; then
11851 if test -s conftest.err
; then
11852 ac_cpp_err
=$ac_c_preproc_warn_flag
11859 if test -z "$ac_cpp_err"; then
11860 eval "$as_ac_Header=yes"
11862 echo "$as_me: failed program was:" >&5
11863 cat conftest.
$ac_ext >&5
11864 eval "$as_ac_Header=no"
11866 rm -f conftest.err conftest.
$ac_ext
11868 echo "$as_me:11868: result: `eval echo '${'$as_ac_Header'}'`" >&5
11869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11871 cat >>confdefs.h
<<EOF
11872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11878 for ac_func
in fork vfork
11880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:11881: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.
$ac_ext <<_ACEOF
11887 #line 11887 "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func (); below. */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11917 rm -f conftest.
$ac_objext conftest
$ac_exeext
11918 if { (eval echo "$as_me:11918: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>&5
11921 echo "$as_me:11921: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try
='test -s conftest$ac_exeext'
11924 { (eval echo "$as_me:11924: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:11927: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 eval "$as_ac_var=yes"
11931 echo "$as_me: failed program was:" >&5
11932 cat conftest.
$ac_ext >&5
11933 eval "$as_ac_var=no"
11935 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11937 echo "$as_me:11937: result: `eval echo '${'$as_ac_var'}'`" >&5
11938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11939 if test `eval echo '${'$as_ac_var'}'` = yes; then
11940 cat >>confdefs.h
<<EOF
11941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947 ac_cv_func_fork_works
=$ac_cv_func_fork
11948 if test "x$ac_cv_func_fork" = xyes
; then
11949 echo "$as_me:11949: checking for working fork" >&5
11950 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11951 if test "${ac_cv_func_fork_works+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 if test "$cross_compiling" = yes; then
11955 ac_cv_func_fork_works
=cross
11957 cat >conftest.
$ac_ext <<_ACEOF
11958 /* By Rüdiger Kuhlmann. */
11959 #include <sys/types.h>
11961 # include <unistd.h>
11963 /* Some systems only have a dummy stub for fork() */
11971 rm -f conftest
$ac_exeext
11972 if { (eval echo "$as_me:11972: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>&5
11975 echo "$as_me:11975: \$? = $ac_status" >&5
11976 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11977 { (eval echo "$as_me:11977: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:11980: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_func_fork_works
=yes
11984 echo "$as_me: program exited with status $ac_status" >&5
11985 echo "$as_me: failed program was:" >&5
11986 cat conftest.
$ac_ext >&5
11987 ac_cv_func_fork_works
=no
11989 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11992 echo "$as_me:11992: result: $ac_cv_func_fork_works" >&5
11993 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11996 if test "x$ac_cv_func_fork_works" = xcross
; then
11998 *-*-amigaos* |
*-*-msdosdjgpp*)
11999 # Override, as these systems have only a dummy fork() stub
12000 ac_cv_func_fork_works
=no
12003 ac_cv_func_fork_works
=yes
12006 { echo "$as_me:12006: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12007 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12009 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12010 if test "x$ac_cv_func_vfork" = xyes
; then
12011 echo "$as_me:12011: checking for working vfork" >&5
12012 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12013 if test "${ac_cv_func_vfork_works+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 if test "$cross_compiling" = yes; then
12017 ac_cv_func_vfork_works
=cross
12019 cat >conftest.
$ac_ext <<_ACEOF
12020 #line 12020 "configure"
12021 #include "confdefs.h"
12022 /* Thanks to Paul Eggert for this test. */
12024 #include <sys/types.h>
12025 #include <sys/stat.h>
12027 # include <unistd.h>
12030 # include <vfork.h>
12032 /* On some sparc systems, changes by the child to local and incoming
12033 argument registers are propagated back to the parent. The compiler
12034 is told about this with #include <vfork.h>, but some compilers
12035 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12036 static variable whose address is put into a register that is
12037 clobbered by the vfork. */
12040 sparc_address_test (int arg)
12042 sparc_address_test (arg) int arg;
12045 static pid_t child;
12063 pid_t parent = getpid ();
12066 sparc_address_test ();
12071 /* Here is another test for sparc vfork register problems. This
12072 test uses lots of local variables, at least as many local
12073 variables as main has allocated so far including compiler
12074 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12075 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12076 reuse the register of parent for one of the local variables,
12077 since it will think that parent can't possibly be used any more
12078 in this routine. Assigning to the local variable will thus
12079 munge parent in the parent process. */
12081 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12082 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12083 /* Convince the compiler that p..p7 are live; otherwise, it might
12084 use the same hardware register for all 8 local variables. */
12085 if (p != p1 || p != p2 || p != p3 || p != p4
12086 || p != p5 || p != p6 || p != p7)
12089 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12090 from child file descriptors. If the child closes a descriptor
12091 before it execs or exits, this munges the parent's descriptor
12092 as well. Test for this by closing stdout in the child. */
12093 _exit(close(fileno(stdout)) != 0);
12098 while (wait(&status) != child)
12101 /* Was there some problem with vforking? */
12104 /* Did the child fail? (This shouldn't happen.) */
12107 /* Did the vfork/compiler bug occur? */
12108 || parent != getpid()
12110 /* Did the file descriptor bug occur? */
12111 || fstat(fileno(stdout), &st) != 0
12116 rm -f conftest
$ac_exeext
12117 if { (eval echo "$as_me:12117: \"$ac_link\"") >&5
12118 (eval $ac_link) 2>&5
12120 echo "$as_me:12120: \$? = $ac_status" >&5
12121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12122 { (eval echo "$as_me:12122: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:12125: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_cv_func_vfork_works
=yes
12129 echo "$as_me: program exited with status $ac_status" >&5
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.
$ac_ext >&5
12132 ac_cv_func_vfork_works
=no
12134 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12137 echo "$as_me:12137: result: $ac_cv_func_vfork_works" >&5
12138 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12141 if test "x$ac_cv_func_fork_works" = xcross
; then
12142 ac_cv_func_vfork_works
=ac_cv_func_vfork
12143 { echo "$as_me:12143: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12144 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12147 if test "x$ac_cv_func_vfork_works" = xyes
; then
12149 cat >>confdefs.h
<<\EOF
12150 #define HAVE_WORKING_VFORK 1
12155 cat >>confdefs.h
<<\EOF
12160 if test "x$ac_cv_func_fork_works" = xyes
; then
12162 cat >>confdefs.h
<<\EOF
12163 #define HAVE_WORKING_FORK 1
12168 # Fixme: This should be replaced when we have autoconf 2.14.
12169 echo "$as_me:12169: checking for size_t" >&5
12170 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12171 if test "${ac_cv_type_size_t+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 cat >conftest.
$ac_ext <<_ACEOF
12175 #line 12175 "configure"
12176 #include "confdefs.h"
12177 $ac_includes_default
12183 if (sizeof (size_t))
12189 rm -f conftest.
$ac_objext
12190 if { (eval echo "$as_me:12190: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>&5
12193 echo "$as_me:12193: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try
='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:12196: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_type_size_t
=yes
12203 echo "$as_me: failed program was:" >&5
12204 cat conftest.
$ac_ext >&5
12205 ac_cv_type_size_t
=no
12207 rm -f conftest.
$ac_objext conftest.
$ac_ext
12209 echo "$as_me:12209: result: $ac_cv_type_size_t" >&5
12210 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12211 if test $ac_cv_type_size_t = yes; then
12215 cat >>confdefs.h
<<EOF
12216 #define size_t unsigned
12221 # Set up the CFLAGS for real compilation, so we can substitute it.
12222 CFLAGS
="$REAL_CFLAGS"
12223 CPPFLAGS
="$REAL_CPPFLAGS"
12225 #### Find out which version of Emacs this is.
12226 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12227 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12228 if test x
"${version}" = x
; then
12229 { { echo "$as_me:12229: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12230 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12231 { (exit 1); exit 1; }; }
12234 ### Specify what sort of things we'll be editing into Makefile and config.h.
12235 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12237 cat >>confdefs.h
<<EOF
12238 #define EMACS_CONFIGURATION "${canonical}"
12241 cat >>confdefs.h
<<EOF
12242 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12245 cat >>confdefs.h
<<EOF
12246 #define config_machfile "${machfile}"
12249 cat >>confdefs.h
<<EOF
12250 #define config_opsysfile "${opsysfile}"
12253 cat >>confdefs.h
<<EOF
12254 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12257 cat >>confdefs.h
<<EOF
12258 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12261 cat >>confdefs.h
<<EOF
12262 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12265 cat >>confdefs.h
<<EOF
12266 #define UNEXEC_SRC ${UNEXEC_SRC}
12269 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12270 cat >>confdefs.h
<<\EOF
12271 #define HAVE_X_WINDOWS 1
12275 if test "${USE_X_TOOLKIT}" != "none" ; then
12276 cat >>confdefs.h
<<\EOF
12277 #define USE_X_TOOLKIT 1
12281 if test "${HAVE_X11}" = "yes" ; then
12282 cat >>confdefs.h
<<\EOF
12287 if test "${HAVE_XFREE386}" = "yes" ; then
12288 cat >>confdefs.h
<<\EOF
12289 #define HAVE_XFREE386 1
12293 if test "${HAVE_MENUS}" = "yes" ; then
12294 cat >>confdefs.h
<<\EOF
12295 #define HAVE_MENUS 1
12299 if test "${GNU_MALLOC}" = "yes" ; then
12300 cat >>confdefs.h
<<\EOF
12301 #define GNU_MALLOC 1
12305 if test "${REL_ALLOC}" = "yes" ; then
12306 cat >>confdefs.h
<<\EOF
12307 #define REL_ALLOC 1
12312 for ac_header
in nlist.h
12314 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12315 echo "$as_me:12315: checking for $ac_header" >&5
12316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 cat >conftest.
$ac_ext <<_ACEOF
12321 #line 12321 "configure"
12322 #include "confdefs.h"
12323 #include <$ac_header>
12325 if { (eval echo "$as_me:12325: \"$ac_cpp conftest.$ac_ext\"") >&5
12326 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12328 egrep -v '^ *\+' conftest.er1
>conftest.err
12330 cat conftest.err
>&5
12331 echo "$as_me:12331: \$? = $ac_status" >&5
12332 (exit $ac_status); } >/dev
/null
; then
12333 if test -s conftest.err
; then
12334 ac_cpp_err
=$ac_c_preproc_warn_flag
12341 if test -z "$ac_cpp_err"; then
12342 eval "$as_ac_Header=yes"
12344 echo "$as_me: failed program was:" >&5
12345 cat conftest.
$ac_ext >&5
12346 eval "$as_ac_Header=no"
12348 rm -f conftest.err conftest.
$ac_ext
12350 echo "$as_me:12350: result: `eval echo '${'$as_ac_Header'}'`" >&5
12351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12353 cat >>confdefs.h
<<EOF
12354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12357 cat >>confdefs.h
<<\EOF
12358 #define NLIST_STRUCT 1
12364 #### Report on what we decided to do.
12366 Configured for \`${canonical}'.
12368 Where should the build process find the source code? ${srcdir}
12369 What operating system and machine description files should Emacs use?
12370 \`${opsysfile}' and \`${machfile}'
12371 What compiler should emacs be built with? ${CC} ${CFLAGS}
12372 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12373 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12374 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12375 What window system should Emacs use? ${window_system}
12376 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12378 if test -n "${x_includes}"; then
12379 echo " Where do we find X Windows header files? ${x_includes}"
12381 echo " Where do we find X Windows header files? Standard dirs"
12383 if test -n "${x_libraries}"; then
12384 echo " Where do we find X Windows libraries? ${x_libraries}"
12386 echo " Where do we find X Windows libraries? Standard dirs"
12389 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12390 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12391 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12392 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12393 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12394 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12395 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12398 # Remove any trailing slashes in these variables.
12399 test "${prefix}" != NONE
&&
12400 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12401 test "${exec_prefix}" != NONE
&&
12402 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12404 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12405 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12406 ## from Makefile.c can correctly provide the arg `-traditional' to the
12409 cat >conftest.
$ac_ext <<_ACEOF
12410 #line 12410 "configure"
12411 #include "confdefs.h"
12414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12415 egrep "yes..yes" >/dev
/null
2>&1; then
12416 CPP_NEED_TRADITIONAL
=no
12418 CPP_NEED_TRADITIONAL
=yes
12422 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"
12423 ac_config_commands
="$ac_config_commands default"
12424 cat >confcache
<<\_ACEOF
12425 # This file is a shell script that caches the results of configure
12426 # tests run on this system so they can be shared between configure
12427 # scripts and configure runs, see configure's option --config-cache.
12428 # It is not useful on other systems. If it contains results you don't
12429 # want to keep, you may remove or edit it.
12431 # config.status only pays attention to the cache file if you give it
12432 # the --recheck option to rerun configure.
12434 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12436 # following values.
12440 # The following way of writing the cache mishandles newlines in values,
12441 # but we know of no workaround that is simple, portable, and efficient.
12442 # So, don't put newlines in cache variables' values.
12443 # Ultrix sh set writes to stderr and can't be redirected directly,
12444 # and sets the high bit in the cache file unless we assign to the vars.
12447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12449 # `set' does not quote correctly, so add quotes (double-quote
12450 # substitution turns \\\\ into \\, and sed turns \\ into \).
12453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12456 # `set' quotes correctly as required by POSIX, so do not add quotes.
12458 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12467 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12469 if cmp -s $cache_file confcache
; then :; else
12470 if test -w $cache_file; then
12471 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12472 cat confcache
>$cache_file
12474 echo "not updating unwritable cache $cache_file"
12479 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12480 # Let make expand exec_prefix.
12481 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12485 # trailing colons and then remove the whole line if VPATH becomes empty
12486 # (actually we leave an empty line to preserve line numbers).
12487 if test "x$srcdir" = x.
; then
12488 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12489 s/:*\$(srcdir):*/:/;
12490 s/:*\${srcdir}:*/:/;
12492 s/^\([^=]*=[ ]*\):*/\1/;
12498 DEFS
=-DHAVE_CONFIG_H
12500 : ${CONFIG_STATUS=./config.status}
12501 ac_clean_files_save
=$ac_clean_files
12502 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12503 { echo "$as_me:12503: creating $CONFIG_STATUS" >&5
12504 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12505 cat >$CONFIG_STATUS <<_ACEOF
12507 # Generated automatically by configure.
12508 # Run this file to recreate the current configuration.
12509 # Compiler output produced by configure, useful for debugging
12510 # configure, is in config.log if it exists.
12513 SHELL=\${CONFIG_SHELL-$SHELL}
12514 ac_cs_invocation="\$0 \$@"
12518 cat >>$CONFIG_STATUS <<\_ACEOF
12519 # Be Bourne compatible
12520 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12523 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12527 # Name of the executable.
12528 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12530 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12536 rm -f conf$$ conf$$.exe conf$$.
file
12538 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12539 # We could just check for DJGPP; but this test a) works b) is more generic
12540 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12541 if test -f conf$$.exe
; then
12542 # Don't use ln at all; we don't have any links
12547 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12552 rm -f conf$$ conf$$.exe conf$$.
file
12554 as_executable_p
="test -f"
12556 # Support unset when possible.
12557 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12564 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12565 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12566 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12567 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12568 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12569 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12570 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12571 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12574 # We need space, tab and new line, in precisely that order.
12580 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12586 # Files that config.status was made for.
12587 if test -n "$ac_config_files"; then
12588 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12591 if test -n "$ac_config_headers"; then
12592 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12595 if test -n "$ac_config_links"; then
12596 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12599 if test -n "$ac_config_commands"; then
12600 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12603 cat >>$CONFIG_STATUS <<\EOF
12606 \`$as_me' instantiates files from templates according to the
12607 current configuration.
12609 Usage: $0 [OPTIONS] [FILE]...
12611 -h, --help print this help, then exit
12612 -V, --version print version number, then exit
12613 -d, --debug don't remove temporary files
12614 --recheck update $as_me by reconfiguring in the same conditions
12615 --file=FILE[:TEMPLATE]
12616 instantiate the configuration file FILE
12617 --header=FILE[:TEMPLATE]
12618 instantiate the configuration header FILE
12620 Configuration files:
12623 Configuration headers:
12626 Configuration commands:
12629 Report bugs to <bug-autoconf@gnu.org>."
12632 cat >>$CONFIG_STATUS <<EOF
12635 configured by $0, generated by GNU Autoconf 2.52,
12636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12638 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12639 Free Software Foundation, Inc.
12640 This config.status script is free software; the Free Software Foundation
12641 gives unlimited permission to copy, distribute and modify it."
12646 cat >>$CONFIG_STATUS <<\EOF
12647 # If no file are specified by the user, then we need to provide default
12648 # value. By we need to know if files were specified by the user.
12654 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12655 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12657 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12661 *) # This is not an option, so the user has probably given explicit
12663 ac_need_defaults
=false
;;
12667 # Handling of the options.
12669 cat >>$CONFIG_STATUS <<EOF
12670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12671 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12672 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12674 cat >>$CONFIG_STATUS <<\EOF
12675 --version |
--vers* |
-V )
12676 echo "$ac_cs_version"; exit 0 ;;
12678 # Conflict between --help and --header
12679 { { echo "$as_me:12679: error: ambiguous option: $1
12680 Try \`$0 --help' for more information." >&5
12681 echo "$as_me: error: ambiguous option: $1
12682 Try \`$0 --help' for more information." >&2;}
12683 { (exit 1); exit 1; }; };;
12684 --help |
--hel |
-h )
12685 echo "$ac_cs_usage"; exit 0 ;;
12686 --debug |
--d* |
-d )
12688 --file |
--fil |
--fi |
--f )
12690 CONFIG_FILES
="$CONFIG_FILES $1"
12691 ac_need_defaults
=false
;;
12692 --header |
--heade |
--head |
--hea )
12694 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12695 ac_need_defaults
=false
;;
12697 # This is an error.
12698 -*) { { echo "$as_me:12698: error: unrecognized option: $1
12699 Try \`$0 --help' for more information." >&5
12700 echo "$as_me: error: unrecognized option: $1
12701 Try \`$0 --help' for more information." >&2;}
12702 { (exit 1); exit 1; }; } ;;
12704 *) ac_config_targets
="$ac_config_targets $1" ;;
12713 ## ----------------------- ##
12714 ## Running config.status. ##
12715 ## ----------------------- ##
12717 This file was extended by $as_me 2.52, executed with
12718 CONFIG_FILES = $CONFIG_FILES
12719 CONFIG_HEADERS = $CONFIG_HEADERS
12720 CONFIG_LINKS = $CONFIG_LINKS
12721 CONFIG_COMMANDS = $CONFIG_COMMANDS
12722 > $ac_cs_invocation
12723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12728 cat >>$CONFIG_STATUS <<EOF
12730 # INIT-COMMANDS section.
12733 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12737 cat >>$CONFIG_STATUS <<\EOF
12738 for ac_config_target
in $ac_config_targets
12740 case "$ac_config_target" in
12741 # Handling of arguments.
12742 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12743 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12744 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12745 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12746 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12747 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12748 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12749 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12750 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
12751 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12752 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12753 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12754 *) { { echo "$as_me:12754: error: invalid argument: $ac_config_target" >&5
12755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12756 { (exit 1); exit 1; }; };;
12760 # If the user did not use the arguments to specify the items to instantiate,
12761 # then the envvar interface is used. Set only those that are not.
12762 # We use the long form for the default assignment because of an extremely
12763 # bizarre bug on SunOS 4.1.3.
12764 if $ac_need_defaults; then
12765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12770 # Create a temporary directory, and hook for its removal unless debugging.
12773 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12774 trap '{ (exit 1); exit 1; }' 1 2 13 15
12777 # Create a (secure) tmp directory for tmp files.
12780 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12781 test -n "$tmp" && test -d "$tmp"
12784 tmp
=$TMPDIR/cs$$
-$RANDOM
12785 (umask 077 && mkdir
$tmp)
12788 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12789 { (exit 1); exit 1; }
12794 cat >>$CONFIG_STATUS <<EOF
12797 # CONFIG_FILES section.
12800 # No need to generate the scripts if there are no CONFIG_FILES.
12801 # This happens for instance when ./config.status config.h
12802 if test -n "\$CONFIG_FILES"; then
12803 # Protect against being on the right side of a sed subst in config.status.
12804 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12805 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12806 s,@SHELL@,$SHELL,;t t
12807 s,@exec_prefix@,$exec_prefix,;t t
12808 s,@prefix@,$prefix,;t t
12809 s,@program_transform_name@,$program_transform_name,;t t
12810 s,@bindir@,$bindir,;t t
12811 s,@sbindir@,$sbindir,;t t
12812 s,@libexecdir@,$libexecdir,;t t
12813 s,@datadir@,$datadir,;t t
12814 s,@sysconfdir@,$sysconfdir,;t t
12815 s,@sharedstatedir@,$sharedstatedir,;t t
12816 s,@localstatedir@,$localstatedir,;t t
12817 s,@libdir@,$libdir,;t t
12818 s,@includedir@,$includedir,;t t
12819 s,@oldincludedir@,$oldincludedir,;t t
12820 s,@infodir@,$infodir,;t t
12821 s,@mandir@,$mandir,;t t
12822 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12823 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12824 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12825 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12826 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12827 s,@build_alias@,$build_alias,;t t
12828 s,@host_alias@,$host_alias,;t t
12829 s,@target_alias@,$target_alias,;t t
12830 s,@ECHO_C@,$ECHO_C,;t t
12831 s,@ECHO_N@,$ECHO_N,;t t
12832 s,@ECHO_T@,$ECHO_T,;t t
12833 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12834 s,@DEFS@,$DEFS,;t t
12835 s,@LIBS@,$LIBS,;t t
12836 s,@build@,$build,;t t
12837 s,@build_cpu@,$build_cpu,;t t
12838 s,@build_vendor@,$build_vendor,;t t
12839 s,@build_os@,$build_os,;t t
12840 s,@host@,$host,;t t
12841 s,@host_cpu@,$host_cpu,;t t
12842 s,@host_vendor@,$host_vendor,;t t
12843 s,@host_os@,$host_os,;t t
12845 s,@CFLAGS@,$CFLAGS,;t t
12846 s,@LDFLAGS@,$LDFLAGS,;t t
12847 s,@CPPFLAGS@,$CPPFLAGS,;t t
12848 s,@ac_ct_CC@,$ac_ct_CC,;t t
12849 s,@EXEEXT@,$EXEEXT,;t t
12850 s,@OBJEXT@,$OBJEXT,;t t
12851 s,@LN_S@,$LN_S,;t t
12853 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12854 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12855 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12856 s,@YACC@,$YACC,;t t
12857 s,@RANLIB@,$RANLIB,;t t
12858 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12859 s,@LIBSOUND@,$LIBSOUND,;t t
12860 s,@SET_MAKE@,$SET_MAKE,;t t
12861 s,@ALLOCA@,$ALLOCA,;t t
12862 s,@liblockfile@,$liblockfile,;t t
12863 s,@LIBOBJS@,$LIBOBJS,;t t
12864 s,@NEED_SETGID@,$NEED_SETGID,;t t
12865 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12866 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12867 s,@version@,$version,;t t
12868 s,@configuration@,$configuration,;t t
12869 s,@canonical@,$canonical,;t t
12870 s,@srcdir@,$srcdir,;t t
12871 s,@lispdir@,$lispdir,;t t
12872 s,@locallisppath@,$locallisppath,;t t
12873 s,@lisppath@,$lisppath,;t t
12874 s,@x_default_search_path@,$x_default_search_path,;t t
12875 s,@etcdir@,$etcdir,;t t
12876 s,@archlibdir@,$archlibdir,;t t
12877 s,@docdir@,$docdir,;t t
12878 s,@bitmapdir@,$bitmapdir,;t t
12879 s,@c_switch_system@,$c_switch_system,;t t
12880 s,@c_switch_machine@,$c_switch_machine,;t t
12881 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12882 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12883 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12884 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12885 s,@machfile@,$machfile,;t t
12886 s,@opsysfile@,$opsysfile,;t t
12891 cat >>$CONFIG_STATUS <<\EOF
12892 # Split the substitutions into bite-sized pieces for seds with
12893 # small command number limits, like on Digital OSF/1 and HP-UX.
12894 ac_max_sed_lines
=48
12895 ac_sed_frag
=1 # Number of current file.
12896 ac_beg
=1 # First line for current file.
12897 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12900 while $ac_more_lines; do
12901 if test $ac_beg -gt 1; then
12902 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12904 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12906 if test ! -s $tmp/subs.frag
; then
12907 ac_more_lines
=false
12909 # The purpose of the label and of the branching condition is to
12910 # speed up the sed processing (if there are no `@' at all, there
12911 # is no need to browse any of the substitutions).
12912 # These are the two extra sed commands mentioned above.
12914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12915 if test -z "$ac_sed_cmds"; then
12916 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12918 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12920 ac_sed_frag
=`expr $ac_sed_frag + 1`
12922 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12925 if test -z "$ac_sed_cmds"; then
12928 fi # test -n "$CONFIG_FILES"
12931 cat >>$CONFIG_STATUS <<\EOF
12932 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12935 - |
*:- |
*:-:* ) # input from stdin
12937 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12938 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12939 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12940 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12941 * ) ac_file_in
=$ac_file.
in ;;
12944 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12945 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12946 X"$ac_file" : 'X\(//\)[^/]' \| \
12947 X"$ac_file" : 'X\(//\)$' \| \
12948 X"$ac_file" : 'X\(/\)' \| \
12949 . : '\(.\)' 2>/dev/null ||
12951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12953 /^X\(\/\/\)$/{ s//\1/; q; }
12954 /^X\(\/\).*/{ s//\1/; q; }
12956 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12957 { case "$ac_dir" in
12958 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12962 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12963 case $as_mkdir_dir in
12964 # Skip DOS drivespec
12965 ?
:) as_incr_dir
=$as_mkdir_dir ;;
12967 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
12968 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
12973 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
12974 # A "../" for each directory in $ac_dir_suffix.
12975 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12977 ac_dir_suffix
= ac_dots
=
12982 if test -z "$ac_dots"; then
12985 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
12987 [\\/]* | ?
:[\\/]* )
12988 ac_srcdir
=$srcdir$ac_dir_suffix;
12989 ac_top_srcdir
=$srcdir ;;
12990 *) # Relative path.
12991 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
12992 ac_top_srcdir
=$ac_dots$srcdir ;;
12996 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12997 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13000 if test x
"$ac_file" != x-
; then
13001 { echo "$as_me:13001: creating $ac_file" >&5
13002 echo "$as_me: creating $ac_file" >&6;}
13005 # Let's still pretend it is `configure' which instantiates (i.e., don't
13006 # use $as_me), people would be surprised to read:
13007 # /* config.h. Generated automatically by config.status. */
13008 configure_input
="Generated automatically from `echo $ac_file_in |
13009 sed 's,.*/,,'` by configure."
13011 # First look for the input files in the build tree, otherwise in the
13013 ac_file_inputs
=`IFS=:
13014 for f in $ac_file_in; do
13016 -) echo $tmp/stdin ;;
13018 # Absolute (can't be DOS-style, as IFS=:)
13019 test -f "$f" || { { echo "$as_me:13019: error: cannot find input file: $f" >&5
13020 echo "$as_me: error: cannot find input file: $f" >&2;}
13021 { (exit 1); exit 1; }; }
13024 if test -f "$f"; then
13027 elif test -f "$srcdir/$f"; then
13032 { { echo "$as_me:13032: error: cannot find input file: $f" >&5
13033 echo "$as_me: error: cannot find input file: $f" >&2;}
13034 { (exit 1); exit 1; }; }
13037 done` ||
{ (exit 1); exit 1; }
13039 cat >>$CONFIG_STATUS <<EOF
13043 cat >>$CONFIG_STATUS <<\EOF
13045 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13046 s
,@configure_input@
,$configure_input,;t t
13047 s
,@srcdir@
,$ac_srcdir,;t t
13048 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13049 s
,@INSTALL@
,$ac_INSTALL,;t t
13050 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13052 if test x"$ac_file" != x-; then
13053 mv $tmp/out $ac_file
13061 cat >>$CONFIG_STATUS <<\EOF
13064 # CONFIG_HEADER section.
13067 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13068 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13070 # ac_d sets the value in "#define NAME VALUE" lines.
13071 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13072 ac_dB
='[ ].*$,\1#\2'
13075 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13076 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13077 ac_uB
='$,\1#\2define\3'
13081 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13084 - |
*:- |
*:-:* ) # input from stdin
13086 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13087 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13088 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13089 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13090 * ) ac_file_in
=$ac_file.
in ;;
13093 test x
"$ac_file" != x-
&& { echo "$as_me:13093: creating $ac_file" >&5
13094 echo "$as_me: creating $ac_file" >&6;}
13096 # First look for the input files in the build tree, otherwise in the
13098 ac_file_inputs
=`IFS=:
13099 for f in $ac_file_in; do
13101 -) echo $tmp/stdin ;;
13103 # Absolute (can't be DOS-style, as IFS=:)
13104 test -f "$f" || { { echo "$as_me:13104: error: cannot find input file: $f" >&5
13105 echo "$as_me: error: cannot find input file: $f" >&2;}
13106 { (exit 1); exit 1; }; }
13109 if test -f "$f"; then
13112 elif test -f "$srcdir/$f"; then
13117 { { echo "$as_me:13117: error: cannot find input file: $f" >&5
13118 echo "$as_me: error: cannot find input file: $f" >&2;}
13119 { (exit 1); exit 1; }; }
13122 done` ||
{ (exit 1); exit 1; }
13123 # Remove the trailing spaces.
13124 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13128 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13129 # `conftest.undefs', that substitutes the proper values into
13130 # config.h.in to produce config.h. The first handles `#define'
13131 # templates, and the second `#undef' templates.
13132 # And first: Protect against being on the right side of a sed subst in
13133 # config.status. Protect against being in an unquoted here document
13134 # in config.status.
13135 rm -f conftest.defines conftest.undefs
13136 # Using a here document instead of a string reduces the quoting nightmare.
13137 # Putting comments in sed scripts is not portable.
13139 # `end' is used to avoid that the second main sed command (meant for
13140 # 0-ary CPP macros) applies to n-ary macro definitions.
13141 # See the Autoconf documentation for `clear'.
13142 cat >confdef2sed.
sed <<\EOF
13147 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13149 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13152 # If some macros were called several times there might be several times
13153 # the same #defines, which is useless. Nevertheless, we may not want to
13154 # sort them, since we want the *last* AC-DEFINE to be honored.
13155 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13156 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13157 rm -f confdef2sed.sed
13159 # This sed command replaces #undef with comments. This is necessary, for
13160 # example, in the case of _POSIX_SOURCE, which is predefined and required
13161 # on some systems where configure will not decide to define it.
13162 cat >>conftest.undefs <<\EOF
13163 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13166 # Break up conftest.defines because some shells have a limit on the size
13167 # of here documents, and old seds have small limits too (100 cmds).
13168 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13169 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13170 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13171 echo ' :' >>$CONFIG_STATUS
13172 rm -f conftest.tail
13173 while grep . conftest.defines >/dev/null
13175 # Write a limited-size here document to $tmp/defines.sed.
13176 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13177 # Speed up: don't consider the non `#define' lines.
13178 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13179 # Work around the forget-to-reset-the-flag bug.
13180 echo 't clr' >>$CONFIG_STATUS
13181 echo ': clr' >>$CONFIG_STATUS
13182 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13184 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13186 mv $tmp/out $tmp/in
13188 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13189 rm -f conftest.defines
13190 mv conftest.
tail conftest.defines
13192 rm -f conftest.defines
13193 echo ' fi # egrep' >>$CONFIG_STATUS
13194 echo >>$CONFIG_STATUS
13196 # Break up conftest.undefs because some shells have a limit on the size
13197 # of here documents, and old seds have small limits too (100 cmds).
13198 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13199 rm -f conftest.
tail
13200 while grep . conftest.undefs
>/dev
/null
13202 # Write a limited-size here document to $tmp/undefs.sed.
13203 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13204 # Speed up: don't consider the non
`#undef'
13205 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13206 # Work around the forget-to-reset-the-flag bug.
13207 echo 't clr' >>$CONFIG_STATUS
13208 echo ': clr' >>$CONFIG_STATUS
13209 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13211 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13213 mv $tmp/out $tmp/in
13215 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13216 rm -f conftest.undefs
13217 mv conftest.tail conftest.undefs
13219 rm -f conftest.undefs
13221 cat >>$CONFIG_STATUS <<\EOF
13222 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13223 # use $as_me), people would be surprised to read:
13224 # /* config.h. Generated automatically by config.status. */
13225 if test x
"$ac_file" = x-
; then
13226 echo "/* Generated automatically by configure. */" >$tmp/config.h
13228 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13230 cat $tmp/in >>$tmp/config.h
13232 if test x
"$ac_file" != x-
; then
13233 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13234 { echo "$as_me:13234: $ac_file is unchanged" >&5
13235 echo "$as_me: $ac_file is unchanged" >&6;}
13237 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13238 X"$ac_file" : 'X\(//\)[^/]' \| \
13239 X"$ac_file" : 'X\(//\)$' \| \
13240 X"$ac_file" : 'X\(/\)' \| \
13241 . : '\(.\)' 2>/dev/null ||
13243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13245 /^X\(\/\/\)$/{ s//\1/; q; }
13246 /^X\(\/\).*/{ s//\1/; q; }
13248 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13249 { case "$ac_dir" in
13250 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13254 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13255 case $as_mkdir_dir in
13256 # Skip DOS drivespec
13257 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13259 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13260 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13267 mv $tmp/config.h
$ac_file
13271 rm -f $tmp/config.h
13275 cat >>$CONFIG_STATUS <<\EOF
13278 # CONFIG_COMMANDS section.
13280 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13281 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13282 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13287 ### Make the necessary directories, if they don't exist.
13288 for dir
in etc lisp
; do
13289 test -d ${dir} || mkdir
${dir}
13292 # Build src/Makefile from ${srcdir}/src/Makefile.c
13293 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13294 # This must be done after src/config.h is built, since we rely on that file.
13296 # Now get this: Some word that is part of the ${srcdir} directory name
13297 # or the ${configuration} value might, just might, happen to be an
13298 # identifier like `sun4' or `i386' or something, and be predefined by
13299 # the C preprocessor to some helpful value like 1, or maybe the empty
13300 # string. Needless to say consequent macro substitutions are less
13301 # than conducive to the makefile finding the correct directory.
13302 undefs
="`echo $top_srcdir $configuration $canonical |
13303 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13304 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13307 echo creating src
/epaths.h
13308 ${MAKE-make} epaths-force
13310 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13311 # `..' to `. .' unless invoked with -traditional
13313 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13314 CPPFLAGS
="$CPPFLAGS -traditional"
13317 echo creating lib-src
/Makefile
13319 rm -f junk.c junk1.c junk2.c
13320 sed -e '/start of cpp stuff/q' \
13321 < Makefile.c
> junk1.c
13322 sed -e '1,/start of cpp stuff/d'\
13323 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13324 < Makefile.c
> junk.c
13325 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13326 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13327 cat junk1.c junk2.c
> Makefile.new
13328 rm -f junk.c junk1.c junk2.c
13329 chmod 444 Makefile.new
13330 mv -f Makefile.new Makefile
13333 echo creating src
/Makefile
13335 rm -f junk.c junk1.c junk2.c
13336 sed -e '/start of cpp stuff/q' \
13337 < Makefile.c
> junk1.c
13338 sed -e '1,/start of cpp stuff/d'\
13339 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13340 < Makefile.c
> junk.c
13341 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13342 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13343 cat junk1.c junk2.c
> Makefile.new
13344 rm -f junk.c junk1.c junk2.c
13345 chmod 444 Makefile.new
13346 mv -f Makefile.new Makefile
13349 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13350 echo creating src
/.gdbinit
13351 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13354 # This is how we know whether to re-run configure in certain cases.
13355 touch src
/config.stamp
13362 cat >>$CONFIG_STATUS <<\EOF
13364 { (exit 0); exit 0; }
13366 chmod +x
$CONFIG_STATUS
13367 ac_clean_files
=$ac_clean_files_save
13369 # configure is writing to config.log, and then calls config.status.
13370 # config.status does its own redirection, appending to config.log.
13371 # Unfortunately, on DOS this fails, as config.log is still kept open
13372 # by configure, so config.status won't be able to write to it; its
13373 # output is simply discarded. So we exec the FD to /dev/null,
13374 # effectively closing config.log, so it can be properly (re)opened and
13375 # appended to by config.status. When coming back to configure, we
13376 # need to make the FD available again.
13377 if test "$no_create" != yes; then
13380 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13383 # would make configure fail if this is the last instruction.
13384 $ac_cs_success ||
{ (exit 1); exit 1; }