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 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1153 ## but that tested only for a well-formed and valid PWD,
1154 ## it did not object when PWD was well-formed and valid but just wrong.
1155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1159 srcdir
="`(cd ${srcdir}; pwd)`"
1162 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1165 #### Check if the source directory already has a configured system in it.
1166 if test `pwd` != `(cd ${srcdir} && pwd)` \
1167 && test -f "${srcdir}/src/config.h" ; then
1168 { echo "$as_me:1168: WARNING: The directory tree \`${srcdir}' is being used
1169 as a build directory right now; it has been configured in its own
1170 right. To configure in another directory as well, you MUST
1171 use GNU make. If you do not have GNU make, then you must
1172 now do \`make distclean' in ${srcdir},
1173 and then run $0 again." >&5
1174 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1175 as a build directory right now; it has been configured in its own
1176 right. To configure in another directory as well, you MUST
1177 use GNU make. If you do not have GNU make, then you must
1178 now do \`make distclean' in ${srcdir},
1179 and then run $0 again." >&2;}
1181 extrasub
='/^VPATH[ ]*=/c\
1182 vpath %.c $(srcdir)\
1183 vpath %.h $(srcdir)\
1184 vpath %.y $(srcdir)\
1185 vpath %.l $(srcdir)\
1186 vpath %.s $(srcdir)\
1187 vpath %.in $(srcdir)\
1188 vpath %.texi $(srcdir)'
1191 #### Given the configuration name, set machfile and opsysfile to the
1192 #### names of the m/*.h and s/*.h files we should use.
1194 ### Canonicalize the configuration name.
1197 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1198 if test -f $ac_dir/install-sh
; then
1200 ac_install_sh
="$ac_aux_dir/install-sh -c"
1202 elif test -f $ac_dir/install.sh
; then
1204 ac_install_sh
="$ac_aux_dir/install.sh -c"
1206 elif test -f $ac_dir/shtool
; then
1208 ac_install_sh
="$ac_aux_dir/shtool install -c"
1212 if test -z "$ac_aux_dir"; then
1213 { { echo "$as_me:1213: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1214 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1215 { (exit 1); exit 1; }; }
1217 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1218 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1219 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1221 # Make sure we can run config.sub.
1222 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1223 { { echo "$as_me:1223: error: cannot run $ac_config_sub" >&5
1224 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1225 { (exit 1); exit 1; }; }
1227 echo "$as_me:1227: checking build system type" >&5
1228 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1229 if test "${ac_cv_build+set}" = set; then
1230 echo $ECHO_N "(cached) $ECHO_C" >&6
1232 ac_cv_build_alias
=$build_alias
1233 test -z "$ac_cv_build_alias" &&
1234 ac_cv_build_alias
=`$ac_config_guess`
1235 test -z "$ac_cv_build_alias" &&
1236 { { echo "$as_me:1236: error: cannot guess build type; you must specify one" >&5
1237 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1238 { (exit 1); exit 1; }; }
1239 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1241 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1242 { (exit 1); exit 1; }; }
1245 echo "$as_me:1245: result: $ac_cv_build" >&5
1246 echo "${ECHO_T}$ac_cv_build" >&6
1248 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1252 echo "$as_me:1252: checking host system type" >&5
1253 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1254 if test "${ac_cv_host+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 ac_cv_host_alias
=$host_alias
1258 test -z "$ac_cv_host_alias" &&
1259 ac_cv_host_alias
=$ac_cv_build_alias
1260 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1261 { { echo "$as_me:1261: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1262 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1263 { (exit 1); exit 1; }; }
1266 echo "$as_me:1266: result: $ac_cv_host" >&5
1267 echo "${ECHO_T}$ac_cv_host" >&6
1269 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1270 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1271 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 configuration
=${host_alias-$host}
1276 ### If you add support for a new configuration, add code to this
1277 ### switch statement to recognize your configuration name and select
1278 ### the appropriate operating system and machine description files.
1280 ### You would hope that you could choose an m/*.h file pretty much
1281 ### based on the machine portion of the configuration name, and an s-
1282 ### file based on the operating system portion. However, it turns out
1283 ### that each m/*.h file is pretty manufacturer-specific - for
1284 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1285 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1286 ### machines. So we basically have to have a special case for each
1287 ### configuration name.
1289 ### As far as handling version numbers on operating systems is
1290 ### concerned, make sure things will fail in a fixable way. If
1291 ### /etc/MACHINES doesn't say anything about version numbers, be
1292 ### prepared to handle anything reasonably. If version numbers
1293 ### matter, be sure /etc/MACHINES says something about it.
1295 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1296 ### "System V Release 4"; he writes, "The old convention encouraged
1297 ### confusion between `system' and `release' levels'."
1299 machine
='' opsys
='' unported
=no
1300 case "${canonical}" in
1305 case "${canonical}" in
1306 alpha
*-*-freebsd*) machine
=alpha
;;
1307 i
[3456]86-*-freebsd*) machine
=intel386
;;
1314 case "${canonical}" in
1315 alpha
*-*-netbsd*) machine
=alpha
;;
1316 i
[3456]86-*-netbsd*) machine
=intel386
;;
1318 # This is somewhat bogus.
1319 machine
=hp9000s300
;;
1320 powerpc-apple-netbsd
*) machine
=macppc
;;
1321 mips-
*-netbsd*) machine
=pmax
;;
1322 mipsel-
*-netbsd*) machine
=pmax
;;
1323 ns32k-
*-netbsd*) machine
=ns32000
;;
1324 powerpc-
*-netbsd*) machine
=macppc
;;
1325 sparc
*-*-netbsd*) machine
=sparc
;;
1326 vax-
*-netbsd*) machine
=vax
;;
1327 arm-
*-netbsd*) machine
=arm
;;
1334 case "${canonical}" in
1335 alpha
*-*-openbsd*) machine
=alpha
;;
1336 i386-
*-openbsd*) machine
=intel386
;;
1337 m68k-
*-openbsd*) machine
=hp9000s300
;;
1338 mipsel-
*-openbsd*) machine
=pmax
;;
1339 ns32k-
*-openbsd*) machine
=ns32000
;;
1340 sparc-
*-openbsd*) machine
=sparc
;;
1341 vax-
*-openbsd*) machine
=vax
;;
1346 arm-acorn-riscix1.1
* )
1347 machine
=acorn opsys
=riscix1-1
1349 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1350 ## This name is riscix12 instead of riscix1.2
1351 ## to avoid a file name conflict on MSDOS.
1352 machine
=acorn opsys
=riscix12
1358 case "${canonical}" in
1359 i
[345]86-*-bsdi*) machine
=intel386
;;
1360 sparc-
*-bsdi*) machine
=sparc
;;
1361 powerpc-
*-bsdi*) machine
=macppc
;;
1363 case "${canonical}" in
1364 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1365 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1366 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1367 *-*-bsdi3* ) opsys
=bsdos3
;;
1368 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1373 ## Strictly speaking, we need the version of the alliant operating
1374 ## system to choose the right machine file, but currently the
1375 ## configuration name doesn't tell us enough to choose the right
1376 ## one; we need to give alliants their own operating system name to
1377 ## do this right. When someone cares, they can help us.
1379 machine
=alliant4 opsys
=bsd4-2
1382 machine
=alliant-2800 opsys
=bsd4-3
1385 ## Alpha (DEC) machines.
1387 machine
=alpha opsys
=osf1
1388 # This is needed to find X11R6.1 libraries for certain tests.
1389 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1390 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1391 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1392 # due to non-traditional preprocessing with the current compiler
1393 # defaults. OSF 4 can also have that compiler version, and there
1394 # seems always to have been a usable /usr/bin/cpp.
1395 NON_GNU_CPP
=/usr
/bin
/cpp
1396 case "${canonical}" in
1397 alpha
*-dec-osf[5-9]*)
1402 alpha
*-*-linux-gnu* )
1403 machine
=alpha opsys
=gnu-linux
1407 machine
=arm opsys
=gnu-linux
1412 machine
=macppc opsys
=gnu-linux
1417 machine
=altos opsys
=usg5-2
1422 machine
=amdahl opsys
=usg5-2-2
1425 ## Apollo, Domain/OS
1427 machine
=apollo opsys
=bsd4-3
1430 ## AT&T 3b2, 3b5, 3b15, 3b20
1432 machine
=att3b opsys
=usg5-2-2
1435 ## AT&T 3b1 - The Mighty Unix PC!
1437 machine
=7300 opsys
=usg5-2-2
1442 machine
=ibmrs6000 opsys
=aix3-2
1447 machine
=dpx2 opsys
=usg5-3
1452 machine
=sps7 opsys
=usg5-2
1455 ## CCI 5/32, 6/32 -- see "Tahoe".
1458 ## I don't know what configuration name to use for this; config.sub
1459 ## doesn't seem to know anything about it. Hey, Celerity users, get
1460 ## in touch with us!
1461 celerity-celerity-bsd
* )
1462 machine
=celerity opsys
=bsd4-2
1466 ## What operating systems does this chip run that Emacs has been
1470 ## We'll use the catch-all code at the bottom to guess the
1471 ## operating system.
1475 mips-compaq-nonstopux
* )
1476 machine
=nonstopux opsys
=nonstopux
1480 *-convex-bsd* |
*-convex-convexos* )
1481 machine
=convex opsys
=bsd4-3
1482 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1483 NON_GNU_CPP
="cc -E -P"
1487 i
[3456]86-cubix-sysv* )
1488 machine
=intel386 opsys
=usg5-3
1492 cydra
*-cydrome-sysv* )
1493 machine
=cydra5 opsys
=usg5-3
1496 ## Data General AViiON Machines
1497 ## DG changed naming conventions with the release of 5.4.4.10, they
1498 ## dropped the initial 5.4 but left the intervening R. Because of the
1499 ## R this shouldn't conflict with older versions of the OS (which I
1500 ## think were named like dgux4.*). In addition, DG new AViiONs series
1501 ## uses either Motorola M88k or Intel Pentium CPUs.
1502 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1503 machine
=aviion opsys
=dgux4
1505 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1506 ## This name is dgux5-4-3 instead of dgux5-4r3
1507 ## to avoid a file name conflict on MSDOS.
1508 machine
=aviion opsys
=dgux5-4-3
1510 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1511 machine
=aviion opsys
=dgux5-4r2
1514 machine
=aviion opsys
=dgux
1517 ## Data General AViiON Intel (x86) Machines
1518 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1519 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1520 i
[345]86-dg-dguxR4* )
1521 machine
=aviion-intel opsys
=dgux4
1525 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1526 machine
=pmax opsys
=bsd4-2
1528 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1529 machine
=pmax opsys
=bsd4-3
1532 machine
=pmax opsys
=ultrix4-3
1535 machine
=pmax opsys
=osf1
1537 mips-dec-mach_bsd4.3
* )
1538 machine
=pmax opsys
=mach-bsd4-3
1541 ## Motorola Delta machines
1542 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1543 machine
=delta opsys
=usg5-3
1544 if test -z "`type gnucc | grep 'not found'`"
1546 if test -s /etc
/167config
1547 then CC
="gnucc -m68040"
1548 else CC
="gnucc -m68881"
1551 if test -z "`type gcc | grep 'not found'`"
1557 m88k-motorola-sysv4
* )
1558 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1559 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1560 # I hope there are not other 4.0 versions for this machine
1561 # which really need usg5-4 instead.
1562 machine
=delta88k opsys
=usg5-4-2
1564 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1565 machine
=delta88k opsys
=usg5-3
1570 machine
=dual opsys
=usg5-2
1572 m68
*-dual-uniplus* )
1573 machine
=dual opsys
=unipl5-2
1578 machine
=elxsi opsys
=usg5-2
1583 machine
=ns16000 opsys
=umax
1586 ## The GEC 63 - apparently, this port isn't really finished yet.
1587 # I'm sure we finished off the last of the machines, though. -- fx
1589 ## Gould Power Node and NP1
1591 machine
=gould opsys
=bsd4-2
1594 machine
=gould opsys
=bsd4-3
1597 machine
=gould-np1 opsys
=bsd4-3
1600 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1601 ## as far as Emacs is concerned).
1603 # Build needs to be different on 7.0 and later releases
1604 case "`uname -r`" in
1605 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1606 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1608 NON_GNU_CPP
="/lib/cpp"
1610 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1612 machine
=nh3000 opsys
=cxux
1614 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1615 powerpc-harris-powerunix
)
1616 machine
=nh6000 opsys
=powerunix
1617 NON_GNU_CPP
="cc -Xo -E -P"
1619 ## SR2001/SR2201 running HI-UX/MPP
1620 hppa1.1
-hitachi-hiuxmpp* )
1621 machine
=sr2k opsys
=hiuxmpp
1623 hppa1.1
-hitachi-hiuxwe2* )
1624 machine
=sr2k opsys
=hiuxwe2
1627 xps
*-honeywell-sysv* )
1628 machine
=xps100 opsys
=usg5-2
1631 ## HP 9000 series 200 or 300
1633 machine
=hp9000s300 opsys
=bsd4-3
1635 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1637 case "`uname -r`" in
1638 ## Someone's system reports A.B8.05 for this.
1639 ## I wonder what other possibilities there are.
1640 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1641 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1642 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1643 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1644 *) machine
=hp9000s300 opsys
=hpux
;;
1648 ## HP 9000 series 700 and 800, running HP/UX
1650 machine
=hp800 opsys
=hpux
1653 machine
=hp800 opsys
=hpux8
1655 hppa
*-hp-hpux9shr* )
1656 machine
=hp800 opsys
=hpux9shr
1659 machine
=hp800 opsys
=hpux9
1662 machine
=hp800 opsys
=hpux10
1664 hppa
*-hp-hpux1[1-9]* )
1665 machine
=hp800 opsys
=hpux11
1668 hppa
*-*-linux-gnu* )
1669 machine
=hp800 opsys
=gnu-linux
1672 ## HP 9000 series 700 and 800, running HP/UX
1674 ## Cross-compilation? Nah!
1675 case "`uname -r`" in
1676 ## Someone's system reports A.B8.05 for this.
1677 ## I wonder what other possibilities there are.
1678 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1679 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1680 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1681 *) machine
=hp800 opsys
=hpux10
;;
1685 machine
=hp800 opsys
=nextstep
1690 machine
=orion opsys
=bsd4-2
1692 clipper-orion-bsd
* )
1693 machine
=orion105 opsys
=bsd4-2
1697 i
[3456]86-ibm-aix1.1
* )
1698 machine
=ibmps2-aix opsys
=usg5-2-2
1700 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1701 machine
=ibmps2-aix opsys
=usg5-3
1704 machine
=ibm370aix opsys
=usg5-3
1707 machine
=ibms390 opsys
=gnu-linux
1709 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1710 machine
=ibmrs6000 opsys
=aix3-1
1712 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1713 machine
=ibmrs6000 opsys
=aix3-2-5
1715 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1716 machine
=ibmrs6000 opsys
=aix4-1
1718 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1719 machine
=ibmrs6000 opsys
=aix4-2
1721 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1722 machine
=ibmrs6000 opsys
=aix4
1724 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1725 machine
=ibmrs6000 opsys
=aix4-1
1727 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1728 machine
=ibmrs6000 opsys
=aix3-2
1731 machine
=ibmrt opsys
=bsd4-3
1734 machine
=ibmrt opsys
=bsd4-2
1737 machine
=ibmrt opsys
=bsd4-3
1740 machine
=ibmrt opsys
=bsd4-2
1743 machine
=ibmrt opsys
=bsd4-3
1746 machine
=ibmrt opsys
=bsd4-3
1749 machine
=ibmrt-aix opsys
=usg5-2-2
1752 ## Integrated Solutions `Optimum V'
1754 machine
=isi-ov opsys
=bsd4-2
1757 machine
=isi-ov opsys
=bsd4-3
1760 ## Intel 386 machines where we do care about the manufacturer
1761 i
[3456]86-intsys-sysv* )
1762 machine
=is386 opsys
=usg5-2-2
1766 i
[3456]86-prime-sysv* )
1767 machine
=i386 opsys
=usg5-3
1770 ## Sequent Symmetry running Dynix
1771 i
[3456]86-sequent-bsd* )
1772 machine
=symmetry opsys
=bsd4-3
1775 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1776 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1777 machine
=sequent-ptx opsys
=ptx4
1778 NON_GNU_CPP
=/lib
/cpp
1781 ## Sequent Symmetry running DYNIX/ptx
1782 ## Use the old cpp rather than the newer ANSI one.
1783 i
[3456]86-sequent-ptx* )
1784 machine
=sequent-ptx opsys
=ptx
1785 NON_GNU_CPP
="/lib/cpp"
1788 ## ncr machine running svr4.3.
1789 i
[3456]86-ncr-sysv4.3
)
1790 machine
=ncr386 opsys
=usg5-4-3
1793 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1794 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1795 i
[3456]86-ncr-sysv* )
1796 machine
=ncr386 opsys
=usg5-4-2
1799 ## Intel Paragon OSF/1
1801 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1806 machine
=i860 opsys
=usg5-4
1807 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1808 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1811 ## Macintosh PowerPC
1812 powerpc
*-*-linux-gnu* )
1813 machine
=macppc opsys
=gnu-linux
1816 ## Masscomp machines
1817 m68
*-masscomp-rtu* )
1818 machine
=masscomp opsys
=rtu
1821 ## Megatest machines
1822 m68
*-megatest-bsd* )
1823 machine
=mega68 opsys
=bsd4-2
1826 ## Workstations sold by MIPS
1827 ## This is not necessarily all workstations using the MIPS processor -
1828 ## Irises are produced by SGI, and DECstations by DEC.
1830 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1831 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1832 ## it gives for choosing between the alternatives seems to be "Use
1833 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1834 ## the BSD world." I'll assume that these are instructions for
1835 ## handling two odd situations, and that every other situation
1836 ## should use mips.h and usg5-2-2, they being listed first.
1839 ## Fall through to the general code at the bottom to decide on the OS.
1841 mips-mips-riscos4
* )
1842 machine
=mips4 opsys
=bsd4-3
1843 NON_GNU_CC
="cc -systype bsd43"
1844 NON_GNU_CPP
="cc -systype bsd43 -E"
1846 mips-mips-riscos5
* )
1847 machine
=mips4 opsys
=riscos5
1848 NON_GNU_CC
="cc -systype bsd43"
1849 NON_GNU_CPP
="cc -systype bsd43 -E"
1852 machine
=mips opsys
=bsd4-3
1855 machine
=mips opsys
=usg5-2-2
1859 m68
*-next-* | m68k-
*-nextstep* )
1860 machine
=m68k opsys
=nextstep
1863 ## The complete machine from National Semiconductor
1865 machine
=ns32000 opsys
=usg5-2
1869 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1870 machine
=tower32 opsys
=usg5-2-2
1872 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1873 machine
=tower32v3 opsys
=usg5-3
1878 machine
=ews4800 opsys
=ux4800
1881 ## Nixdorf Targon 31
1882 m68
*-nixdorf-sysv* )
1883 machine
=targon31 opsys
=usg5-2-2
1888 machine
=nu opsys
=usg5-2
1893 machine
=plexus opsys
=usg5-2
1896 ## PowerPC reference platform
1897 powerpcle-
*-solaris2* )
1903 ## I don't really have any idea what sort of processor the Pyramid has,
1904 ## so I'm assuming it is its own architecture.
1905 pyramid-pyramid-bsd
* )
1906 machine
=pyramid opsys
=bsd4-2
1910 ns32k-sequent-bsd4.2
* )
1911 machine
=sequent opsys
=bsd4-2
1913 ns32k-sequent-bsd4.3
* )
1914 machine
=sequent opsys
=bsd4-3
1918 mips-siemens-sysv
* | mips-sni-sysv
*)
1919 machine
=mips-siemens opsys
=usg5-4
1920 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1921 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1924 ## Silicon Graphics machines
1925 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1927 machine
=irist opsys
=iris3-5
1929 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1930 machine
=irist opsys
=iris3-6
1934 machine
=iris4d opsys
=irix3-3
1937 machine
=iris4d opsys
=irix4-0
1940 machine
=iris4d opsys
=irix6-5
1941 # Without defining _LANGUAGE_C, things get masked out in the headers
1942 # so that, for instance, grepping for `free' in stdlib.h fails and
1943 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1944 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1945 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1948 machine
=iris4d opsys
=irix6-0
1949 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1950 # but presumably it does no harm.
1951 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1952 # -32 probably isn't necessary in later v.6s -- anyone know which?
1953 NON_GCC_TEST_OPTIONS
=-32
1955 mips-sgi-irix5.
[01]* )
1956 machine
=iris4d opsys
=irix5-0
1958 mips-sgi-irix5
* | mips-sgi-irix
* )
1959 machine
=iris4d opsys
=irix5-2
1964 machine
=news opsys
=bsd4-2
1967 machine
=news opsys
=bsd4-3
1969 m68
*-sony-newsos3* | m68
*-sony-news3*)
1970 machine
=news opsys
=bsd4-3
1972 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1973 machine
=news-risc opsys
=bsd4-3
1975 mips-sony-newsos6
* )
1976 machine
=news-r6 opsys
=newsos6
1979 machine
=news-risc opsys
=newsos5
1984 machine
=stride opsys
=usg5-2
1988 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1989 machine
=sparc opsys
=gnu-linux
1992 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1993 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1994 | rs6000-
*-solaris2*)
1995 case "${canonical}" in
1996 m68
*-sunos1* ) machine
=sun1
;;
1997 m68
*-sunos2* ) machine
=sun2
;;
1998 m68
* ) machine
=sun3
;;
1999 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2000 i
[3456]86-*-* ) machine
=intel386
;;
2001 powerpcle
* ) machine
=powerpcle
;;
2002 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2003 sparc
* ) machine
=sparc
;;
2006 case "${canonical}" in
2007 ## The Sun386 didn't get past 4.0.
2008 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2009 *-sunos4.0
* ) opsys
=sunos4-0
;;
2010 *-sunos4.1.
[3-9]*noshare
)
2011 ## This name is sunos413 instead of sunos4-1-3
2012 ## to avoid a file name conflict on MSDOS.
2014 NON_GNU_CPP
=/usr
/lib
/cpp
2015 NON_GCC_TEST_OPTIONS
=-Bstatic
2016 GCC_TEST_OPTIONS
=-static
2018 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2020 NON_GNU_CPP
=/usr
/lib
/cpp
2022 *-sunos4* |
*-sunos )
2024 NON_GCC_TEST_OPTIONS
=-Bstatic
2025 GCC_TEST_OPTIONS
=-static
2027 *-sunos5.3
* |
*-solaris2.3
* )
2029 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2031 *-sunos5.4
* |
*-solaris2.4
* )
2033 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2036 *-sunos5.5
* |
*-solaris2.5
* )
2038 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2041 *-sunos5* |
*-solaris* )
2043 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2047 ## Watch out for a compiler that we know will not work.
2048 case "${canonical}" in
2049 *-solaris* |
*-sunos5* )
2050 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2051 ## /usr/ucb/cc doesn't work;
2052 ## we should find some other compiler that does work.
2060 machine
=sparc opsys
=nextstep
2064 m68
*-tadpole-sysv* )
2065 machine
=tad68k opsys
=usg5-3
2069 tahoe-tahoe-bsd4.2
* )
2070 machine
=tahoe opsys
=bsd4-2
2072 tahoe-tahoe-bsd4.3
* )
2073 machine
=tahoe opsys
=bsd4-3
2076 ## Tandem Integrity S2
2078 machine
=tandem-s2 opsys
=usg5-3
2082 m88k-tektronix-sysv3
* )
2083 machine
=tekxd88 opsys
=usg5-3
2086 ## Tektronix 16000 box (6130?)
2087 ns16k-tektronix-bsd
* )
2088 machine
=ns16000 opsys
=bsd4-2
2091 ## src/m/tek4300.h hints that this is a m68k machine.
2092 m68
*-tektronix-bsd* )
2093 machine
=tek4300 opsys
=bsd4-3
2097 ## We seem to have lost the machine-description file titan.h!
2099 machine
=titan opsys
=usg5-3
2102 ## Ustation E30 (SS5E)
2103 m68
*-unisys-uniplus* )
2104 machine
=ustation opsystem
=unipl5-2
2110 case "${canonical}" in
2111 *-bsd4.1
* ) opsys
=bsd4-1
;;
2112 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2113 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2114 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2115 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2116 *-vms* ) opsys
=vms
;;
2122 ns16k-whitechapel-
* )
2124 ## We don't know what sort of OS runs on these; we'll let the
2125 ## operating system guessing code below try.
2130 machine
=wicat opsys
=usg5-2
2135 machine
=ia64 opsys
=gnu-linux
2138 ## Intel 386 machines where we don't care about the manufacturer
2141 case "${canonical}" in
2142 *-lynxos* ) opsys
=lynxos
;;
2143 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2144 *-isc2.2
* ) opsys
=isc2-2
;;
2145 *-isc4.0
* ) opsys
=isc4-0
;;
2146 *-isc4.
* ) opsys
=isc4-1
2147 GCC_TEST_OPTIONS
=-posix
2148 NON_GCC_TEST_OPTIONS
=-Xp
2150 *-isc* ) opsys
=isc3-0
;;
2151 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2152 *-esix* ) opsys
=esix
;;
2153 *-xenix* ) opsys
=xenix
;;
2154 *-linux-gnu* ) opsys
=gnu-linux
;;
2155 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2156 *-sco3.2v5
* ) opsys
=sco5
2157 NON_GNU_CPP
=/lib
/cpp
2158 # Prevent -belf from being passed to $CPP.
2159 # /lib/cpp does not accept it.
2160 OVERRIDE_CPPFLAGS
=" "
2162 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2163 *-386bsd* ) opsys
=386bsd
;;
2164 *-nextstep* ) opsys
=nextstep
;;
2165 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2169 ## m68k Linux-based GNU system
2171 machine
=m68k opsys
=gnu-linux
2174 ## Mips Linux-based GNU system
2176 machine
=mips opsys
=gnu-linux
2180 sparc-fujitsu-sysv4
* )
2181 machine
=sparc opsys
=uxpds
2182 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2187 f301-fujitsu-uxpv4.1
)
2188 machine
=f301 opsys
=uxpv
2196 ### If the code above didn't choose an operating system, just choose
2197 ### an operating system based on the configuration name. You really
2198 ### only want to use this when you have no idea what the right
2199 ### operating system is; if you know what operating systems a machine
2200 ### runs, it's cleaner to make it explicit in the case statement
2202 if test x
"${opsys}" = x
; then
2203 case "${canonical}" in
2204 *-gnu* ) opsys
=gnu
;;
2205 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2206 *-bsd4.2
) opsys
=bsd4-2
;;
2207 *-bsd4.3
) opsys
=bsd4-3
;;
2208 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2209 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2210 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2211 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2212 *-sysv4.2uw
* ) opsys
=unixware
;;
2213 *-sysv4.1
* |
*-sysvr4.1
* )
2214 NON_GNU_CPP
=/usr
/lib
/cpp
2216 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2217 if [ x
$NON_GNU_CPP = x
]; then
2218 if [ -f /usr
/ccs
/lib
/cpp
]; then
2219 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2221 NON_GNU_CPP
=/lib
/cpp
2225 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2232 if test $unported = yes; then
2233 { { echo "$as_me:2233: error: Emacs hasn't been ported to \`${canonical}' systems.
2234 Check \`etc/MACHINES' for recognized configuration names." >&5
2235 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2236 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2237 { (exit 1); exit 1; }; }
2240 machfile
="m/${machine}.h"
2241 opsysfile
="s/${opsys}.h"
2243 #### Choose a compiler.
2244 test -n "$CC" && cc_specified
=yes
2246 # Save the value of CFLAGS that the user specified.
2247 SPECIFIED_CFLAGS
="$CFLAGS"
2250 "yes" ) CC
="gcc" GCC
=yes ;;
2251 "no" ) : ${CC=cc} ;;
2255 ac_cpp
='$CPP $CPPFLAGS'
2256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2261 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2262 echo "$as_me:2262: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC
="$CC" # Let the user override the test.
2270 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2272 for ac_dir
in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir
=.
2275 $as_executable_p "$ac_dir/$ac_word" ||
continue
2276 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
2284 if test -n "$CC"; then
2285 echo "$as_me:2285: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2288 echo "$as_me:2288: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2293 if test -z "$ac_cv_prog_CC"; then
2295 # Extract the first word of "gcc", so it can be a program name with args.
2296 set dummy gcc
; ac_word
=$2
2297 echo "$as_me:2297: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$ac_ct_CC"; then
2303 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2305 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2307 for ac_dir
in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir
=.
2310 $as_executable_p "$ac_dir/$ac_word" ||
continue
2311 ac_cv_prog_ac_ct_CC
="gcc"
2312 echo "$as_me:2312: found $ac_dir/$ac_word" >&5
2318 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2319 if test -n "$ac_ct_CC"; then
2320 echo "$as_me:2320: result: $ac_ct_CC" >&5
2321 echo "${ECHO_T}$ac_ct_CC" >&6
2323 echo "$as_me:2323: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2335 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2336 echo "$as_me:2336: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC
="$CC" # Let the user override the test.
2344 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2346 for ac_dir
in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir
=.
2349 $as_executable_p "$ac_dir/$ac_word" ||
continue
2350 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2351 echo "$as_me:2351: found $ac_dir/$ac_word" >&5
2358 if test -n "$CC"; then
2359 echo "$as_me:2359: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6
2362 echo "$as_me:2362: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2367 if test -z "$ac_cv_prog_CC"; then
2369 # Extract the first word of "cc", so it can be a program name with args.
2370 set dummy cc
; ac_word
=$2
2371 echo "$as_me:2371: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2379 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2381 for ac_dir
in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir
=.
2384 $as_executable_p "$ac_dir/$ac_word" ||
continue
2385 ac_cv_prog_ac_ct_CC
="cc"
2386 echo "$as_me:2386: found $ac_dir/$ac_word" >&5
2392 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394 echo "$as_me:2394: result: $ac_ct_CC" >&5
2395 echo "${ECHO_T}$ac_ct_CC" >&6
2397 echo "$as_me:2397: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2407 if test -z "$CC"; then
2408 # Extract the first word of "cc", so it can be a program name with args.
2409 set dummy cc
; ac_word
=$2
2410 echo "$as_me:2410: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC
="$CC" # Let the user override the test.
2419 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2421 for ac_dir
in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir
=.
2424 $as_executable_p "$ac_dir/$ac_word" ||
continue
2425 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2426 ac_prog_rejected
=yes
2430 echo "$as_me:2430: found $ac_dir/$ac_word" >&5
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy
$ac_cv_prog_CC
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2443 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2451 if test -n "$CC"; then
2452 echo "$as_me:2452: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC
="$CC" # Let the user override the test.
2474 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2476 for ac_dir
in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir
=.
2479 $as_executable_p "$ac_dir/$ac_word" ||
continue
2480 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2488 if test -n "$CC"; then
2489 echo "$as_me:2489: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6
2492 echo "$as_me:2492: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$CC" && break
2499 if test -z "$CC"; then
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy
$ac_prog; ac_word
=$2
2505 echo "$as_me:2505: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2513 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2515 for ac_dir
in $ac_dummy; do
2517 test -z "$ac_dir" && ac_dir
=.
2518 $as_executable_p "$ac_dir/$ac_word" ||
continue
2519 ac_cv_prog_ac_ct_CC
="$ac_prog"
2520 echo "$as_me:2520: found $ac_dir/$ac_word" >&5
2526 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2527 if test -n "$ac_ct_CC"; then
2528 echo "$as_me:2528: result: $ac_ct_CC" >&5
2529 echo "${ECHO_T}$ac_ct_CC" >&6
2531 echo "$as_me:2531: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2535 test -n "$ac_ct_CC" && break
2543 test -z "$CC" && { { echo "$as_me:2543: error: no acceptable cc found in \$PATH" >&5
2544 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2545 { (exit 1); exit 1; }; }
2547 # Provide some information about the compiler.
2548 echo "$as_me:2548:" \
2549 "checking for C compiler version" >&5
2550 ac_compiler
=`set X $ac_compile; echo $2`
2551 { (eval echo "$as_me:2551: \"$ac_compiler --version </dev/null >&5\"") >&5
2552 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (eval echo "$as_me:2556: \"$ac_compiler -v </dev/null >&5\"") >&5
2557 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2559 echo "$as_me:2559: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2561 { (eval echo "$as_me:2561: \"$ac_compiler -V </dev/null >&5\"") >&5
2562 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2564 echo "$as_me:2564: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2567 cat >conftest.
$ac_ext <<_ACEOF
2568 #line 2568 "configure"
2569 #include "confdefs.h"
2579 ac_clean_files_save
=$ac_clean_files
2580 ac_clean_files
="$ac_clean_files a.out a.exe"
2581 # Try to create an executable without -o first, disregard a.out.
2582 # It will help us diagnose broken compilers, and finding out an intuition
2584 echo "$as_me:2584: checking for C compiler default output" >&5
2585 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2586 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587 if { (eval echo "$as_me:2587: \"$ac_link_default\"") >&5
2588 (eval $ac_link_default) 2>&5
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # Find the output, starting from the most likely. This scheme is
2593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2595 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2596 ls a.out conftest 2>/dev/null;
2597 ls a.* conftest.* 2>/dev/null`; do
2599 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2600 a.out
) # We found the default executable, but exeext='' is most
2603 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2611 echo "$as_me: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2613 { { echo "$as_me:2613: error: C compiler cannot create executables" >&5
2614 echo "$as_me: error: C compiler cannot create executables" >&2;}
2615 { (exit 77); exit 77; }; }
2618 ac_exeext
=$ac_cv_exeext
2619 echo "$as_me:2619: result: $ac_file" >&5
2620 echo "${ECHO_T}$ac_file" >&6
2622 # Check the compiler produces executables we can run. If not, either
2623 # the compiler is broken, or we cross compile.
2624 echo "$as_me:2624: checking whether the C compiler works" >&5
2625 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2626 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2627 # If not cross compiling, check that we can run a simple program.
2628 if test "$cross_compiling" != yes; then
2629 if { ac_try
='./$ac_file'
2630 { (eval echo "$as_me:2630: \"$ac_try\"") >&5
2633 echo "$as_me:2633: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 if test "$cross_compiling" = maybe
; then
2640 { { echo "$as_me:2640: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'." >&5
2642 echo "$as_me: error: cannot run C compiled programs.
2643 If you meant to cross compile, use \`--host'." >&2;}
2644 { (exit 1); exit 1; }; }
2648 echo "$as_me:2648: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2651 rm -f a.out a.exe conftest
$ac_cv_exeext
2652 ac_clean_files
=$ac_clean_files_save
2653 # Check the compiler produces executables we can run. If not, either
2654 # the compiler is broken, or we cross compile.
2655 echo "$as_me:2655: checking whether we are cross compiling" >&5
2656 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2657 echo "$as_me:2657: result: $cross_compiling" >&5
2658 echo "${ECHO_T}$cross_compiling" >&6
2660 echo "$as_me:2660: checking for executable suffix" >&5
2661 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2662 if { (eval echo "$as_me:2662: \"$ac_link\"") >&5
2663 (eval $ac_link) 2>&5
2665 echo "$as_me:2665: \$? = $ac_status" >&5
2666 (exit $ac_status); }; then
2667 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2668 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2669 # work properly (i.e., refer to `conftest.exe'), while it won't with
2671 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2673 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2674 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681 { { echo "$as_me:2681: error: cannot compute EXEEXT: cannot compile and link" >&5
2682 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2683 { (exit 1); exit 1; }; }
2686 rm -f conftest
$ac_cv_exeext
2687 echo "$as_me:2687: result: $ac_cv_exeext" >&5
2688 echo "${ECHO_T}$ac_cv_exeext" >&6
2690 rm -f conftest.
$ac_ext
2691 EXEEXT
=$ac_cv_exeext
2693 echo "$as_me:2693: checking for object suffix" >&5
2694 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2695 if test "${ac_cv_objext+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 cat >conftest.
$ac_ext <<_ACEOF
2699 #line 2699 "configure"
2700 #include "confdefs.h"
2710 rm -f conftest.o conftest.obj
2711 if { (eval echo "$as_me:2711: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>&5
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2718 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2719 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2724 echo "$as_me: failed program was:" >&5
2725 cat conftest.
$ac_ext >&5
2726 { { echo "$as_me:2726: error: cannot compute OBJEXT: cannot compile" >&5
2727 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2728 { (exit 1); exit 1; }; }
2731 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2733 echo "$as_me:2733: result: $ac_cv_objext" >&5
2734 echo "${ECHO_T}$ac_cv_objext" >&6
2735 OBJEXT
=$ac_cv_objext
2737 echo "$as_me:2737: checking whether we are using the GNU C compiler" >&5
2738 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2739 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 cat >conftest.
$ac_ext <<_ACEOF
2743 #line 2743 "configure"
2744 #include "confdefs.h"
2757 rm -f conftest.
$ac_objext
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try
='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2775 rm -f conftest.
$ac_objext conftest.
$ac_ext
2776 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2779 echo "$as_me:2779: result: $ac_cv_c_compiler_gnu" >&5
2780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2781 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2782 ac_test_CFLAGS
=${CFLAGS+set}
2783 ac_save_CFLAGS
=$CFLAGS
2785 echo "$as_me:2785: checking whether $CC accepts -g" >&5
2786 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2787 if test "${ac_cv_prog_cc_g+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 cat >conftest.
$ac_ext <<_ACEOF
2791 #line 2791 "configure"
2792 #include "confdefs.h"
2802 rm -f conftest.
$ac_objext
2803 if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>&5
2806 echo "$as_me:2806: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try
='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:2809: \"$ac_try\"") >&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 echo "$as_me: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2820 rm -f conftest.
$ac_objext conftest.
$ac_ext
2822 echo "$as_me:2822: result: $ac_cv_prog_cc_g" >&5
2823 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2824 if test "$ac_test_CFLAGS" = set; then
2825 CFLAGS
=$ac_save_CFLAGS
2826 elif test $ac_cv_prog_cc_g = yes; then
2827 if test "$GCC" = yes; then
2833 if test "$GCC" = yes; then
2839 # Some people use a C++ compiler to compile C. Since we use `exit',
2840 # in C++ we need to declare it. In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.
$ac_ext <<_ACEOF
2848 rm -f conftest.
$ac_objext
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try
='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 for ac_declaration
in \
2862 '#include <stdlib.h>' \
2863 'extern "C" void std::exit (int) throw (); using std::exit;' \
2864 'extern "C" void std::exit (int); using std::exit;' \
2865 'extern "C" void exit (int) throw ();' \
2866 'extern "C" void exit (int);' \
2869 cat >conftest.
$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2882 rm -f conftest.
$ac_objext
2883 if { (eval echo "$as_me:2883: \"$ac_compile\"") >&5
2884 (eval $ac_compile) 2>&5
2886 echo "$as_me:2886: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try
='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:2889: \"$ac_try\"") >&5
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 echo "$as_me: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2900 rm -f conftest.
$ac_objext conftest.
$ac_ext
2901 cat >conftest.
$ac_ext <<_ACEOF
2902 #line 2902 "configure"
2903 #include "confdefs.h"
2913 rm -f conftest.
$ac_objext
2914 if { (eval echo "$as_me:2914: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try
='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:2920: \"$ac_try\"") >&5
2923 echo "$as_me:2923: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 rm -f conftest.
$ac_objext conftest.
$ac_ext
2933 if test -n "$ac_declaration"; then
2934 echo '#ifdef __cplusplus' >>confdefs.h
2935 echo $ac_declaration >>confdefs.h
2936 echo '#endif' >>confdefs.h
2940 echo "$as_me: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 rm -f conftest.
$ac_objext conftest.
$ac_ext
2945 ac_cpp
='$CPP $CPPFLAGS'
2946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2955 #### Some systems specify a CPP to use unless we are using GCC.
2956 #### Now that we know whether we are using GCC, we can decide whether
2957 #### to use that one.
2958 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2963 #### Some systems specify a CC to use unless we are using GCC.
2964 #### Now that we know whether we are using GCC, we can decide whether
2965 #### to use that one.
2966 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2967 test x
$cc_specified != xyes
2972 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2974 CC
="$CC $GCC_TEST_OPTIONS"
2977 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2979 CC
="$CC $NON_GCC_TEST_OPTIONS"
2982 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2984 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2987 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2989 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2992 #### Some other nice autoconf tests. If you add a test here which
2993 #### should make an entry in src/config.h, don't forget to add an
2994 #### #undef clause to src/config.h.in for autoconf to modify.
2996 echo "$as_me:2996: checking whether ln -s works" >&5
2997 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2999 if test "$LN_S" = "ln -s"; then
3000 echo "$as_me:3000: result: yes" >&5
3001 echo "${ECHO_T}yes" >&6
3003 echo "$as_me:3003: result: no, using $LN_S" >&5
3004 echo "${ECHO_T}no, using $LN_S" >&6
3008 ac_cpp
='$CPP $CPPFLAGS'
3009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3012 echo "$as_me:3012: checking how to run the C preprocessor" >&5
3013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3018 if test -z "$CPP"; then
3019 if test "${ac_cv_prog_CPP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 # Double quotes because CPP needs to be expanded
3023 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 for ac_c_preproc_warn_flag
in '' yes
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.
$ac_ext <<_ACEOF
3033 #line 3033 "configure"
3034 #include "confdefs.h"
3038 if { (eval echo "$as_me:3038: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3041 egrep -v '^ *\+' conftest.er1
>conftest.err
3043 cat conftest.err
>&5
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev
/null
; then
3046 if test -s conftest.err
; then
3047 ac_cpp_err
=$ac_c_preproc_warn_flag
3054 if test -z "$ac_cpp_err"; then
3057 echo "$as_me: failed program was:" >&5
3058 cat conftest.
$ac_ext >&5
3059 # Broken: fails on valid input.
3062 rm -f conftest.err conftest.
$ac_ext
3064 # OK, works on sane cases. Now check whether non-existent headers
3065 # can be detected and how.
3066 cat >conftest.
$ac_ext <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3069 #include <ac_nonexistent.h>
3071 if { (eval echo "$as_me:3071: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3074 egrep -v '^ *\+' conftest.er1
>conftest.err
3076 cat conftest.err
>&5
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev
/null
; then
3079 if test -s conftest.err
; then
3080 ac_cpp_err
=$ac_c_preproc_warn_flag
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.
$ac_ext >&5
3093 # Passes both tests.
3097 rm -f conftest.err conftest.
$ac_ext
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.
$ac_ext
3102 if $ac_preproc_ok; then
3114 echo "$as_me:3114: result: $CPP" >&5
3115 echo "${ECHO_T}$CPP" >&6
3117 for ac_c_preproc_warn_flag
in '' yes
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line 3124 "configure"
3125 #include "confdefs.h"
3129 if { (eval echo "$as_me:3129: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3132 egrep -v '^ *\+' conftest.er1
>conftest.err
3134 cat conftest.err
>&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev
/null
; then
3137 if test -s conftest.err
; then
3138 ac_cpp_err
=$ac_c_preproc_warn_flag
3145 if test -z "$ac_cpp_err"; then
3148 echo "$as_me: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3150 # Broken: fails on valid input.
3153 rm -f conftest.err conftest.
$ac_ext
3155 # OK, works on sane cases. Now check whether non-existent headers
3156 # can be detected and how.
3157 cat >conftest.
$ac_ext <<_ACEOF
3158 #line 3158 "configure"
3159 #include "confdefs.h"
3160 #include <ac_nonexistent.h>
3162 if { (eval echo "$as_me:3162: \"$ac_cpp conftest.$ac_ext\"") >&5
3163 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3165 egrep -v '^ *\+' conftest.er1
>conftest.err
3167 cat conftest.err
>&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); } >/dev
/null
; then
3170 if test -s conftest.err
; then
3171 ac_cpp_err
=$ac_c_preproc_warn_flag
3178 if test -z "$ac_cpp_err"; then
3179 # Broken: success on invalid input.
3182 echo "$as_me: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3184 # Passes both tests.
3188 rm -f conftest.err conftest.
$ac_ext
3191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3192 rm -f conftest.err conftest.
$ac_ext
3193 if $ac_preproc_ok; then
3196 { { echo "$as_me:3196: error: C preprocessor \"$CPP\" fails sanity check" >&5
3197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3198 { (exit 1); exit 1; }; }
3202 ac_cpp
='$CPP $CPPFLAGS'
3203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3207 # Find a good install program. We prefer a C program (faster),
3208 # so one script is as good as another. But avoid the broken or
3209 # incompatible versions:
3210 # SysV /etc/install, /usr/sbin/install
3211 # SunOS /usr/etc/install
3212 # IRIX /sbin/install
3214 # AmigaOS /C/install, which installs bootblocks on floppy discs
3215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3218 # ./install, which can be erroneously created by make from ./install.sh.
3219 echo "$as_me:3219: checking for a BSD compatible install" >&5
3220 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3221 if test -z "$INSTALL"; then
3222 if test "${ac_cv_path_install+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3226 for ac_dir
in $PATH; do
3228 # Account for people who put trailing slashes in PATH elements.
3230 / | .
/ | .
// |
/cC
/* \
3231 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3234 # OSF1 and SCO ODT 3.0 have their own names for install.
3235 # Don't use installbsd from OSF since it installs stuff as root
3237 for ac_prog
in ginstall scoinst
install; do
3238 if $as_executable_p "$ac_dir/$ac_prog"; then
3239 if test $ac_prog = install &&
3240 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3241 # AIX install. It has an incompatible calling convention.
3243 elif test $ac_prog = install &&
3244 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3245 # program-specific install script used by HP pwplus--don't use.
3248 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3258 if test "${ac_cv_path_install+set}" = set; then
3259 INSTALL
=$ac_cv_path_install
3261 # As a last resort, use the slow shell script. We don't cache a
3262 # path for INSTALL within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the path is relative.
3265 INSTALL
=$ac_install_sh
3268 echo "$as_me:3268: result: $INSTALL" >&5
3269 echo "${ECHO_T}$INSTALL" >&6
3271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3272 # It thinks the first close brace ends the variable substitution.
3273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3277 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3279 for ac_prog
in 'bison -y' byacc
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy
$ac_prog; ac_word
=$2
3283 echo "$as_me:3283: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_YACC+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$YACC"; then
3289 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3291 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3293 for ac_dir
in $ac_dummy; do
3295 test -z "$ac_dir" && ac_dir
=.
3296 $as_executable_p "$ac_dir/$ac_word" ||
continue
3297 ac_cv_prog_YACC
="$ac_prog"
3298 echo "$as_me:3298: found $ac_dir/$ac_word" >&5
3304 YACC
=$ac_cv_prog_YACC
3305 if test -n "$YACC"; then
3306 echo "$as_me:3306: result: $YACC" >&5
3307 echo "${ECHO_T}$YACC" >&6
3309 echo "$as_me:3309: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3313 test -n "$YACC" && break
3315 test -n "$YACC" || YACC
="yacc"
3317 if test "x$RANLIB" = x
; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3320 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3321 echo "$as_me:3321: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_RANLIB+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$RANLIB"; then
3327 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3329 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3331 for ac_dir
in $ac_dummy; do
3333 test -z "$ac_dir" && ac_dir
=.
3334 $as_executable_p "$ac_dir/$ac_word" ||
continue
3335 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3336 echo "$as_me:3336: found $ac_dir/$ac_word" >&5
3342 RANLIB
=$ac_cv_prog_RANLIB
3343 if test -n "$RANLIB"; then
3344 echo "$as_me:3344: result: $RANLIB" >&5
3345 echo "${ECHO_T}$RANLIB" >&6
3347 echo "$as_me:3347: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3352 if test -z "$ac_cv_prog_RANLIB"; then
3353 ac_ct_RANLIB
=$RANLIB
3354 # Extract the first word of "ranlib", so it can be a program name with args.
3355 set dummy ranlib
; ac_word
=$2
3356 echo "$as_me:3356: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -n "$ac_ct_RANLIB"; then
3362 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3364 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3366 for ac_dir
in $ac_dummy; do
3368 test -z "$ac_dir" && ac_dir
=.
3369 $as_executable_p "$ac_dir/$ac_word" ||
continue
3370 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3371 echo "$as_me:3371: found $ac_dir/$ac_word" >&5
3375 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3378 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3379 if test -n "$ac_ct_RANLIB"; then
3380 echo "$as_me:3380: result: $ac_ct_RANLIB" >&5
3381 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3387 RANLIB
=$ac_ct_RANLIB
3389 RANLIB
="$ac_cv_prog_RANLIB"
3394 echo "$as_me:3394: checking for AIX" >&5
3395 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3396 cat >conftest.
$ac_ext <<_ACEOF
3397 #line 3397 "configure"
3398 #include "confdefs.h"
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "yes" >/dev
/null
2>&1; then
3406 echo "$as_me:3406: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6
3408 cat >>confdefs.h
<<\EOF
3409 #define _ALL_SOURCE 1
3413 echo "$as_me:3413: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3418 #### Extract some information from the operating system and machine files.
3420 { echo "$as_me:3420: checking the machine- and system-dependent files to find out
3421 - which libraries the lib-src programs will want, and
3422 - whether the GNU malloc routines are usable..." >&5
3423 echo "$as_me: checking the machine- and system-dependent files to find out
3424 - which libraries the lib-src programs will want, and
3425 - whether the GNU malloc routines are usable..." >&6;}
3427 ### First figure out CFLAGS (which we use for running the compiler here)
3428 ### and REAL_CFLAGS (which we use for real compilation).
3429 ### The two are the same except on a few systems, where they are made
3430 ### different to work around various lossages. For example,
3431 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3432 ### as implying static linking.
3434 ### If the CFLAGS env var is specified, we use that value
3435 ### instead of the default.
3437 ### It's not important that this name contain the PID; you can't run
3438 ### two configures in the same directory and have anything work
3440 tempcname
="conftest.c"
3443 #include "'${srcdir}'/src/'${opsysfile}'"
3444 #include "'${srcdir}'/src/'${machfile}'"
3445 #ifndef LIBS_MACHINE
3446 #define LIBS_MACHINE
3451 #ifndef C_SWITCH_SYSTEM
3452 #define C_SWITCH_SYSTEM
3454 #ifndef C_SWITCH_MACHINE
3455 #define C_SWITCH_MACHINE
3457 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3458 configure___ c_switch_system=C_SWITCH_SYSTEM
3459 configure___ c_switch_machine=C_SWITCH_MACHINE
3462 #define LIB_X11_LIB -lX11
3465 #ifndef LIBX11_MACHINE
3466 #define LIBX11_MACHINE
3469 #ifndef LIBX11_SYSTEM
3470 #define LIBX11_SYSTEM
3472 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3475 configure___ unexec=UNEXEC
3477 configure___ unexec=unexec.o
3480 #ifdef SYSTEM_MALLOC
3481 configure___ system_malloc=yes
3483 configure___ system_malloc=no
3486 #ifdef USE_MMAP_FOR_BUFFERS
3487 configure___ use_mmap_for_buffers=yes
3489 configure___ use_mmap_for_buffers=no
3492 #ifndef C_DEBUG_SWITCH
3493 #define C_DEBUG_SWITCH -g
3496 #ifndef C_OPTIMIZE_SWITCH
3498 #define C_OPTIMIZE_SWITCH -O2
3500 #define C_OPTIMIZE_SWITCH -O
3504 #ifndef LD_SWITCH_MACHINE
3505 #define LD_SWITCH_MACHINE
3508 #ifndef LD_SWITCH_SYSTEM
3509 #define LD_SWITCH_SYSTEM
3512 #ifndef LD_SWITCH_X_SITE_AUX
3513 #define LD_SWITCH_X_SITE_AUX
3516 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3517 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3519 #ifdef THIS_IS_CONFIGURE
3521 /* Get the CFLAGS for tests in configure. */
3523 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3525 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3528 #else /* not THIS_IS_CONFIGURE */
3530 /* Get the CFLAGS for real compilation. */
3532 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3534 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3537 #endif /* not THIS_IS_CONFIGURE */
3540 # The value of CPP is a quoted variable reference, so we need to do this
3541 # to get its actual value...
3542 CPP
=`eval "echo $CPP"`
3543 eval `${CPP} -Isrc ${tempcname} \
3544 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3545 if test "x$SPECIFIED_CFLAGS" = x
; then
3546 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3547 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3549 REAL_CFLAGS
="$CFLAGS"
3553 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3555 ### Make sure subsequent tests use flags consistent with the build flags.
3557 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3558 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3560 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3563 # Check whether --enable-largefile or --disable-largefile was given.
3564 if test "${enable_largefile+set}" = set; then
3565 enableval
="$enable_largefile"
3568 if test "$enable_largefile" != no
; then
3570 echo "$as_me:3570: checking for special C compiler options needed for large files" >&5
3571 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 ac_cv_sys_largefile_CC
=no
3576 if test "$GCC" != yes; then
3579 # IRIX 6.2 and later do not support large files by default,
3580 # so use the C compiler's -n32 option if that helps.
3581 cat >conftest.
$ac_ext <<_ACEOF
3582 #line 3582 "configure"
3583 #include "confdefs.h"
3584 #include <sys/types.h>
3585 /* Check that off_t can represent 2**63 - 1 correctly.
3586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3587 since some C++ compilers masquerading as C compilers
3588 incorrectly reject 9223372036854775807. */
3589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3591 && LARGE_OFF_T % 2147483647 == 1)
3601 rm -f conftest.
$ac_objext
3602 if { (eval echo "$as_me:3602: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3605 echo "$as_me:3605: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try
='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:3608: \"$ac_try\"") >&5
3611 echo "$as_me:3611: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3618 rm -f conftest.
$ac_objext
3620 rm -f conftest.
$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try
='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_sys_largefile_CC
=' -n32'; break
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 rm -f conftest.
$ac_objext
3641 rm -f conftest.
$ac_ext
3644 echo "$as_me:3644: result: $ac_cv_sys_largefile_CC" >&5
3645 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3646 if test "$ac_cv_sys_largefile_CC" != no
; then
3647 CC
=$CC$ac_cv_sys_largefile_CC
3650 echo "$as_me:3650: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3651 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3652 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 ac_cv_sys_file_offset_bits
=no
3657 cat >conftest.
$ac_ext <<_ACEOF
3658 #line 3658 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3661 /* Check that off_t can represent 2**63 - 1 correctly.
3662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3663 since some C++ compilers masquerading as C compilers
3664 incorrectly reject 9223372036854775807. */
3665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3667 && LARGE_OFF_T % 2147483647 == 1)
3677 rm -f conftest.
$ac_objext
3678 if { (eval echo "$as_me:3678: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try
='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:3684: \"$ac_try\"") >&5
3687 echo "$as_me:3687: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3691 echo "$as_me: failed program was:" >&5
3692 cat conftest.
$ac_ext >&5
3694 rm -f conftest.
$ac_objext conftest.
$ac_ext
3695 cat >conftest.
$ac_ext <<_ACEOF
3696 #line 3696 "configure"
3697 #include "confdefs.h"
3698 #define _FILE_OFFSET_BITS 64
3699 #include <sys/types.h>
3700 /* Check that off_t can represent 2**63 - 1 correctly.
3701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3702 since some C++ compilers masquerading as C compilers
3703 incorrectly reject 9223372036854775807. */
3704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3706 && LARGE_OFF_T % 2147483647 == 1)
3716 rm -f conftest.
$ac_objext
3717 if { (eval echo "$as_me:3717: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try
='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_sys_file_offset_bits
=64; break
3730 echo "$as_me: failed program was:" >&5
3731 cat conftest.
$ac_ext >&5
3733 rm -f conftest.
$ac_objext conftest.
$ac_ext
3737 echo "$as_me:3737: result: $ac_cv_sys_file_offset_bits" >&5
3738 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3739 if test "$ac_cv_sys_file_offset_bits" != no
; then
3741 cat >>confdefs.h
<<EOF
3742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3747 echo "$as_me:3747: checking for _LARGE_FILES value needed for large files" >&5
3748 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3749 if test "${ac_cv_sys_large_files+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_sys_large_files
=no
3754 cat >conftest.
$ac_ext <<_ACEOF
3755 #line 3755 "configure"
3756 #include "confdefs.h"
3757 #include <sys/types.h>
3758 /* Check that off_t can represent 2**63 - 1 correctly.
3759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3760 since some C++ compilers masquerading as C compilers
3761 incorrectly reject 9223372036854775807. */
3762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3764 && LARGE_OFF_T % 2147483647 == 1)
3774 rm -f conftest.
$ac_objext
3775 if { (eval echo "$as_me:3775: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>&5
3778 echo "$as_me:3778: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try
='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:3781: \"$ac_try\"") >&5
3784 echo "$as_me:3784: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 rm -f conftest.
$ac_objext conftest.
$ac_ext
3792 cat >conftest.
$ac_ext <<_ACEOF
3793 #line 3793 "configure"
3794 #include "confdefs.h"
3795 #define _LARGE_FILES 1
3796 #include <sys/types.h>
3797 /* Check that off_t can represent 2**63 - 1 correctly.
3798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3799 since some C++ compilers masquerading as C compilers
3800 incorrectly reject 9223372036854775807. */
3801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3803 && LARGE_OFF_T % 2147483647 == 1)
3813 rm -f conftest.
$ac_objext
3814 if { (eval echo "$as_me:3814: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>&5
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try
='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:3820: \"$ac_try\"") >&5
3823 echo "$as_me:3823: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_sys_large_files
=1; break
3827 echo "$as_me: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3830 rm -f conftest.
$ac_objext conftest.
$ac_ext
3834 echo "$as_me:3834: result: $ac_cv_sys_large_files" >&5
3835 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3836 if test "$ac_cv_sys_large_files" != no
; then
3838 cat >>confdefs.h
<<EOF
3839 #define _LARGE_FILES $ac_cv_sys_large_files
3846 # Sound support for GNU/Linux and the free BSDs.
3848 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3850 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 echo "$as_me:3851: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.
$ac_ext <<_ACEOF
3857 #line 3857 "configure"
3858 #include "confdefs.h"
3859 #include <$ac_header>
3861 if { (eval echo "$as_me:3861: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3864 egrep -v '^ *\+' conftest.er1
>conftest.err
3866 cat conftest.err
>&5
3867 echo "$as_me:3867: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev
/null
; then
3869 if test -s conftest.err
; then
3870 ac_cpp_err
=$ac_c_preproc_warn_flag
3877 if test -z "$ac_cpp_err"; then
3878 eval "$as_ac_Header=yes"
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3882 eval "$as_ac_Header=no"
3884 rm -f conftest.err conftest.
$ac_ext
3886 echo "$as_me:3886: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889 cat >>confdefs.h
<<EOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3896 # Emulation library used on NetBSD.
3897 echo "$as_me:3897: checking for _oss_ioctl in -lossaudio" >&5
3898 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3899 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 ac_check_lib_save_LIBS
=$LIBS
3903 LIBS
="-lossaudio $LIBS"
3904 cat >conftest.
$ac_ext <<_ACEOF
3905 #line 3905 "configure"
3906 #include "confdefs.h"
3908 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3923 rm -f conftest.
$ac_objext conftest
$ac_exeext
3924 if { (eval echo "$as_me:3924: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>&5
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try
='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_lib_ossaudio__oss_ioctl
=yes
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.
$ac_ext >&5
3939 ac_cv_lib_ossaudio__oss_ioctl
=no
3941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3942 LIBS
=$ac_check_lib_save_LIBS
3944 echo "$as_me:3944: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3945 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3946 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3952 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3953 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3954 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
3956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957 echo "$as_me:3957: checking for $ac_header" >&5
3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 cat >conftest.
$ac_ext <<_ACEOF
3963 #line 3963 "configure"
3964 #include "confdefs.h"
3965 #include <$ac_header>
3967 if { (eval echo "$as_me:3967: \"$ac_cpp conftest.$ac_ext\"") >&5
3968 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3970 egrep -v '^ *\+' conftest.er1
>conftest.err
3972 cat conftest.err
>&5
3973 echo "$as_me:3973: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev
/null
; then
3975 if test -s conftest.err
; then
3976 ac_cpp_err
=$ac_c_preproc_warn_flag
3983 if test -z "$ac_cpp_err"; then
3984 eval "$as_ac_Header=yes"
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.
$ac_ext >&5
3988 eval "$as_ac_Header=no"
3990 rm -f conftest.err conftest.
$ac_ext
3992 echo "$as_me:3992: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3995 cat >>confdefs.h
<<EOF
3996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4002 echo "$as_me:4002: checking for ANSI C header files" >&5
4003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4004 if test "${ac_cv_header_stdc+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.
$ac_ext <<_ACEOF
4008 #line 4008 "configure"
4009 #include "confdefs.h"
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4019 egrep -v '^ *\+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev
/null
; then
4024 if test -s conftest.err
; then
4025 ac_cpp_err
=$ac_c_preproc_warn_flag
4032 if test -z "$ac_cpp_err"; then
4033 ac_cv_header_stdc
=yes
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.
$ac_ext >&5
4037 ac_cv_header_stdc
=no
4039 rm -f conftest.err conftest.
$ac_ext
4041 if test $ac_cv_header_stdc = yes; then
4042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4043 cat >conftest.
$ac_ext <<_ACEOF
4044 #line 4044 "configure"
4045 #include "confdefs.h"
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 egrep "memchr" >/dev
/null
2>&1; then
4053 ac_cv_header_stdc
=no
4059 if test $ac_cv_header_stdc = yes; then
4060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061 cat >conftest.
$ac_ext <<_ACEOF
4062 #line 4062 "configure"
4063 #include "confdefs.h"
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 egrep "free" >/dev
/null
2>&1; then
4071 ac_cv_header_stdc
=no
4077 if test $ac_cv_header_stdc = yes; then
4078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079 if test "$cross_compiling" = yes; then
4082 cat >conftest.
$ac_ext <<_ACEOF
4083 #line 4083 "configure"
4084 #include "confdefs.h"
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4090 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4091 || ('j' <= (c) && (c) <= 'r') \
4092 || ('s' <= (c) && (c) <= 'z'))
4093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 for (i = 0; i < 256; i++)
4102 if (XOR (islower (i), ISLOWER (i))
4103 || toupper (i) != TOUPPER (i))
4108 rm -f conftest
$ac_exeext
4109 if { (eval echo "$as_me:4109: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>&5
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4114 { (eval echo "$as_me:4114: \"$ac_try\"") >&5
4117 echo "$as_me:4117: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4121 echo "$as_me: program exited with status $ac_status" >&5
4122 echo "$as_me: failed program was:" >&5
4123 cat conftest.
$ac_ext >&5
4124 ac_cv_header_stdc
=no
4126 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4130 echo "$as_me:4130: result: $ac_cv_header_stdc" >&5
4131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4132 if test $ac_cv_header_stdc = yes; then
4134 cat >>confdefs.h
<<\EOF
4135 #define STDC_HEADERS 1
4140 echo "$as_me:4140: checking whether time.h and sys/time.h may both be included" >&5
4141 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4142 if test "${ac_cv_header_time+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 cat >conftest.
$ac_ext <<_ACEOF
4146 #line 4146 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 #include <sys/time.h>
4155 if ((struct tm *) 0)
4161 rm -f conftest.
$ac_objext
4162 if { (eval echo "$as_me:4162: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4165 echo "$as_me:4165: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try
='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:4168: \"$ac_try\"") >&5
4171 echo "$as_me:4171: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_header_time
=yes
4175 echo "$as_me: failed program was:" >&5
4176 cat conftest.
$ac_ext >&5
4177 ac_cv_header_time
=no
4179 rm -f conftest.
$ac_objext conftest.
$ac_ext
4181 echo "$as_me:4181: result: $ac_cv_header_time" >&5
4182 echo "${ECHO_T}$ac_cv_header_time" >&6
4183 if test $ac_cv_header_time = yes; then
4185 cat >>confdefs.h
<<\EOF
4186 #define TIME_WITH_SYS_TIME 1
4191 echo "$as_me:4191: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4192 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4193 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 cat >conftest.
$ac_ext <<_ACEOF
4197 #line 4197 "configure"
4198 #include "confdefs.h"
4199 #include <sys/types.h>
4201 /* NetBSD declares sys_siglist in unistd.h. */
4203 # include <unistd.h>
4209 char *msg = *(sys_siglist + 1);
4214 rm -f conftest.
$ac_objext
4215 if { (eval echo "$as_me:4215: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try
='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:4221: \"$ac_try\"") >&5
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_decl_sys_siglist
=yes
4228 echo "$as_me: failed program was:" >&5
4229 cat conftest.
$ac_ext >&5
4230 ac_cv_decl_sys_siglist
=no
4232 rm -f conftest.
$ac_objext conftest.
$ac_ext
4234 echo "$as_me:4234: result: $ac_cv_decl_sys_siglist" >&5
4235 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4236 if test $ac_cv_decl_sys_siglist = yes; then
4238 cat >>confdefs.h
<<\EOF
4239 #define SYS_SIGLIST_DECLARED 1
4244 echo "$as_me:4244: checking for sys/wait.h that is POSIX.1 compatible" >&5
4245 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4246 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.
$ac_ext <<_ACEOF
4250 #line 4250 "configure"
4251 #include "confdefs.h"
4252 #include <sys/types.h>
4253 #include <sys/wait.h>
4255 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4271 rm -f conftest.
$ac_objext
4272 if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_header_sys_wait_h
=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4287 ac_cv_header_sys_wait_h
=no
4289 rm -f conftest.
$ac_objext conftest.
$ac_ext
4291 echo "$as_me:4291: result: $ac_cv_header_sys_wait_h" >&5
4292 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4293 if test $ac_cv_header_sys_wait_h = yes; then
4295 cat >>confdefs.h
<<\EOF
4296 #define HAVE_SYS_WAIT_H 1
4301 echo "$as_me:4301: checking for struct utimbuf" >&5
4302 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4303 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 cat >conftest.
$ac_ext <<_ACEOF
4307 #line 4307 "configure"
4308 #include "confdefs.h"
4309 #ifdef TIME_WITH_SYS_TIME
4310 #include <sys/time.h>
4313 #ifdef HAVE_SYS_TIME_H
4314 #include <sys/time.h>
4325 static struct utimbuf x; x.actime = x.modtime;
4330 rm -f conftest.
$ac_objext
4331 if { (eval echo "$as_me:4331: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4340 echo "$as_me:4340: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 emacs_cv_struct_utimbuf
=yes
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4346 emacs_cv_struct_utimbuf
=no
4348 rm -f conftest.
$ac_objext conftest.
$ac_ext
4350 echo "$as_me:4350: result: $emacs_cv_struct_utimbuf" >&5
4351 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4352 if test $emacs_cv_struct_utimbuf = yes; then
4353 cat >>confdefs.h
<<\EOF
4354 #define HAVE_STRUCT_UTIMBUF 1
4359 echo "$as_me:4359: checking return type of signal handlers" >&5
4360 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4361 if test "${ac_cv_type_signal+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 cat >conftest.
$ac_ext <<_ACEOF
4365 #line 4365 "configure"
4366 #include "confdefs.h"
4367 #include <sys/types.h>
4373 extern "C" void (*signal (int, void (*)(int)))(int);
4375 void (*signal ()) ();
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:4390: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try
='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:4393: \"$ac_try\"") >&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_type_signal
=void
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4402 ac_cv_type_signal
=int
4404 rm -f conftest.
$ac_objext conftest.
$ac_ext
4406 echo "$as_me:4406: result: $ac_cv_type_signal" >&5
4407 echo "${ECHO_T}$ac_cv_type_signal" >&6
4409 cat >>confdefs.h
<<EOF
4410 #define RETSIGTYPE $ac_cv_type_signal
4413 echo "$as_me:4413: checking for speed_t" >&5
4414 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4415 if test "${emacs_cv_speed_t+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 cat >conftest.
$ac_ext <<_ACEOF
4419 #line 4419 "configure"
4420 #include "confdefs.h"
4421 #include <termios.h>
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:4431: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:4437: \"$ac_try\"") >&5
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 emacs_cv_speed_t
=yes
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4448 rm -f conftest.
$ac_objext conftest.
$ac_ext
4450 echo "$as_me:4450: result: $emacs_cv_speed_t" >&5
4451 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4452 if test $emacs_cv_speed_t = yes; then
4453 cat >>confdefs.h
<<\EOF
4454 #define HAVE_SPEED_T 1
4459 echo "$as_me:4459: checking for struct timeval" >&5
4460 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4461 if test "${emacs_cv_struct_timeval+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 cat >conftest.
$ac_ext <<_ACEOF
4465 #line 4465 "configure"
4466 #include "confdefs.h"
4467 #ifdef TIME_WITH_SYS_TIME
4468 #include <sys/time.h>
4471 #ifdef HAVE_SYS_TIME_H
4472 #include <sys/time.h>
4480 static struct timeval x; x.tv_sec = x.tv_usec;
4485 rm -f conftest.
$ac_objext
4486 if { (eval echo "$as_me:4486: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4489 echo "$as_me:4489: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try
='test -s conftest.$ac_objext'
4492 { (eval echo "$as_me:4492: \"$ac_try\"") >&5
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 emacs_cv_struct_timeval
=yes
4499 echo "$as_me: failed program was:" >&5
4500 cat conftest.
$ac_ext >&5
4501 emacs_cv_struct_timeval
=no
4503 rm -f conftest.
$ac_objext conftest.
$ac_ext
4505 echo "$as_me:4505: result: $emacs_cv_struct_timeval" >&5
4506 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4507 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4508 if test $emacs_cv_struct_timeval = yes; then
4509 cat >>confdefs.h
<<\EOF
4510 #define HAVE_TIMEVAL 1
4515 echo "$as_me:4515: checking for struct exception" >&5
4516 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4517 if test "${emacs_cv_struct_exception+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 cat >conftest.
$ac_ext <<_ACEOF
4521 #line 4521 "configure"
4522 #include "confdefs.h"
4527 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4532 rm -f conftest.
$ac_objext
4533 if { (eval echo "$as_me:4533: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>&5
4536 echo "$as_me:4536: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 emacs_cv_struct_exception
=yes
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4548 emacs_cv_struct_exception
=no
4550 rm -f conftest.
$ac_objext conftest.
$ac_ext
4552 echo "$as_me:4552: result: $emacs_cv_struct_exception" >&5
4553 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4554 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4555 if test $emacs_cv_struct_exception != yes; then
4556 cat >>confdefs.h
<<\EOF
4557 #define NO_MATHERR 1
4562 echo "$as_me:4562: checking whether struct tm is in sys/time.h or time.h" >&5
4563 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4564 if test "${ac_cv_struct_tm+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 cat >conftest.
$ac_ext <<_ACEOF
4568 #line 4568 "configure"
4569 #include "confdefs.h"
4570 #include <sys/types.h>
4576 struct tm *tp; tp->tm_sec;
4581 rm -f conftest.
$ac_objext
4582 if { (eval echo "$as_me:4582: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try
='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:4588: \"$ac_try\"") >&5
4591 echo "$as_me:4591: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_cv_struct_tm
=time.h
4595 echo "$as_me: failed program was:" >&5
4596 cat conftest.
$ac_ext >&5
4597 ac_cv_struct_tm
=sys
/time.h
4599 rm -f conftest.
$ac_objext conftest.
$ac_ext
4601 echo "$as_me:4601: result: $ac_cv_struct_tm" >&5
4602 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4603 if test $ac_cv_struct_tm = sys
/time.h
; then
4605 cat >>confdefs.h
<<\EOF
4606 #define TM_IN_SYS_TIME 1
4611 echo "$as_me:4611: checking for struct tm.tm_zone" >&5
4612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.
$ac_ext <<_ACEOF
4617 #line 4617 "configure"
4618 #include "confdefs.h"
4619 #include <sys/types.h>
4620 #include <$ac_cv_struct_tm>
4625 static struct tm ac_aggr;
4626 if (ac_aggr.tm_zone)
4632 rm -f conftest.
$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try
='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_member_struct_tm_tm_zone
=yes
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4648 ac_cv_member_struct_tm_tm_zone
=no
4650 rm -f conftest.
$ac_objext conftest.
$ac_ext
4652 echo "$as_me:4652: result: $ac_cv_member_struct_tm_tm_zone" >&5
4653 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4654 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4656 cat >>confdefs.h
<<EOF
4657 #define HAVE_STRUCT_TM_TM_ZONE 1
4662 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4664 cat >>confdefs.h
<<\EOF
4665 #define HAVE_TM_ZONE 1
4669 echo "$as_me:4669: checking for tzname" >&5
4670 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4671 if test "${ac_cv_var_tzname+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.
$ac_ext <<_ACEOF
4675 #line 4675 "configure"
4676 #include "confdefs.h"
4678 #ifndef tzname /* For SGI. */
4679 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4690 rm -f conftest.
$ac_objext conftest
$ac_exeext
4691 if { (eval echo "$as_me:4691: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>&5
4694 echo "$as_me:4694: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try
='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:4697: \"$ac_try\"") >&5
4700 echo "$as_me:4700: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_var_tzname
=yes
4704 echo "$as_me: failed program was:" >&5
4705 cat conftest.
$ac_ext >&5
4708 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4710 echo "$as_me:4710: result: $ac_cv_var_tzname" >&5
4711 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4712 if test $ac_cv_var_tzname = yes; then
4714 cat >>confdefs.h
<<\EOF
4715 #define HAVE_TZNAME 1
4721 echo "$as_me:4721: checking for tm_gmtoff in struct tm" >&5
4722 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4723 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 cat >conftest.
$ac_ext <<_ACEOF
4727 #line 4727 "configure"
4728 #include "confdefs.h"
4733 struct tm t; t.tm_gmtoff = 0
4738 rm -f conftest.
$ac_objext conftest
$ac_exeext
4739 if { (eval echo "$as_me:4739: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try
='test -s conftest$ac_exeext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 emacs_cv_tm_gmtoff
=yes
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4754 emacs_cv_tm_gmtoff
=no
4756 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4758 echo "$as_me:4758: result: $emacs_cv_tm_gmtoff" >&5
4759 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4760 if test $emacs_cv_tm_gmtoff = yes; then
4761 cat >>confdefs.h
<<\EOF
4762 #define HAVE_TM_GMTOFF 1
4767 echo "$as_me:4767: checking for $CC option to accept ANSI C" >&5
4768 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4769 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 ac_cv_prog_cc_stdc
=no
4774 cat >conftest.
$ac_ext <<_ACEOF
4775 #line 4775 "configure"
4776 #include "confdefs.h"
4779 #include <sys/types.h>
4780 #include <sys/stat.h>
4781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4782 struct buf { int x; };
4783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4784 static char *e (p, i)
4790 static char *f (char * (*g) (char **, int), char **p, ...)
4795 s = g (p, va_arg (v,int));
4799 int test (int i, double x);
4800 struct s1 {int (*f) (int a);};
4801 struct s2 {int (*f) (double a);};
4802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4813 # Don't try gcc -ansi; that turns off useful extensions and
4814 # breaks some systems' header files.
4815 # AIX -qlanglvl=ansi
4816 # Ultrix and OSF/1 -std1
4817 # HP-UX 10.20 and later -Ae
4818 # HP-UX older versions -Aa -D_HPUX_SOURCE
4819 # SVR4 -Xc -D__EXTENSIONS__
4820 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4822 CC
="$ac_save_CC $ac_arg"
4823 rm -f conftest.
$ac_objext
4824 if { (eval echo "$as_me:4824: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try
='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:4830: \"$ac_try\"") >&5
4833 echo "$as_me:4833: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_cv_prog_cc_stdc
=$ac_arg
4838 echo "$as_me: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4841 rm -f conftest.
$ac_objext
4843 rm -f conftest.
$ac_ext conftest.
$ac_objext
4848 case "x$ac_cv_prog_cc_stdc" in
4850 echo "$as_me:4850: result: none needed" >&5
4851 echo "${ECHO_T}none needed" >&6 ;;
4853 echo "$as_me:4853: result: $ac_cv_prog_cc_stdc" >&5
4854 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4855 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4858 echo "$as_me:4858: checking for function prototypes" >&5
4859 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4860 if test "$ac_cv_prog_cc_stdc" != no
; then
4861 echo "$as_me:4861: result: yes" >&5
4862 echo "${ECHO_T}yes" >&6
4864 cat >>confdefs.h
<<\EOF
4865 #define PROTOTYPES 1
4869 echo "$as_me:4869: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4873 echo "$as_me:4873: checking for working volatile" >&5
4874 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4875 if test "${ac_cv_c_volatile+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.
$ac_ext <<_ACEOF
4879 #line 4879 "configure"
4880 #include "confdefs.h"
4892 rm -f conftest.
$ac_objext
4893 if { (eval echo "$as_me:4893: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_c_volatile
=yes
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4910 rm -f conftest.
$ac_objext conftest.
$ac_ext
4912 echo "$as_me:4912: result: $ac_cv_c_volatile" >&5
4913 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4914 if test $ac_cv_c_volatile = no
; then
4916 cat >>confdefs.h
<<\EOF
4922 echo "$as_me:4922: checking for an ANSI C-conforming const" >&5
4923 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4924 if test "${ac_cv_c_const+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 cat >conftest.
$ac_ext <<_ACEOF
4928 #line 4928 "configure"
4929 #include "confdefs.h"
4934 /* FIXME: Include the comments suggested by Paul. */
4936 /* Ultrix mips cc rejects this. */
4937 typedef int charset[2];
4939 /* SunOS 4.1.1 cc rejects this. */
4940 char const *const *ccp;
4942 /* NEC SVR4.0.2 mips cc rejects this. */
4943 struct point {int x, y;};
4944 static struct point const zero = {0,0};
4945 /* AIX XL C 1.02.0.0 rejects this.
4946 It does not let you subtract one const X* pointer from another in
4947 an arm of an if-expression whose if-part is not a constant
4949 const char *g = "string";
4950 ccp = &g + (g ? g-g : 0);
4951 /* HPUX 7.0 cc rejects these. */
4954 ccp = (char const *const *) p;
4955 { /* SCO 3.2v4 cc rejects this. */
4957 char const *s = 0 ? (char *) 0 : (char const *) 0;
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4963 const int *foo = &x[0];
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4985 rm -f conftest.
$ac_objext
4986 if { (eval echo "$as_me:4986: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>&5
4989 echo "$as_me:4989: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try
='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:4992: \"$ac_try\"") >&5
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.
$ac_ext >&5
5003 rm -f conftest.
$ac_objext conftest.
$ac_ext
5005 echo "$as_me:5005: result: $ac_cv_c_const" >&5
5006 echo "${ECHO_T}$ac_cv_c_const" >&6
5007 if test $ac_cv_c_const = no
; then
5009 cat >>confdefs.h
<<\EOF
5015 echo "$as_me:5015: checking for void * support" >&5
5016 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5017 if test "${emacs_cv_void_star+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 cat >conftest.
$ac_ext <<_ACEOF
5021 #line 5021 "configure"
5022 #include "confdefs.h"
5032 rm -f conftest.
$ac_objext
5033 if { (eval echo "$as_me:5033: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5036 echo "$as_me:5036: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:5039: \"$ac_try\"") >&5
5042 echo "$as_me:5042: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 emacs_cv_void_star
=yes
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.
$ac_ext >&5
5048 emacs_cv_void_star
=no
5050 rm -f conftest.
$ac_objext conftest.
$ac_ext
5052 echo "$as_me:5052: result: $emacs_cv_void_star" >&5
5053 echo "${ECHO_T}$emacs_cv_void_star" >&6
5054 if test $emacs_cv_void_star = yes; then
5055 cat >>confdefs.h
<<\EOF
5056 #define POINTER_TYPE void
5060 cat >>confdefs.h
<<\EOF
5061 #define POINTER_TYPE char
5066 echo "$as_me:5066: checking whether ${MAKE-make} sets \${MAKE}" >&5
5067 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5068 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5069 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 cat >conftest.
make <<\EOF
5074 @
echo 'ac_maketemp="${MAKE}"'
5076 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5077 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5078 if test -n "$ac_maketemp"; then
5079 eval ac_cv_prog_make_
${ac_make}_set
=yes
5081 eval ac_cv_prog_make_
${ac_make}_set
=no
5085 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5086 echo "$as_me:5086: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6
5090 echo "$as_me:5090: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5092 SET_MAKE
="MAKE=${MAKE-make}"
5095 echo "$as_me:5095: checking for long file names" >&5
5096 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5097 if test "${ac_cv_sys_long_file_names+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_cv_sys_long_file_names
=yes
5101 # Test for long file names in all the places we know might matter:
5102 # . the current directory, where building will happen
5103 # $prefix/lib where we will be installing things
5104 # $exec_prefix/lib likewise
5105 # eval it to expand exec_prefix.
5106 # $TMPDIR if set, where it might want to write temporary files
5107 # if $TMPDIR is not set:
5108 # /tmp where it might want to write temporary files
5111 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5114 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5116 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5117 test -d $ac_dir ||
continue
5118 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5119 ac_xdir
=$ac_dir/cf$$
5120 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5121 ac_tf1
=$ac_xdir/conftest9012345
5122 ac_tf2
=$ac_xdir/conftest9012346
5123 (echo 1 >$ac_tf1) 2>/dev
/null
5124 (echo 2 >$ac_tf2) 2>/dev
/null
5125 ac_val
=`cat $ac_tf1 2>/dev/null`
5126 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5127 ac_cv_sys_long_file_names
=no
5128 rm -rf $ac_xdir 2>/dev
/null
5131 rm -rf $ac_xdir 2>/dev
/null
5134 echo "$as_me:5134: result: $ac_cv_sys_long_file_names" >&5
5135 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5136 if test $ac_cv_sys_long_file_names = yes; then
5138 cat >>confdefs.h
<<\EOF
5139 #define HAVE_LONG_FILE_NAMES 1
5144 #### Choose a window system.
5146 echo "$as_me:5146: checking for X" >&5
5147 echo $ECHO_N "checking for X... $ECHO_C" >&6
5149 # Check whether --with-x or --without-x was given.
5150 if test "${with_x+set}" = set; then
5154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5155 if test "x$with_x" = xno
; then
5156 # The user explicitly disabled X.
5159 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5160 # Both variables are already set.
5163 if test "${ac_cv_have_x+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 # One or both of the vars are not set, and there is no cached value.
5167 ac_x_includes
=no ac_x_libraries
=no
5169 if mkdir conftest.dir
; then
5171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5172 cat >Imakefile
<<'EOF'
5174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5176 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5180 for ac_extension
in a so sl
; do
5181 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5182 test -f $ac_im_libdir/libX11.
$ac_extension; then
5183 ac_im_usrlibdir
=$ac_im_libdir; break
5186 # Screen out bogus values from the imake configuration. They are
5187 # bogus both because they are the default anyway, and because
5188 # using them would break gcc on systems where it needs fixed includes.
5189 case $ac_im_incroot in
5191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5193 case $ac_im_usrlibdir in
5195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5202 # Standard set of common directories for X headers.
5203 # Check X11 before X11Rn because it is often a symlink to the current release.
5215 /usr/local/X11/include
5216 /usr/local/X11R6/include
5217 /usr/local/X11R5/include
5218 /usr/local/X11R4/include
5220 /usr/local/include/X11
5221 /usr/local/include/X11R6
5222 /usr/local/include/X11R5
5223 /usr/local/include/X11R4
5227 /usr/XFree86/include/X11
5231 /usr/unsupported/include
5233 /usr/local/x11r5/include
5234 /usr/lpp/Xamples/include
5236 /usr/openwin/include
5237 /usr/openwin/share/include'
5239 if test "$ac_x_includes" = no
; then
5240 # Guess where to find include files, by looking for Intrinsic.h.
5241 # First, try using that file with no special directory specified.
5242 cat >conftest.
$ac_ext <<_ACEOF
5243 #line 5243 "configure"
5244 #include "confdefs.h"
5245 #include <X11/Intrinsic.h>
5247 if { (eval echo "$as_me:5247: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5250 egrep -v '^ *\+' conftest.er1
>conftest.err
5252 cat conftest.err
>&5
5253 echo "$as_me:5253: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev
/null
; then
5255 if test -s conftest.err
; then
5256 ac_cpp_err
=$ac_c_preproc_warn_flag
5263 if test -z "$ac_cpp_err"; then
5264 # We can compile using X headers with no special include directory.
5267 echo "$as_me: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5269 for ac_dir
in $ac_x_header_dirs; do
5270 if test -r "$ac_dir/X11/Intrinsic.h"; then
5271 ac_x_includes
=$ac_dir
5276 rm -f conftest.err conftest.
$ac_ext
5277 fi # $ac_x_includes = no
5279 if test "$ac_x_libraries" = no
; then
5280 # Check for the libraries.
5281 # See if we find them without any special options.
5282 # Don't add to $LIBS permanently.
5285 cat >conftest.
$ac_ext <<_ACEOF
5286 #line 5286 "configure"
5287 #include "confdefs.h"
5288 #include <X11/Intrinsic.h>
5297 rm -f conftest.
$ac_objext conftest
$ac_exeext
5298 if { (eval echo "$as_me:5298: \"$ac_link\"") >&5
5299 (eval $ac_link) 2>&5
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try
='test -s conftest$ac_exeext'
5304 { (eval echo "$as_me:5304: \"$ac_try\"") >&5
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5310 # We can link X programs with no special library path.
5313 echo "$as_me: failed program was:" >&5
5314 cat conftest.
$ac_ext >&5
5316 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5318 # Don't even attempt the hair of trying to link an X program!
5319 for ac_extension
in a so sl
; do
5320 if test -r $ac_dir/libXt.
$ac_extension; then
5321 ac_x_libraries
=$ac_dir
5327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5328 fi # $ac_x_libraries = no
5330 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5331 # Didn't find X anywhere. Cache the known absence of X.
5332 ac_cv_have_x
="have_x=no"
5334 # Record where we found X for the cache.
5335 ac_cv_have_x
="have_x=yes \
5336 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5341 eval "$ac_cv_have_x"
5344 if test "$have_x" != yes; then
5345 echo "$as_me:5345: result: $have_x" >&5
5346 echo "${ECHO_T}$have_x" >&6
5349 # If each of the values was on the command line, it overrides each guess.
5350 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5351 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5352 # Update the cache value to reflect the command line values.
5353 ac_cv_have_x
="have_x=yes \
5354 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5355 echo "$as_me:5355: result: libraries $x_libraries, headers $x_includes" >&5
5356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5359 if test "$no_x" = yes; then
5365 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5366 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5367 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5368 x_default_search_path
=""
5369 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5371 ${x_library}/X11/%L/%T/%N%C%S:\
5372 ${x_library}/X11/%l/%T/%N%C%S:\
5373 ${x_library}/X11/%T/%N%C%S:\
5374 ${x_library}/X11/%L/%T/%N%S:\
5375 ${x_library}/X11/%l/%T/%N%S:\
5376 ${x_library}/X11/%T/%N%S"
5377 if test x
"${x_default_search_path}" = x
; then
5378 x_default_search_path
=${x_search_path}
5380 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5384 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5385 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5388 if test x
"${x_includes}" = x
; then
5389 bitmapdir
=/usr
/include
/X11
/bitmaps
5391 # accumulate include directories that have X11 bitmap subdirectories
5393 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5394 if test -d "${bmd}/X11/bitmaps"; then
5395 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5397 if test -d "${bmd}/bitmaps"; then
5398 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5401 if test ${bmd_acc} != "dummyval"; then
5402 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5406 case "${window_system}" in
5410 case "${with_x_toolkit}" in
5411 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5412 motif
) USE_X_TOOLKIT
=MOTIF
;;
5413 no
) USE_X_TOOLKIT
=none
;;
5414 * ) USE_X_TOOLKIT
=maybe
;;
5424 ### If we're using X11, we should use the X menu package.
5427 yes ) HAVE_MENUS
=yes ;;
5430 if test "${opsys}" = "hpux9"; then
5431 case "${x_libraries}" in
5433 opsysfile
="s/hpux9-x11r4.h"
5438 if test "${opsys}" = "hpux9shr"; then
5439 case "${x_libraries}" in
5441 opsysfile
="s/hpux9shxr4.h"
5446 ### Compute the unexec source name from the object name.
5447 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5449 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5450 # Assume not, until told otherwise.
5453 echo "$as_me:5453: checking for malloc_get_state" >&5
5454 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5455 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 cat >conftest.
$ac_ext <<_ACEOF
5459 #line 5459 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char malloc_get_state (); below. */
5464 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5470 char malloc_get_state ();
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5482 f = malloc_get_state;
5489 rm -f conftest.
$ac_objext conftest
$ac_exeext
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try
='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:5496: \"$ac_try\"") >&5
5499 echo "$as_me:5499: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_func_malloc_get_state
=yes
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.
$ac_ext >&5
5505 ac_cv_func_malloc_get_state
=no
5507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5509 echo "$as_me:5509: result: $ac_cv_func_malloc_get_state" >&5
5510 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5511 if test $ac_cv_func_malloc_get_state = yes; then
5517 echo "$as_me:5517: checking for malloc_set_state" >&5
5518 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5519 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5523 #line 5523 "configure"
5524 #include "confdefs.h"
5525 /* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char malloc_set_state (); below. */
5528 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5534 char malloc_set_state ();
5540 /* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5546 f = malloc_set_state;
5553 rm -f conftest.
$ac_objext conftest
$ac_exeext
5554 if { (eval echo "$as_me:5554: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>&5
5557 echo "$as_me:5557: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try
='test -s conftest$ac_exeext'
5560 { (eval echo "$as_me:5560: \"$ac_try\"") >&5
5563 echo "$as_me:5563: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_func_malloc_set_state
=yes
5567 echo "$as_me: failed program was:" >&5
5568 cat conftest.
$ac_ext >&5
5569 ac_cv_func_malloc_set_state
=no
5571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5573 echo "$as_me:5573: result: $ac_cv_func_malloc_set_state" >&5
5574 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5575 if test $ac_cv_func_malloc_set_state = yes; then
5581 echo "$as_me:5581: checking whether __after_morecore_hook exists" >&5
5582 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5583 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.
$ac_ext <<_ACEOF
5587 #line 5587 "configure"
5588 #include "confdefs.h"
5589 extern void (* __after_morecore_hook)();
5593 __after_morecore_hook = 0
5598 rm -f conftest.
$ac_objext conftest
$ac_exeext
5599 if { (eval echo "$as_me:5599: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:5602: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try
='test -s conftest$ac_exeext'
5605 { (eval echo "$as_me:5605: \"$ac_try\"") >&5
5608 echo "$as_me:5608: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 emacs_cv_var___after_morecore_hook
=yes
5612 echo "$as_me: failed program was:" >&5
5613 cat conftest.
$ac_ext >&5
5614 emacs_cv_var___after_morecore_hook
=no
5616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5618 echo "$as_me:5618: result: $emacs_cv_var___after_morecore_hook" >&5
5619 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5620 if test $emacs_cv_var___after_morecore_hook = no
; then
5623 if test "${system_malloc}" = "yes"; then
5626 (The GNU allocators don't work with this system configuration.)"
5628 if test "$doug_lea_malloc" = "yes" ; then
5629 if test "$GNU_MALLOC" = yes ; then
5631 (Using Doug Lea's new malloc from the GNU C Library.)"
5633 cat >>confdefs.h
<<\EOF
5634 #define DOUG_LEA_MALLOC 1
5639 if test x
"${REL_ALLOC}" = x
; then
5640 REL_ALLOC
=${GNU_MALLOC}
5643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5645 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5646 inttypes.h stdint.h unistd.h
5648 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5649 echo "$as_me:5649: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.
$ac_ext <<_ACEOF
5655 #line 5655 "configure"
5656 #include "confdefs.h"
5657 $ac_includes_default
5658 #include <$ac_header>
5660 rm -f conftest.
$ac_objext
5661 if { (eval echo "$as_me:5661: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try
='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:5667: \"$ac_try\"") >&5
5670 echo "$as_me:5670: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 eval "$as_ac_Header=yes"
5674 echo "$as_me: failed program was:" >&5
5675 cat conftest.
$ac_ext >&5
5676 eval "$as_ac_Header=no"
5678 rm -f conftest.
$ac_objext conftest.
$ac_ext
5680 echo "$as_me:5680: result: `eval echo '${'$as_ac_Header'}'`" >&5
5681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5683 cat >>confdefs.h
<<EOF
5684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5690 for ac_header
in stdlib.h unistd.h
5692 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 echo "$as_me:5693: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.
$ac_ext <<_ACEOF
5699 #line 5699 "configure"
5700 #include "confdefs.h"
5701 #include <$ac_header>
5703 if { (eval echo "$as_me:5703: \"$ac_cpp conftest.$ac_ext\"") >&5
5704 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5706 egrep -v '^ *\+' conftest.er1
>conftest.err
5708 cat conftest.err
>&5
5709 echo "$as_me:5709: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev
/null
; then
5711 if test -s conftest.err
; then
5712 ac_cpp_err
=$ac_c_preproc_warn_flag
5719 if test -z "$ac_cpp_err"; then
5720 eval "$as_ac_Header=yes"
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5724 eval "$as_ac_Header=no"
5726 rm -f conftest.err conftest.
$ac_ext
5728 echo "$as_me:5728: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5731 cat >>confdefs.h
<<EOF
5732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738 for ac_func
in getpagesize
5740 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741 echo "$as_me:5741: checking for $ac_func" >&5
5742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5743 if eval "test \"\${$as_ac_var+set}\" = set"; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.
$ac_ext <<_ACEOF
5747 #line 5747 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func (); below. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5764 /* The GNU C library defines this for functions which it implements
5765 to always fail with ENOSYS. Some functions are actually named
5766 something starting with __ and the normal name is an alias. */
5767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 rm -f conftest.
$ac_objext conftest
$ac_exeext
5778 if { (eval echo "$as_me:5778: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>&5
5781 echo "$as_me:5781: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try
='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:5784: \"$ac_try\"") >&5
5787 echo "$as_me:5787: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 eval "$as_ac_var=yes"
5791 echo "$as_me: failed program was:" >&5
5792 cat conftest.
$ac_ext >&5
5793 eval "$as_ac_var=no"
5795 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5797 echo "$as_me:5797: result: `eval echo '${'$as_ac_var'}'`" >&5
5798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5799 if test `eval echo '${'$as_ac_var'}'` = yes; then
5800 cat >>confdefs.h
<<EOF
5801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5807 echo "$as_me:5807: checking for working mmap" >&5
5808 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5809 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test "$cross_compiling" = yes; then
5813 ac_cv_func_mmap_fixed_mapped
=no
5815 cat >conftest.
$ac_ext <<_ACEOF
5816 #line 5816 "configure"
5817 #include "confdefs.h"
5818 $ac_includes_default
5819 /* Thanks to Mike Haertel and Jim Avera for this test.
5820 Here is a matrix of mmap possibilities:
5821 mmap private not fixed
5822 mmap private fixed at somewhere currently unmapped
5823 mmap private fixed at somewhere already mapped
5824 mmap shared not fixed
5825 mmap shared fixed at somewhere currently unmapped
5826 mmap shared fixed at somewhere already mapped
5827 For private mappings, we should verify that changes cannot be read()
5828 back from the file, nor mmap's back from the file at a different
5829 address. (There have been systems where private was not correctly
5830 implemented like the infamous i386 svr4.0, and systems where the
5831 VM page cache was not coherent with the file system buffer cache
5832 like early versions of FreeBSD and possibly contemporary NetBSD.)
5833 For shared mappings, we should conversely verify that changes get
5834 propogated back to all the places they're supposed to be.
5836 Grep wants private fixed already mapped.
5837 The main things grep needs to know about mmap are:
5838 * does it exist and is it safe to write into the mmap'd area
5839 * how to use it (BSD variants) */
5842 #include <sys/mman.h>
5844 #if !STDC_HEADERS && !HAVE_STDLIB_H
5848 /* This mess was copied from the GNU getpagesize.h. */
5849 #if !HAVE_GETPAGESIZE
5850 /* Assume that all systems that can run configure have sys/param.h. */
5851 # if !HAVE_SYS_PARAM_H
5852 # define HAVE_SYS_PARAM_H 1
5855 # ifdef _SC_PAGESIZE
5856 # define getpagesize() sysconf(_SC_PAGESIZE)
5857 # else /* no _SC_PAGESIZE */
5858 # if HAVE_SYS_PARAM_H
5859 # include <sys/param.h>
5860 # ifdef EXEC_PAGESIZE
5861 # define getpagesize() EXEC_PAGESIZE
5862 # else /* no EXEC_PAGESIZE */
5864 # define getpagesize() NBPG * CLSIZE
5867 # endif /* no CLSIZE */
5868 # else /* no NBPG */
5870 # define getpagesize() NBPC
5871 # else /* no NBPC */
5873 # define getpagesize() PAGESIZE
5874 # endif /* PAGESIZE */
5875 # endif /* no NBPC */
5876 # endif /* no NBPG */
5877 # endif /* no EXEC_PAGESIZE */
5878 # else /* no HAVE_SYS_PARAM_H */
5879 # define getpagesize() 8192 /* punt totally */
5880 # endif /* no HAVE_SYS_PARAM_H */
5881 # endif /* no _SC_PAGESIZE */
5883 #endif /* no HAVE_GETPAGESIZE */
5888 char *data, *data2, *data3;
5892 pagesize = getpagesize ();
5894 /* First, make a file with some known garbage in it. */
5895 data = (char *) malloc (pagesize);
5898 for (i = 0; i < pagesize; ++i)
5899 *(data + i) = rand ();
5901 fd = creat ("conftest.mmap", 0600);
5904 if (write (fd, data, pagesize) != pagesize)
5908 /* Next, try to mmap the file at a fixed address which already has
5909 something else allocated at it. If we can, also make sure that
5910 we see the same garbage. */
5911 fd = open ("conftest.mmap", O_RDWR);
5914 data2 = (char *) malloc (2 * pagesize);
5917 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5918 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5919 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5921 for (i = 0; i < pagesize; ++i)
5922 if (*(data + i) != *(data2 + i))
5925 /* Finally, make sure that changes to the mapped area do not
5926 percolate back to the file as seen by read(). (This is a bug on
5927 some variants of i386 svr4.0.) */
5928 for (i = 0; i < pagesize; ++i)
5929 *(data2 + i) = *(data2 + i) + 1;
5930 data3 = (char *) malloc (pagesize);
5933 if (read (fd, data3, pagesize) != pagesize)
5935 for (i = 0; i < pagesize; ++i)
5936 if (*(data + i) != *(data3 + i))
5942 rm -f conftest
$ac_exeext
5943 if { (eval echo "$as_me:5943: \"$ac_link\"") >&5
5944 (eval $ac_link) 2>&5
5946 echo "$as_me:5946: \$? = $ac_status" >&5
5947 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5948 { (eval echo "$as_me:5948: \"$ac_try\"") >&5
5951 echo "$as_me:5951: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_func_mmap_fixed_mapped
=yes
5955 echo "$as_me: program exited with status $ac_status" >&5
5956 echo "$as_me: failed program was:" >&5
5957 cat conftest.
$ac_ext >&5
5958 ac_cv_func_mmap_fixed_mapped
=no
5960 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5963 echo "$as_me:5963: result: $ac_cv_func_mmap_fixed_mapped" >&5
5964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5967 cat >>confdefs.h
<<\EOF
5974 if test $use_mmap_for_buffers = yes; then
5978 LIBS
="$libsrc_libs $LIBS"
5980 echo "$as_me:5980: checking for dnet_ntoa in -ldnet" >&5
5981 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5982 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_check_lib_save_LIBS
=$LIBS
5987 cat >conftest.
$ac_ext <<_ACEOF
5988 #line 5988 "configure"
5989 #include "confdefs.h"
5991 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6006 rm -f conftest.
$ac_objext conftest
$ac_exeext
6007 if { (eval echo "$as_me:6007: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>&5
6010 echo "$as_me:6010: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try
='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:6013: \"$ac_try\"") >&5
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 ac_cv_lib_dnet_dnet_ntoa
=yes
6020 echo "$as_me: failed program was:" >&5
6021 cat conftest.
$ac_ext >&5
6022 ac_cv_lib_dnet_dnet_ntoa
=no
6024 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6025 LIBS
=$ac_check_lib_save_LIBS
6027 echo "$as_me:6027: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6028 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6029 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6030 cat >>confdefs.h
<<EOF
6031 #define HAVE_LIBDNET 1
6038 echo "$as_me:6038: checking for main in -lXbsd" >&5
6039 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6040 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_check_lib_save_LIBS
=$LIBS
6045 cat >conftest.
$ac_ext <<_ACEOF
6046 #line 6046 "configure"
6047 #include "confdefs.h"
6057 rm -f conftest.
$ac_objext conftest
$ac_exeext
6058 if { (eval echo "$as_me:6058: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try
='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:6064: \"$ac_try\"") >&5
6067 echo "$as_me:6067: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_lib_Xbsd_main
=yes
6071 echo "$as_me: failed program was:" >&5
6072 cat conftest.
$ac_ext >&5
6073 ac_cv_lib_Xbsd_main
=no
6075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6076 LIBS
=$ac_check_lib_save_LIBS
6078 echo "$as_me:6078: result: $ac_cv_lib_Xbsd_main" >&5
6079 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6080 if test $ac_cv_lib_Xbsd_main = yes; then
6081 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6084 echo "$as_me:6084: checking for cma_open in -lpthreads" >&5
6085 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6086 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_check_lib_save_LIBS
=$LIBS
6090 LIBS
="-lpthreads $LIBS"
6091 cat >conftest.
$ac_ext <<_ACEOF
6092 #line 6092 "configure"
6093 #include "confdefs.h"
6095 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6110 rm -f conftest.
$ac_objext conftest
$ac_exeext
6111 if { (eval echo "$as_me:6111: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>&5
6114 echo "$as_me:6114: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try
='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:6117: \"$ac_try\"") >&5
6120 echo "$as_me:6120: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_lib_pthreads_cma_open
=yes
6124 echo "$as_me: failed program was:" >&5
6125 cat conftest.
$ac_ext >&5
6126 ac_cv_lib_pthreads_cma_open
=no
6128 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6129 LIBS
=$ac_check_lib_save_LIBS
6131 echo "$as_me:6131: result: $ac_cv_lib_pthreads_cma_open" >&5
6132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6133 if test $ac_cv_lib_pthreads_cma_open = yes; then
6134 cat >>confdefs.h
<<EOF
6135 #define HAVE_LIBPTHREADS 1
6138 LIBS
="-lpthreads $LIBS"
6142 echo "$as_me:6142: checking for XFree86 in /usr/X386" >&5
6143 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6144 if test -d /usr
/X386
/include
; then
6146 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6150 echo "$as_me:6150: result: $HAVE_XFREE386" >&5
6151 echo "${ECHO_T}$HAVE_XFREE386" >&6
6153 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6154 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6156 REAL_CPPFLAGS
="$CPPFLAGS"
6158 if test "${HAVE_X11}" = "yes"; then
6159 DEFS
="$C_SWITCH_X_SITE $DEFS"
6160 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6162 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6163 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6165 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6166 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6167 # but it's more convenient here to set LD_RUN_PATH
6168 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6169 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6170 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6174 if test "${opsys}" = "gnu-linux"; then
6175 echo "$as_me:6175: checking whether X on GNU/Linux needs -b to link" >&5
6176 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6177 cat >conftest.
$ac_ext <<_ACEOF
6178 #line 6178 "configure"
6179 #include "confdefs.h"
6184 XOpenDisplay ("foo");
6189 rm -f conftest.
$ac_objext conftest
$ac_exeext
6190 if { (eval echo "$as_me:6190: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>&5
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try
='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:6196: \"$ac_try\"") >&5
6199 echo "$as_me:6199: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 xlinux_first_failure
=no
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.
$ac_ext >&5
6205 xlinux_first_failure
=yes
6207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6208 if test "${xlinux_first_failure}" = "yes"; then
6209 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6210 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6211 OLD_CPPFLAGS
="$CPPFLAGS"
6213 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6214 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6215 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6216 LIBS
="$LIBS -b i486-linuxaout"
6217 cat >conftest.
$ac_ext <<_ACEOF
6218 #line 6218 "configure"
6219 #include "confdefs.h"
6224 XOpenDisplay ("foo");
6229 rm -f conftest.
$ac_objext conftest
$ac_exeext
6230 if { (eval echo "$as_me:6230: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>&5
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try
='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:6236: \"$ac_try\"") >&5
6239 echo "$as_me:6239: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 xlinux_second_failure
=no
6243 echo "$as_me: failed program was:" >&5
6244 cat conftest.
$ac_ext >&5
6245 xlinux_second_failure
=yes
6247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6248 if test "${xlinux_second_failure}" = "yes"; then
6249 # If we get the same failure with -b, there is no use adding -b.
6250 # So take it out. This plays safe.
6251 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6252 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6253 CPPFLAGS
="$OLD_CPPFLAGS"
6255 echo "$as_me:6255: result: no" >&5
6256 echo "${ECHO_T}no" >&6
6258 echo "$as_me:6258: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6
6262 echo "$as_me:6262: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6267 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6268 # header files included from there.
6269 echo "$as_me:6269: checking for Xkb" >&5
6270 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6271 cat >conftest.
$ac_ext <<_ACEOF
6272 #line 6272 "configure"
6273 #include "confdefs.h"
6274 #include <X11/Xlib.h>
6275 #include <X11/XKBlib.h>
6279 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6284 rm -f conftest.
$ac_objext conftest
$ac_exeext
6285 if { (eval echo "$as_me:6285: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>&5
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try
='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:6291: \"$ac_try\"") >&5
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6302 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6303 echo "$as_me:6303: result: $emacs_xkb" >&5
6304 echo "${ECHO_T}$emacs_xkb" >&6
6305 if test $emacs_xkb = yes; then
6306 cat >>confdefs.h
<<\EOF
6307 #define HAVE_XKBGETKEYBOARD 1
6312 for ac_func
in XrmSetDatabase XScreenResourceString \
6313 XScreenNumberOfScreen XSetWMProtocols
6315 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6316 echo "$as_me:6316: checking for $ac_func" >&5
6317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6318 if eval "test \"\${$as_ac_var+set}\" = set"; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 cat >conftest.
$ac_ext <<_ACEOF
6322 #line 6322 "configure"
6323 #include "confdefs.h"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char $ac_func (); below. */
6327 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 rm -f conftest.
$ac_objext conftest
$ac_exeext
6353 if { (eval echo "$as_me:6353: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try
='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:6359: \"$ac_try\"") >&5
6362 echo "$as_me:6362: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 eval "$as_ac_var=yes"
6366 echo "$as_me: failed program was:" >&5
6367 cat conftest.
$ac_ext >&5
6368 eval "$as_ac_var=no"
6370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6372 echo "$as_me:6372: result: `eval echo '${'$as_ac_var'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6374 if test `eval echo '${'$as_ac_var'}'` = yes; then
6375 cat >>confdefs.h
<<EOF
6376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6384 if test "${window_system}" = "x11"; then
6385 echo "$as_me:6385: checking X11 version 6" >&5
6386 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6387 if test "${emacs_cv_x11_version_6+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 #include <X11/Xlib.h>
6397 #if XlibSpecificationRelease < 6
6405 rm -f conftest.
$ac_objext conftest
$ac_exeext
6406 if { (eval echo "$as_me:6406: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6409 echo "$as_me:6409: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try
='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:6412: \"$ac_try\"") >&5
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 emacs_cv_x11_version_6
=yes
6419 echo "$as_me: failed program was:" >&5
6420 cat conftest.
$ac_ext >&5
6421 emacs_cv_x11_version_6
=no
6423 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6426 if test $emacs_cv_x11_version_6 = yes; then
6427 echo "$as_me:6427: result: 6 or newer" >&5
6428 echo "${ECHO_T}6 or newer" >&6
6429 cat >>confdefs.h
<<\EOF
6430 #define HAVE_X11R6 1
6434 echo "$as_me:6434: result: before 6" >&5
6435 echo "${ECHO_T}before 6" >&6
6439 if test "${window_system}" = "x11"; then
6440 echo "$as_me:6440: checking X11 version 5" >&5
6441 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6442 if test "${emacs_cv_x11_version_5+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.
$ac_ext <<_ACEOF
6446 #line 6446 "configure"
6447 #include "confdefs.h"
6448 #include <X11/Xlib.h>
6452 #if XlibSpecificationRelease < 5
6460 rm -f conftest.
$ac_objext conftest
$ac_exeext
6461 if { (eval echo "$as_me:6461: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:6464: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 emacs_cv_x11_version_5
=yes
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.
$ac_ext >&5
6476 emacs_cv_x11_version_5
=no
6478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6481 if test $emacs_cv_x11_version_5 = yes; then
6482 echo "$as_me:6482: result: 5 or newer" >&5
6483 echo "${ECHO_T}5 or newer" >&6
6485 cat >>confdefs.h
<<\EOF
6486 #define HAVE_X11R5 1
6491 echo "$as_me:6491: result: before 5" >&5
6492 echo "${ECHO_T}before 5" >&6
6496 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6497 if test x
"${HAVE_X11R5}" = xyes
; then
6498 echo "$as_me:6498: checking X11 version 5 with Xaw" >&5
6499 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6500 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6504 #line 6504 "configure"
6505 #include "confdefs.h"
6507 #include <X11/Intrinsic.h>
6508 #include <X11/Xaw/Simple.h>
6517 rm -f conftest.
$ac_objext conftest
$ac_exeext
6518 if { (eval echo "$as_me:6518: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try
='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:6524: \"$ac_try\"") >&5
6527 echo "$as_me:6527: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 emacs_cv_x11_version_5_with_xaw
=yes
6531 echo "$as_me: failed program was:" >&5
6532 cat conftest.
$ac_ext >&5
6533 emacs_cv_x11_version_5_with_xaw
=no
6535 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6538 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6539 echo "$as_me:6539: result: 5 or newer, with Xaw; use toolkit by default" >&5
6540 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6543 echo "$as_me:6543: result: before 5 or no Xaw; do not use toolkit by default" >&5
6544 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6552 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6554 if test "${USE_X_TOOLKIT}" != "none"; then
6555 echo "$as_me:6555: checking X11 toolkit version" >&5
6556 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6557 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6561 #line 6561 "configure"
6562 #include "confdefs.h"
6563 #include <X11/Intrinsic.h>
6567 #if XtSpecificationRelease < 6
6575 rm -f conftest.
$ac_objext conftest
$ac_exeext
6576 if { (eval echo "$as_me:6576: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>&5
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try
='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:6582: \"$ac_try\"") >&5
6585 echo "$as_me:6585: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 emacs_cv_x11_toolkit_version_6
=yes
6589 echo "$as_me: failed program was:" >&5
6590 cat conftest.
$ac_ext >&5
6591 emacs_cv_x11_toolkit_version_6
=no
6593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6596 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6597 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6598 echo "$as_me:6598: result: 6 or newer" >&5
6599 echo "${ECHO_T}6 or newer" >&6
6600 cat >>confdefs.h
<<\EOF
6601 #define HAVE_X11XTR6 1
6605 echo "$as_me:6605: result: before 6" >&5
6606 echo "${ECHO_T}before 6" >&6
6610 if test x
$HAVE_X11XTR6 = xyes
; then
6611 LIBS
="-lXt -lSM -lICE $LIBS"
6616 echo "$as_me:6616: checking for XmuConvertStandardSelection in -lXmu" >&5
6617 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6618 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_check_lib_save_LIBS
=$LIBS
6623 cat >conftest.
$ac_ext <<_ACEOF
6624 #line 6624 "configure"
6625 #include "confdefs.h"
6627 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char XmuConvertStandardSelection ();
6637 XmuConvertStandardSelection ();
6642 rm -f conftest.
$ac_objext conftest
$ac_exeext
6643 if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try
='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6656 echo "$as_me: failed program was:" >&5
6657 cat conftest.
$ac_ext >&5
6658 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6661 LIBS
=$ac_check_lib_save_LIBS
6663 echo "$as_me:6663: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6664 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6665 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6666 cat >>confdefs.h
<<EOF
6667 #define HAVE_LIBXMU 1
6674 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6677 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6678 if test "${HAVE_X11}" = "yes"; then
6679 if test "${USE_X_TOOLKIT}" != "none"; then
6681 echo "$as_me:6681: checking for XShapeQueryExtension in -lXext" >&5
6682 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6683 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_check_lib_save_LIBS
=$LIBS
6688 cat >conftest.
$ac_ext <<_ACEOF
6689 #line 6689 "configure"
6690 #include "confdefs.h"
6692 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6698 char XShapeQueryExtension ();
6702 XShapeQueryExtension ();
6707 rm -f conftest.
$ac_objext conftest
$ac_exeext
6708 if { (eval echo "$as_me:6708: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:6714: \"$ac_try\"") >&5
6717 echo "$as_me:6717: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.
$ac_ext >&5
6723 ac_cv_lib_Xext_XShapeQueryExtension
=no
6725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6726 LIBS
=$ac_check_lib_save_LIBS
6728 echo "$as_me:6728: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6729 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6730 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6731 cat >>confdefs.h
<<EOF
6732 #define HAVE_LIBXEXT 1
6742 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6743 echo "$as_me:6743: checking for Motif version 2.1" >&5
6744 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6745 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 cat >conftest.
$ac_ext <<_ACEOF
6749 #line 6749 "configure"
6750 #include "confdefs.h"
6755 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6758 Motif version prior to 2.1.
6764 rm -f conftest.
$ac_objext
6765 if { (eval echo "$as_me:6765: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>&5
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try
='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:6771: \"$ac_try\"") >&5
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 emacs_cv_motif_version_2_1
=yes
6778 echo "$as_me: failed program was:" >&5
6779 cat conftest.
$ac_ext >&5
6780 emacs_cv_motif_version_2_1
=no
6782 rm -f conftest.
$ac_objext conftest.
$ac_ext
6784 echo "$as_me:6784: result: $emacs_cv_motif_version_2_1" >&5
6785 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6786 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6787 if test $emacs_cv_motif_version_2_1 = yes; then
6789 cat >>confdefs.h
<<\EOF
6790 #define HAVE_MOTIF_2_1 1
6793 echo "$as_me:6793: checking for XpCreateContext in -lXp" >&5
6794 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6795 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_check_lib_save_LIBS
=$LIBS
6800 cat >conftest.
$ac_ext <<_ACEOF
6801 #line 6801 "configure"
6802 #include "confdefs.h"
6804 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6810 char XpCreateContext ();
6819 rm -f conftest.
$ac_objext conftest
$ac_exeext
6820 if { (eval echo "$as_me:6820: \"$ac_link\"") >&5
6821 (eval $ac_link) 2>&5
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try
='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:6826: \"$ac_try\"") >&5
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_cv_lib_Xp_XpCreateContext
=yes
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.
$ac_ext >&5
6835 ac_cv_lib_Xp_XpCreateContext
=no
6837 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6838 LIBS
=$ac_check_lib_save_LIBS
6840 echo "$as_me:6840: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6841 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6842 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6846 if test ${HAVE_LIBXP} = yes; then
6847 cat >>confdefs.h
<<\EOF
6848 #define HAVE_LIBXP 1
6855 ### Is -lXaw3d available?
6857 if test "${HAVE_X11}" = "yes"; then
6858 if test "${USE_X_TOOLKIT}" != "none"; then
6859 echo "$as_me:6859: checking for X11/Xaw3d/Scrollbar.h" >&5
6860 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6861 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.
$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6867 #include <X11/Xaw3d/Scrollbar.h>
6869 if { (eval echo "$as_me:6869: \"$ac_cpp conftest.$ac_ext\"") >&5
6870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6872 egrep -v '^ *\+' conftest.er1
>conftest.err
6874 cat conftest.err
>&5
6875 echo "$as_me:6875: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev
/null
; then
6877 if test -s conftest.err
; then
6878 ac_cpp_err
=$ac_c_preproc_warn_flag
6885 if test -z "$ac_cpp_err"; then
6886 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.
$ac_ext >&5
6890 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6892 rm -f conftest.err conftest.
$ac_ext
6894 echo "$as_me:6894: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6895 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6896 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6897 echo "$as_me:6897: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6898 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6899 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 ac_check_lib_save_LIBS
=$LIBS
6903 LIBS
="-lXaw3d $LIBS"
6904 cat >conftest.
$ac_ext <<_ACEOF
6905 #line 6905 "configure"
6906 #include "confdefs.h"
6908 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6914 char XawScrollbarSetThumb ();
6918 XawScrollbarSetThumb ();
6923 rm -f conftest.
$ac_objext conftest
$ac_exeext
6924 if { (eval echo "$as_me:6924: \"$ac_link\"") >&5
6925 (eval $ac_link) 2>&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try
='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:6930: \"$ac_try\"") >&5
6933 echo "$as_me:6933: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6937 echo "$as_me: failed program was:" >&5
6938 cat conftest.
$ac_ext >&5
6939 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6942 LIBS
=$ac_check_lib_save_LIBS
6944 echo "$as_me:6944: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6945 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6946 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6952 if test "${HAVE_XAW3D}" = "yes"; then
6953 cat >>confdefs.h
<<\EOF
6954 #define HAVE_XAW3D 1
6961 USE_TOOLKIT_SCROLL_BARS
=no
6962 if test "${with_toolkit_scroll_bars}" != "no"; then
6963 if test "${USE_X_TOOLKIT}" != "none"; then
6964 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6965 cat >>confdefs.h
<<\EOF
6966 #define USE_TOOLKIT_SCROLL_BARS 1
6970 USE_TOOLKIT_SCROLL_BARS
=yes
6971 elif test "${HAVE_XAW3D}" = "yes"; then
6972 cat >>confdefs.h
<<\EOF
6973 #define USE_TOOLKIT_SCROLL_BARS 1
6976 USE_TOOLKIT_SCROLL_BARS
=yes
6981 if test "${with_xim}" != "no"; then
6982 cat >>confdefs.h
<<\EOF
6988 ### Use -lXpm if available, unless `--with-xpm=no'.
6990 if test "${HAVE_X11}" = "yes"; then
6991 if test "${with_xpm}" != "no"; then
6992 echo "$as_me:6992: checking for X11/xpm.h" >&5
6993 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6994 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 cat >conftest.
$ac_ext <<_ACEOF
6998 #line 6998 "configure"
6999 #include "confdefs.h"
7000 #include <X11/xpm.h>
7002 if { (eval echo "$as_me:7002: \"$ac_cpp conftest.$ac_ext\"") >&5
7003 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7005 egrep -v '^ *\+' conftest.er1
>conftest.err
7007 cat conftest.err
>&5
7008 echo "$as_me:7008: \$? = $ac_status" >&5
7009 (exit $ac_status); } >/dev
/null
; then
7010 if test -s conftest.err
; then
7011 ac_cpp_err
=$ac_c_preproc_warn_flag
7018 if test -z "$ac_cpp_err"; then
7019 ac_cv_header_X11_xpm_h
=yes
7021 echo "$as_me: failed program was:" >&5
7022 cat conftest.
$ac_ext >&5
7023 ac_cv_header_X11_xpm_h
=no
7025 rm -f conftest.err conftest.
$ac_ext
7027 echo "$as_me:7027: result: $ac_cv_header_X11_xpm_h" >&5
7028 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7029 if test $ac_cv_header_X11_xpm_h = yes; then
7030 echo "$as_me:7030: checking for XpmReadFileToPixmap in -lXpm" >&5
7031 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7032 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 ac_check_lib_save_LIBS
=$LIBS
7036 LIBS
="-lXpm -lX11 $LIBS"
7037 cat >conftest.
$ac_ext <<_ACEOF
7038 #line 7038 "configure"
7039 #include "confdefs.h"
7041 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7047 char XpmReadFileToPixmap ();
7051 XpmReadFileToPixmap ();
7056 rm -f conftest.
$ac_objext conftest
$ac_exeext
7057 if { (eval echo "$as_me:7057: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7060 echo "$as_me:7060: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try
='test -s conftest$ac_exeext'
7063 { (eval echo "$as_me:7063: \"$ac_try\"") >&5
7066 echo "$as_me:7066: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7070 echo "$as_me: failed program was:" >&5
7071 cat conftest.
$ac_ext >&5
7072 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7075 LIBS
=$ac_check_lib_save_LIBS
7077 echo "$as_me:7077: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7078 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7079 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7085 if test "${HAVE_XPM}" = "yes"; then
7086 echo "$as_me:7086: checking for XpmReturnAllocPixels preprocessor define" >&5
7087 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7088 cat >conftest.
$ac_ext <<_ACEOF
7089 #line 7089 "configure"
7090 #include "confdefs.h"
7091 #include "X11/xpm.h"
7092 #ifndef XpmReturnAllocPixels
7093 no_return_alloc_pixels
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7105 if test "${HAVE_XPM}" = "yes"; then
7106 echo "$as_me:7106: result: yes" >&5
7107 echo "${ECHO_T}yes" >&6
7109 echo "$as_me:7109: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7115 if test "${HAVE_XPM}" = "yes"; then
7116 cat >>confdefs.h
<<\EOF
7123 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7125 if test "${HAVE_X11}" = "yes"; then
7126 if test "${with_jpeg}" != "no"; then
7127 echo "$as_me:7127: checking for jerror.h" >&5
7128 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7129 if test "${ac_cv_header_jerror_h+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 cat >conftest.
$ac_ext <<_ACEOF
7133 #line 7133 "configure"
7134 #include "confdefs.h"
7137 if { (eval echo "$as_me:7137: \"$ac_cpp conftest.$ac_ext\"") >&5
7138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7140 egrep -v '^ *\+' conftest.er1
>conftest.err
7142 cat conftest.err
>&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 (exit $ac_status); } >/dev
/null
; then
7145 if test -s conftest.err
; then
7146 ac_cpp_err
=$ac_c_preproc_warn_flag
7153 if test -z "$ac_cpp_err"; then
7154 ac_cv_header_jerror_h
=yes
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.
$ac_ext >&5
7158 ac_cv_header_jerror_h
=no
7160 rm -f conftest.err conftest.
$ac_ext
7162 echo "$as_me:7162: result: $ac_cv_header_jerror_h" >&5
7163 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7164 if test $ac_cv_header_jerror_h = yes; then
7165 echo "$as_me:7165: checking for jpeg_destroy_compress in -ljpeg" >&5
7166 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7167 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_check_lib_save_LIBS
=$LIBS
7172 cat >conftest.
$ac_ext <<_ACEOF
7173 #line 7173 "configure"
7174 #include "confdefs.h"
7176 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char jpeg_destroy_compress ();
7186 jpeg_destroy_compress ();
7191 rm -f conftest.
$ac_objext conftest
$ac_exeext
7192 if { (eval echo "$as_me:7192: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:7198: \"$ac_try\"") >&5
7201 echo "$as_me:7201: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7205 echo "$as_me: failed program was:" >&5
7206 cat conftest.
$ac_ext >&5
7207 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7210 LIBS
=$ac_check_lib_save_LIBS
7212 echo "$as_me:7212: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7213 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7214 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7222 if test "${HAVE_JPEG}" = "yes"; then
7223 cat >>confdefs.h
<<\EOF
7227 cat >conftest.
$ac_ext <<_ACEOF
7228 #line 7228 "configure"
7229 #include "confdefs.h"
7230 #include <jpeglib.h>
7231 version=JPEG_LIB_VERSION
7234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7236 cat >>confdefs.h
<<\EOF
7241 { echo "$as_me:7241: WARNING: libjpeg found, but not version 6b or later" >&5
7242 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7250 ### Use -lpng if available, unless `--with-png=no'.
7252 if test "${HAVE_X11}" = "yes"; then
7253 if test "${with_png}" != "no"; then
7254 echo "$as_me:7254: checking for png.h" >&5
7255 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7256 if test "${ac_cv_header_png_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7260 #line 7260 "configure"
7261 #include "confdefs.h"
7264 if { (eval echo "$as_me:7264: \"$ac_cpp conftest.$ac_ext\"") >&5
7265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7267 egrep -v '^ *\+' conftest.er1
>conftest.err
7269 cat conftest.err
>&5
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev
/null
; then
7272 if test -s conftest.err
; then
7273 ac_cpp_err
=$ac_c_preproc_warn_flag
7280 if test -z "$ac_cpp_err"; then
7281 ac_cv_header_png_h
=yes
7283 echo "$as_me: failed program was:" >&5
7284 cat conftest.
$ac_ext >&5
7285 ac_cv_header_png_h
=no
7287 rm -f conftest.err conftest.
$ac_ext
7289 echo "$as_me:7289: result: $ac_cv_header_png_h" >&5
7290 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7291 if test $ac_cv_header_png_h = yes; then
7292 echo "$as_me:7292: checking for png_get_channels in -lpng" >&5
7293 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7294 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 ac_check_lib_save_LIBS
=$LIBS
7298 LIBS
="-lpng -lz -lm $LIBS"
7299 cat >conftest.
$ac_ext <<_ACEOF
7300 #line 7300 "configure"
7301 #include "confdefs.h"
7303 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char png_get_channels ();
7313 png_get_channels ();
7318 rm -f conftest.
$ac_objext conftest
$ac_exeext
7319 if { (eval echo "$as_me:7319: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>&5
7322 echo "$as_me:7322: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try
='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:7325: \"$ac_try\"") >&5
7328 echo "$as_me:7328: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_cv_lib_png_png_get_channels
=yes
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.
$ac_ext >&5
7334 ac_cv_lib_png_png_get_channels
=no
7336 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7337 LIBS
=$ac_check_lib_save_LIBS
7339 echo "$as_me:7339: result: $ac_cv_lib_png_png_get_channels" >&5
7340 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7341 if test $ac_cv_lib_png_png_get_channels = yes; then
7349 if test "${HAVE_PNG}" = "yes"; then
7350 cat >>confdefs.h
<<\EOF
7357 ### Use -ltiff if available, unless `--with-tiff=no'.
7359 if test "${HAVE_X11}" = "yes"; then
7360 if test "${with_tiff}" != "no"; then
7361 echo "$as_me:7361: checking for tiffio.h" >&5
7362 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7363 if test "${ac_cv_header_tiffio_h+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.
$ac_ext <<_ACEOF
7367 #line 7367 "configure"
7368 #include "confdefs.h"
7371 if { (eval echo "$as_me:7371: \"$ac_cpp conftest.$ac_ext\"") >&5
7372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7374 egrep -v '^ *\+' conftest.er1
>conftest.err
7376 cat conftest.err
>&5
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); } >/dev
/null
; then
7379 if test -s conftest.err
; then
7380 ac_cpp_err
=$ac_c_preproc_warn_flag
7387 if test -z "$ac_cpp_err"; then
7388 ac_cv_header_tiffio_h
=yes
7390 echo "$as_me: failed program was:" >&5
7391 cat conftest.
$ac_ext >&5
7392 ac_cv_header_tiffio_h
=no
7394 rm -f conftest.err conftest.
$ac_ext
7396 echo "$as_me:7396: result: $ac_cv_header_tiffio_h" >&5
7397 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7398 if test $ac_cv_header_tiffio_h = yes; then
7400 # At least one tiff package requires the jpeg library.
7401 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7402 echo "$as_me:7402: checking for TIFFGetVersion in -ltiff" >&5
7403 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7404 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 ac_check_lib_save_LIBS
=$LIBS
7408 LIBS
="-ltiff $tifflibs $LIBS"
7409 cat >conftest.
$ac_ext <<_ACEOF
7410 #line 7410 "configure"
7411 #include "confdefs.h"
7413 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7419 char TIFFGetVersion ();
7428 rm -f conftest.
$ac_objext conftest
$ac_exeext
7429 if { (eval echo "$as_me:7429: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try
='test -s conftest$ac_exeext'
7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7438 echo "$as_me:7438: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_lib_tiff_TIFFGetVersion
=yes
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.
$ac_ext >&5
7444 ac_cv_lib_tiff_TIFFGetVersion
=no
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7447 LIBS
=$ac_check_lib_save_LIBS
7449 echo "$as_me:7449: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7450 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7451 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7459 if test "${HAVE_TIFF}" = "yes"; then
7460 cat >>confdefs.h
<<\EOF
7467 ### Use -lgif if available, unless `--with-gif=no'.
7469 if test "${HAVE_X11}" = "yes"; then
7470 if test "${with_gif}" != "no"; then
7471 echo "$as_me:7471: checking for gif_lib.h" >&5
7472 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7473 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7477 #line 7477 "configure"
7478 #include "confdefs.h"
7479 #include <gif_lib.h>
7481 if { (eval echo "$as_me:7481: \"$ac_cpp conftest.$ac_ext\"") >&5
7482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7484 egrep -v '^ *\+' conftest.er1
>conftest.err
7486 cat conftest.err
>&5
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); } >/dev
/null
; then
7489 if test -s conftest.err
; then
7490 ac_cpp_err
=$ac_c_preproc_warn_flag
7497 if test -z "$ac_cpp_err"; then
7498 ac_cv_header_gif_lib_h
=yes
7500 echo "$as_me: failed program was:" >&5
7501 cat conftest.
$ac_ext >&5
7502 ac_cv_header_gif_lib_h
=no
7504 rm -f conftest.err conftest.
$ac_ext
7506 echo "$as_me:7506: result: $ac_cv_header_gif_lib_h" >&5
7507 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7508 if test $ac_cv_header_gif_lib_h = yes; then
7509 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7510 # Earlier versions can crash Emacs.
7511 echo "$as_me:7511: checking for EGifPutExtensionLast in -lungif" >&5
7512 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7513 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_check_lib_save_LIBS
=$LIBS
7517 LIBS
="-lungif $LIBS"
7518 cat >conftest.
$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7522 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7528 char EGifPutExtensionLast ();
7532 EGifPutExtensionLast ();
7537 rm -f conftest.
$ac_objext conftest
$ac_exeext
7538 if { (eval echo "$as_me:7538: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>&5
7541 echo "$as_me:7541: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try
='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:7544: \"$ac_try\"") >&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7551 echo "$as_me: failed program was:" >&5
7552 cat conftest.
$ac_ext >&5
7553 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7555 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7556 LIBS
=$ac_check_lib_save_LIBS
7558 echo "$as_me:7558: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7559 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7560 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7568 if test "${HAVE_GIF}" = "yes"; then
7569 cat >>confdefs.h
<<\EOF
7576 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7577 echo "$as_me:7577: checking whether netdb declares h_errno" >&5
7578 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7579 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 cat >conftest.
$ac_ext <<_ACEOF
7583 #line 7583 "configure"
7584 #include "confdefs.h"
7594 rm -f conftest.
$ac_objext conftest
$ac_exeext
7595 if { (eval echo "$as_me:7595: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try
='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:7601: \"$ac_try\"") >&5
7604 echo "$as_me:7604: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 emacs_cv_netdb_declares_h_errno
=yes
7608 echo "$as_me: failed program was:" >&5
7609 cat conftest.
$ac_ext >&5
7610 emacs_cv_netdb_declares_h_errno
=no
7612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7614 echo "$as_me:7614: result: $emacs_cv_netdb_declares_h_errno" >&5
7615 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7616 if test $emacs_cv_netdb_declares_h_errno = yes; then
7617 cat >>confdefs.h
<<\EOF
7618 #define HAVE_H_ERRNO 1
7623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7624 # for constant arguments. Useless!
7625 echo "$as_me:7625: checking for working alloca.h" >&5
7626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7627 if test "${ac_cv_working_alloca_h+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 cat >conftest.
$ac_ext <<_ACEOF
7631 #line 7631 "configure"
7632 #include "confdefs.h"
7637 char *p = (char *) alloca (2 * sizeof (int));
7642 rm -f conftest.
$ac_objext conftest
$ac_exeext
7643 if { (eval echo "$as_me:7643: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>&5
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try
='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:7649: \"$ac_try\"") >&5
7652 echo "$as_me:7652: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_working_alloca_h
=yes
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.
$ac_ext >&5
7658 ac_cv_working_alloca_h
=no
7660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7662 echo "$as_me:7662: result: $ac_cv_working_alloca_h" >&5
7663 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7664 if test $ac_cv_working_alloca_h = yes; then
7666 cat >>confdefs.h
<<\EOF
7667 #define HAVE_ALLOCA_H 1
7672 echo "$as_me:7672: checking for alloca" >&5
7673 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7674 if test "${ac_cv_func_alloca_works+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.
$ac_ext <<_ACEOF
7678 #line 7678 "configure"
7679 #include "confdefs.h"
7681 # define alloca __builtin_alloca
7684 # include <malloc.h>
7685 # define alloca _alloca
7688 # include <alloca.h>
7693 # ifndef alloca /* predefined by HP cc +Olibcalls */
7704 char *p = (char *) alloca (1);
7709 rm -f conftest.
$ac_objext conftest
$ac_exeext
7710 if { (eval echo "$as_me:7710: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>&5
7713 echo "$as_me:7713: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try
='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:7716: \"$ac_try\"") >&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_func_alloca_works
=yes
7723 echo "$as_me: failed program was:" >&5
7724 cat conftest.
$ac_ext >&5
7725 ac_cv_func_alloca_works
=no
7727 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7729 echo "$as_me:7729: result: $ac_cv_func_alloca_works" >&5
7730 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7732 if test $ac_cv_func_alloca_works = yes; then
7734 cat >>confdefs.h
<<\EOF
7735 #define HAVE_ALLOCA 1
7739 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7740 # that cause trouble. Some versions do not even contain alloca or
7741 # contain a buggy version. If you still want to use their alloca,
7742 # use ar to extract alloca.o from them instead of compiling alloca.c.
7744 ALLOCA
=alloca.
$ac_objext
7746 cat >>confdefs.h
<<\EOF
7750 echo "$as_me:7750: checking whether \`alloca.c' needs Cray hooks" >&5
7751 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7752 if test "${ac_cv_os_cray+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 cat >conftest.
$ac_ext <<_ACEOF
7756 #line 7756 "configure"
7757 #include "confdefs.h"
7758 #if defined(CRAY) && ! defined(CRAY2)
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 egrep "webecray" >/dev
/null
2>&1; then
7774 echo "$as_me:7774: result: $ac_cv_os_cray" >&5
7775 echo "${ECHO_T}$ac_cv_os_cray" >&6
7776 if test $ac_cv_os_cray = yes; then
7777 for ac_func
in _getb67 GETB67 getb67
; do
7778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 echo "$as_me:7779: checking for $ac_func" >&5
7780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_var+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 cat >conftest.
$ac_ext <<_ACEOF
7785 #line 7785 "configure"
7786 #include "confdefs.h"
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char $ac_func (); below. */
7790 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7802 /* The GNU C library defines this for functions which it implements
7803 to always fail with ENOSYS. Some functions are actually named
7804 something starting with __ and the normal name is an alias. */
7805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 rm -f conftest.
$ac_objext conftest
$ac_exeext
7816 if { (eval echo "$as_me:7816: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>&5
7819 echo "$as_me:7819: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try
='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:7822: \"$ac_try\"") >&5
7825 echo "$as_me:7825: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 eval "$as_ac_var=yes"
7829 echo "$as_me: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7831 eval "$as_ac_var=no"
7833 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7835 echo "$as_me:7835: result: `eval echo '${'$as_ac_var'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7837 if test `eval echo '${'$as_ac_var'}'` = yes; then
7839 cat >>confdefs.h
<<EOF
7840 #define CRAY_STACKSEG_END $ac_func
7849 echo "$as_me:7849: checking stack direction for C alloca" >&5
7850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7851 if test "${ac_cv_c_stack_direction+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 if test "$cross_compiling" = yes; then
7855 ac_cv_c_stack_direction
=0
7857 cat >conftest.
$ac_ext <<_ACEOF
7858 #line 7858 "configure"
7859 #include "confdefs.h"
7861 find_stack_direction ()
7863 static char *addr = 0;
7868 return find_stack_direction ();
7871 return (&dummy > addr) ? 1 : -1;
7877 exit (find_stack_direction () < 0);
7880 rm -f conftest
$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7886 { (eval echo "$as_me:7886: \"$ac_try\"") >&5
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_cv_c_stack_direction
=1
7893 echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.
$ac_ext >&5
7896 ac_cv_c_stack_direction
=-1
7898 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7901 echo "$as_me:7901: result: $ac_cv_c_stack_direction" >&5
7902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7904 cat >>confdefs.h
<<EOF
7905 #define STACK_DIRECTION $ac_cv_c_stack_direction
7910 # fmod, logb, and frexp are found in -lm on most systems.
7911 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7913 echo "$as_me:7913: checking for sqrt in -lm" >&5
7914 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7915 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_check_lib_save_LIBS
=$LIBS
7920 cat >conftest.
$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7924 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7939 rm -f conftest.
$ac_objext conftest
$ac_exeext
7940 if { (eval echo "$as_me:7940: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try
='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:7946: \"$ac_try\"") >&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_cv_lib_m_sqrt
=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.
$ac_ext >&5
7957 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7958 LIBS
=$ac_check_lib_save_LIBS
7960 echo "$as_me:7960: result: $ac_cv_lib_m_sqrt" >&5
7961 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7962 if test $ac_cv_lib_m_sqrt = yes; then
7963 cat >>confdefs.h
<<EOF
7971 # Check for mail-locking functions in a "mail" library
7973 echo "$as_me:7973: checking for maillock in -lmail" >&5
7974 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7975 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 ac_check_lib_save_LIBS
=$LIBS
7980 cat >conftest.
$ac_ext <<_ACEOF
7981 #line 7981 "configure"
7982 #include "confdefs.h"
7984 /* Override any gcc2 internal prototype to avoid an error. */
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7999 rm -f conftest.
$ac_objext conftest
$ac_exeext
8000 if { (eval echo "$as_me:8000: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try
='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_cv_lib_mail_maillock
=yes
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.
$ac_ext >&5
8015 ac_cv_lib_mail_maillock
=no
8017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8018 LIBS
=$ac_check_lib_save_LIBS
8020 echo "$as_me:8020: result: $ac_cv_lib_mail_maillock" >&5
8021 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8022 if test $ac_cv_lib_mail_maillock = yes; then
8023 cat >>confdefs.h
<<EOF
8024 #define HAVE_LIBMAIL 1
8031 echo "$as_me:8031: checking for maillock in -llockfile" >&5
8032 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8033 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 ac_check_lib_save_LIBS
=$LIBS
8037 LIBS
="-llockfile $LIBS"
8038 cat >conftest.
$ac_ext <<_ACEOF
8039 #line 8039 "configure"
8040 #include "confdefs.h"
8042 /* Override any gcc2 internal prototype to avoid an error. */
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8057 rm -f conftest.
$ac_objext conftest
$ac_exeext
8058 if { (eval echo "$as_me:8058: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8061 echo "$as_me:8061: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try
='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:8064: \"$ac_try\"") >&5
8067 echo "$as_me:8067: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 ac_cv_lib_lockfile_maillock
=yes
8071 echo "$as_me: failed program was:" >&5
8072 cat conftest.
$ac_ext >&5
8073 ac_cv_lib_lockfile_maillock
=no
8075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8076 LIBS
=$ac_check_lib_save_LIBS
8078 echo "$as_me:8078: result: $ac_cv_lib_lockfile_maillock" >&5
8079 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8080 if test $ac_cv_lib_lockfile_maillock = yes; then
8081 cat >>confdefs.h
<<EOF
8082 #define HAVE_LIBLOCKFILE 1
8085 LIBS
="-llockfile $LIBS"
8089 # If we have the shared liblockfile, assume we must use it for mail
8090 # locking (e.g. Debian). If we couldn't link against liblockfile
8091 # (no liblockfile.a installed), ensure that we don't need to.
8092 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8093 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8094 set dummy liblockfile.so
; ac_word
=$2
8095 echo "$as_me:8095: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_prog_liblockfile+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if test -n "$liblockfile"; then
8101 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8103 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8104 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8105 for ac_dir
in $ac_dummy; do
8107 test -z "$ac_dir" && ac_dir
=.
8108 $as_executable_p "$ac_dir/$ac_word" ||
continue
8109 ac_cv_prog_liblockfile
="yes"
8110 echo "$as_me:8110: found $ac_dir/$ac_word" >&5
8114 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8117 liblockfile
=$ac_cv_prog_liblockfile
8118 if test -n "$liblockfile"; then
8119 echo "$as_me:8119: result: $liblockfile" >&5
8120 echo "${ECHO_T}$liblockfile" >&6
8122 echo "$as_me:8122: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8126 if test $ac_cv_prog_liblockfile = yes; then
8127 { { echo "$as_me:8127: error: Shared liblockfile found but can't link against it.
8128 This probably means that movemail could lose mail.
8129 There may be a \`development' package to install containing liblockfile." >&5
8130 echo "$as_me: error: Shared liblockfile found but can't link against it.
8131 This probably means that movemail could lose mail.
8132 There may be a \`development' package to install containing liblockfile." >&2;}
8133 { (exit 1); exit 1; }; }
8134 else cat >>confdefs.h
<<\EOF
8135 #define LIBMAIL -llockfile
8142 for ac_func
in touchlock
8144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8145 echo "$as_me:8145: checking for $ac_func" >&5
8146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_var+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.
$ac_ext <<_ACEOF
8151 #line 8151 "configure"
8152 #include "confdefs.h"
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char $ac_func (); below. */
8156 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8181 rm -f conftest.
$ac_objext conftest
$ac_exeext
8182 if { (eval echo "$as_me:8182: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8185 echo "$as_me:8185: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try
='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:8188: \"$ac_try\"") >&5
8191 echo "$as_me:8191: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 eval "$as_ac_var=yes"
8195 echo "$as_me: failed program was:" >&5
8196 cat conftest.
$ac_ext >&5
8197 eval "$as_ac_var=no"
8199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8201 echo "$as_me:8201: result: `eval echo '${'$as_ac_var'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203 if test `eval echo '${'$as_ac_var'}'` = yes; then
8204 cat >>confdefs.h
<<EOF
8205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8211 for ac_header
in maillock.h
8213 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8214 echo "$as_me:8214: checking for $ac_header" >&5
8215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 cat >conftest.
$ac_ext <<_ACEOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8222 #include <$ac_header>
8224 if { (eval echo "$as_me:8224: \"$ac_cpp conftest.$ac_ext\"") >&5
8225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8227 egrep -v '^ *\+' conftest.er1
>conftest.err
8229 cat conftest.err
>&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); } >/dev
/null
; then
8232 if test -s conftest.err
; then
8233 ac_cpp_err
=$ac_c_preproc_warn_flag
8240 if test -z "$ac_cpp_err"; then
8241 eval "$as_ac_Header=yes"
8243 echo "$as_me: failed program was:" >&5
8244 cat conftest.
$ac_ext >&5
8245 eval "$as_ac_Header=no"
8247 rm -f conftest.err conftest.
$ac_ext
8249 echo "$as_me:8249: result: `eval echo '${'$as_ac_Header'}'`" >&5
8250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8252 cat >>confdefs.h
<<EOF
8253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 for ac_func
in gethostname getdomainname getpeername dup2 \
8260 rename closedir mkdir
rmdir sysinfo \
8261 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8262 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8263 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8264 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8265 gai_strerror mkstemp
8267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 echo "$as_me:8268: checking for $ac_func" >&5
8269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270 if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.
$ac_ext <<_ACEOF
8274 #line 8274 "configure"
8275 #include "confdefs.h"
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char $ac_func (); below. */
8279 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8291 /* The GNU C library defines this for functions which it implements
8292 to always fail with ENOSYS. Some functions are actually named
8293 something starting with __ and the normal name is an alias. */
8294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 rm -f conftest.
$ac_objext conftest
$ac_exeext
8305 if { (eval echo "$as_me:8305: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:8308: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try
='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:8311: \"$ac_try\"") >&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 eval "$as_ac_var=yes"
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.
$ac_ext >&5
8320 eval "$as_ac_var=no"
8322 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8324 echo "$as_me:8324: result: `eval echo '${'$as_ac_var'}'`" >&5
8325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8326 if test `eval echo '${'$as_ac_var'}'` = yes; then
8327 cat >>confdefs.h
<<EOF
8328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 for ac_header
in sys
/time.h unistd.h
8336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 echo "$as_me:8337: checking for $ac_header" >&5
8338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.
$ac_ext <<_ACEOF
8343 #line 8343 "configure"
8344 #include "confdefs.h"
8345 #include <$ac_header>
8347 if { (eval echo "$as_me:8347: \"$ac_cpp conftest.$ac_ext\"") >&5
8348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8350 egrep -v '^ *\+' conftest.er1
>conftest.err
8352 cat conftest.err
>&5
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 (exit $ac_status); } >/dev
/null
; then
8355 if test -s conftest.err
; then
8356 ac_cpp_err
=$ac_c_preproc_warn_flag
8363 if test -z "$ac_cpp_err"; then
8364 eval "$as_ac_Header=yes"
8366 echo "$as_me: failed program was:" >&5
8367 cat conftest.
$ac_ext >&5
8368 eval "$as_ac_Header=no"
8370 rm -f conftest.err conftest.
$ac_ext
8372 echo "$as_me:8372: result: `eval echo '${'$as_ac_Header'}'`" >&5
8373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8375 cat >>confdefs.h
<<EOF
8376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8382 for ac_func
in alarm
8384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8385 echo "$as_me:8385: checking for $ac_func" >&5
8386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_var+set}\" = set"; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 cat >conftest.
$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 /* System header to define __stub macros and hopefully few prototypes,
8394 which can conflict with char $ac_func (); below. */
8396 /* Override any gcc2 internal prototype to avoid an error. */
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8421 rm -f conftest.
$ac_objext conftest
$ac_exeext
8422 if { (eval echo "$as_me:8422: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try
='test -s conftest$ac_exeext'
8428 { (eval echo "$as_me:8428: \"$ac_try\"") >&5
8431 echo "$as_me:8431: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 eval "$as_ac_var=yes"
8435 echo "$as_me: failed program was:" >&5
8436 cat conftest.
$ac_ext >&5
8437 eval "$as_ac_var=no"
8439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8441 echo "$as_me:8441: result: `eval echo '${'$as_ac_var'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h
<<EOF
8445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8451 echo "$as_me:8451: checking for working mktime" >&5
8452 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8453 if test "${ac_cv_func_working_mktime+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 if test "$cross_compiling" = yes; then
8457 ac_cv_func_working_mktime
=no
8459 cat >conftest.
$ac_ext <<_ACEOF
8460 #line 8460 "configure"
8461 #include "confdefs.h"
8462 /* Test program from Paul Eggert and Tony Leneis. */
8463 #if TIME_WITH_SYS_TIME
8464 # include <sys/time.h>
8467 # if HAVE_SYS_TIME_H
8468 # include <sys/time.h>
8475 # include <unistd.h>
8479 # define alarm(X) /* empty */
8482 /* Work around redefinition to rpl_putenv by other config tests. */
8485 static time_t time_t_max;
8487 /* Values we'll use to set the TZ environment variable. */
8488 static const char *const tz_strings[] = {
8489 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8490 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8494 /* Fail if mktime fails to convert a date in the spring-forward gap.
8495 Based on a problem report from Andreas Jaeger. */
8497 spring_forward_gap ()
8499 /* glibc (up to about 1998-10-07) failed this test. */
8502 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8503 instead of "TZ=America/Vancouver" in order to detect the bug even
8504 on systems that don't support the Olson extension, or don't have the
8505 full zoneinfo tables installed. */
8506 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8515 if (mktime (&tm) == (time_t)-1)
8524 if ((lt = localtime (&now)) && mktime (lt) != now)
8526 now = time_t_max - now;
8527 if ((lt = localtime (&now)) && mktime (lt) != now)
8534 /* Based on code from Ariel Faigon. */
8544 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8556 if (now != (time_t) -1)
8558 struct tm *lt = localtime (&now);
8560 && lt->tm_year == tm.tm_year
8561 && lt->tm_mon == tm.tm_mon
8562 && lt->tm_mday == tm.tm_mday
8563 && lt->tm_hour == tm.tm_hour
8564 && lt->tm_min == tm.tm_min
8565 && lt->tm_sec == tm.tm_sec
8566 && lt->tm_yday == tm.tm_yday
8567 && lt->tm_wday == tm.tm_wday
8568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8580 /* This test makes some buggy mktime implementations loop.
8581 Give up after 60 seconds; a mktime slower than that
8582 isn't worth using anyway. */
8585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8588 delta = time_t_max / 997; /* a suitable prime number */
8589 for (i = 0; i < N_STRINGS; i++)
8592 putenv (tz_strings[i]);
8594 for (t = 0; t <= time_t_max - delta; t += delta)
8596 mktime_test ((time_t) 60 * 60);
8597 mktime_test ((time_t) 60 * 60 * 24);
8599 for (j = 1; 0 < j; j *= 2)
8601 bigtime_test (j - 1);
8604 spring_forward_gap ();
8608 rm -f conftest
$ac_exeext
8609 if { (eval echo "$as_me:8609: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>&5
8612 echo "$as_me:8612: \$? = $ac_status" >&5
8613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8614 { (eval echo "$as_me:8614: \"$ac_try\"") >&5
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_func_working_mktime
=yes
8621 echo "$as_me: program exited with status $ac_status" >&5
8622 echo "$as_me: failed program was:" >&5
8623 cat conftest.
$ac_ext >&5
8624 ac_cv_func_working_mktime
=no
8626 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8629 echo "$as_me:8629: result: $ac_cv_func_working_mktime" >&5
8630 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8631 if test $ac_cv_func_working_mktime = no
; then
8632 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8635 if test "$ac_cv_func_working_mktime" = no
; then
8636 cat >>confdefs.h
<<\EOF
8637 #define BROKEN_MKTIME 1
8642 ac_have_func
=no
# yes means we've found a way to get the load average.
8646 # Check for getloadavg, but be sure not to touch the cache variable.
8647 (echo "$as_me:8647: checking for getloadavg" >&5
8648 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8649 if test "${ac_cv_func_getloadavg+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 cat >conftest.
$ac_ext <<_ACEOF
8653 #line 8653 "configure"
8654 #include "confdefs.h"
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char getloadavg (); below. */
8658 /* Override any gcc2 internal prototype to avoid an error. */
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8683 rm -f conftest.
$ac_objext conftest
$ac_exeext
8684 if { (eval echo "$as_me:8684: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>&5
8687 echo "$as_me:8687: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try
='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:8690: \"$ac_try\"") >&5
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_func_getloadavg
=yes
8697 echo "$as_me: failed program was:" >&5
8698 cat conftest.
$ac_ext >&5
8699 ac_cv_func_getloadavg
=no
8701 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8703 echo "$as_me:8703: result: $ac_cv_func_getloadavg" >&5
8704 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8705 if test $ac_cv_func_getloadavg = yes; then
8710 ) && ac_have_func
=yes
8712 # On HPUX9, an unprivileged user can get load averages through this function.
8714 for ac_func
in pstat_getdynamic
8716 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8717 echo "$as_me:8717: checking for $ac_func" >&5
8718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8719 if eval "test \"\${$as_ac_var+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 cat >conftest.
$ac_ext <<_ACEOF
8723 #line 8723 "configure"
8724 #include "confdefs.h"
8725 /* System header to define __stub macros and hopefully few prototypes,
8726 which can conflict with char $ac_func (); below. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8740 /* The GNU C library defines this for functions which it implements
8741 to always fail with ENOSYS. Some functions are actually named
8742 something starting with __ and the normal name is an alias. */
8743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8753 rm -f conftest.
$ac_objext conftest
$ac_exeext
8754 if { (eval echo "$as_me:8754: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8757 echo "$as_me:8757: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try
='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:8760: \"$ac_try\"") >&5
8763 echo "$as_me:8763: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 eval "$as_ac_var=yes"
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.
$ac_ext >&5
8769 eval "$as_ac_var=no"
8771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8773 echo "$as_me:8773: result: `eval echo '${'$as_ac_var'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8775 if test `eval echo '${'$as_ac_var'}'` = yes; then
8776 cat >>confdefs.h
<<EOF
8777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 # Solaris has libkstat which does not require root.
8785 echo "$as_me:8785: checking for kstat_open in -lkstat" >&5
8786 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8787 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS
=$LIBS
8791 LIBS
="-lkstat $LIBS"
8792 cat >conftest.
$ac_ext <<_ACEOF
8793 #line 8793 "configure"
8794 #include "confdefs.h"
8796 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8811 rm -f conftest.
$ac_objext conftest
$ac_exeext
8812 if { (eval echo "$as_me:8812: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>&5
8815 echo "$as_me:8815: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try
='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:8818: \"$ac_try\"") >&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_lib_kstat_kstat_open
=yes
8825 echo "$as_me: failed program was:" >&5
8826 cat conftest.
$ac_ext >&5
8827 ac_cv_lib_kstat_kstat_open
=no
8829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8830 LIBS
=$ac_check_lib_save_LIBS
8832 echo "$as_me:8832: result: $ac_cv_lib_kstat_kstat_open" >&5
8833 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8834 if test $ac_cv_lib_kstat_kstat_open = yes; then
8835 cat >>confdefs.h
<<EOF
8836 #define HAVE_LIBKSTAT 1
8839 LIBS
="-lkstat $LIBS"
8843 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8845 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8846 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8847 # to get the right answer into the cache.
8848 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8849 if test $ac_have_func = no
; then
8850 echo "$as_me:8850: checking for elf_begin in -lelf" >&5
8851 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8852 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_check_lib_save_LIBS
=$LIBS
8857 cat >conftest.
$ac_ext <<_ACEOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8861 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8876 rm -f conftest.
$ac_objext conftest
$ac_exeext
8877 if { (eval echo "$as_me:8877: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>&5
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try
='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:8883: \"$ac_try\"") >&5
8886 echo "$as_me:8886: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_lib_elf_elf_begin
=yes
8890 echo "$as_me: failed program was:" >&5
8891 cat conftest.
$ac_ext >&5
8892 ac_cv_lib_elf_elf_begin
=no
8894 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8895 LIBS
=$ac_check_lib_save_LIBS
8897 echo "$as_me:8897: result: $ac_cv_lib_elf_elf_begin" >&5
8898 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8899 if test $ac_cv_lib_elf_elf_begin = yes; then
8904 if test $ac_have_func = no
; then
8905 echo "$as_me:8905: checking for kvm_open in -lkvm" >&5
8906 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8907 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 ac_check_lib_save_LIBS
=$LIBS
8912 cat >conftest.
$ac_ext <<_ACEOF
8913 #line 8913 "configure"
8914 #include "confdefs.h"
8916 /* Override any gcc2 internal prototype to avoid an error. */
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8931 rm -f conftest.
$ac_objext conftest
$ac_exeext
8932 if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try
='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:8938: \"$ac_try\"") >&5
8941 echo "$as_me:8941: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_kvm_kvm_open
=yes
8945 echo "$as_me: failed program was:" >&5
8946 cat conftest.
$ac_ext >&5
8947 ac_cv_lib_kvm_kvm_open
=no
8949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8950 LIBS
=$ac_check_lib_save_LIBS
8952 echo "$as_me:8952: result: $ac_cv_lib_kvm_kvm_open" >&5
8953 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8954 if test $ac_cv_lib_kvm_kvm_open = yes; then
8958 # Check for the 4.4BSD definition of getloadavg.
8959 echo "$as_me:8959: checking for getloadavg in -lutil" >&5
8960 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8961 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 ac_check_lib_save_LIBS
=$LIBS
8966 cat >conftest.
$ac_ext <<_ACEOF
8967 #line 8967 "configure"
8968 #include "confdefs.h"
8970 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8985 rm -f conftest.
$ac_objext conftest
$ac_exeext
8986 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:8989: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try
='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8995 echo "$as_me:8995: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_lib_util_getloadavg
=yes
8999 echo "$as_me: failed program was:" >&5
9000 cat conftest.
$ac_ext >&5
9001 ac_cv_lib_util_getloadavg
=no
9003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9004 LIBS
=$ac_check_lib_save_LIBS
9006 echo "$as_me:9006: result: $ac_cv_lib_util_getloadavg" >&5
9007 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9008 if test $ac_cv_lib_util_getloadavg = yes; then
9009 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9014 if test $ac_have_func = no
; then
9015 # There is a commonly available library for RS/6000 AIX.
9016 # Since it is not a standard part of AIX, it might be installed locally.
9017 ac_getloadavg_LIBS
=$LIBS
9018 LIBS
="-L/usr/local/lib $LIBS"
9019 echo "$as_me:9019: checking for getloadavg in -lgetloadavg" >&5
9020 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9021 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_check_lib_save_LIBS
=$LIBS
9025 LIBS
="-lgetloadavg $LIBS"
9026 cat >conftest.
$ac_ext <<_ACEOF
9027 #line 9027 "configure"
9028 #include "confdefs.h"
9030 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9045 rm -f conftest.
$ac_objext conftest
$ac_exeext
9046 if { (eval echo "$as_me:9046: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>&5
9049 echo "$as_me:9049: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try
='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:9052: \"$ac_try\"") >&5
9055 echo "$as_me:9055: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_lib_getloadavg_getloadavg
=yes
9059 echo "$as_me: failed program was:" >&5
9060 cat conftest.
$ac_ext >&5
9061 ac_cv_lib_getloadavg_getloadavg
=no
9063 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9064 LIBS
=$ac_check_lib_save_LIBS
9066 echo "$as_me:9066: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9067 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9068 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9069 LIBS
="-lgetloadavg $LIBS"
9071 LIBS
=$ac_getloadavg_LIBS
9076 # Make sure it is really in the library, if we think we found it,
9077 # otherwise set up the replacement function.
9079 for ac_func
in getloadavg
9081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082 echo "$as_me:9082: checking for $ac_func" >&5
9083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_var+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 cat >conftest.
$ac_ext <<_ACEOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9090 /* System header to define __stub macros and hopefully few prototypes,
9091 which can conflict with char $ac_func (); below. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9118 rm -f conftest.
$ac_objext conftest
$ac_exeext
9119 if { (eval echo "$as_me:9119: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>&5
9122 echo "$as_me:9122: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try
='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:9125: \"$ac_try\"") >&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 eval "$as_ac_var=yes"
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.
$ac_ext >&5
9134 eval "$as_ac_var=no"
9136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9138 echo "$as_me:9138: result: `eval echo '${'$as_ac_var'}'`" >&5
9139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9140 if test `eval echo '${'$as_ac_var'}'` = yes; then
9141 cat >>confdefs.h
<<EOF
9142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9146 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9148 cat >>confdefs.h
<<\EOF
9149 #define C_GETLOADAVG 1
9152 # Figure out what our getloadavg.c needs.
9154 echo "$as_me:9154: checking for sys/dg_sys_info.h" >&5
9155 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9156 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.
$ac_ext <<_ACEOF
9160 #line 9160 "configure"
9161 #include "confdefs.h"
9162 #include <sys/dg_sys_info.h>
9164 if { (eval echo "$as_me:9164: \"$ac_cpp conftest.$ac_ext\"") >&5
9165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9167 egrep -v '^ *\+' conftest.er1
>conftest.err
9169 cat conftest.err
>&5
9170 echo "$as_me:9170: \$? = $ac_status" >&5
9171 (exit $ac_status); } >/dev
/null
; then
9172 if test -s conftest.err
; then
9173 ac_cpp_err
=$ac_c_preproc_warn_flag
9180 if test -z "$ac_cpp_err"; then
9181 ac_cv_header_sys_dg_sys_info_h
=yes
9183 echo "$as_me: failed program was:" >&5
9184 cat conftest.
$ac_ext >&5
9185 ac_cv_header_sys_dg_sys_info_h
=no
9187 rm -f conftest.err conftest.
$ac_ext
9189 echo "$as_me:9189: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9190 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9191 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9194 cat >>confdefs.h
<<\EOF
9198 echo "$as_me:9198: checking for dg_sys_info in -ldgc" >&5
9199 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9200 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 ac_check_lib_save_LIBS
=$LIBS
9205 cat >conftest.
$ac_ext <<_ACEOF
9206 #line 9206 "configure"
9207 #include "confdefs.h"
9209 /* Override any gcc2 internal prototype to avoid an error. */
9213 /* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215 char dg_sys_info ();
9224 rm -f conftest.
$ac_objext conftest
$ac_exeext
9225 if { (eval echo "$as_me:9225: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>&5
9228 echo "$as_me:9228: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try
='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:9231: \"$ac_try\"") >&5
9234 echo "$as_me:9234: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_lib_dgc_dg_sys_info
=yes
9238 echo "$as_me: failed program was:" >&5
9239 cat conftest.
$ac_ext >&5
9240 ac_cv_lib_dgc_dg_sys_info
=no
9242 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9243 LIBS
=$ac_check_lib_save_LIBS
9245 echo "$as_me:9245: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9246 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9247 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9248 cat >>confdefs.h
<<EOF
9249 #define HAVE_LIBDGC 1
9258 echo "$as_me:9258: checking for locale.h" >&5
9259 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9260 if test "${ac_cv_header_locale_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 cat >conftest.
$ac_ext <<_ACEOF
9264 #line 9264 "configure"
9265 #include "confdefs.h"
9268 if { (eval echo "$as_me:9268: \"$ac_cpp conftest.$ac_ext\"") >&5
9269 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9271 egrep -v '^ *\+' conftest.er1
>conftest.err
9273 cat conftest.err
>&5
9274 echo "$as_me:9274: \$? = $ac_status" >&5
9275 (exit $ac_status); } >/dev
/null
; then
9276 if test -s conftest.err
; then
9277 ac_cpp_err
=$ac_c_preproc_warn_flag
9284 if test -z "$ac_cpp_err"; then
9285 ac_cv_header_locale_h
=yes
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.
$ac_ext >&5
9289 ac_cv_header_locale_h
=no
9291 rm -f conftest.err conftest.
$ac_ext
9293 echo "$as_me:9293: result: $ac_cv_header_locale_h" >&5
9294 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9296 for ac_func
in setlocale
9298 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9299 echo "$as_me:9299: checking for $ac_func" >&5
9300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_var+set}\" = set"; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 cat >conftest.
$ac_ext <<_ACEOF
9305 #line 9305 "configure"
9306 #include "confdefs.h"
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char $ac_func (); below. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9322 /* The GNU C library defines this for functions which it implements
9323 to always fail with ENOSYS. Some functions are actually named
9324 something starting with __ and the normal name is an alias. */
9325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9335 rm -f conftest.
$ac_objext conftest
$ac_exeext
9336 if { (eval echo "$as_me:9336: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>&5
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try
='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:9342: \"$ac_try\"") >&5
9345 echo "$as_me:9345: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 eval "$as_ac_var=yes"
9349 echo "$as_me: failed program was:" >&5
9350 cat conftest.
$ac_ext >&5
9351 eval "$as_ac_var=no"
9353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9355 echo "$as_me:9355: result: `eval echo '${'$as_ac_var'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9357 if test `eval echo '${'$as_ac_var'}'` = yes; then
9358 cat >>confdefs.h
<<EOF
9359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9365 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9366 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9367 # Irix 4.0.5F has the header but not the library.
9368 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9371 cat >>confdefs.h
<<\EOF
9377 if test $ac_have_func = no
; then
9378 echo "$as_me:9378: checking for inq_stats/cpustats.h" >&5
9379 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9380 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 cat >conftest.
$ac_ext <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9386 #include <inq_stats/cpustats.h>
9388 if { (eval echo "$as_me:9388: \"$ac_cpp conftest.$ac_ext\"") >&5
9389 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9391 egrep -v '^ *\+' conftest.er1
>conftest.err
9393 cat conftest.err
>&5
9394 echo "$as_me:9394: \$? = $ac_status" >&5
9395 (exit $ac_status); } >/dev
/null
; then
9396 if test -s conftest.err
; then
9397 ac_cpp_err
=$ac_c_preproc_warn_flag
9404 if test -z "$ac_cpp_err"; then
9405 ac_cv_header_inq_stats_cpustats_h
=yes
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.
$ac_ext >&5
9409 ac_cv_header_inq_stats_cpustats_h
=no
9411 rm -f conftest.err conftest.
$ac_ext
9413 echo "$as_me:9413: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9414 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9415 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9418 cat >>confdefs.h
<<\EOF
9422 cat >>confdefs.h
<<\EOF
9430 if test $ac_have_func = no
; then
9431 echo "$as_me:9431: checking for sys/cpustats.h" >&5
9432 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9433 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 cat >conftest.
$ac_ext <<_ACEOF
9437 #line 9437 "configure"
9438 #include "confdefs.h"
9439 #include <sys/cpustats.h>
9441 if { (eval echo "$as_me:9441: \"$ac_cpp conftest.$ac_ext\"") >&5
9442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9444 egrep -v '^ *\+' conftest.er1
>conftest.err
9446 cat conftest.err
>&5
9447 echo "$as_me:9447: \$? = $ac_status" >&5
9448 (exit $ac_status); } >/dev
/null
; then
9449 if test -s conftest.err
; then
9450 ac_cpp_err
=$ac_c_preproc_warn_flag
9457 if test -z "$ac_cpp_err"; then
9458 ac_cv_header_sys_cpustats_h
=yes
9460 echo "$as_me: failed program was:" >&5
9461 cat conftest.
$ac_ext >&5
9462 ac_cv_header_sys_cpustats_h
=no
9464 rm -f conftest.err conftest.
$ac_ext
9466 echo "$as_me:9466: result: $ac_cv_header_sys_cpustats_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9468 if test $ac_cv_header_sys_cpustats_h = yes; then
9469 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9477 if test $ac_have_func = no
; then
9479 for ac_header
in mach
/mach.h
9481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9482 echo "$as_me:9482: checking for $ac_header" >&5
9483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.
$ac_ext <<_ACEOF
9488 #line 9488 "configure"
9489 #include "confdefs.h"
9490 #include <$ac_header>
9492 if { (eval echo "$as_me:9492: \"$ac_cpp conftest.$ac_ext\"") >&5
9493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9495 egrep -v '^ *\+' conftest.er1
>conftest.err
9497 cat conftest.err
>&5
9498 echo "$as_me:9498: \$? = $ac_status" >&5
9499 (exit $ac_status); } >/dev
/null
; then
9500 if test -s conftest.err
; then
9501 ac_cpp_err
=$ac_c_preproc_warn_flag
9508 if test -z "$ac_cpp_err"; then
9509 eval "$as_ac_Header=yes"
9511 echo "$as_me: failed program was:" >&5
9512 cat conftest.
$ac_ext >&5
9513 eval "$as_ac_Header=no"
9515 rm -f conftest.err conftest.
$ac_ext
9517 echo "$as_me:9517: result: `eval echo '${'$as_ac_Header'}'`" >&5
9518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9520 cat >>confdefs.h
<<EOF
9521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9529 for ac_header
in nlist.h
9531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9532 echo "$as_me:9532: checking for $ac_header" >&5
9533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 cat >conftest.
$ac_ext <<_ACEOF
9538 #line 9538 "configure"
9539 #include "confdefs.h"
9540 #include <$ac_header>
9542 if { (eval echo "$as_me:9542: \"$ac_cpp conftest.$ac_ext\"") >&5
9543 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9545 egrep -v '^ *\+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit $ac_status); } >/dev
/null
; then
9550 if test -s conftest.err
; then
9551 ac_cpp_err
=$ac_c_preproc_warn_flag
9558 if test -z "$ac_cpp_err"; then
9559 eval "$as_ac_Header=yes"
9561 echo "$as_me: failed program was:" >&5
9562 cat conftest.
$ac_ext >&5
9563 eval "$as_ac_Header=no"
9565 rm -f conftest.err conftest.
$ac_ext
9567 echo "$as_me:9567: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570 cat >>confdefs.h
<<EOF
9571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9573 echo "$as_me:9573: checking for struct nlist.n_un.n_name" >&5
9574 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9575 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 cat >conftest.
$ac_ext <<_ACEOF
9579 #line 9579 "configure"
9580 #include "confdefs.h"
9586 static struct nlist ac_aggr;
9587 if (ac_aggr.n_un.n_name)
9593 rm -f conftest.
$ac_objext
9594 if { (eval echo "$as_me:9594: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try
='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:9600: \"$ac_try\"") >&5
9603 echo "$as_me:9603: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_cv_member_struct_nlist_n_un_n_name
=yes
9607 echo "$as_me: failed program was:" >&5
9608 cat conftest.
$ac_ext >&5
9609 ac_cv_member_struct_nlist_n_un_n_name
=no
9611 rm -f conftest.
$ac_objext conftest.
$ac_ext
9613 echo "$as_me:9613: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9614 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9615 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9617 cat >>confdefs.h
<<EOF
9618 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9621 cat >>confdefs.h
<<\EOF
9622 #define NLIST_NAME_UNION 1
9633 # Some definitions of getloadavg require that the program be installed setgid.
9634 echo "$as_me:9634: checking whether getloadavg requires setgid" >&5
9635 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9636 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 cat >conftest.
$ac_ext <<_ACEOF
9640 #line 9640 "configure"
9641 #include "confdefs.h"
9642 #include "$srcdir/getloadavg.c"
9643 #ifdef LDAV_PRIVILEGED
9644 Yowza Am I SETGID yet
9647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9648 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9649 ac_cv_func_getloadavg_setgid
=yes
9651 ac_cv_func_getloadavg_setgid
=no
9656 echo "$as_me:9656: result: $ac_cv_func_getloadavg_setgid" >&5
9657 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9658 if test $ac_cv_func_getloadavg_setgid = yes; then
9661 cat >>confdefs.h
<<\EOF
9662 #define GETLOADAVG_PRIVILEGED 1
9669 if test $ac_cv_func_getloadavg_setgid = yes; then
9670 echo "$as_me:9670: checking group of /dev/kmem" >&5
9671 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9672 if test "${ac_cv_group_kmem+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9676 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9677 # If we got an error (system does not support symlinks), try without -L.
9678 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9679 ac_cv_group_kmem
=`echo $ac_ls_output \
9680 | sed -ne 's/[ ][ ]*/ /g;
9681 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9685 echo "$as_me:9685: result: $ac_cv_group_kmem" >&5
9686 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9687 KMEM_GROUP
=$ac_cv_group_kmem
9689 if test "x$ac_save_LIBS" = x
; then
9690 GETLOADAVG_LIBS
=$LIBS
9692 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9696 echo "$as_me:9696: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9697 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9698 if test "${ac_cv_sys_largefile_source+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 ac_cv_sys_largefile_source
=no
9703 cat >conftest.
$ac_ext <<_ACEOF
9704 #line 9704 "configure"
9705 #include "confdefs.h"
9715 rm -f conftest.
$ac_objext
9716 if { (eval echo "$as_me:9716: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:9722: \"$ac_try\"") >&5
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.
$ac_ext >&5
9732 rm -f conftest.
$ac_objext conftest.
$ac_ext
9733 cat >conftest.
$ac_ext <<_ACEOF
9734 #line 9734 "configure"
9735 #include "confdefs.h"
9736 #define _LARGEFILE_SOURCE 1
9746 rm -f conftest.
$ac_objext
9747 if { (eval echo "$as_me:9747: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9750 echo "$as_me:9750: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try
='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:9753: \"$ac_try\"") >&5
9756 echo "$as_me:9756: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_sys_largefile_source
=1; break
9760 echo "$as_me: failed program was:" >&5
9761 cat conftest.
$ac_ext >&5
9763 rm -f conftest.
$ac_objext conftest.
$ac_ext
9767 echo "$as_me:9767: result: $ac_cv_sys_largefile_source" >&5
9768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9769 if test "$ac_cv_sys_largefile_source" != no
; then
9771 cat >>confdefs.h
<<EOF
9772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9779 # in glibc 2.1.3, but that breaks too many other things.
9780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9781 echo "$as_me:9781: checking for fseeko" >&5
9782 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9783 if test "${ac_cv_func_fseeko+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.
$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9793 return fseeko && fseeko (stdin, 0, 0);
9798 rm -f conftest.
$ac_objext conftest
$ac_exeext
9799 if { (eval echo "$as_me:9799: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try
='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_func_fseeko
=yes
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.
$ac_ext >&5
9814 ac_cv_func_fseeko
=no
9816 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9818 echo "$as_me:9818: result: $ac_cv_func_fseeko" >&5
9819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9820 if test $ac_cv_func_fseeko = yes; then
9822 cat >>confdefs.h
<<\EOF
9823 #define HAVE_FSEEKO 1
9830 for ac_func
in grantpt
9832 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9833 echo "$as_me:9833: checking for $ac_func" >&5
9834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_var+set}\" = set"; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 cat >conftest.
$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9841 /* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char $ac_func (); below. */
9844 /* Override any gcc2 internal prototype to avoid an error. */
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9869 rm -f conftest.
$ac_objext conftest
$ac_exeext
9870 if { (eval echo "$as_me:9870: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try
='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:9876: \"$ac_try\"") >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_var=yes"
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.
$ac_ext >&5
9885 eval "$as_ac_var=no"
9887 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9889 echo "$as_me:9889: result: `eval echo '${'$as_ac_var'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h
<<EOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9899 # PTY-related GNU extensions.
9901 for ac_func
in getpt
9903 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904 echo "$as_me:9904: checking for $ac_func" >&5
9905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9906 if eval "test \"\${$as_ac_var+set}\" = set"; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 cat >conftest.
$ac_ext <<_ACEOF
9910 #line 9910 "configure"
9911 #include "confdefs.h"
9912 /* System header to define __stub macros and hopefully few prototypes,
9913 which can conflict with char $ac_func (); below. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9940 rm -f conftest.
$ac_objext conftest
$ac_exeext
9941 if { (eval echo "$as_me:9941: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>&5
9944 echo "$as_me:9944: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try
='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:9947: \"$ac_try\"") >&5
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 eval "$as_ac_var=yes"
9954 echo "$as_me: failed program was:" >&5
9955 cat conftest.
$ac_ext >&5
9956 eval "$as_ac_var=no"
9958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9960 echo "$as_me:9960: result: `eval echo '${'$as_ac_var'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h
<<EOF
9964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 # Check this now, so that we will NOT find the above functions in ncurses.
9971 # That is because we have not set up to link ncurses in lib-src.
9972 # It's better to believe a function is not available
9973 # than to expect to find it in ncurses.
9975 echo "$as_me:9975: checking for tparm in -lncurses" >&5
9976 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9977 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_check_lib_save_LIBS
=$LIBS
9981 LIBS
="-lncurses $LIBS"
9982 cat >conftest.
$ac_ext <<_ACEOF
9983 #line 9983 "configure"
9984 #include "confdefs.h"
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.
$ac_objext conftest
$ac_exeext
10002 if { (eval echo "$as_me:10002: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:10005: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try
='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:10008: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:10011: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_lib_ncurses_tparm
=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.
$ac_ext >&5
10017 ac_cv_lib_ncurses_tparm
=no
10019 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10020 LIBS
=$ac_check_lib_save_LIBS
10022 echo "$as_me:10022: result: $ac_cv_lib_ncurses_tparm" >&5
10023 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10024 if test $ac_cv_lib_ncurses_tparm = yes; then
10025 cat >>confdefs.h
<<EOF
10026 #define HAVE_LIBNCURSES 1
10029 LIBS
="-lncurses $LIBS"
10033 # Do we need the Hesiod library to provide the support routines?
10034 if test "$with_hesiod" = yes ; then
10035 # Don't set $LIBS here -- see comments above.
10037 echo "$as_me:10037: checking for res_send" >&5
10038 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10039 if test "${ac_cv_func_res_send+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.
$ac_ext <<_ACEOF
10043 #line 10043 "configure"
10044 #include "confdefs.h"
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char res_send (); below. */
10047 #include <assert.h>
10048 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_res_send) || defined (__stub___res_send)
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:10074: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try
='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:10080: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:10083: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_func_res_send
=yes
10087 echo "$as_me: failed program was:" >&5
10088 cat conftest.
$ac_ext >&5
10089 ac_cv_func_res_send
=no
10091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10093 echo "$as_me:10093: result: $ac_cv_func_res_send" >&5
10094 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10095 if test $ac_cv_func_res_send = yes; then
10098 echo "$as_me:10098: checking for __res_send" >&5
10099 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10100 if test "${ac_cv_func___res_send+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.
$ac_ext <<_ACEOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char __res_send (); below. */
10108 #include <assert.h>
10109 /* Override any gcc2 internal prototype to avoid an error. */
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10115 char __res_send ();
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub___res_send) || defined (__stub_____res_send)
10134 rm -f conftest.
$ac_objext conftest
$ac_exeext
10135 if { (eval echo "$as_me:10135: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>&5
10138 echo "$as_me:10138: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try
='test -s conftest$ac_exeext'
10141 { (eval echo "$as_me:10141: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:10144: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_func___res_send
=yes
10148 echo "$as_me: failed program was:" >&5
10149 cat conftest.
$ac_ext >&5
10150 ac_cv_func___res_send
=no
10152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10154 echo "$as_me:10154: result: $ac_cv_func___res_send" >&5
10155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10156 if test $ac_cv_func___res_send = yes; then
10159 echo "$as_me:10159: checking for res_send in -lresolv" >&5
10160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 ac_check_lib_save_LIBS
=$LIBS
10165 LIBS
="-lresolv $LIBS"
10166 cat >conftest.
$ac_ext <<_ACEOF
10167 #line 10167 "configure"
10168 #include "confdefs.h"
10170 /* Override any gcc2 internal prototype to avoid an error. */
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10185 rm -f conftest.
$ac_objext conftest
$ac_exeext
10186 if { (eval echo "$as_me:10186: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>&5
10189 echo "$as_me:10189: \$? = $ac_status" >&5
10190 (exit $ac_status); } &&
10191 { ac_try
='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:10192: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_lib_resolv_res_send
=yes
10199 echo "$as_me: failed program was:" >&5
10200 cat conftest.
$ac_ext >&5
10201 ac_cv_lib_resolv_res_send
=no
10203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10204 LIBS
=$ac_check_lib_save_LIBS
10206 echo "$as_me:10206: result: $ac_cv_lib_resolv_res_send" >&5
10207 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10208 if test $ac_cv_lib_resolv_res_send = yes; then
10211 echo "$as_me:10211: checking for __res_send in -lresolv" >&5
10212 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10213 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS
=$LIBS
10217 LIBS
="-lresolv $LIBS"
10218 cat >conftest.
$ac_ext <<_ACEOF
10219 #line 10219 "configure"
10220 #include "confdefs.h"
10222 /* Override any gcc2 internal prototype to avoid an error. */
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char __res_send ();
10237 rm -f conftest.
$ac_objext conftest
$ac_exeext
10238 if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try
='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_resolv___res_send
=yes
10251 echo "$as_me: failed program was:" >&5
10252 cat conftest.
$ac_ext >&5
10253 ac_cv_lib_resolv___res_send
=no
10255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10256 LIBS
=$ac_check_lib_save_LIBS
10258 echo "$as_me:10258: result: $ac_cv_lib_resolv___res_send" >&5
10259 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10260 if test $ac_cv_lib_resolv___res_send = yes; then
10270 if test "$resolv" = yes ; then
10272 cat >>confdefs.h
<<\EOF
10273 #define HAVE_LIBRESOLV 1
10279 echo "$as_me:10279: checking for hes_getmailhost" >&5
10280 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10281 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 cat >conftest.
$ac_ext <<_ACEOF
10285 #line 10285 "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char hes_getmailhost (); below. */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10296 char hes_getmailhost ();
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10308 f = hes_getmailhost;
10315 rm -f conftest.
$ac_objext conftest
$ac_exeext
10316 if { (eval echo "$as_me:10316: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>&5
10319 echo "$as_me:10319: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try
='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:10322: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 ac_cv_func_hes_getmailhost
=yes
10329 echo "$as_me: failed program was:" >&5
10330 cat conftest.
$ac_ext >&5
10331 ac_cv_func_hes_getmailhost
=no
10333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10335 echo "$as_me:10335: result: $ac_cv_func_hes_getmailhost" >&5
10336 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10337 if test $ac_cv_func_hes_getmailhost = yes; then
10340 echo "$as_me:10340: checking for hes_getmailhost in -lhesiod" >&5
10341 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10342 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 ac_check_lib_save_LIBS
=$LIBS
10346 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10347 cat >conftest.
$ac_ext <<_ACEOF
10348 #line 10348 "configure"
10349 #include "confdefs.h"
10351 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char hes_getmailhost ();
10361 hes_getmailhost ();
10366 rm -f conftest.
$ac_objext conftest
$ac_exeext
10367 if { (eval echo "$as_me:10367: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10370 echo "$as_me:10370: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try
='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:10373: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 echo "$as_me:10376: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_lib_hesiod_hes_getmailhost
=yes
10380 echo "$as_me: failed program was:" >&5
10381 cat conftest.
$ac_ext >&5
10382 ac_cv_lib_hesiod_hes_getmailhost
=no
10384 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10385 LIBS
=$ac_check_lib_save_LIBS
10387 echo "$as_me:10387: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10388 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10389 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10390 cat >>confdefs.h
<<\EOF
10391 #define HAVE_LIBHESIOD 1
10402 # These tell us which Kerberos-related libraries to use.
10403 if test "${with_kerberos+set}" = set; then
10405 echo "$as_me:10405: checking for com_err in -lcom_err" >&5
10406 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10407 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 ac_check_lib_save_LIBS
=$LIBS
10411 LIBS
="-lcom_err $LIBS"
10412 cat >conftest.
$ac_ext <<_ACEOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10416 /* Override any gcc2 internal prototype to avoid an error. */
10420 /* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10431 rm -f conftest.
$ac_objext conftest
$ac_exeext
10432 if { (eval echo "$as_me:10432: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10435 echo "$as_me:10435: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -s conftest$ac_exeext'
10438 { (eval echo "$as_me:10438: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_lib_com_err_com_err
=yes
10445 echo "$as_me: failed program was:" >&5
10446 cat conftest.
$ac_ext >&5
10447 ac_cv_lib_com_err_com_err
=no
10449 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10450 LIBS
=$ac_check_lib_save_LIBS
10452 echo "$as_me:10452: result: $ac_cv_lib_com_err_com_err" >&5
10453 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10454 if test $ac_cv_lib_com_err_com_err = yes; then
10455 cat >>confdefs.h
<<EOF
10456 #define HAVE_LIBCOM_ERR 1
10459 LIBS
="-lcom_err $LIBS"
10463 echo "$as_me:10463: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10464 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10465 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 ac_check_lib_save_LIBS
=$LIBS
10469 LIBS
="-lk5crypto $LIBS"
10470 cat >conftest.
$ac_ext <<_ACEOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10474 /* Override any gcc2 internal prototype to avoid an error. */
10478 /* We use char because int might match the return type of a gcc2
10479 builtin and then its argument prototype would still apply. */
10480 char mit_des_cbc_encrypt ();
10484 mit_des_cbc_encrypt ();
10489 rm -f conftest.
$ac_objext conftest
$ac_exeext
10490 if { (eval echo "$as_me:10490: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>&5
10493 echo "$as_me:10493: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try
='test -s conftest$ac_exeext'
10496 { (eval echo "$as_me:10496: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10503 echo "$as_me: failed program was:" >&5
10504 cat conftest.
$ac_ext >&5
10505 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10508 LIBS
=$ac_check_lib_save_LIBS
10510 echo "$as_me:10510: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10511 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10512 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10513 cat >>confdefs.h
<<EOF
10514 #define HAVE_LIBK5CRYPTO 1
10517 LIBS
="-lk5crypto $LIBS"
10521 echo "$as_me:10521: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10522 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10523 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 ac_check_lib_save_LIBS
=$LIBS
10527 LIBS
="-lcrypto $LIBS"
10528 cat >conftest.
$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10532 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char mit_des_cbc_encrypt ();
10542 mit_des_cbc_encrypt ();
10547 rm -f conftest.
$ac_objext conftest
$ac_exeext
10548 if { (eval echo "$as_me:10548: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>&5
10551 echo "$as_me:10551: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try
='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:10554: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:10557: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10561 echo "$as_me: failed program was:" >&5
10562 cat conftest.
$ac_ext >&5
10563 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10565 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10566 LIBS
=$ac_check_lib_save_LIBS
10568 echo "$as_me:10568: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10569 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10570 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10571 cat >>confdefs.h
<<EOF
10572 #define HAVE_LIBCRYPTO 1
10575 LIBS
="-lcrypto $LIBS"
10579 echo "$as_me:10579: checking for krb5_init_context in -lkrb5" >&5
10580 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10581 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 ac_check_lib_save_LIBS
=$LIBS
10585 LIBS
="-lkrb5 $LIBS"
10586 cat >conftest.
$ac_ext <<_ACEOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10590 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char krb5_init_context ();
10600 krb5_init_context ();
10605 rm -f conftest.
$ac_objext conftest
$ac_exeext
10606 if { (eval echo "$as_me:10606: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try
='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_krb5_krb5_init_context
=yes
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.
$ac_ext >&5
10621 ac_cv_lib_krb5_krb5_init_context
=no
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10624 LIBS
=$ac_check_lib_save_LIBS
10626 echo "$as_me:10626: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10627 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10628 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10629 cat >>confdefs.h
<<EOF
10630 #define HAVE_LIBKRB5 1
10633 LIBS
="-lkrb5 $LIBS"
10637 if test "${with_kerberos5+set}" != set; then
10639 echo "$as_me:10639: checking for des_cbc_encrypt in -ldes425" >&5
10640 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10641 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 ac_check_lib_save_LIBS
=$LIBS
10645 LIBS
="-ldes425 $LIBS"
10646 cat >conftest.
$ac_ext <<_ACEOF
10647 #line 10647 "configure"
10648 #include "confdefs.h"
10650 /* Override any gcc2 internal prototype to avoid an error. */
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char des_cbc_encrypt ();
10660 des_cbc_encrypt ();
10665 rm -f conftest.
$ac_objext conftest
$ac_exeext
10666 if { (eval echo "$as_me:10666: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:10669: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try
='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:10672: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:10675: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_des425_des_cbc_encrypt
=yes
10679 echo "$as_me: failed program was:" >&5
10680 cat conftest.
$ac_ext >&5
10681 ac_cv_lib_des425_des_cbc_encrypt
=no
10683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10684 LIBS
=$ac_check_lib_save_LIBS
10686 echo "$as_me:10686: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10687 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10688 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10689 cat >>confdefs.h
<<EOF
10690 #define HAVE_LIBDES425 1
10693 LIBS
="-ldes425 $LIBS"
10697 echo "$as_me:10697: checking for des_cbc_encrypt in -ldes" >&5
10698 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10699 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_check_lib_save_LIBS
=$LIBS
10704 cat >conftest.
$ac_ext <<_ACEOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10708 /* Override any gcc2 internal prototype to avoid an error. */
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char des_cbc_encrypt ();
10718 des_cbc_encrypt ();
10723 rm -f conftest.
$ac_objext conftest
$ac_exeext
10724 if { (eval echo "$as_me:10724: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try
='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:10730: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_lib_des_des_cbc_encrypt
=yes
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.
$ac_ext >&5
10739 ac_cv_lib_des_des_cbc_encrypt
=no
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10742 LIBS
=$ac_check_lib_save_LIBS
10744 echo "$as_me:10744: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10745 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10746 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10747 cat >>confdefs.h
<<EOF
10748 #define HAVE_LIBDES 1
10757 echo "$as_me:10757: checking for krb_get_cred in -lkrb4" >&5
10758 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10759 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 ac_check_lib_save_LIBS
=$LIBS
10763 LIBS
="-lkrb4 $LIBS"
10764 cat >conftest.
$ac_ext <<_ACEOF
10765 #line 10765 "configure"
10766 #include "confdefs.h"
10768 /* Override any gcc2 internal prototype to avoid an error. */
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10774 char krb_get_cred ();
10783 rm -f conftest.
$ac_objext conftest
$ac_exeext
10784 if { (eval echo "$as_me:10784: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10787 echo "$as_me:10787: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try
='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_krb4_krb_get_cred
=yes
10797 echo "$as_me: failed program was:" >&5
10798 cat conftest.
$ac_ext >&5
10799 ac_cv_lib_krb4_krb_get_cred
=no
10801 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10802 LIBS
=$ac_check_lib_save_LIBS
10804 echo "$as_me:10804: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10805 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10806 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10807 cat >>confdefs.h
<<EOF
10808 #define HAVE_LIBKRB4 1
10811 LIBS
="-lkrb4 $LIBS"
10815 echo "$as_me:10815: checking for krb_get_cred in -lkrb" >&5
10816 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10817 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 ac_check_lib_save_LIBS
=$LIBS
10822 cat >conftest.
$ac_ext <<_ACEOF
10823 #line 10823 "configure"
10824 #include "confdefs.h"
10826 /* Override any gcc2 internal prototype to avoid an error. */
10830 /* We use char because int might match the return type of a gcc2
10831 builtin and then its argument prototype would still apply. */
10832 char krb_get_cred ();
10841 rm -f conftest.
$ac_objext conftest
$ac_exeext
10842 if { (eval echo "$as_me:10842: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>&5
10845 echo "$as_me:10845: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try
='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:10848: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:10851: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_cv_lib_krb_krb_get_cred
=yes
10855 echo "$as_me: failed program was:" >&5
10856 cat conftest.
$ac_ext >&5
10857 ac_cv_lib_krb_krb_get_cred
=no
10859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10860 LIBS
=$ac_check_lib_save_LIBS
10862 echo "$as_me:10862: result: $ac_cv_lib_krb_krb_get_cred" >&5
10863 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10864 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10865 cat >>confdefs.h
<<EOF
10866 #define HAVE_LIBKRB 1
10877 if test "${with_kerberos5+set}" = set; then
10879 for ac_header
in krb5.h
10881 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10882 echo "$as_me:10882: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.
$ac_ext <<_ACEOF
10888 #line 10888 "configure"
10889 #include "confdefs.h"
10890 #include <$ac_header>
10892 if { (eval echo "$as_me:10892: \"$ac_cpp conftest.$ac_ext\"") >&5
10893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10895 egrep -v '^ *\+' conftest.er1
>conftest.err
10897 cat conftest.err
>&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev
/null
; then
10900 if test -s conftest.err
; then
10901 ac_cpp_err
=$ac_c_preproc_warn_flag
10908 if test -z "$ac_cpp_err"; then
10909 eval "$as_ac_Header=yes"
10911 echo "$as_me: failed program was:" >&5
10912 cat conftest.
$ac_ext >&5
10913 eval "$as_ac_Header=no"
10915 rm -f conftest.err conftest.
$ac_ext
10917 echo "$as_me:10917: result: `eval echo '${'$as_ac_Header'}'`" >&5
10918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10920 cat >>confdefs.h
<<EOF
10921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10929 for ac_header
in des.h
10931 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10932 echo "$as_me:10932: checking for $ac_header" >&5
10933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 cat >conftest.
$ac_ext <<_ACEOF
10938 #line 10938 "configure"
10939 #include "confdefs.h"
10940 #include <$ac_header>
10942 if { (eval echo "$as_me:10942: \"$ac_cpp conftest.$ac_ext\"") >&5
10943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10945 egrep -v '^ *\+' conftest.er1
>conftest.err
10947 cat conftest.err
>&5
10948 echo "$as_me:10948: \$? = $ac_status" >&5
10949 (exit $ac_status); } >/dev
/null
; then
10950 if test -s conftest.err
; then
10951 ac_cpp_err
=$ac_c_preproc_warn_flag
10958 if test -z "$ac_cpp_err"; then
10959 eval "$as_ac_Header=yes"
10961 echo "$as_me: failed program was:" >&5
10962 cat conftest.
$ac_ext >&5
10963 eval "$as_ac_Header=no"
10965 rm -f conftest.err conftest.
$ac_ext
10967 echo "$as_me:10967: result: `eval echo '${'$as_ac_Header'}'`" >&5
10968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10970 cat >>confdefs.h
<<EOF
10971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10976 for ac_header
in kerberosIV
/des.h
10978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 echo "$as_me:10979: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 cat >conftest.
$ac_ext <<_ACEOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10987 #include <$ac_header>
10989 if { (eval echo "$as_me:10989: \"$ac_cpp conftest.$ac_ext\"") >&5
10990 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10992 egrep -v '^ *\+' conftest.er1
>conftest.err
10994 cat conftest.err
>&5
10995 echo "$as_me:10995: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev
/null
; then
10997 if test -s conftest.err
; then
10998 ac_cpp_err
=$ac_c_preproc_warn_flag
11005 if test -z "$ac_cpp_err"; then
11006 eval "$as_ac_Header=yes"
11008 echo "$as_me: failed program was:" >&5
11009 cat conftest.
$ac_ext >&5
11010 eval "$as_ac_Header=no"
11012 rm -f conftest.err conftest.
$ac_ext
11014 echo "$as_me:11014: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11017 cat >>confdefs.h
<<EOF
11018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 for ac_header
in kerberos
/des.h
11025 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 echo "$as_me:11026: checking for $ac_header" >&5
11027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 cat >conftest.
$ac_ext <<_ACEOF
11032 #line 11032 "configure"
11033 #include "confdefs.h"
11034 #include <$ac_header>
11036 if { (eval echo "$as_me:11036: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11039 egrep -v '^ *\+' conftest.er1
>conftest.err
11041 cat conftest.err
>&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev
/null
; then
11044 if test -s conftest.err
; then
11045 ac_cpp_err
=$ac_c_preproc_warn_flag
11052 if test -z "$ac_cpp_err"; then
11053 eval "$as_ac_Header=yes"
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.
$ac_ext >&5
11057 eval "$as_ac_Header=no"
11059 rm -f conftest.err conftest.
$ac_ext
11061 echo "$as_me:11061: result: `eval echo '${'$as_ac_Header'}'`" >&5
11062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h
<<EOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11077 for ac_header
in krb.h
11079 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11080 echo "$as_me:11080: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cat >conftest.
$ac_ext <<_ACEOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11088 #include <$ac_header>
11090 if { (eval echo "$as_me:11090: \"$ac_cpp conftest.$ac_ext\"") >&5
11091 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11093 egrep -v '^ *\+' conftest.er1
>conftest.err
11095 cat conftest.err
>&5
11096 echo "$as_me:11096: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev
/null
; then
11098 if test -s conftest.err
; then
11099 ac_cpp_err
=$ac_c_preproc_warn_flag
11106 if test -z "$ac_cpp_err"; then
11107 eval "$as_ac_Header=yes"
11109 echo "$as_me: failed program was:" >&5
11110 cat conftest.
$ac_ext >&5
11111 eval "$as_ac_Header=no"
11113 rm -f conftest.err conftest.
$ac_ext
11115 echo "$as_me:11115: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11118 cat >>confdefs.h
<<EOF
11119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11124 for ac_header
in kerberosIV
/krb.h
11126 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 echo "$as_me:11127: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.
$ac_ext <<_ACEOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <$ac_header>
11137 if { (eval echo "$as_me:11137: \"$ac_cpp conftest.$ac_ext\"") >&5
11138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11140 egrep -v '^ *\+' conftest.er1
>conftest.err
11142 cat conftest.err
>&5
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); } >/dev
/null
; then
11145 if test -s conftest.err
; then
11146 ac_cpp_err
=$ac_c_preproc_warn_flag
11153 if test -z "$ac_cpp_err"; then
11154 eval "$as_ac_Header=yes"
11156 echo "$as_me: failed program was:" >&5
11157 cat conftest.
$ac_ext >&5
11158 eval "$as_ac_Header=no"
11160 rm -f conftest.err conftest.
$ac_ext
11162 echo "$as_me:11162: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165 cat >>confdefs.h
<<EOF
11166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11171 for ac_header
in kerberos
/krb.h
11173 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 echo "$as_me:11174: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.
$ac_ext <<_ACEOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182 #include <$ac_header>
11184 if { (eval echo "$as_me:11184: \"$ac_cpp conftest.$ac_ext\"") >&5
11185 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11187 egrep -v '^ *\+' conftest.er1
>conftest.err
11189 cat conftest.err
>&5
11190 echo "$as_me:11190: \$? = $ac_status" >&5
11191 (exit $ac_status); } >/dev
/null
; then
11192 if test -s conftest.err
; then
11193 ac_cpp_err
=$ac_c_preproc_warn_flag
11200 if test -z "$ac_cpp_err"; then
11201 eval "$as_ac_Header=yes"
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.
$ac_ext >&5
11205 eval "$as_ac_Header=no"
11207 rm -f conftest.err conftest.
$ac_ext
11209 echo "$as_me:11209: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212 cat >>confdefs.h
<<EOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11227 for ac_header
in com_err.h
11229 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:11230: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.
$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 #include <$ac_header>
11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11243 egrep -v '^ *\+' conftest.er1
>conftest.err
11245 cat conftest.err
>&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev
/null
; then
11248 if test -s conftest.err
; then
11249 ac_cpp_err
=$ac_c_preproc_warn_flag
11256 if test -z "$ac_cpp_err"; then
11257 eval "$as_ac_Header=yes"
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.
$ac_ext >&5
11261 eval "$as_ac_Header=no"
11263 rm -f conftest.err conftest.
$ac_ext
11265 echo "$as_me:11265: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268 cat >>confdefs.h
<<EOF
11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277 # Solaris requires -lintl if you want strerror (which calls dgettext)
11278 # to return localized messages.
11280 echo "$as_me:11280: checking for dgettext in -lintl" >&5
11281 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11282 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_check_lib_save_LIBS
=$LIBS
11286 LIBS
="-lintl $LIBS"
11287 cat >conftest.
$ac_ext <<_ACEOF
11288 #line 11288 "configure"
11289 #include "confdefs.h"
11291 /* Override any gcc2 internal prototype to avoid an error. */
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11306 rm -f conftest.
$ac_objext conftest
$ac_exeext
11307 if { (eval echo "$as_me:11307: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try
='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:11313: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_lib_intl_dgettext
=yes
11320 echo "$as_me: failed program was:" >&5
11321 cat conftest.
$ac_ext >&5
11322 ac_cv_lib_intl_dgettext
=no
11324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11325 LIBS
=$ac_check_lib_save_LIBS
11327 echo "$as_me:11327: result: $ac_cv_lib_intl_dgettext" >&5
11328 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11329 if test $ac_cv_lib_intl_dgettext = yes; then
11330 cat >>confdefs.h
<<EOF
11331 #define HAVE_LIBINTL 1
11334 LIBS
="-lintl $LIBS"
11338 echo "$as_me:11338: checking whether localtime caches TZ" >&5
11339 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11340 if test "${emacs_cv_localtime_cache+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 if test x
$ac_cv_func_tzset = xyes
; then
11344 if test "$cross_compiling" = yes; then
11345 # If we have tzset, assume the worst when cross-compiling.
11346 emacs_cv_localtime_cache
=yes
11348 cat >conftest.
$ac_ext <<_ACEOF
11349 #line 11349 "configure"
11350 #include "confdefs.h"
11352 extern char **environ;
11356 for (to = from = environ; (*to = *from); from++)
11357 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11360 char TZ_GMT0[] = "TZ=GMT0";
11361 char TZ_PST8[] = "TZ=PST8";
11364 time_t now = time ((time_t *) 0);
11365 int hour_GMT0, hour_unset;
11366 if (putenv (TZ_GMT0) != 0)
11368 hour_GMT0 = localtime (&now)->tm_hour;
11370 hour_unset = localtime (&now)->tm_hour;
11371 if (putenv (TZ_PST8) != 0)
11373 if (localtime (&now)->tm_hour == hour_GMT0)
11376 if (localtime (&now)->tm_hour != hour_unset)
11381 rm -f conftest
$ac_exeext
11382 if { (eval echo "$as_me:11382: \"$ac_link\"") >&5
11383 (eval $ac_link) 2>&5
11385 echo "$as_me:11385: \$? = $ac_status" >&5
11386 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11387 { (eval echo "$as_me:11387: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:11390: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 emacs_cv_localtime_cache
=no
11394 echo "$as_me: program exited with status $ac_status" >&5
11395 echo "$as_me: failed program was:" >&5
11396 cat conftest.
$ac_ext >&5
11397 emacs_cv_localtime_cache
=yes
11399 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11402 # If we lack tzset, report that localtime does not cache TZ,
11403 # since we can't invalidate the cache if we don't have tzset.
11404 emacs_cv_localtime_cache
=no
11407 echo "$as_me:11407: result: $emacs_cv_localtime_cache" >&5
11408 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11409 if test $emacs_cv_localtime_cache = yes; then
11410 cat >>confdefs.h
<<\EOF
11411 #define LOCALTIME_CACHE 1
11416 if test "x$HAVE_TIMEVAL" = xyes
; then
11418 for ac_func
in gettimeofday
11420 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:11421: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 cat >conftest.
$ac_ext <<_ACEOF
11427 #line 11427 "configure"
11428 #include "confdefs.h"
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below. */
11431 #include <assert.h>
11432 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11457 rm -f conftest.
$ac_objext conftest
$ac_exeext
11458 if { (eval echo "$as_me:11458: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>&5
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try
='test -s conftest$ac_exeext'
11464 { (eval echo "$as_me:11464: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:11467: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11471 echo "$as_me: failed program was:" >&5
11472 cat conftest.
$ac_ext >&5
11473 eval "$as_ac_var=no"
11475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11477 echo "$as_me:11477: result: `eval echo '${'$as_ac_var'}'`" >&5
11478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11479 if test `eval echo '${'$as_ac_var'}'` = yes; then
11480 cat >>confdefs.h
<<EOF
11481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11487 echo "$as_me:11487: checking whether gettimeofday can accept two arguments" >&5
11488 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11489 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.
$ac_ext <<_ACEOF
11493 #line 11493 "configure"
11494 #include "confdefs.h"
11496 #ifdef TIME_WITH_SYS_TIME
11497 #include <sys/time.h>
11500 #ifdef HAVE_SYS_TIME_H
11501 #include <sys/time.h>
11509 struct timeval time;
11510 gettimeofday (&time, 0);
11515 rm -f conftest.
$ac_objext
11516 if { (eval echo "$as_me:11516: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>&5
11519 echo "$as_me:11519: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try
='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:11522: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:11525: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 emacs_cv_gettimeofday_two_arguments
=yes
11529 echo "$as_me: failed program was:" >&5
11530 cat conftest.
$ac_ext >&5
11531 emacs_cv_gettimeofday_two_arguments
=no
11533 rm -f conftest.
$ac_objext conftest.
$ac_ext
11535 echo "$as_me:11535: result: $emacs_cv_gettimeofday_two_arguments" >&5
11536 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11537 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11538 cat >>confdefs.h
<<\EOF
11539 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11545 if test "$ac_cv_func_gettimeofday" = yes; then
11546 echo "$as_me:11546: checking for struct timezone" >&5
11547 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11548 if test "${emacs_cv_struct_timezone+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 cat >conftest.
$ac_ext <<_ACEOF
11552 #line 11552 "configure"
11553 #include "confdefs.h"
11554 #include <sys/time.h>
11558 struct timezone tz;
11563 rm -f conftest.
$ac_objext
11564 if { (eval echo "$as_me:11564: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>&5
11567 echo "$as_me:11567: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try
='test -s conftest.$ac_objext'
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 if test "$cross_compiling" = yes; then
11576 emacs_cv_struct_timezone
=yes
11578 cat >conftest.
$ac_ext <<_ACEOF
11579 #line 11579 "configure"
11580 #include "confdefs.h"
11582 #ifdef TIME_WITH_SYS_TIME
11583 #include <sys/time.h>
11586 #ifdef HAVE_SYS_TIME_H
11587 #include <sys/time.h>
11593 struct timeval time;
11594 struct timezone dummy;
11595 exit (gettimeofday (&time, &dummy));
11598 rm -f conftest
$ac_exeext
11599 if { (eval echo "$as_me:11599: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>&5
11602 echo "$as_me:11602: \$? = $ac_status" >&5
11603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11604 { (eval echo "$as_me:11604: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 emacs_cv_struct_timezone
=yes
11611 echo "$as_me: program exited with status $ac_status" >&5
11612 echo "$as_me: failed program was:" >&5
11613 cat conftest.
$ac_ext >&5
11614 emacs_cv_struct_timezone
=no
11616 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11619 echo "$as_me: failed program was:" >&5
11620 cat conftest.
$ac_ext >&5
11621 emacs_cv_struct_timezone
=no
11623 rm -f conftest.
$ac_objext conftest.
$ac_ext
11625 echo "$as_me:11625: result: $emacs_cv_struct_timezone" >&5
11626 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11630 echo "$as_me:11630: checking for socket" >&5
11631 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11632 if test "${ac_cv_func_socket+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 cat >conftest.
$ac_ext <<_ACEOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11638 /* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char socket (); below. */
11640 #include <assert.h>
11641 /* Override any gcc2 internal prototype to avoid an error. */
11645 /* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11653 /* The GNU C library defines this for functions which it implements
11654 to always fail with ENOSYS. Some functions are actually named
11655 something starting with __ and the normal name is an alias. */
11656 #if defined (__stub_socket) || defined (__stub___socket)
11666 rm -f conftest.
$ac_objext conftest
$ac_exeext
11667 if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:11670: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try
='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:11673: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:11676: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_func_socket
=yes
11680 echo "$as_me: failed program was:" >&5
11681 cat conftest.
$ac_ext >&5
11682 ac_cv_func_socket
=no
11684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11686 echo "$as_me:11686: result: $ac_cv_func_socket" >&5
11687 echo "${ECHO_T}$ac_cv_func_socket" >&6
11688 if test $ac_cv_func_socket = yes; then
11694 if test $ok_so_far = yes; then
11695 echo "$as_me:11695: checking for netinet/in.h" >&5
11696 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11697 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 cat >conftest.
$ac_ext <<_ACEOF
11701 #line 11701 "configure"
11702 #include "confdefs.h"
11703 #include <netinet/in.h>
11705 if { (eval echo "$as_me:11705: \"$ac_cpp conftest.$ac_ext\"") >&5
11706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11708 egrep -v '^ *\+' conftest.er1
>conftest.err
11710 cat conftest.err
>&5
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit $ac_status); } >/dev
/null
; then
11713 if test -s conftest.err
; then
11714 ac_cpp_err
=$ac_c_preproc_warn_flag
11721 if test -z "$ac_cpp_err"; then
11722 ac_cv_header_netinet_in_h
=yes
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.
$ac_ext >&5
11726 ac_cv_header_netinet_in_h
=no
11728 rm -f conftest.err conftest.
$ac_ext
11730 echo "$as_me:11730: result: $ac_cv_header_netinet_in_h" >&5
11731 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11732 if test $ac_cv_header_netinet_in_h = yes; then
11739 if test $ok_so_far = yes; then
11740 echo "$as_me:11740: checking for arpa/inet.h" >&5
11741 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11742 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.
$ac_ext <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11748 #include <arpa/inet.h>
11750 if { (eval echo "$as_me:11750: \"$ac_cpp conftest.$ac_ext\"") >&5
11751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11753 egrep -v '^ *\+' conftest.er1
>conftest.err
11755 cat conftest.err
>&5
11756 echo "$as_me:11756: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev
/null
; then
11758 if test -s conftest.err
; then
11759 ac_cpp_err
=$ac_c_preproc_warn_flag
11766 if test -z "$ac_cpp_err"; then
11767 ac_cv_header_arpa_inet_h
=yes
11769 echo "$as_me: failed program was:" >&5
11770 cat conftest.
$ac_ext >&5
11771 ac_cv_header_arpa_inet_h
=no
11773 rm -f conftest.err conftest.
$ac_ext
11775 echo "$as_me:11775: result: $ac_cv_header_arpa_inet_h" >&5
11776 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11777 if test $ac_cv_header_arpa_inet_h = yes; then
11784 if test $ok_so_far = yes; then
11785 cat >>confdefs.h
<<\EOF
11786 #define HAVE_INET_SOCKETS 1
11791 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11792 cat >>confdefs.h
<<\EOF
11793 #define HAVE_AIX_SMT_EXP 1
11798 echo "$as_me:11798: checking whether system supports dynamic ptys" >&5
11799 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11800 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11801 echo "$as_me:11801: result: yes" >&5
11802 echo "${ECHO_T}yes" >&6
11803 cat >>confdefs.h
<<\EOF
11804 #define HAVE_DEV_PTMX 1
11808 echo "$as_me:11808: result: no" >&5
11809 echo "${ECHO_T}no" >&6
11812 echo "$as_me:11812: checking for pid_t" >&5
11813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11814 if test "${ac_cv_type_pid_t+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 cat >conftest.
$ac_ext <<_ACEOF
11818 #line 11818 "configure"
11819 #include "confdefs.h"
11820 $ac_includes_default
11826 if (sizeof (pid_t))
11832 rm -f conftest.
$ac_objext
11833 if { (eval echo "$as_me:11833: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>&5
11836 echo "$as_me:11836: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try
='test -s conftest.$ac_objext'
11839 { (eval echo "$as_me:11839: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:11842: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_type_pid_t
=yes
11846 echo "$as_me: failed program was:" >&5
11847 cat conftest.
$ac_ext >&5
11848 ac_cv_type_pid_t
=no
11850 rm -f conftest.
$ac_objext conftest.
$ac_ext
11852 echo "$as_me:11852: result: $ac_cv_type_pid_t" >&5
11853 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11854 if test $ac_cv_type_pid_t = yes; then
11858 cat >>confdefs.h
<<EOF
11864 for ac_header
in unistd.h vfork.h
11866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11867 echo "$as_me:11867: checking for $ac_header" >&5
11868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.
$ac_ext <<_ACEOF
11873 #line 11873 "configure"
11874 #include "confdefs.h"
11875 #include <$ac_header>
11877 if { (eval echo "$as_me:11877: \"$ac_cpp conftest.$ac_ext\"") >&5
11878 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11880 egrep -v '^ *\+' conftest.er1
>conftest.err
11882 cat conftest.err
>&5
11883 echo "$as_me:11883: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev
/null
; then
11885 if test -s conftest.err
; then
11886 ac_cpp_err
=$ac_c_preproc_warn_flag
11893 if test -z "$ac_cpp_err"; then
11894 eval "$as_ac_Header=yes"
11896 echo "$as_me: failed program was:" >&5
11897 cat conftest.
$ac_ext >&5
11898 eval "$as_ac_Header=no"
11900 rm -f conftest.err conftest.
$ac_ext
11902 echo "$as_me:11902: result: `eval echo '${'$as_ac_Header'}'`" >&5
11903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h
<<EOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 for ac_func
in fork vfork
11914 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 echo "$as_me:11915: checking for $ac_func" >&5
11916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11917 if eval "test \"\${$as_ac_var+set}\" = set"; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 cat >conftest.
$ac_ext <<_ACEOF
11921 #line 11921 "configure"
11922 #include "confdefs.h"
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below. */
11925 #include <assert.h>
11926 /* Override any gcc2 internal prototype to avoid an error. */
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11951 rm -f conftest.
$ac_objext conftest
$ac_exeext
11952 if { (eval echo "$as_me:11952: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>&5
11955 echo "$as_me:11955: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try
='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:11958: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 eval "$as_ac_var=yes"
11965 echo "$as_me: failed program was:" >&5
11966 cat conftest.
$ac_ext >&5
11967 eval "$as_ac_var=no"
11969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11971 echo "$as_me:11971: result: `eval echo '${'$as_ac_var'}'`" >&5
11972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11973 if test `eval echo '${'$as_ac_var'}'` = yes; then
11974 cat >>confdefs.h
<<EOF
11975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11981 ac_cv_func_fork_works
=$ac_cv_func_fork
11982 if test "x$ac_cv_func_fork" = xyes
; then
11983 echo "$as_me:11983: checking for working fork" >&5
11984 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11985 if test "${ac_cv_func_fork_works+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 if test "$cross_compiling" = yes; then
11989 ac_cv_func_fork_works
=cross
11991 cat >conftest.
$ac_ext <<_ACEOF
11992 /* By Rüdiger Kuhlmann. */
11993 #include <sys/types.h>
11995 # include <unistd.h>
11997 /* Some systems only have a dummy stub for fork() */
12005 rm -f conftest
$ac_exeext
12006 if { (eval echo "$as_me:12006: \"$ac_link\"") >&5
12007 (eval $ac_link) 2>&5
12009 echo "$as_me:12009: \$? = $ac_status" >&5
12010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12011 { (eval echo "$as_me:12011: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_fork_works
=yes
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 cat conftest.
$ac_ext >&5
12021 ac_cv_func_fork_works
=no
12023 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12026 echo "$as_me:12026: result: $ac_cv_func_fork_works" >&5
12027 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12030 if test "x$ac_cv_func_fork_works" = xcross
; then
12032 *-*-amigaos* |
*-*-msdosdjgpp*)
12033 # Override, as these systems have only a dummy fork() stub
12034 ac_cv_func_fork_works
=no
12037 ac_cv_func_fork_works
=yes
12040 { echo "$as_me:12040: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12041 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12043 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12044 if test "x$ac_cv_func_vfork" = xyes
; then
12045 echo "$as_me:12045: checking for working vfork" >&5
12046 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12047 if test "${ac_cv_func_vfork_works+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 if test "$cross_compiling" = yes; then
12051 ac_cv_func_vfork_works
=cross
12053 cat >conftest.
$ac_ext <<_ACEOF
12054 #line 12054 "configure"
12055 #include "confdefs.h"
12056 /* Thanks to Paul Eggert for this test. */
12058 #include <sys/types.h>
12059 #include <sys/stat.h>
12061 # include <unistd.h>
12064 # include <vfork.h>
12066 /* On some sparc systems, changes by the child to local and incoming
12067 argument registers are propagated back to the parent. The compiler
12068 is told about this with #include <vfork.h>, but some compilers
12069 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12070 static variable whose address is put into a register that is
12071 clobbered by the vfork. */
12074 sparc_address_test (int arg)
12076 sparc_address_test (arg) int arg;
12079 static pid_t child;
12097 pid_t parent = getpid ();
12100 sparc_address_test ();
12105 /* Here is another test for sparc vfork register problems. This
12106 test uses lots of local variables, at least as many local
12107 variables as main has allocated so far including compiler
12108 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12109 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12110 reuse the register of parent for one of the local variables,
12111 since it will think that parent can't possibly be used any more
12112 in this routine. Assigning to the local variable will thus
12113 munge parent in the parent process. */
12115 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12116 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12117 /* Convince the compiler that p..p7 are live; otherwise, it might
12118 use the same hardware register for all 8 local variables. */
12119 if (p != p1 || p != p2 || p != p3 || p != p4
12120 || p != p5 || p != p6 || p != p7)
12123 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12124 from child file descriptors. If the child closes a descriptor
12125 before it execs or exits, this munges the parent's descriptor
12126 as well. Test for this by closing stdout in the child. */
12127 _exit(close(fileno(stdout)) != 0);
12132 while (wait(&status) != child)
12135 /* Was there some problem with vforking? */
12138 /* Did the child fail? (This shouldn't happen.) */
12141 /* Did the vfork/compiler bug occur? */
12142 || parent != getpid()
12144 /* Did the file descriptor bug occur? */
12145 || fstat(fileno(stdout), &st) != 0
12150 rm -f conftest
$ac_exeext
12151 if { (eval echo "$as_me:12151: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:12154: \$? = $ac_status" >&5
12155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12156 { (eval echo "$as_me:12156: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_cv_func_vfork_works
=yes
12163 echo "$as_me: program exited with status $ac_status" >&5
12164 echo "$as_me: failed program was:" >&5
12165 cat conftest.
$ac_ext >&5
12166 ac_cv_func_vfork_works
=no
12168 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12171 echo "$as_me:12171: result: $ac_cv_func_vfork_works" >&5
12172 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12175 if test "x$ac_cv_func_fork_works" = xcross
; then
12176 ac_cv_func_vfork_works
=ac_cv_func_vfork
12177 { echo "$as_me:12177: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12178 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12181 if test "x$ac_cv_func_vfork_works" = xyes
; then
12183 cat >>confdefs.h
<<\EOF
12184 #define HAVE_WORKING_VFORK 1
12189 cat >>confdefs.h
<<\EOF
12194 if test "x$ac_cv_func_fork_works" = xyes
; then
12196 cat >>confdefs.h
<<\EOF
12197 #define HAVE_WORKING_FORK 1
12202 # Fixme: This should be replaced when we have autoconf 2.14.
12203 echo "$as_me:12203: checking for size_t" >&5
12204 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12205 if test "${ac_cv_type_size_t+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 cat >conftest.
$ac_ext <<_ACEOF
12209 #line 12209 "configure"
12210 #include "confdefs.h"
12211 $ac_includes_default
12217 if (sizeof (size_t))
12223 rm -f conftest.
$ac_objext
12224 if { (eval echo "$as_me:12224: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>&5
12227 echo "$as_me:12227: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try
='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:12230: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:12233: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_type_size_t
=yes
12237 echo "$as_me: failed program was:" >&5
12238 cat conftest.
$ac_ext >&5
12239 ac_cv_type_size_t
=no
12241 rm -f conftest.
$ac_objext conftest.
$ac_ext
12243 echo "$as_me:12243: result: $ac_cv_type_size_t" >&5
12244 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12245 if test $ac_cv_type_size_t = yes; then
12249 cat >>confdefs.h
<<EOF
12250 #define size_t unsigned
12255 # Set up the CFLAGS for real compilation, so we can substitute it.
12256 CFLAGS
="$REAL_CFLAGS"
12257 CPPFLAGS
="$REAL_CPPFLAGS"
12259 #### Find out which version of Emacs this is.
12260 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12261 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12262 if test x
"${version}" = x
; then
12263 { { echo "$as_me:12263: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12264 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12265 { (exit 1); exit 1; }; }
12268 ### Specify what sort of things we'll be editing into Makefile and config.h.
12269 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12271 cat >>confdefs.h
<<EOF
12272 #define EMACS_CONFIGURATION "${canonical}"
12275 cat >>confdefs.h
<<EOF
12276 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12279 cat >>confdefs.h
<<EOF
12280 #define config_machfile "${machfile}"
12283 cat >>confdefs.h
<<EOF
12284 #define config_opsysfile "${opsysfile}"
12287 cat >>confdefs.h
<<EOF
12288 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12291 cat >>confdefs.h
<<EOF
12292 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12295 cat >>confdefs.h
<<EOF
12296 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12299 cat >>confdefs.h
<<EOF
12300 #define UNEXEC_SRC ${UNEXEC_SRC}
12303 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12304 cat >>confdefs.h
<<\EOF
12305 #define HAVE_X_WINDOWS 1
12309 if test "${USE_X_TOOLKIT}" != "none" ; then
12310 cat >>confdefs.h
<<\EOF
12311 #define USE_X_TOOLKIT 1
12315 if test "${HAVE_X11}" = "yes" ; then
12316 cat >>confdefs.h
<<\EOF
12321 if test "${HAVE_XFREE386}" = "yes" ; then
12322 cat >>confdefs.h
<<\EOF
12323 #define HAVE_XFREE386 1
12327 if test "${HAVE_MENUS}" = "yes" ; then
12328 cat >>confdefs.h
<<\EOF
12329 #define HAVE_MENUS 1
12333 if test "${GNU_MALLOC}" = "yes" ; then
12334 cat >>confdefs.h
<<\EOF
12335 #define GNU_MALLOC 1
12339 if test "${REL_ALLOC}" = "yes" ; then
12340 cat >>confdefs.h
<<\EOF
12341 #define REL_ALLOC 1
12346 for ac_header
in nlist.h
12348 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 echo "$as_me:12349: checking for $ac_header" >&5
12350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 cat >conftest.
$ac_ext <<_ACEOF
12355 #line 12355 "configure"
12356 #include "confdefs.h"
12357 #include <$ac_header>
12359 if { (eval echo "$as_me:12359: \"$ac_cpp conftest.$ac_ext\"") >&5
12360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12362 egrep -v '^ *\+' conftest.er1
>conftest.err
12364 cat conftest.err
>&5
12365 echo "$as_me:12365: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev
/null
; then
12367 if test -s conftest.err
; then
12368 ac_cpp_err
=$ac_c_preproc_warn_flag
12375 if test -z "$ac_cpp_err"; then
12376 eval "$as_ac_Header=yes"
12378 echo "$as_me: failed program was:" >&5
12379 cat conftest.
$ac_ext >&5
12380 eval "$as_ac_Header=no"
12382 rm -f conftest.err conftest.
$ac_ext
12384 echo "$as_me:12384: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12387 cat >>confdefs.h
<<EOF
12388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12391 cat >>confdefs.h
<<\EOF
12392 #define NLIST_STRUCT 1
12398 #### Report on what we decided to do.
12400 Configured for \`${canonical}'.
12402 Where should the build process find the source code? ${srcdir}
12403 What operating system and machine description files should Emacs use?
12404 \`${opsysfile}' and \`${machfile}'
12405 What compiler should emacs be built with? ${CC} ${CFLAGS}
12406 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12407 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12408 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12409 What window system should Emacs use? ${window_system}
12410 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12412 if test -n "${x_includes}"; then
12413 echo " Where do we find X Windows header files? ${x_includes}"
12415 echo " Where do we find X Windows header files? Standard dirs"
12417 if test -n "${x_libraries}"; then
12418 echo " Where do we find X Windows libraries? ${x_libraries}"
12420 echo " Where do we find X Windows libraries? Standard dirs"
12423 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12424 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12425 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12426 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12427 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12428 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12429 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12432 # Remove any trailing slashes in these variables.
12433 test "${prefix}" != NONE
&&
12434 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12435 test "${exec_prefix}" != NONE
&&
12436 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12438 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12439 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12440 ## from Makefile.c can correctly provide the arg `-traditional' to the
12443 cat >conftest.
$ac_ext <<_ACEOF
12444 #line 12444 "configure"
12445 #include "confdefs.h"
12448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12449 egrep "yes..yes" >/dev
/null
2>&1; then
12450 CPP_NEED_TRADITIONAL
=no
12452 CPP_NEED_TRADITIONAL
=yes
12456 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"
12457 ac_config_commands
="$ac_config_commands default"
12458 cat >confcache
<<\_ACEOF
12459 # This file is a shell script that caches the results of configure
12460 # tests run on this system so they can be shared between configure
12461 # scripts and configure runs, see configure's option --config-cache.
12462 # It is not useful on other systems. If it contains results you don't
12463 # want to keep, you may remove or edit it.
12465 # config.status only pays attention to the cache file if you give it
12466 # the --recheck option to rerun configure.
12468 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12470 # following values.
12474 # The following way of writing the cache mishandles newlines in values,
12475 # but we know of no workaround that is simple, portable, and efficient.
12476 # So, don't put newlines in cache variables' values.
12477 # Ultrix sh set writes to stderr and can't be redirected directly,
12478 # and sets the high bit in the cache file unless we assign to the vars.
12481 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12483 # `set' does not quote correctly, so add quotes (double-quote
12484 # substitution turns \\\\ into \\, and sed turns \\ into \).
12487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12490 # `set' quotes correctly as required by POSIX, so do not add quotes.
12492 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12501 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12503 if cmp -s $cache_file confcache
; then :; else
12504 if test -w $cache_file; then
12505 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12506 cat confcache
>$cache_file
12508 echo "not updating unwritable cache $cache_file"
12513 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12514 # Let make expand exec_prefix.
12515 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12519 # trailing colons and then remove the whole line if VPATH becomes empty
12520 # (actually we leave an empty line to preserve line numbers).
12521 if test "x$srcdir" = x.
; then
12522 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12523 s/:*\$(srcdir):*/:/;
12524 s/:*\${srcdir}:*/:/;
12526 s/^\([^=]*=[ ]*\):*/\1/;
12532 DEFS
=-DHAVE_CONFIG_H
12534 : ${CONFIG_STATUS=./config.status}
12535 ac_clean_files_save
=$ac_clean_files
12536 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12537 { echo "$as_me:12537: creating $CONFIG_STATUS" >&5
12538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12539 cat >$CONFIG_STATUS <<_ACEOF
12541 # Generated automatically by configure.
12542 # Run this file to recreate the current configuration.
12543 # Compiler output produced by configure, useful for debugging
12544 # configure, is in config.log if it exists.
12547 SHELL=\${CONFIG_SHELL-$SHELL}
12548 ac_cs_invocation="\$0 \$@"
12552 cat >>$CONFIG_STATUS <<\_ACEOF
12553 # Be Bourne compatible
12554 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12557 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12561 # Name of the executable.
12562 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12564 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12570 rm -f conf$$ conf$$.exe conf$$.
file
12572 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12573 # We could just check for DJGPP; but this test a) works b) is more generic
12574 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12575 if test -f conf$$.exe
; then
12576 # Don't use ln at all; we don't have any links
12581 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12586 rm -f conf$$ conf$$.exe conf$$.
file
12588 as_executable_p
="test -f"
12590 # Support unset when possible.
12591 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12598 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12599 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12600 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12601 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12602 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12603 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12604 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12605 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12608 # We need space, tab and new line, in precisely that order.
12614 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12620 # Files that config.status was made for.
12621 if test -n "$ac_config_files"; then
12622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12625 if test -n "$ac_config_headers"; then
12626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12629 if test -n "$ac_config_links"; then
12630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12633 if test -n "$ac_config_commands"; then
12634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12637 cat >>$CONFIG_STATUS <<\EOF
12640 \`$as_me' instantiates files from templates according to the
12641 current configuration.
12643 Usage: $0 [OPTIONS] [FILE]...
12645 -h, --help print this help, then exit
12646 -V, --version print version number, then exit
12647 -d, --debug don't remove temporary files
12648 --recheck update $as_me by reconfiguring in the same conditions
12649 --file=FILE[:TEMPLATE]
12650 instantiate the configuration file FILE
12651 --header=FILE[:TEMPLATE]
12652 instantiate the configuration header FILE
12654 Configuration files:
12657 Configuration headers:
12660 Configuration commands:
12663 Report bugs to <bug-autoconf@gnu.org>."
12666 cat >>$CONFIG_STATUS <<EOF
12669 configured by $0, generated by GNU Autoconf 2.52,
12670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12672 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12673 Free Software Foundation, Inc.
12674 This config.status script is free software; the Free Software Foundation
12675 gives unlimited permission to copy, distribute and modify it."
12680 cat >>$CONFIG_STATUS <<\EOF
12681 # If no file are specified by the user, then we need to provide default
12682 # value. By we need to know if files were specified by the user.
12688 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12689 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12691 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12695 *) # This is not an option, so the user has probably given explicit
12697 ac_need_defaults
=false
;;
12701 # Handling of the options.
12703 cat >>$CONFIG_STATUS <<EOF
12704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12705 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12706 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12708 cat >>$CONFIG_STATUS <<\EOF
12709 --version |
--vers* |
-V )
12710 echo "$ac_cs_version"; exit 0 ;;
12712 # Conflict between --help and --header
12713 { { echo "$as_me:12713: error: ambiguous option: $1
12714 Try \`$0 --help' for more information." >&5
12715 echo "$as_me: error: ambiguous option: $1
12716 Try \`$0 --help' for more information." >&2;}
12717 { (exit 1); exit 1; }; };;
12718 --help |
--hel |
-h )
12719 echo "$ac_cs_usage"; exit 0 ;;
12720 --debug |
--d* |
-d )
12722 --file |
--fil |
--fi |
--f )
12724 CONFIG_FILES
="$CONFIG_FILES $1"
12725 ac_need_defaults
=false
;;
12726 --header |
--heade |
--head |
--hea )
12728 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12729 ac_need_defaults
=false
;;
12731 # This is an error.
12732 -*) { { echo "$as_me:12732: error: unrecognized option: $1
12733 Try \`$0 --help' for more information." >&5
12734 echo "$as_me: error: unrecognized option: $1
12735 Try \`$0 --help' for more information." >&2;}
12736 { (exit 1); exit 1; }; } ;;
12738 *) ac_config_targets
="$ac_config_targets $1" ;;
12747 ## ----------------------- ##
12748 ## Running config.status. ##
12749 ## ----------------------- ##
12751 This file was extended by $as_me 2.52, executed with
12752 CONFIG_FILES = $CONFIG_FILES
12753 CONFIG_HEADERS = $CONFIG_HEADERS
12754 CONFIG_LINKS = $CONFIG_LINKS
12755 CONFIG_COMMANDS = $CONFIG_COMMANDS
12756 > $ac_cs_invocation
12757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12762 cat >>$CONFIG_STATUS <<EOF
12764 # INIT-COMMANDS section.
12767 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12771 cat >>$CONFIG_STATUS <<\EOF
12772 for ac_config_target
in $ac_config_targets
12774 case "$ac_config_target" in
12775 # Handling of arguments.
12776 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12777 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12778 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12779 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12780 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12781 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12782 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12783 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12784 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
12785 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12786 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12787 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12788 *) { { echo "$as_me:12788: error: invalid argument: $ac_config_target" >&5
12789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12790 { (exit 1); exit 1; }; };;
12794 # If the user did not use the arguments to specify the items to instantiate,
12795 # then the envvar interface is used. Set only those that are not.
12796 # We use the long form for the default assignment because of an extremely
12797 # bizarre bug on SunOS 4.1.3.
12798 if $ac_need_defaults; then
12799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12804 # Create a temporary directory, and hook for its removal unless debugging.
12807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12808 trap '{ (exit 1); exit 1; }' 1 2 13 15
12811 # Create a (secure) tmp directory for tmp files.
12814 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12815 test -n "$tmp" && test -d "$tmp"
12818 tmp
=$TMPDIR/cs$$
-$RANDOM
12819 (umask 077 && mkdir
$tmp)
12822 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12823 { (exit 1); exit 1; }
12828 cat >>$CONFIG_STATUS <<EOF
12831 # CONFIG_FILES section.
12834 # No need to generate the scripts if there are no CONFIG_FILES.
12835 # This happens for instance when ./config.status config.h
12836 if test -n "\$CONFIG_FILES"; then
12837 # Protect against being on the right side of a sed subst in config.status.
12838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12840 s,@SHELL@,$SHELL,;t t
12841 s,@exec_prefix@,$exec_prefix,;t t
12842 s,@prefix@,$prefix,;t t
12843 s,@program_transform_name@,$program_transform_name,;t t
12844 s,@bindir@,$bindir,;t t
12845 s,@sbindir@,$sbindir,;t t
12846 s,@libexecdir@,$libexecdir,;t t
12847 s,@datadir@,$datadir,;t t
12848 s,@sysconfdir@,$sysconfdir,;t t
12849 s,@sharedstatedir@,$sharedstatedir,;t t
12850 s,@localstatedir@,$localstatedir,;t t
12851 s,@libdir@,$libdir,;t t
12852 s,@includedir@,$includedir,;t t
12853 s,@oldincludedir@,$oldincludedir,;t t
12854 s,@infodir@,$infodir,;t t
12855 s,@mandir@,$mandir,;t t
12856 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12857 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12858 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12859 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12860 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12861 s,@build_alias@,$build_alias,;t t
12862 s,@host_alias@,$host_alias,;t t
12863 s,@target_alias@,$target_alias,;t t
12864 s,@ECHO_C@,$ECHO_C,;t t
12865 s,@ECHO_N@,$ECHO_N,;t t
12866 s,@ECHO_T@,$ECHO_T,;t t
12867 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12868 s,@DEFS@,$DEFS,;t t
12869 s,@LIBS@,$LIBS,;t t
12870 s,@build@,$build,;t t
12871 s,@build_cpu@,$build_cpu,;t t
12872 s,@build_vendor@,$build_vendor,;t t
12873 s,@build_os@,$build_os,;t t
12874 s,@host@,$host,;t t
12875 s,@host_cpu@,$host_cpu,;t t
12876 s,@host_vendor@,$host_vendor,;t t
12877 s,@host_os@,$host_os,;t t
12879 s,@CFLAGS@,$CFLAGS,;t t
12880 s,@LDFLAGS@,$LDFLAGS,;t t
12881 s,@CPPFLAGS@,$CPPFLAGS,;t t
12882 s,@ac_ct_CC@,$ac_ct_CC,;t t
12883 s,@EXEEXT@,$EXEEXT,;t t
12884 s,@OBJEXT@,$OBJEXT,;t t
12885 s,@LN_S@,$LN_S,;t t
12887 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12888 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12889 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12890 s,@YACC@,$YACC,;t t
12891 s,@RANLIB@,$RANLIB,;t t
12892 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12893 s,@LIBSOUND@,$LIBSOUND,;t t
12894 s,@SET_MAKE@,$SET_MAKE,;t t
12895 s,@ALLOCA@,$ALLOCA,;t t
12896 s,@liblockfile@,$liblockfile,;t t
12897 s,@LIBOBJS@,$LIBOBJS,;t t
12898 s,@NEED_SETGID@,$NEED_SETGID,;t t
12899 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12900 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12901 s,@version@,$version,;t t
12902 s,@configuration@,$configuration,;t t
12903 s,@canonical@,$canonical,;t t
12904 s,@srcdir@,$srcdir,;t t
12905 s,@lispdir@,$lispdir,;t t
12906 s,@locallisppath@,$locallisppath,;t t
12907 s,@lisppath@,$lisppath,;t t
12908 s,@x_default_search_path@,$x_default_search_path,;t t
12909 s,@etcdir@,$etcdir,;t t
12910 s,@archlibdir@,$archlibdir,;t t
12911 s,@docdir@,$docdir,;t t
12912 s,@bitmapdir@,$bitmapdir,;t t
12913 s,@c_switch_system@,$c_switch_system,;t t
12914 s,@c_switch_machine@,$c_switch_machine,;t t
12915 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12916 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12917 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12918 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12919 s,@machfile@,$machfile,;t t
12920 s,@opsysfile@,$opsysfile,;t t
12925 cat >>$CONFIG_STATUS <<\EOF
12926 # Split the substitutions into bite-sized pieces for seds with
12927 # small command number limits, like on Digital OSF/1 and HP-UX.
12928 ac_max_sed_lines
=48
12929 ac_sed_frag
=1 # Number of current file.
12930 ac_beg
=1 # First line for current file.
12931 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12934 while $ac_more_lines; do
12935 if test $ac_beg -gt 1; then
12936 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12938 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12940 if test ! -s $tmp/subs.frag
; then
12941 ac_more_lines
=false
12943 # The purpose of the label and of the branching condition is to
12944 # speed up the sed processing (if there are no `@' at all, there
12945 # is no need to browse any of the substitutions).
12946 # These are the two extra sed commands mentioned above.
12948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12949 if test -z "$ac_sed_cmds"; then
12950 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12952 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12954 ac_sed_frag
=`expr $ac_sed_frag + 1`
12956 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12959 if test -z "$ac_sed_cmds"; then
12962 fi # test -n "$CONFIG_FILES"
12965 cat >>$CONFIG_STATUS <<\EOF
12966 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12969 - |
*:- |
*:-:* ) # input from stdin
12971 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12972 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12973 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12974 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12975 * ) ac_file_in
=$ac_file.
in ;;
12978 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12979 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12980 X"$ac_file" : 'X\(//\)[^/]' \| \
12981 X"$ac_file" : 'X\(//\)$' \| \
12982 X"$ac_file" : 'X\(/\)' \| \
12983 . : '\(.\)' 2>/dev/null ||
12985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12987 /^X\(\/\/\)$/{ s//\1/; q; }
12988 /^X\(\/\).*/{ s//\1/; q; }
12990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12991 { case "$ac_dir" in
12992 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12996 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12997 case $as_mkdir_dir in
12998 # Skip DOS drivespec
12999 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13001 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13002 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13007 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13008 # A "../" for each directory in $ac_dir_suffix.
13009 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13011 ac_dir_suffix
= ac_dots
=
13016 if test -z "$ac_dots"; then
13019 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13021 [\\/]* | ?
:[\\/]* )
13022 ac_srcdir
=$srcdir$ac_dir_suffix;
13023 ac_top_srcdir
=$srcdir ;;
13024 *) # Relative path.
13025 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13026 ac_top_srcdir
=$ac_dots$srcdir ;;
13030 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13031 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13034 if test x
"$ac_file" != x-
; then
13035 { echo "$as_me:13035: creating $ac_file" >&5
13036 echo "$as_me: creating $ac_file" >&6;}
13039 # Let's still pretend it is `configure' which instantiates (i.e., don't
13040 # use $as_me), people would be surprised to read:
13041 # /* config.h. Generated automatically by config.status. */
13042 configure_input
="Generated automatically from `echo $ac_file_in |
13043 sed 's,.*/,,'` by configure."
13045 # First look for the input files in the build tree, otherwise in the
13047 ac_file_inputs
=`IFS=:
13048 for f in $ac_file_in; do
13050 -) echo $tmp/stdin ;;
13052 # Absolute (can't be DOS-style, as IFS=:)
13053 test -f "$f" || { { echo "$as_me:13053: error: cannot find input file: $f" >&5
13054 echo "$as_me: error: cannot find input file: $f" >&2;}
13055 { (exit 1); exit 1; }; }
13058 if test -f "$f"; then
13061 elif test -f "$srcdir/$f"; then
13066 { { echo "$as_me:13066: error: cannot find input file: $f" >&5
13067 echo "$as_me: error: cannot find input file: $f" >&2;}
13068 { (exit 1); exit 1; }; }
13071 done` ||
{ (exit 1); exit 1; }
13073 cat >>$CONFIG_STATUS <<EOF
13077 cat >>$CONFIG_STATUS <<\EOF
13079 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13080 s
,@configure_input@
,$configure_input,;t t
13081 s
,@srcdir@
,$ac_srcdir,;t t
13082 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13083 s
,@INSTALL@
,$ac_INSTALL,;t t
13084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13086 if test x"$ac_file" != x-; then
13087 mv $tmp/out $ac_file
13095 cat >>$CONFIG_STATUS <<\EOF
13098 # CONFIG_HEADER section.
13101 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13102 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13104 # ac_d sets the value in "#define NAME VALUE" lines.
13105 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13106 ac_dB
='[ ].*$,\1#\2'
13109 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13110 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13111 ac_uB
='$,\1#\2define\3'
13115 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13118 - |
*:- |
*:-:* ) # input from stdin
13120 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13121 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13122 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13123 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13124 * ) ac_file_in
=$ac_file.
in ;;
13127 test x
"$ac_file" != x-
&& { echo "$as_me:13127: creating $ac_file" >&5
13128 echo "$as_me: creating $ac_file" >&6;}
13130 # First look for the input files in the build tree, otherwise in the
13132 ac_file_inputs
=`IFS=:
13133 for f in $ac_file_in; do
13135 -) echo $tmp/stdin ;;
13137 # Absolute (can't be DOS-style, as IFS=:)
13138 test -f "$f" || { { echo "$as_me:13138: error: cannot find input file: $f" >&5
13139 echo "$as_me: error: cannot find input file: $f" >&2;}
13140 { (exit 1); exit 1; }; }
13143 if test -f "$f"; then
13146 elif test -f "$srcdir/$f"; then
13151 { { echo "$as_me:13151: error: cannot find input file: $f" >&5
13152 echo "$as_me: error: cannot find input file: $f" >&2;}
13153 { (exit 1); exit 1; }; }
13156 done` ||
{ (exit 1); exit 1; }
13157 # Remove the trailing spaces.
13158 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13162 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13163 # `conftest.undefs', that substitutes the proper values into
13164 # config.h.in to produce config.h. The first handles `#define'
13165 # templates, and the second `#undef' templates.
13166 # And first: Protect against being on the right side of a sed subst in
13167 # config.status. Protect against being in an unquoted here document
13168 # in config.status.
13169 rm -f conftest.defines conftest.undefs
13170 # Using a here document instead of a string reduces the quoting nightmare.
13171 # Putting comments in sed scripts is not portable.
13173 # `end' is used to avoid that the second main sed command (meant for
13174 # 0-ary CPP macros) applies to n-ary macro definitions.
13175 # See the Autoconf documentation for `clear'.
13176 cat >confdef2sed.
sed <<\EOF
13181 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13183 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13186 # If some macros were called several times there might be several times
13187 # the same #defines, which is useless. Nevertheless, we may not want to
13188 # sort them, since we want the *last* AC-DEFINE to be honored.
13189 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13190 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13191 rm -f confdef2sed.sed
13193 # This sed command replaces #undef with comments. This is necessary, for
13194 # example, in the case of _POSIX_SOURCE, which is predefined and required
13195 # on some systems where configure will not decide to define it.
13196 cat >>conftest.undefs <<\EOF
13197 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13200 # Break up conftest.defines because some shells have a limit on the size
13201 # of here documents, and old seds have small limits too (100 cmds).
13202 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13203 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13204 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13205 echo ' :' >>$CONFIG_STATUS
13206 rm -f conftest.tail
13207 while grep . conftest.defines >/dev/null
13209 # Write a limited-size here document to $tmp/defines.sed.
13210 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13211 # Speed up: don't consider the non `#define' lines.
13212 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13213 # Work around the forget-to-reset-the-flag bug.
13214 echo 't clr' >>$CONFIG_STATUS
13215 echo ': clr' >>$CONFIG_STATUS
13216 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13218 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13220 mv $tmp/out $tmp/in
13222 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13223 rm -f conftest.defines
13224 mv conftest.
tail conftest.defines
13226 rm -f conftest.defines
13227 echo ' fi # egrep' >>$CONFIG_STATUS
13228 echo >>$CONFIG_STATUS
13230 # Break up conftest.undefs because some shells have a limit on the size
13231 # of here documents, and old seds have small limits too (100 cmds).
13232 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13233 rm -f conftest.
tail
13234 while grep . conftest.undefs
>/dev
/null
13236 # Write a limited-size here document to $tmp/undefs.sed.
13237 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13238 # Speed up: don't consider the non
`#undef'
13239 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13240 # Work around the forget-to-reset-the-flag bug.
13241 echo 't clr' >>$CONFIG_STATUS
13242 echo ': clr' >>$CONFIG_STATUS
13243 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13245 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13247 mv $tmp/out $tmp/in
13249 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13250 rm -f conftest.undefs
13251 mv conftest.tail conftest.undefs
13253 rm -f conftest.undefs
13255 cat >>$CONFIG_STATUS <<\EOF
13256 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13257 # use $as_me), people would be surprised to read:
13258 # /* config.h. Generated automatically by config.status. */
13259 if test x
"$ac_file" = x-
; then
13260 echo "/* Generated automatically by configure. */" >$tmp/config.h
13262 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13264 cat $tmp/in >>$tmp/config.h
13266 if test x
"$ac_file" != x-
; then
13267 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13268 { echo "$as_me:13268: $ac_file is unchanged" >&5
13269 echo "$as_me: $ac_file is unchanged" >&6;}
13271 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13272 X"$ac_file" : 'X\(//\)[^/]' \| \
13273 X"$ac_file" : 'X\(//\)$' \| \
13274 X"$ac_file" : 'X\(/\)' \| \
13275 . : '\(.\)' 2>/dev/null ||
13277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13279 /^X\(\/\/\)$/{ s//\1/; q; }
13280 /^X\(\/\).*/{ s//\1/; q; }
13282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13283 { case "$ac_dir" in
13284 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13288 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13289 case $as_mkdir_dir in
13290 # Skip DOS drivespec
13291 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13293 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13294 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13301 mv $tmp/config.h
$ac_file
13305 rm -f $tmp/config.h
13309 cat >>$CONFIG_STATUS <<\EOF
13312 # CONFIG_COMMANDS section.
13314 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13315 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13316 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13321 ### Make the necessary directories, if they don't exist.
13322 for dir
in etc lisp
; do
13323 test -d ${dir} || mkdir
${dir}
13326 # Build src/Makefile from ${srcdir}/src/Makefile.c
13327 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13328 # This must be done after src/config.h is built, since we rely on that file.
13330 # Now get this: Some word that is part of the ${srcdir} directory name
13331 # or the ${configuration} value might, just might, happen to be an
13332 # identifier like `sun4' or `i386' or something, and be predefined by
13333 # the C preprocessor to some helpful value like 1, or maybe the empty
13334 # string. Needless to say consequent macro substitutions are less
13335 # than conducive to the makefile finding the correct directory.
13336 undefs
="`echo $top_srcdir $configuration $canonical |
13337 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13338 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13341 echo creating src
/epaths.h
13342 ${MAKE-make} epaths-force
13344 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13345 # `..' to `. .' unless invoked with -traditional
13347 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13348 CPPFLAGS
="$CPPFLAGS -traditional"
13351 echo creating lib-src
/Makefile
13353 rm -f junk.c junk1.c junk2.c
13354 sed -e '/start of cpp stuff/q' \
13355 < Makefile.c
> junk1.c
13356 sed -e '1,/start of cpp stuff/d'\
13357 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13358 < Makefile.c
> junk.c
13359 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13360 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13361 cat junk1.c junk2.c
> Makefile.new
13362 rm -f junk.c junk1.c junk2.c
13363 chmod 444 Makefile.new
13364 mv -f Makefile.new Makefile
13367 echo creating src
/Makefile
13369 rm -f junk.c junk1.c junk2.c
13370 sed -e '/start of cpp stuff/q' \
13371 < Makefile.c
> junk1.c
13372 sed -e '1,/start of cpp stuff/d'\
13373 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13374 < Makefile.c
> junk.c
13375 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13376 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13377 cat junk1.c junk2.c
> Makefile.new
13378 rm -f junk.c junk1.c junk2.c
13379 chmod 444 Makefile.new
13380 mv -f Makefile.new Makefile
13383 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13384 echo creating src
/.gdbinit
13385 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13388 # This is how we know whether to re-run configure in certain cases.
13389 touch src
/config.stamp
13396 cat >>$CONFIG_STATUS <<\EOF
13398 { (exit 0); exit 0; }
13400 chmod +x
$CONFIG_STATUS
13401 ac_clean_files
=$ac_clean_files_save
13403 # configure is writing to config.log, and then calls config.status.
13404 # config.status does its own redirection, appending to config.log.
13405 # Unfortunately, on DOS this fails, as config.log is still kept open
13406 # by configure, so config.status won't be able to write to it; its
13407 # output is simply discarded. So we exec the FD to /dev/null,
13408 # effectively closing config.log, so it can be properly (re)opened and
13409 # appended to by config.status. When coming back to configure, we
13410 # need to make the FD available again.
13411 if test "$no_create" != yes; then
13414 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13417 # would make configure fail if this is the last instruction.
13418 $ac_cs_success ||
{ (exit 1); exit 1; }