2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-largefile omit support
for large files
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --without-gcc don
't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP
mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version
5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server
host
689 --with-x-toolkit=KIT use an X toolkit
(KIT
= yes
/lucid
/athena
/motif
/no
)
690 --with-xpm use
-lXpm for displaying XPM images
691 --with-jpeg use
-ljpeg for displaying JPEG images
692 --with-tiff use
-ltiff for displaying TIFF images
693 --with-gif use
-lungif for displaying GIF images
694 --with-png use
-lpng for displaying PNG images
695 --without-toolkit-scroll-bars
696 don
't use Motif or Xaw3d scroll bars
697 --without-xim don't use X11 XIM
698 --with-x use the X Window System
700 Some influential environment variables
:
701 CC C compiler
command
702 CFLAGS C compiler flags
703 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
704 nonstandard directory
<lib dir
>
705 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
706 headers
in a nonstandard directory
<include dir
>
709 Use these variables to override the choices made by
`configure' or to help
710 it to find libraries and programs with nonstandard names/locations.
715 if test "$ac_init_help" = "recursive"; then
716 # If there are subdirs, report their specific --help.
718 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
720 # A "../" for each directory in /$ac_subdir.
721 ac_dots=`echo $ac_subdir |
722 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
725 .) # No --srcdir option. We are building in place.
726 ac_sub_srcdir=$srcdir ;;
727 [\\/]* | ?:[\\/]* ) # Absolute path.
728 ac_sub_srcdir=$srcdir/$ac_subdir ;;
730 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
733 # Check for guested configure; otherwise get Cygnus style configure.
734 if test -f $ac_sub_srcdir/configure.gnu; then
736 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
737 elif test -f $ac_sub_srcdir/configure; then
739 $SHELL $ac_sub_srcdir/configure --help=recursive
740 elif test -f $ac_sub_srcdir/configure.ac ||
741 test -f $ac_sub_srcdir/configure.in; then
745 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
751 test -n "$ac_init_help" && exit 0
752 if $ac_init_version; then
755 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
756 Free Software Foundation, Inc.
757 This configure script is free software; the Free Software Foundation
758 gives unlimited permission to copy, distribute and modify it.
764 This file contains any messages produced by compilers while
765 running configure, to aid debugging if configure makes a mistake.
767 It was created by $as_me, which was
768 generated by GNU Autoconf 2.52. Invocation command line was
779 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
780 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
781 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
782 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
783 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
785 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
786 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
788 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
789 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
790 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
791 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
792 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
793 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
794 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
808 # Keep a trace of the command line.
809 # Strip out --no-create and --no-recursion so they do not pile up.
810 # Also quote any args containing shell meta-characters.
816 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
817 | --no-cr | --no-c) ;;
818 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
819 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
820 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
821 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
822 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
824 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
827 # Get rid of the leading space.
830 # When interrupted or exit'd, cleanup temporary files, and complete
831 # config.log. We remove comments because anyway the quotes in there
832 # would cause problems or look ugly.
834 # Save into config.log some information that might help in debugging.
836 echo "## ----------------- ##" >&5
837 echo "## Cache variables. ##" >&5
838 echo "## ----------------- ##" >&5
840 # The following way of writing the cache mishandles newlines in values,
843 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
846 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855 sed "/^$/d" confdefs.h >conftest.log
856 if test -s conftest.log; then
858 echo "## ------------ ##" >&5
859 echo "## confdefs.h. ##" >&5
860 echo "## ------------ ##" >&5
865 test "$ac_signal" != 0 &&
866 echo "$as_me: caught signal $ac_signal" >&5
867 echo "$as_me: exit $exit_status" >&5
868 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
871 for ac_signal in 1 2 13 15; do
872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
877 rm -rf conftest* confdefs.h
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 # Let the site file select an alternate cache file if it wants to.
882 # Prefer explicitly selected file to automatically selected ones.
883 if test -z "$CONFIG_SITE"; then
884 if test "x$prefix" != xNONE; then
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
890 for ac_site_file in $CONFIG_SITE; do
891 if test -r "$ac_site_file"; then
892 { echo "$as_me:892: loading site script $ac_site_file" >&5
893 echo "$as_me: loading site script $ac_site_file" >&6;}
894 cat "$ac_site_file" >&5
899 if test -r "$cache_file"; then
900 # Some versions of bash will fail to source /dev/null (special
901 # files actually), so we avoid doing that.
902 if test -f "$cache_file"; then
903 { echo "$as_me:903: loading cache $cache_file" >&5
904 echo "$as_me: loading cache $cache_file" >&6;}
906 [\\/]* | ?:[\\/]* ) . $cache_file;;
911 { echo "$as_me:911: creating cache $cache_file" >&5
912 echo "$as_me: creating cache $cache_file" >&6;}
916 # Check that the precious variables saved in the cache have kept the same
918 ac_cache_corrupted=false
919 for ac_var in `(set) 2>&1 |
920 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
922 eval ac_new_set=\$ac_env_${ac_var}_set
923 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
924 eval ac_new_val="\$ac_env_${ac_var}_value"
925 case $ac_old_set,$ac_new_set in
927 { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
928 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
929 ac_cache_corrupted=: ;;
931 { echo "$as_me:931: error: \`$ac_var' was not
set in the previous run
" >&5
932 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
936 if test "x$ac_old_val" != "x$ac_new_val"; then
937 { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5
938 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
939 { echo "$as_me:939: former value
: $ac_old_val" >&5
940 echo "$as_me: former value
: $ac_old_val" >&2;}
941 { echo "$as_me:941: current value
: $ac_new_val" >&5
942 echo "$as_me: current value
: $ac_new_val" >&2;}
946 # Pass precious variables to config.status. It doesn't matter if
947 # we pass some twice (in addition to the command line arguments).
948 if test "$ac_new_set" = set; then
950 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
951 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
952 ac_configure_args="$ac_configure_args '$ac_arg'"
954 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
959 if $ac_cache_corrupted; then
960 { echo "$as_me:960: error
: changes
in the environment can compromise the build
" >&5
961 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
962 { { echo "$as_me:962: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
963 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
964 { (exit 1); exit 1; }; }
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
974 *c*,-n*) ECHO_N= ECHO_C='
976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
979 echo "#! $SHELL" >conftest.sh
980 echo "exit 0" >>conftest.sh
982 if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5
983 (PATH=".;."; conftest.sh) 2>&5
985 echo "$as_me:985: \$? = $ac_status" >&5
986 (exit $ac_status); }; then
987 ac_path_separator=';'
991 PATH_SEPARATOR="$ac_path_separator"
994 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
996 test "$program_prefix" != NONE &&
997 program_transform_name="s,^,$program_prefix,;$program_transform_name"
998 # Use a double $ so make ignores it.
999 test "$program_suffix" != NONE &&
1000 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1001 # Double any \ or $. echo might interpret backslashes.
1002 # By default was `s
,x
,x
', remove it if useless.
1003 cat <<\_ACEOF >conftest.sed
1004 s/[\\$]/&&/g;s/;s,x,x,$//
1006 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1009 lispdir='${datadir}/emacs
/${version}/lisp
'
1010 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1011 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1012 lisppath='${locallisppath}:${lispdir}'
1013 etcdir='${datadir}/emacs
/${version}/etc
'
1014 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1015 docdir='${datadir}/emacs
/${version}/etc
'
1017 # Check whether --with-gcc or --without-gcc was given.
1018 if test "${with_gcc+set}" = set; then
1023 # Check whether --with-pop or --without-pop was given.
1024 if test "${with_pop+set}" = set; then
1026 if test "$withval" = yes; then
1027 cat >>confdefs.h <<\EOF
1028 #define MAIL_USE_POP 1
1034 cat >>confdefs.h <<\EOF
1035 #define MAIL_USE_POP 1
1040 # Check whether --with-kerberos or --without-kerberos was given.
1041 if test "${with_kerberos+set}" = set; then
1042 withval="$with_kerberos"
1043 cat >>confdefs.h <<\EOF
1049 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1050 if test "${with_kerberos5+set}" = set; then
1051 withval="$with_kerberos5"
1052 if test "${with_kerberos5+set}" = set; then
1053 if test "${with_kerberos+set}" != set; then
1055 cat >>confdefs.h <<\EOF
1061 cat >>confdefs.h <<\EOF
1067 # Check whether --with-hesiod or --without-hesiod was given.
1068 if test "${with_hesiod+set}" = set; then
1069 withval="$with_hesiod"
1070 cat >>confdefs.h <<\EOF
1076 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1077 if test "${with_x_toolkit+set}" = set; then
1078 withval="$with_x_toolkit"
1079 case "${withval}" in
1080 y | ye | yes ) val=athena ;;
1082 l | lu | luc | luci | lucid ) val=lucid ;;
1083 a | at | ath | athe | athen | athena ) val=athena ;;
1084 m | mo | mot | moti | motif ) val=motif ;;
1086 { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\
;
1087 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1088 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1089 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1090 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1091 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1092 { (exit 1); exit 1; }; }
1099 # Check whether --with-xpm or --without-xpm was given.
1100 if test "${with_xpm+set}" = set; then
1105 # Check whether --with-jpeg or --without-jpeg was given.
1106 if test "${with_jpeg+set}" = set; then
1107 withval="$with_jpeg"
1111 # Check whether --with-tiff or --without-tiff was given.
1112 if test "${with_tiff+set}" = set; then
1113 withval="$with_tiff"
1117 # Check whether --with-gif or --without-gif was given.
1118 if test "${with_gif+set}" = set; then
1123 # Check whether --with-png or --without-png was given.
1124 if test "${with_png+set}" = set; then
1129 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1130 if test "${with_toolkit_scroll_bars+set}" = set; then
1131 withval="$with_toolkit_scroll_bars"
1135 # Check whether --with-xim or --without-xim was given.
1136 if test "${with_xim+set}" = set; then
1141 #### Make srcdir absolute, if it isn't already. It
's important to
1142 #### avoid running the path through pwd unnecessarily, since pwd can
1143 #### give you automounter prefixes, which can go away. We do all this
1144 #### so Emacs can find its files when run uninstalled.
1145 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1150 ## We may be able to use the $PWD environment variable to make this
1151 ## absolute. But sometimes PWD is inaccurate.
1152 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1156 srcdir
="`(cd ${srcdir}; pwd)`"
1159 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1162 #### Check if the source directory already has a configured system in it.
1163 if test `pwd` != `(cd ${srcdir} && pwd)` \
1164 && test -f "${srcdir}/src/config.h" ; then
1165 { echo "$as_me:1165: WARNING: The directory tree \`${srcdir}' is being used
1166 as a build directory right now; it has been configured in its own
1167 right. To configure in another directory as well, you MUST
1168 use GNU make. If you do not have GNU make, then you must
1169 now do \`make distclean' in ${srcdir},
1170 and then run $0 again." >&5
1171 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1172 as a build directory right now; it has been configured in its own
1173 right. To configure in another directory as well, you MUST
1174 use GNU make. If you do not have GNU make, then you must
1175 now do \`make distclean' in ${srcdir},
1176 and then run $0 again." >&2;}
1178 extrasub
='/^VPATH[ ]*=/c\
1179 vpath %.c $(srcdir)\
1180 vpath %.h $(srcdir)\
1181 vpath %.y $(srcdir)\
1182 vpath %.l $(srcdir)\
1183 vpath %.s $(srcdir)\
1184 vpath %.in $(srcdir)\
1185 vpath %.texi $(srcdir)'
1188 #### Given the configuration name, set machfile and opsysfile to the
1189 #### names of the m/*.h and s/*.h files we should use.
1191 ### Canonicalize the configuration name.
1194 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1195 if test -f $ac_dir/install-sh
; then
1197 ac_install_sh
="$ac_aux_dir/install-sh -c"
1199 elif test -f $ac_dir/install.sh
; then
1201 ac_install_sh
="$ac_aux_dir/install.sh -c"
1203 elif test -f $ac_dir/shtool
; then
1205 ac_install_sh
="$ac_aux_dir/shtool install -c"
1209 if test -z "$ac_aux_dir"; then
1210 { { echo "$as_me:1210: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1211 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1212 { (exit 1); exit 1; }; }
1214 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1215 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1216 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1218 # Make sure we can run config.sub.
1219 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1220 { { echo "$as_me:1220: error: cannot run $ac_config_sub" >&5
1221 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1222 { (exit 1); exit 1; }; }
1224 echo "$as_me:1224: checking build system type" >&5
1225 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1226 if test "${ac_cv_build+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 ac_cv_build_alias
=$build_alias
1230 test -z "$ac_cv_build_alias" &&
1231 ac_cv_build_alias
=`$ac_config_guess`
1232 test -z "$ac_cv_build_alias" &&
1233 { { echo "$as_me:1233: error: cannot guess build type; you must specify one" >&5
1234 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1235 { (exit 1); exit 1; }; }
1236 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1237 { { echo "$as_me:1237: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1238 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1239 { (exit 1); exit 1; }; }
1242 echo "$as_me:1242: result: $ac_cv_build" >&5
1243 echo "${ECHO_T}$ac_cv_build" >&6
1245 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1246 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1247 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1249 echo "$as_me:1249: checking host system type" >&5
1250 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1251 if test "${ac_cv_host+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1254 ac_cv_host_alias
=$host_alias
1255 test -z "$ac_cv_host_alias" &&
1256 ac_cv_host_alias
=$ac_cv_build_alias
1257 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_host" >&5
1264 echo "${ECHO_T}$ac_cv_host" >&6
1266 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 configuration
=${host_alias-$host}
1273 ### If you add support for a new configuration, add code to this
1274 ### switch statement to recognize your configuration name and select
1275 ### the appropriate operating system and machine description files.
1277 ### You would hope that you could choose an m/*.h file pretty much
1278 ### based on the machine portion of the configuration name, and an s-
1279 ### file based on the operating system portion. However, it turns out
1280 ### that each m/*.h file is pretty manufacturer-specific - for
1281 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1282 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1283 ### machines. So we basically have to have a special case for each
1284 ### configuration name.
1286 ### As far as handling version numbers on operating systems is
1287 ### concerned, make sure things will fail in a fixable way. If
1288 ### /etc/MACHINES doesn't say anything about version numbers, be
1289 ### prepared to handle anything reasonably. If version numbers
1290 ### matter, be sure /etc/MACHINES says something about it.
1292 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1293 ### "System V Release 4"; he writes, "The old convention encouraged
1294 ### confusion between `system' and `release' levels'."
1296 machine
='' opsys
='' unported
=no
1297 case "${canonical}" in
1302 case "${canonical}" in
1303 alpha
*-*-freebsd*) machine
=alpha
;;
1304 i
[3456]86-*-freebsd*) machine
=intel386
;;
1311 case "${canonical}" in
1312 alpha
*-*-netbsd*) machine
=alpha
;;
1313 i
[3456]86-*-netbsd*) machine
=intel386
;;
1315 # This is somewhat bogus.
1316 machine
=hp9000s300
;;
1317 powerpc-apple-netbsd
*) machine
=macppc
;;
1318 mips-
*-netbsd*) machine
=pmax
;;
1319 mipsel-
*-netbsd*) machine
=pmax
;;
1320 ns32k-
*-netbsd*) machine
=ns32000
;;
1321 powerpc-
*-netbsd*) machine
=macppc
;;
1322 sparc
*-*-netbsd*) machine
=sparc
;;
1323 vax-
*-netbsd*) machine
=vax
;;
1324 arm-
*-netbsd*) machine
=arm
;;
1331 case "${canonical}" in
1332 alpha
*-*-openbsd*) machine
=alpha
;;
1333 i386-
*-openbsd*) machine
=intel386
;;
1334 m68k-
*-openbsd*) machine
=hp9000s300
;;
1335 mipsel-
*-openbsd*) machine
=pmax
;;
1336 ns32k-
*-openbsd*) machine
=ns32000
;;
1337 sparc-
*-openbsd*) machine
=sparc
;;
1338 vax-
*-openbsd*) machine
=vax
;;
1343 arm-acorn-riscix1.1
* )
1344 machine
=acorn opsys
=riscix1-1
1346 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1347 ## This name is riscix12 instead of riscix1.2
1348 ## to avoid a file name conflict on MSDOS.
1349 machine
=acorn opsys
=riscix12
1355 case "${canonical}" in
1356 i
[345]86-*-bsdi*) machine
=intel386
;;
1357 sparc-
*-bsdi*) machine
=sparc
;;
1358 powerpc-
*-bsdi*) machine
=macppc
;;
1360 case "${canonical}" in
1361 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1362 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1363 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1364 *-*-bsdi3* ) opsys
=bsdos3
;;
1365 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1370 ## Strictly speaking, we need the version of the alliant operating
1371 ## system to choose the right machine file, but currently the
1372 ## configuration name doesn't tell us enough to choose the right
1373 ## one; we need to give alliants their own operating system name to
1374 ## do this right. When someone cares, they can help us.
1376 machine
=alliant4 opsys
=bsd4-2
1379 machine
=alliant-2800 opsys
=bsd4-3
1382 ## Alpha (DEC) machines.
1384 machine
=alpha opsys
=osf1
1385 # This is needed to find X11R6.1 libraries for certain tests.
1386 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1387 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1388 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1389 # due to non-traditional preprocessing with the current compiler
1390 # defaults. OSF 4 can also have that compiler version, and there
1391 # seems always to have been a usable /usr/bin/cpp.
1392 NON_GNU_CPP
=/usr
/bin
/cpp
1393 case "${canonical}" in
1394 alpha
*-dec-osf[5-9]*)
1399 alpha
*-*-linux-gnu* )
1400 machine
=alpha opsys
=gnu-linux
1404 machine
=arm opsys
=gnu-linux
1409 machine
=macppc opsys
=gnu-linux
1414 machine
=altos opsys
=usg5-2
1419 machine
=amdahl opsys
=usg5-2-2
1422 ## Apollo, Domain/OS
1424 machine
=apollo opsys
=bsd4-3
1427 ## AT&T 3b2, 3b5, 3b15, 3b20
1429 machine
=att3b opsys
=usg5-2-2
1432 ## AT&T 3b1 - The Mighty Unix PC!
1434 machine
=7300 opsys
=usg5-2-2
1439 machine
=ibmrs6000 opsys
=aix3-2
1444 machine
=dpx2 opsys
=usg5-3
1449 machine
=sps7 opsys
=usg5-2
1452 ## CCI 5/32, 6/32 -- see "Tahoe".
1455 ## I don't know what configuration name to use for this; config.sub
1456 ## doesn't seem to know anything about it. Hey, Celerity users, get
1457 ## in touch with us!
1458 celerity-celerity-bsd
* )
1459 machine
=celerity opsys
=bsd4-2
1463 ## What operating systems does this chip run that Emacs has been
1467 ## We'll use the catch-all code at the bottom to guess the
1468 ## operating system.
1472 *-convex-bsd* |
*-convex-convexos* )
1473 machine
=convex opsys
=bsd4-3
1474 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1475 NON_GNU_CPP
="cc -E -P"
1479 i
[3456]86-cubix-sysv* )
1480 machine
=intel386 opsys
=usg5-3
1484 cydra
*-cydrome-sysv* )
1485 machine
=cydra5 opsys
=usg5-3
1488 ## Data General AViiON Machines
1489 ## DG changed naming conventions with the release of 5.4.4.10, they
1490 ## dropped the initial 5.4 but left the intervening R. Because of the
1491 ## R this shouldn't conflict with older versions of the OS (which I
1492 ## think were named like dgux4.*). In addition, DG new AViiONs series
1493 ## uses either Motorola M88k or Intel Pentium CPUs.
1494 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1495 machine
=aviion opsys
=dgux4
1497 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1498 ## This name is dgux5-4-3 instead of dgux5-4r3
1499 ## to avoid a file name conflict on MSDOS.
1500 machine
=aviion opsys
=dgux5-4-3
1502 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1503 machine
=aviion opsys
=dgux5-4r2
1506 machine
=aviion opsys
=dgux
1509 ## Data General AViiON Intel (x86) Machines
1510 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1511 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1512 i
[345]86-dg-dguxR4* )
1513 machine
=aviion-intel opsys
=dgux4
1517 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1518 machine
=pmax opsys
=bsd4-2
1520 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1521 machine
=pmax opsys
=bsd4-3
1524 machine
=pmax opsys
=ultrix4-3
1527 machine
=pmax opsys
=osf1
1529 mips-dec-mach_bsd4.3
* )
1530 machine
=pmax opsys
=mach-bsd4-3
1533 ## Motorola Delta machines
1534 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1535 machine
=delta opsys
=usg5-3
1536 if test -z "`type gnucc | grep 'not found'`"
1538 if test -s /etc
/167config
1539 then CC
="gnucc -m68040"
1540 else CC
="gnucc -m68881"
1543 if test -z "`type gcc | grep 'not found'`"
1549 m88k-motorola-sysv4
* )
1550 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1551 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1552 # I hope there are not other 4.0 versions for this machine
1553 # which really need usg5-4 instead.
1554 machine
=delta88k opsys
=usg5-4-2
1556 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1557 machine
=delta88k opsys
=usg5-3
1562 machine
=dual opsys
=usg5-2
1564 m68
*-dual-uniplus* )
1565 machine
=dual opsys
=unipl5-2
1570 machine
=elxsi opsys
=usg5-2
1575 machine
=ns16000 opsys
=umax
1578 ## The GEC 63 - apparently, this port isn't really finished yet.
1579 # I'm sure we finished off the last of the machines, though. -- fx
1581 ## Gould Power Node and NP1
1583 machine
=gould opsys
=bsd4-2
1586 machine
=gould opsys
=bsd4-3
1589 machine
=gould-np1 opsys
=bsd4-3
1592 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1593 ## as far as Emacs is concerned).
1595 # Build needs to be different on 7.0 and later releases
1596 case "`uname -r`" in
1597 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1598 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1600 NON_GNU_CPP
="/lib/cpp"
1602 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1604 machine
=nh3000 opsys
=cxux
1606 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1607 powerpc-harris-powerunix
)
1608 machine
=nh6000 opsys
=powerunix
1609 NON_GNU_CPP
="cc -Xo -E -P"
1611 ## SR2001/SR2201 running HI-UX/MPP
1612 hppa1.1
-hitachi-hiuxmpp* )
1613 machine
=sr2k opsys
=hiuxmpp
1615 hppa1.1
-hitachi-hiuxwe2* )
1616 machine
=sr2k opsys
=hiuxwe2
1619 xps
*-honeywell-sysv* )
1620 machine
=xps100 opsys
=usg5-2
1623 ## HP 9000 series 200 or 300
1625 machine
=hp9000s300 opsys
=bsd4-3
1627 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1629 case "`uname -r`" in
1630 ## Someone's system reports A.B8.05 for this.
1631 ## I wonder what other possibilities there are.
1632 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1633 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1634 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1635 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1636 *) machine
=hp9000s300 opsys
=hpux
;;
1640 ## HP 9000 series 700 and 800, running HP/UX
1642 machine
=hp800 opsys
=hpux
1645 machine
=hp800 opsys
=hpux8
1647 hppa
*-hp-hpux9shr* )
1648 machine
=hp800 opsys
=hpux9shr
1651 machine
=hp800 opsys
=hpux9
1654 machine
=hp800 opsys
=hpux10
1656 hppa
*-hp-hpux1[1-9]* )
1657 machine
=hp800 opsys
=hpux11
1660 hppa
*-*-linux-gnu* )
1661 machine
=hp800 opsys
=gnu-linux
1664 ## HP 9000 series 700 and 800, running HP/UX
1666 ## Cross-compilation? Nah!
1667 case "`uname -r`" in
1668 ## Someone's system reports A.B8.05 for this.
1669 ## I wonder what other possibilities there are.
1670 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1671 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1672 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1673 *) machine
=hp800 opsys
=hpux10
;;
1677 machine
=hp800 opsys
=nextstep
1682 machine
=orion opsys
=bsd4-2
1684 clipper-orion-bsd
* )
1685 machine
=orion105 opsys
=bsd4-2
1689 i
[3456]86-ibm-aix1.1
* )
1690 machine
=ibmps2-aix opsys
=usg5-2-2
1692 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1693 machine
=ibmps2-aix opsys
=usg5-3
1696 machine
=ibm370aix opsys
=usg5-3
1699 machine
=ibms390 opsys
=gnu-linux
1701 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1702 machine
=ibmrs6000 opsys
=aix3-1
1704 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1705 machine
=ibmrs6000 opsys
=aix3-2-5
1707 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1708 machine
=ibmrs6000 opsys
=aix4-1
1710 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1711 machine
=ibmrs6000 opsys
=aix4-2
1713 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1714 machine
=ibmrs6000 opsys
=aix4
1716 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1717 machine
=ibmrs6000 opsys
=aix4-1
1719 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1720 machine
=ibmrs6000 opsys
=aix3-2
1723 machine
=ibmrt opsys
=bsd4-3
1726 machine
=ibmrt opsys
=bsd4-2
1729 machine
=ibmrt opsys
=bsd4-3
1732 machine
=ibmrt opsys
=bsd4-2
1735 machine
=ibmrt opsys
=bsd4-3
1738 machine
=ibmrt opsys
=bsd4-3
1741 machine
=ibmrt-aix opsys
=usg5-2-2
1744 ## Integrated Solutions `Optimum V'
1746 machine
=isi-ov opsys
=bsd4-2
1749 machine
=isi-ov opsys
=bsd4-3
1752 ## Intel 386 machines where we do care about the manufacturer
1753 i
[3456]86-intsys-sysv* )
1754 machine
=is386 opsys
=usg5-2-2
1758 i
[3456]86-prime-sysv* )
1759 machine
=i386 opsys
=usg5-3
1762 ## Sequent Symmetry running Dynix
1763 i
[3456]86-sequent-bsd* )
1764 machine
=symmetry opsys
=bsd4-3
1767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1768 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1769 machine
=sequent-ptx opsys
=ptx4
1770 NON_GNU_CPP
=/lib
/cpp
1773 ## Sequent Symmetry running DYNIX/ptx
1774 ## Use the old cpp rather than the newer ANSI one.
1775 i
[3456]86-sequent-ptx* )
1776 machine
=sequent-ptx opsys
=ptx
1777 NON_GNU_CPP
="/lib/cpp"
1780 ## ncr machine running svr4.3.
1781 i
[3456]86-ncr-sysv4.3
)
1782 machine
=ncr386 opsys
=usg5-4-3
1785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1787 i
[3456]86-ncr-sysv* )
1788 machine
=ncr386 opsys
=usg5-4-2
1791 ## Intel Paragon OSF/1
1793 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1798 machine
=i860 opsys
=usg5-4
1799 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1800 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1803 ## Macintosh PowerPC
1804 powerpc
*-*-linux-gnu* )
1805 machine
=macppc opsys
=gnu-linux
1808 ## Masscomp machines
1809 m68
*-masscomp-rtu* )
1810 machine
=masscomp opsys
=rtu
1813 ## Megatest machines
1814 m68
*-megatest-bsd* )
1815 machine
=mega68 opsys
=bsd4-2
1818 ## Workstations sold by MIPS
1819 ## This is not necessarily all workstations using the MIPS processor -
1820 ## Irises are produced by SGI, and DECstations by DEC.
1822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1824 ## it gives for choosing between the alternatives seems to be "Use
1825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1826 ## the BSD world." I'll assume that these are instructions for
1827 ## handling two odd situations, and that every other situation
1828 ## should use mips.h and usg5-2-2, they being listed first.
1831 ## Fall through to the general code at the bottom to decide on the OS.
1833 mips-mips-riscos4
* )
1834 machine
=mips4 opsys
=bsd4-3
1835 NON_GNU_CC
="cc -systype bsd43"
1836 NON_GNU_CPP
="cc -systype bsd43 -E"
1838 mips-mips-riscos5
* )
1839 machine
=mips4 opsys
=riscos5
1840 NON_GNU_CC
="cc -systype bsd43"
1841 NON_GNU_CPP
="cc -systype bsd43 -E"
1844 machine
=mips opsys
=bsd4-3
1847 machine
=mips opsys
=usg5-2-2
1851 m68
*-next-* | m68k-
*-nextstep* )
1852 machine
=m68k opsys
=nextstep
1855 ## The complete machine from National Semiconductor
1857 machine
=ns32000 opsys
=usg5-2
1861 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1862 machine
=tower32 opsys
=usg5-2-2
1864 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1865 machine
=tower32v3 opsys
=usg5-3
1870 machine
=ews4800 opsys
=ux4800
1873 ## Nixdorf Targon 31
1874 m68
*-nixdorf-sysv* )
1875 machine
=targon31 opsys
=usg5-2-2
1880 machine
=nu opsys
=usg5-2
1885 machine
=plexus opsys
=usg5-2
1888 ## PowerPC reference platform
1889 powerpcle-
*-solaris2* )
1895 ## I don't really have any idea what sort of processor the Pyramid has,
1896 ## so I'm assuming it is its own architecture.
1897 pyramid-pyramid-bsd
* )
1898 machine
=pyramid opsys
=bsd4-2
1902 ns32k-sequent-bsd4.2
* )
1903 machine
=sequent opsys
=bsd4-2
1905 ns32k-sequent-bsd4.3
* )
1906 machine
=sequent opsys
=bsd4-3
1910 mips-siemens-sysv
* | mips-sni-sysv
*)
1911 machine
=mips-siemens opsys
=usg5-4
1912 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1913 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1916 ## Silicon Graphics machines
1917 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1919 machine
=irist opsys
=iris3-5
1921 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1922 machine
=irist opsys
=iris3-6
1926 machine
=iris4d opsys
=irix3-3
1929 machine
=iris4d opsys
=irix4-0
1932 machine
=iris4d opsys
=irix6-5
1933 # Without defining _LANGUAGE_C, things get masked out in the headers
1934 # so that, for instance, grepping for `free' in stdlib.h fails and
1935 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1936 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1937 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1940 machine
=iris4d opsys
=irix6-0
1941 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1942 # but presumably it does no harm.
1943 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1944 # -32 probably isn't necessary in later v.6s -- anyone know which?
1945 NON_GCC_TEST_OPTIONS
=-32
1947 mips-sgi-irix5.
[01]* )
1948 machine
=iris4d opsys
=irix5-0
1950 mips-sgi-irix5
* | mips-sgi-irix
* )
1951 machine
=iris4d opsys
=irix5-2
1956 machine
=news opsys
=bsd4-2
1959 machine
=news opsys
=bsd4-3
1961 m68
*-sony-newsos3* | m68
*-sony-news3*)
1962 machine
=news opsys
=bsd4-3
1964 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1965 machine
=news-risc opsys
=bsd4-3
1967 mips-sony-newsos6
* )
1968 machine
=news-r6 opsys
=newsos6
1971 machine
=news-risc opsys
=newsos5
1976 machine
=stride opsys
=usg5-2
1980 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1981 machine
=sparc opsys
=gnu-linux
1984 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1985 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1986 | rs6000-
*-solaris2*)
1987 case "${canonical}" in
1988 m68
*-sunos1* ) machine
=sun1
;;
1989 m68
*-sunos2* ) machine
=sun2
;;
1990 m68
* ) machine
=sun3
;;
1991 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1992 i
[3456]86-*-* ) machine
=intel386
;;
1993 powerpcle
* ) machine
=powerpcle
;;
1994 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1995 sparc
* ) machine
=sparc
;;
1998 case "${canonical}" in
1999 ## The Sun386 didn't get past 4.0.
2000 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2001 *-sunos4.0
* ) opsys
=sunos4-0
;;
2002 *-sunos4.1.
[3-9]*noshare
)
2003 ## This name is sunos413 instead of sunos4-1-3
2004 ## to avoid a file name conflict on MSDOS.
2006 NON_GNU_CPP
=/usr
/lib
/cpp
2007 NON_GCC_TEST_OPTIONS
=-Bstatic
2008 GCC_TEST_OPTIONS
=-static
2010 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2012 NON_GNU_CPP
=/usr
/lib
/cpp
2014 *-sunos4* |
*-sunos )
2016 NON_GCC_TEST_OPTIONS
=-Bstatic
2017 GCC_TEST_OPTIONS
=-static
2019 *-sunos5.3
* |
*-solaris2.3
* )
2021 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2023 *-sunos5.4
* |
*-solaris2.4
* )
2025 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2028 *-sunos5.5
* |
*-solaris2.5
* )
2030 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2033 *-sunos5* |
*-solaris* )
2035 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2039 ## Watch out for a compiler that we know will not work.
2040 case "${canonical}" in
2041 *-solaris* |
*-sunos5* )
2042 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2043 ## /usr/ucb/cc doesn't work;
2044 ## we should find some other compiler that does work.
2052 machine
=sparc opsys
=nextstep
2056 m68
*-tadpole-sysv* )
2057 machine
=tad68k opsys
=usg5-3
2061 tahoe-tahoe-bsd4.2
* )
2062 machine
=tahoe opsys
=bsd4-2
2064 tahoe-tahoe-bsd4.3
* )
2065 machine
=tahoe opsys
=bsd4-3
2068 ## Tandem Integrity S2
2070 machine
=tandem-s2 opsys
=usg5-3
2074 m88k-tektronix-sysv3
* )
2075 machine
=tekxd88 opsys
=usg5-3
2078 ## Tektronix 16000 box (6130?)
2079 ns16k-tektronix-bsd
* )
2080 machine
=ns16000 opsys
=bsd4-2
2083 ## src/m/tek4300.h hints that this is a m68k machine.
2084 m68
*-tektronix-bsd* )
2085 machine
=tek4300 opsys
=bsd4-3
2089 ## We seem to have lost the machine-description file titan.h!
2091 machine
=titan opsys
=usg5-3
2094 ## Ustation E30 (SS5E)
2095 m68
*-unisys-uniplus* )
2096 machine
=ustation opsystem
=unipl5-2
2102 case "${canonical}" in
2103 *-bsd4.1
* ) opsys
=bsd4-1
;;
2104 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2105 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2106 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2107 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2108 *-vms* ) opsys
=vms
;;
2114 ns16k-whitechapel-
* )
2116 ## We don't know what sort of OS runs on these; we'll let the
2117 ## operating system guessing code below try.
2122 machine
=wicat opsys
=usg5-2
2127 machine
=ia64 opsys
=gnu-linux
2130 ## Intel 386 machines where we don't care about the manufacturer
2133 case "${canonical}" in
2134 *-lynxos* ) opsys
=lynxos
;;
2135 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2136 *-isc2.2
* ) opsys
=isc2-2
;;
2137 *-isc4.0
* ) opsys
=isc4-0
;;
2138 *-isc4.
* ) opsys
=isc4-1
2139 GCC_TEST_OPTIONS
=-posix
2140 NON_GCC_TEST_OPTIONS
=-Xp
2142 *-isc* ) opsys
=isc3-0
;;
2143 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2144 *-esix* ) opsys
=esix
;;
2145 *-xenix* ) opsys
=xenix
;;
2146 *-linux-gnu* ) opsys
=gnu-linux
;;
2147 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2148 *-sco3.2v5
* ) opsys
=sco5
2149 NON_GNU_CPP
=/lib
/cpp
2150 # Prevent -belf from being passed to $CPP.
2151 # /lib/cpp does not accept it.
2152 OVERRIDE_CPPFLAGS
=" "
2154 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2155 *-386bsd* ) opsys
=386bsd
;;
2156 *-nextstep* ) opsys
=nextstep
;;
2157 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2161 ## m68k Linux-based GNU system
2163 machine
=m68k opsys
=gnu-linux
2166 ## Mips Linux-based GNU system
2168 machine
=mips opsys
=gnu-linux
2172 sparc-fujitsu-sysv4
* )
2173 machine
=sparc opsys
=uxpds
2174 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2179 f301-fujitsu-uxpv4.1
)
2180 machine
=f301 opsys
=uxpv
2188 ### If the code above didn't choose an operating system, just choose
2189 ### an operating system based on the configuration name. You really
2190 ### only want to use this when you have no idea what the right
2191 ### operating system is; if you know what operating systems a machine
2192 ### runs, it's cleaner to make it explicit in the case statement
2194 if test x
"${opsys}" = x
; then
2195 case "${canonical}" in
2196 *-gnu* ) opsys
=gnu
;;
2197 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2198 *-bsd4.2
) opsys
=bsd4-2
;;
2199 *-bsd4.3
) opsys
=bsd4-3
;;
2200 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2201 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2202 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2203 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2204 *-sysv4.2uw
* ) opsys
=unixware
;;
2205 *-sysv4.1
* |
*-sysvr4.1
* )
2206 NON_GNU_CPP
=/usr
/lib
/cpp
2208 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2209 if [ x
$NON_GNU_CPP = x
]; then
2210 if [ -f /usr
/ccs
/lib
/cpp
]; then
2211 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2213 NON_GNU_CPP
=/lib
/cpp
2217 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2224 if test $unported = yes; then
2225 { { echo "$as_me:2225: error: Emacs hasn't been ported to \`${canonical}' systems.
2226 Check \`etc/MACHINES' for recognized configuration names." >&5
2227 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2228 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2229 { (exit 1); exit 1; }; }
2232 machfile
="m/${machine}.h"
2233 opsysfile
="s/${opsys}.h"
2235 #### Choose a compiler.
2236 test -n "$CC" && cc_specified
=yes
2238 # Save the value of CFLAGS that the user specified.
2239 SPECIFIED_CFLAGS
="$CFLAGS"
2242 "yes" ) CC
="gcc" GCC
=yes ;;
2243 "no" ) : ${CC=cc} ;;
2247 ac_cpp
='$CPP $CPPFLAGS'
2248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2253 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2254 echo "$as_me:2254: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC
="$CC" # Let the user override the test.
2262 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2264 for ac_dir
in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir
=.
2267 $as_executable_p "$ac_dir/$ac_word" ||
continue
2268 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2269 echo "$as_me:2269: found $ac_dir/$ac_word" >&5
2276 if test -n "$CC"; then
2277 echo "$as_me:2277: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6
2280 echo "$as_me:2280: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2285 if test -z "$ac_cv_prog_CC"; then
2287 # Extract the first word of "gcc", so it can be a program name with args.
2288 set dummy gcc
; ac_word
=$2
2289 echo "$as_me:2289: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2297 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2299 for ac_dir
in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir
=.
2302 $as_executable_p "$ac_dir/$ac_word" ||
continue
2303 ac_cv_prog_ac_ct_CC
="gcc"
2304 echo "$as_me:2304: found $ac_dir/$ac_word" >&5
2310 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 echo "$as_me:2312: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2315 echo "$as_me:2315: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2324 if test -z "$CC"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2328 echo "$as_me:2328: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC
="$CC" # Let the user override the test.
2336 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2338 for ac_dir
in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir
=.
2341 $as_executable_p "$ac_dir/$ac_word" ||
continue
2342 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2343 echo "$as_me:2343: found $ac_dir/$ac_word" >&5
2350 if test -n "$CC"; then
2351 echo "$as_me:2351: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2354 echo "$as_me:2354: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_CC"; then
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc
; ac_word
=$2
2363 echo "$as_me:2363: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2371 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2373 for ac_dir
in $ac_dummy; do
2375 test -z "$ac_dir" && ac_dir
=.
2376 $as_executable_p "$ac_dir/$ac_word" ||
continue
2377 ac_cv_prog_ac_ct_CC
="cc"
2378 echo "$as_me:2378: found $ac_dir/$ac_word" >&5
2384 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 echo "$as_me:2386: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2389 echo "$as_me:2389: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc
; ac_word
=$2
2402 echo "$as_me:2402: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC
="$CC" # Let the user override the test.
2411 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2413 for ac_dir
in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir
=.
2416 $as_executable_p "$ac_dir/$ac_word" ||
continue
2417 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2418 ac_prog_rejected
=yes
2422 echo "$as_me:2422: found $ac_dir/$ac_word" >&5
2426 if test $ac_prog_rejected = yes; then
2427 # We found a bogon in the path, so make sure we never use it.
2428 set dummy
$ac_cv_prog_CC
2430 if test $# != 0; then
2431 # We chose a different compiler from the bogus one.
2432 # However, it has the same basename, so the bogon will be chosen
2433 # first if we set CC to just the basename; use the full file name.
2435 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2443 if test -n "$CC"; then
2444 echo "$as_me:2444: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6
2447 echo "$as_me:2447: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2452 if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC
="$CC" # Let the user override the test.
2466 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2468 for ac_dir
in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir
=.
2471 $as_executable_p "$ac_dir/$ac_word" ||
continue
2472 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:2473: found $ac_dir/$ac_word" >&5
2480 if test -n "$CC"; then
2481 echo "$as_me:2481: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6
2484 echo "$as_me:2484: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$CC" && break
2491 if test -z "$CC"; then
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy
$ac_prog; ac_word
=$2
2497 echo "$as_me:2497: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$ac_ct_CC"; then
2503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2505 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2507 for ac_dir
in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir
=.
2510 $as_executable_p "$ac_dir/$ac_word" ||
continue
2511 ac_cv_prog_ac_ct_CC
="$ac_prog"
2512 echo "$as_me:2512: found $ac_dir/$ac_word" >&5
2518 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 echo "$as_me:2520: result: $ac_ct_CC" >&5
2521 echo "${ECHO_T}$ac_ct_CC" >&6
2523 echo "$as_me:2523: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$ac_ct_CC" && break
2535 test -z "$CC" && { { echo "$as_me:2535: error: no acceptable cc found in \$PATH" >&5
2536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Provide some information about the compiler.
2540 echo "$as_me:2540:" \
2541 "checking for C compiler version" >&5
2542 ac_compiler
=`set X $ac_compile; echo $2`
2543 { (eval echo "$as_me:2543: \"$ac_compiler --version </dev/null >&5\"") >&5
2544 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (eval echo "$as_me:2548: \"$ac_compiler -v </dev/null >&5\"") >&5
2549 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:2553: \"$ac_compiler -V </dev/null >&5\"") >&5
2554 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2559 cat >conftest.
$ac_ext <<_ACEOF
2560 #line 2560 "configure"
2561 #include "confdefs.h"
2571 ac_clean_files_save
=$ac_clean_files
2572 ac_clean_files
="$ac_clean_files a.out a.exe"
2573 # Try to create an executable without -o first, disregard a.out.
2574 # It will help us diagnose broken compilers, and finding out an intuition
2576 echo "$as_me:2576: checking for C compiler default output" >&5
2577 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2578 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2579 if { (eval echo "$as_me:2579: \"$ac_link_default\"") >&5
2580 (eval $ac_link_default) 2>&5
2582 echo "$as_me:2582: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # Find the output, starting from the most likely. This scheme is
2585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2587 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2588 ls a.out conftest 2>/dev/null;
2589 ls a.* conftest.* 2>/dev/null`; do
2591 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2592 a.out
) # We found the default executable, but exeext='' is most
2595 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2605 { { echo "$as_me:2605: error: C compiler cannot create executables" >&5
2606 echo "$as_me: error: C compiler cannot create executables" >&2;}
2607 { (exit 77); exit 77; }; }
2610 ac_exeext
=$ac_cv_exeext
2611 echo "$as_me:2611: result: $ac_file" >&5
2612 echo "${ECHO_T}$ac_file" >&6
2614 # Check the compiler produces executables we can run. If not, either
2615 # the compiler is broken, or we cross compile.
2616 echo "$as_me:2616: checking whether the C compiler works" >&5
2617 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2618 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621 if { ac_try
='./$ac_file'
2622 { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 if test "$cross_compiling" = maybe
; then
2632 { { echo "$as_me:2632: error: cannot run C compiled programs.
2633 If you meant to cross compile, use \`--host'." >&5
2634 echo "$as_me: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'." >&2;}
2636 { (exit 1); exit 1; }; }
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 rm -f a.out a.exe conftest
$ac_cv_exeext
2644 ac_clean_files
=$ac_clean_files_save
2645 # Check the compiler produces executables we can run. If not, either
2646 # the compiler is broken, or we cross compile.
2647 echo "$as_me:2647: checking whether we are cross compiling" >&5
2648 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2649 echo "$as_me:2649: result: $cross_compiling" >&5
2650 echo "${ECHO_T}$cross_compiling" >&6
2652 echo "$as_me:2652: checking for executable suffix" >&5
2653 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2654 if { (eval echo "$as_me:2654: \"$ac_link\"") >&5
2655 (eval $ac_link) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2661 # work properly (i.e., refer to `conftest.exe'), while it won't with
2663 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2665 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2666 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673 { { echo "$as_me:2673: error: cannot compute EXEEXT: cannot compile and link" >&5
2674 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest
$ac_cv_exeext
2679 echo "$as_me:2679: result: $ac_cv_exeext" >&5
2680 echo "${ECHO_T}$ac_cv_exeext" >&6
2682 rm -f conftest.
$ac_ext
2683 EXEEXT
=$ac_cv_exeext
2685 echo "$as_me:2685: checking for object suffix" >&5
2686 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2687 if test "${ac_cv_objext+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.
$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2702 rm -f conftest.o conftest.obj
2703 if { (eval echo "$as_me:2703: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>&5
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2710 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2711 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2718 { { echo "$as_me:2718: error: cannot compute OBJEXT: cannot compile" >&5
2719 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2725 echo "$as_me:2725: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6
2727 OBJEXT
=$ac_cv_objext
2729 echo "$as_me:2729: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 cat >conftest.
$ac_ext <<_ACEOF
2735 #line 2735 "configure"
2736 #include "confdefs.h"
2749 rm -f conftest.
$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try
='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2767 rm -f conftest.
$ac_objext conftest.
$ac_ext
2768 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2771 echo "$as_me:2771: result: $ac_cv_c_compiler_gnu" >&5
2772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2773 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2774 ac_test_CFLAGS
=${CFLAGS+set}
2775 ac_save_CFLAGS
=$CFLAGS
2777 echo "$as_me:2777: checking whether $CC accepts -g" >&5
2778 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2779 if test "${ac_cv_prog_cc_g+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 cat >conftest.
$ac_ext <<_ACEOF
2783 #line 2783 "configure"
2784 #include "confdefs.h"
2794 rm -f conftest.
$ac_objext
2795 if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try
='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:2801: \"$ac_try\"") >&5
2804 echo "$as_me:2804: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2812 rm -f conftest.
$ac_objext conftest.
$ac_ext
2814 echo "$as_me:2814: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS
=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2825 if test "$GCC" = yes; then
2831 # Some people use a C++ compiler to compile C. Since we use `exit',
2832 # in C++ we need to declare it. In case someone uses the same compiler
2833 # for both compiling C and C++ we need to have the C++ compiler decide
2834 # the declaration of exit, since it's the most demanding environment.
2835 cat >conftest.
$ac_ext <<_ACEOF
2840 rm -f conftest.
$ac_objext
2841 if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:2844: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try
='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:2847: \"$ac_try\"") >&5
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 for ac_declaration
in \
2854 '#include <stdlib.h>' \
2855 'extern "C" void std::exit (int) throw (); using std::exit;' \
2856 'extern "C" void std::exit (int); using std::exit;' \
2857 'extern "C" void exit (int) throw ();' \
2858 'extern "C" void exit (int);' \
2861 cat >conftest.
$ac_ext <<_ACEOF
2862 #line 2862 "configure"
2863 #include "confdefs.h"
2874 rm -f conftest.
$ac_objext
2875 if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try
='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:2881: \"$ac_try\"") >&5
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 cat conftest.
$ac_ext >&5
2892 rm -f conftest.
$ac_objext conftest.
$ac_ext
2893 cat >conftest.
$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2905 rm -f conftest.
$ac_objext
2906 if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try
='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:2912: \"$ac_try\"") >&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 rm -f conftest.
$ac_objext conftest.
$ac_ext
2925 if test -n "$ac_declaration"; then
2926 echo '#ifdef __cplusplus' >>confdefs.h
2927 echo $ac_declaration >>confdefs.h
2928 echo '#endif' >>confdefs.h
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.
$ac_ext >&5
2935 rm -f conftest.
$ac_objext conftest.
$ac_ext
2937 ac_cpp
='$CPP $CPPFLAGS'
2938 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2947 #### Some systems specify a CPP to use unless we are using GCC.
2948 #### Now that we know whether we are using GCC, we can decide whether
2949 #### to use that one.
2950 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2955 #### Some systems specify a CC 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_CC" != x
&& test x
$GCC != xyes
&&
2959 test x
$cc_specified != xyes
2964 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2966 CC
="$CC $GCC_TEST_OPTIONS"
2969 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2971 CC
="$CC $NON_GCC_TEST_OPTIONS"
2974 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2976 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2979 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2981 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2984 #### Some other nice autoconf tests. If you add a test here which
2985 #### should make an entry in src/config.h, don't forget to add an
2986 #### #undef clause to src/config.h.in for autoconf to modify.
2988 echo "$as_me:2988: checking whether ln -s works" >&5
2989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2991 if test "$LN_S" = "ln -s"; then
2992 echo "$as_me:2992: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6
2995 echo "$as_me:2995: result: no, using $LN_S" >&5
2996 echo "${ECHO_T}no, using $LN_S" >&6
3000 ac_cpp
='$CPP $CPPFLAGS'
3001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3004 echo "$as_me:3004: checking how to run the C preprocessor" >&5
3005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3006 # On Suns, sometimes $CPP names a directory.
3007 if test -n "$CPP" && test -d "$CPP"; then
3010 if test -z "$CPP"; then
3011 if test "${ac_cv_prog_CPP+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 # Double quotes because CPP needs to be expanded
3015 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3018 for ac_c_preproc_warn_flag
in '' yes
3020 # Use a header file that comes with gcc, so configuring glibc
3021 # with a fresh cross-compiler works.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat >conftest.
$ac_ext <<_ACEOF
3025 #line 3025 "configure"
3026 #include "confdefs.h"
3030 if { (eval echo "$as_me:3030: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 egrep -v '^ *\+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3046 if test -z "$ac_cpp_err"; then
3049 echo "$as_me: failed program was:" >&5
3050 cat conftest.
$ac_ext >&5
3051 # Broken: fails on valid input.
3054 rm -f conftest.err conftest.
$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.
$ac_ext <<_ACEOF
3059 #line 3059 "configure"
3060 #include "confdefs.h"
3061 #include <ac_nonexistent.h>
3063 if { (eval echo "$as_me:3063: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3066 egrep -v '^ *\+' conftest.er1
>conftest.err
3068 cat conftest.err
>&5
3069 echo "$as_me:3069: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev
/null
; then
3071 if test -s conftest.err
; then
3072 ac_cpp_err
=$ac_c_preproc_warn_flag
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3083 echo "$as_me: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3106 echo "$as_me:3106: result: $CPP" >&5
3107 echo "${ECHO_T}$CPP" >&6
3109 for ac_c_preproc_warn_flag
in '' yes
3111 # Use a header file that comes with gcc, so configuring glibc
3112 # with a fresh cross-compiler works.
3113 # On the NeXT, cc -E runs the code through the compiler's parser,
3114 # not just through cpp. "Syntax error" is here to catch this case.
3115 cat >conftest.
$ac_ext <<_ACEOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3121 if { (eval echo "$as_me:3121: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3124 egrep -v '^ *\+' conftest.er1
>conftest.err
3126 cat conftest.err
>&5
3127 echo "$as_me:3127: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev
/null
; then
3129 if test -s conftest.err
; then
3130 ac_cpp_err
=$ac_c_preproc_warn_flag
3137 if test -z "$ac_cpp_err"; then
3140 echo "$as_me: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3142 # Broken: fails on valid input.
3145 rm -f conftest.err conftest.
$ac_ext
3147 # OK, works on sane cases. Now check whether non-existent headers
3148 # can be detected and how.
3149 cat >conftest.
$ac_ext <<_ACEOF
3150 #line 3150 "configure"
3151 #include "confdefs.h"
3152 #include <ac_nonexistent.h>
3154 if { (eval echo "$as_me:3154: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3157 egrep -v '^ *\+' conftest.er1
>conftest.err
3159 cat conftest.err
>&5
3160 echo "$as_me:3160: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev
/null
; then
3162 if test -s conftest.err
; then
3163 ac_cpp_err
=$ac_c_preproc_warn_flag
3170 if test -z "$ac_cpp_err"; then
3171 # Broken: success on invalid input.
3174 echo "$as_me: failed program was:" >&5
3175 cat conftest.
$ac_ext >&5
3176 # Passes both tests.
3180 rm -f conftest.err conftest.
$ac_ext
3183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184 rm -f conftest.err conftest.
$ac_ext
3185 if $ac_preproc_ok; then
3188 { { echo "$as_me:3188: error: C preprocessor \"$CPP\" fails sanity check" >&5
3189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3190 { (exit 1); exit 1; }; }
3194 ac_cpp
='$CPP $CPPFLAGS'
3195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3199 # Find a good install program. We prefer a C program (faster),
3200 # so one script is as good as another. But avoid the broken or
3201 # incompatible versions:
3202 # SysV /etc/install, /usr/sbin/install
3203 # SunOS /usr/etc/install
3204 # IRIX /sbin/install
3206 # AmigaOS /C/install, which installs bootblocks on floppy discs
3207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 echo "$as_me:3211: checking for a BSD compatible install" >&5
3212 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3218 for ac_dir
in $PATH; do
3220 # Account for people who put trailing slashes in PATH elements.
3222 / | .
/ | .
// |
/cC
/* \
3223 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3226 # OSF1 and SCO ODT 3.0 have their own names for install.
3227 # Don't use installbsd from OSF since it installs stuff as root
3229 for ac_prog
in ginstall scoinst
install; do
3230 if $as_executable_p "$ac_dir/$ac_prog"; then
3231 if test $ac_prog = install &&
3232 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3233 # AIX install. It has an incompatible calling convention.
3235 elif test $ac_prog = install &&
3236 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3237 # program-specific install script used by HP pwplus--don't use.
3240 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3250 if test "${ac_cv_path_install+set}" = set; then
3251 INSTALL
=$ac_cv_path_install
3253 # As a last resort, use the slow shell script. We don't cache a
3254 # path for INSTALL within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the path is relative.
3257 INSTALL
=$ac_install_sh
3260 echo "$as_me:3260: result: $INSTALL" >&5
3261 echo "${ECHO_T}$INSTALL" >&6
3263 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3264 # It thinks the first close brace ends the variable substitution.
3265 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3267 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3269 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3271 for ac_prog
in 'bison -y' byacc
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy
$ac_prog; ac_word
=$2
3275 echo "$as_me:3275: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_YACC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$YACC"; then
3281 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3283 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3285 for ac_dir
in $ac_dummy; do
3287 test -z "$ac_dir" && ac_dir
=.
3288 $as_executable_p "$ac_dir/$ac_word" ||
continue
3289 ac_cv_prog_YACC
="$ac_prog"
3290 echo "$as_me:3290: found $ac_dir/$ac_word" >&5
3296 YACC
=$ac_cv_prog_YACC
3297 if test -n "$YACC"; then
3298 echo "$as_me:3298: result: $YACC" >&5
3299 echo "${ECHO_T}$YACC" >&6
3301 echo "$as_me:3301: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3305 test -n "$YACC" && break
3307 test -n "$YACC" || YACC
="yacc"
3309 if test "x$RANLIB" = x
; then
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3312 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3313 echo "$as_me:3313: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_RANLIB+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$RANLIB"; then
3319 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3321 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3323 for ac_dir
in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir
=.
3326 $as_executable_p "$ac_dir/$ac_word" ||
continue
3327 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3328 echo "$as_me:3328: found $ac_dir/$ac_word" >&5
3334 RANLIB
=$ac_cv_prog_RANLIB
3335 if test -n "$RANLIB"; then
3336 echo "$as_me:3336: result: $RANLIB" >&5
3337 echo "${ECHO_T}$RANLIB" >&6
3339 echo "$as_me:3339: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3344 if test -z "$ac_cv_prog_RANLIB"; then
3345 ac_ct_RANLIB
=$RANLIB
3346 # Extract the first word of "ranlib", so it can be a program name with args.
3347 set dummy ranlib
; ac_word
=$2
3348 echo "$as_me:3348: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -n "$ac_ct_RANLIB"; then
3354 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3356 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3358 for ac_dir
in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir
=.
3361 $as_executable_p "$ac_dir/$ac_word" ||
continue
3362 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3363 echo "$as_me:3363: found $ac_dir/$ac_word" >&5
3367 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3370 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3371 if test -n "$ac_ct_RANLIB"; then
3372 echo "$as_me:3372: result: $ac_ct_RANLIB" >&5
3373 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3375 echo "$as_me:3375: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 RANLIB
=$ac_ct_RANLIB
3381 RANLIB
="$ac_cv_prog_RANLIB"
3386 echo "$as_me:3386: checking for AIX" >&5
3387 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3388 cat >conftest.
$ac_ext <<_ACEOF
3389 #line 3389 "configure"
3390 #include "confdefs.h"
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "yes" >/dev
/null
2>&1; then
3398 echo "$as_me:3398: result: yes" >&5
3399 echo "${ECHO_T}yes" >&6
3400 cat >>confdefs.h
<<\EOF
3401 #define _ALL_SOURCE 1
3405 echo "$as_me:3405: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3410 #### Extract some information from the operating system and machine files.
3412 { echo "$as_me:3412: checking the machine- and system-dependent files to find out
3413 - which libraries the lib-src programs will want, and
3414 - whether the GNU malloc routines are usable..." >&5
3415 echo "$as_me: checking the machine- and system-dependent files to find out
3416 - which libraries the lib-src programs will want, and
3417 - whether the GNU malloc routines are usable..." >&6;}
3419 ### First figure out CFLAGS (which we use for running the compiler here)
3420 ### and REAL_CFLAGS (which we use for real compilation).
3421 ### The two are the same except on a few systems, where they are made
3422 ### different to work around various lossages. For example,
3423 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3424 ### as implying static linking.
3426 ### If the CFLAGS env var is specified, we use that value
3427 ### instead of the default.
3429 ### It's not important that this name contain the PID; you can't run
3430 ### two configures in the same directory and have anything work
3432 tempcname
="conftest.c"
3435 #include "'${srcdir}'/src/'${opsysfile}'"
3436 #include "'${srcdir}'/src/'${machfile}'"
3437 #ifndef LIBS_MACHINE
3438 #define LIBS_MACHINE
3443 #ifndef C_SWITCH_SYSTEM
3444 #define C_SWITCH_SYSTEM
3446 #ifndef C_SWITCH_MACHINE
3447 #define C_SWITCH_MACHINE
3449 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3450 configure___ c_switch_system=C_SWITCH_SYSTEM
3451 configure___ c_switch_machine=C_SWITCH_MACHINE
3454 #define LIB_X11_LIB -lX11
3457 #ifndef LIBX11_MACHINE
3458 #define LIBX11_MACHINE
3461 #ifndef LIBX11_SYSTEM
3462 #define LIBX11_SYSTEM
3464 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3467 configure___ unexec=UNEXEC
3469 configure___ unexec=unexec.o
3472 #ifdef SYSTEM_MALLOC
3473 configure___ system_malloc=yes
3475 configure___ system_malloc=no
3478 #ifdef USE_MMAP_FOR_BUFFERS
3479 configure___ use_mmap_for_buffers=yes
3481 configure___ use_mmap_for_buffers=no
3484 #ifndef C_DEBUG_SWITCH
3485 #define C_DEBUG_SWITCH -g
3488 #ifndef C_OPTIMIZE_SWITCH
3490 #define C_OPTIMIZE_SWITCH -O2
3492 #define C_OPTIMIZE_SWITCH -O
3496 #ifndef LD_SWITCH_MACHINE
3497 #define LD_SWITCH_MACHINE
3500 #ifndef LD_SWITCH_SYSTEM
3501 #define LD_SWITCH_SYSTEM
3504 #ifndef LD_SWITCH_X_SITE_AUX
3505 #define LD_SWITCH_X_SITE_AUX
3508 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3509 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3511 #ifdef THIS_IS_CONFIGURE
3513 /* Get the CFLAGS for tests in configure. */
3515 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3517 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3520 #else /* not THIS_IS_CONFIGURE */
3522 /* Get the CFLAGS for real compilation. */
3524 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3526 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3529 #endif /* not THIS_IS_CONFIGURE */
3532 # The value of CPP is a quoted variable reference, so we need to do this
3533 # to get its actual value...
3534 CPP
=`eval "echo $CPP"`
3535 eval `${CPP} -Isrc ${tempcname} \
3536 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3537 if test "x$SPECIFIED_CFLAGS" = x
; then
3538 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3539 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3541 REAL_CFLAGS
="$CFLAGS"
3545 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3547 ### Make sure subsequent tests use flags consistent with the build flags.
3549 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3550 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3552 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3555 # Check whether --enable-largefile or --disable-largefile was given.
3556 if test "${enable_largefile+set}" = set; then
3557 enableval
="$enable_largefile"
3560 if test "$enable_largefile" != no
; then
3562 echo "$as_me:3562: checking for special C compiler options needed for large files" >&5
3563 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3564 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 ac_cv_sys_largefile_CC
=no
3568 if test "$GCC" != yes; then
3571 # IRIX 6.2 and later do not support large files by default,
3572 # so use the C compiler's -n32 option if that helps.
3573 cat >conftest.
$ac_ext <<_ACEOF
3574 #line 3574 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3577 /* Check that off_t can represent 2**63 - 1 correctly.
3578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3579 since some C++ compilers masquerading as C compilers
3580 incorrectly reject 9223372036854775807. */
3581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3583 && LARGE_OFF_T % 2147483647 == 1)
3593 rm -f conftest.
$ac_objext
3594 if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>&5
3597 echo "$as_me:3597: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:3600: \"$ac_try\"") >&5
3603 echo "$as_me:3603: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3607 echo "$as_me: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 rm -f conftest.
$ac_objext
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try
='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3622 echo "$as_me:3622: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_sys_largefile_CC
=' -n32'; break
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 rm -f conftest.
$ac_objext
3633 rm -f conftest.
$ac_ext
3636 echo "$as_me:3636: result: $ac_cv_sys_largefile_CC" >&5
3637 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3638 if test "$ac_cv_sys_largefile_CC" != no
; then
3639 CC
=$CC$ac_cv_sys_largefile_CC
3642 echo "$as_me:3642: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3643 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3644 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_cv_sys_file_offset_bits
=no
3649 cat >conftest.
$ac_ext <<_ACEOF
3650 #line 3650 "configure"
3651 #include "confdefs.h"
3652 #include <sys/types.h>
3653 /* Check that off_t can represent 2**63 - 1 correctly.
3654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3655 since some C++ compilers masquerading as C compilers
3656 incorrectly reject 9223372036854775807. */
3657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3659 && LARGE_OFF_T % 2147483647 == 1)
3669 rm -f conftest.
$ac_objext
3670 if { (eval echo "$as_me:3670: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>&5
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try
='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.
$ac_ext >&5
3686 rm -f conftest.
$ac_objext conftest.
$ac_ext
3687 cat >conftest.
$ac_ext <<_ACEOF
3688 #line 3688 "configure"
3689 #include "confdefs.h"
3690 #define _FILE_OFFSET_BITS 64
3691 #include <sys/types.h>
3692 /* Check that off_t can represent 2**63 - 1 correctly.
3693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3694 since some C++ compilers masquerading as C compilers
3695 incorrectly reject 9223372036854775807. */
3696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3698 && LARGE_OFF_T % 2147483647 == 1)
3708 rm -f conftest.
$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try
='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_cv_sys_file_offset_bits
=64; break
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.
$ac_ext >&5
3725 rm -f conftest.
$ac_objext conftest.
$ac_ext
3729 echo "$as_me:3729: result: $ac_cv_sys_file_offset_bits" >&5
3730 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3731 if test "$ac_cv_sys_file_offset_bits" != no
; then
3733 cat >>confdefs.h
<<EOF
3734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3739 echo "$as_me:3739: checking for _LARGE_FILES value needed for large files" >&5
3740 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3741 if test "${ac_cv_sys_large_files+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_cv_sys_large_files
=no
3746 cat >conftest.
$ac_ext <<_ACEOF
3747 #line 3747 "configure"
3748 #include "confdefs.h"
3749 #include <sys/types.h>
3750 /* Check that off_t can represent 2**63 - 1 correctly.
3751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3752 since some C++ compilers masquerading as C compilers
3753 incorrectly reject 9223372036854775807. */
3754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3756 && LARGE_OFF_T % 2147483647 == 1)
3766 rm -f conftest.
$ac_objext
3767 if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>&5
3770 echo "$as_me:3770: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try
='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:3773: \"$ac_try\"") >&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3780 echo "$as_me: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3783 rm -f conftest.
$ac_objext conftest.
$ac_ext
3784 cat >conftest.
$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787 #define _LARGE_FILES 1
3788 #include <sys/types.h>
3789 /* Check that off_t can represent 2**63 - 1 correctly.
3790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3791 since some C++ compilers masquerading as C compilers
3792 incorrectly reject 9223372036854775807. */
3793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3795 && LARGE_OFF_T % 2147483647 == 1)
3805 rm -f conftest.
$ac_objext
3806 if { (eval echo "$as_me:3806: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3809 echo "$as_me:3809: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try
='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:3812: \"$ac_try\"") >&5
3815 echo "$as_me:3815: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_sys_large_files
=1; break
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.
$ac_ext >&5
3822 rm -f conftest.
$ac_objext conftest.
$ac_ext
3826 echo "$as_me:3826: result: $ac_cv_sys_large_files" >&5
3827 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3828 if test "$ac_cv_sys_large_files" != no
; then
3830 cat >>confdefs.h
<<EOF
3831 #define _LARGE_FILES $ac_cv_sys_large_files
3838 # Sound support for GNU/Linux and the free BSDs.
3840 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843 echo "$as_me:3843: checking for $ac_header" >&5
3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.
$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3851 #include <$ac_header>
3853 if { (eval echo "$as_me:3853: \"$ac_cpp conftest.$ac_ext\"") >&5
3854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3856 egrep -v '^ *\+' conftest.er1
>conftest.err
3858 cat conftest.err
>&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev
/null
; then
3861 if test -s conftest.err
; then
3862 ac_cpp_err
=$ac_c_preproc_warn_flag
3869 if test -z "$ac_cpp_err"; then
3870 eval "$as_ac_Header=yes"
3872 echo "$as_me: failed program was:" >&5
3873 cat conftest.
$ac_ext >&5
3874 eval "$as_ac_Header=no"
3876 rm -f conftest.err conftest.
$ac_ext
3878 echo "$as_me:3878: result: `eval echo '${'$as_ac_Header'}'`" >&5
3879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3881 cat >>confdefs.h
<<EOF
3882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3888 # Emulation library used on NetBSD.
3889 echo "$as_me:3889: checking for _oss_ioctl in -lossaudio" >&5
3890 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3891 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_check_lib_save_LIBS
=$LIBS
3895 LIBS
="-lossaudio $LIBS"
3896 cat >conftest.
$ac_ext <<_ACEOF
3897 #line 3897 "configure"
3898 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3915 rm -f conftest.
$ac_objext conftest
$ac_exeext
3916 if { (eval echo "$as_me:3916: \"$ac_link\"") >&5
3917 (eval $ac_link) 2>&5
3919 echo "$as_me:3919: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try
='test -s conftest$ac_exeext'
3922 { (eval echo "$as_me:3922: \"$ac_try\"") >&5
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_lib_ossaudio__oss_ioctl
=yes
3929 echo "$as_me: failed program was:" >&5
3930 cat conftest.
$ac_ext >&5
3931 ac_cv_lib_ossaudio__oss_ioctl
=no
3933 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3934 LIBS
=$ac_check_lib_save_LIBS
3936 echo "$as_me:3936: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3937 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3938 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3944 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3945 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3946 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
3948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:3949: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 cat >conftest.
$ac_ext <<_ACEOF
3955 #line 3955 "configure"
3956 #include "confdefs.h"
3957 #include <$ac_header>
3959 if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3962 egrep -v '^ *\+' conftest.er1
>conftest.err
3964 cat conftest.err
>&5
3965 echo "$as_me:3965: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev
/null
; then
3967 if test -s conftest.err
; then
3968 ac_cpp_err
=$ac_c_preproc_warn_flag
3975 if test -z "$ac_cpp_err"; then
3976 eval "$as_ac_Header=yes"
3978 echo "$as_me: failed program was:" >&5
3979 cat conftest.
$ac_ext >&5
3980 eval "$as_ac_Header=no"
3982 rm -f conftest.err conftest.
$ac_ext
3984 echo "$as_me:3984: result: `eval echo '${'$as_ac_Header'}'`" >&5
3985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3987 cat >>confdefs.h
<<EOF
3988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3994 echo "$as_me:3994: checking for ANSI C header files" >&5
3995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3996 if test "${ac_cv_header_stdc+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 cat >conftest.
$ac_ext <<_ACEOF
4000 #line 4000 "configure"
4001 #include "confdefs.h"
4008 if { (eval echo "$as_me:4008: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4011 egrep -v '^ *\+' conftest.er1
>conftest.err
4013 cat conftest.err
>&5
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev
/null
; then
4016 if test -s conftest.err
; then
4017 ac_cpp_err
=$ac_c_preproc_warn_flag
4024 if test -z "$ac_cpp_err"; then
4025 ac_cv_header_stdc
=yes
4027 echo "$as_me: failed program was:" >&5
4028 cat conftest.
$ac_ext >&5
4029 ac_cv_header_stdc
=no
4031 rm -f conftest.err conftest.
$ac_ext
4033 if test $ac_cv_header_stdc = yes; then
4034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4035 cat >conftest.
$ac_ext <<_ACEOF
4036 #line 4036 "configure"
4037 #include "confdefs.h"
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 egrep "memchr" >/dev
/null
2>&1; then
4045 ac_cv_header_stdc
=no
4051 if test $ac_cv_header_stdc = yes; then
4052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4053 cat >conftest.
$ac_ext <<_ACEOF
4054 #line 4054 "configure"
4055 #include "confdefs.h"
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 egrep "free" >/dev
/null
2>&1; then
4063 ac_cv_header_stdc
=no
4069 if test $ac_cv_header_stdc = yes; then
4070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071 if test "$cross_compiling" = yes; then
4074 cat >conftest.
$ac_ext <<_ACEOF
4075 #line 4075 "configure"
4076 #include "confdefs.h"
4078 #if ((' ' & 0x0FF) == 0x020)
4079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4082 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4083 || ('j' <= (c) && (c) <= 'r') \
4084 || ('s' <= (c) && (c) <= 'z'))
4085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4093 for (i = 0; i < 256; i++)
4094 if (XOR (islower (i), ISLOWER (i))
4095 || toupper (i) != TOUPPER (i))
4100 rm -f conftest
$ac_exeext
4101 if { (eval echo "$as_me:4101: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4104 echo "$as_me:4104: \$? = $ac_status" >&5
4105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4106 { (eval echo "$as_me:4106: \"$ac_try\"") >&5
4109 echo "$as_me:4109: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4113 echo "$as_me: program exited with status $ac_status" >&5
4114 echo "$as_me: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4116 ac_cv_header_stdc
=no
4118 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4122 echo "$as_me:4122: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4124 if test $ac_cv_header_stdc = yes; then
4126 cat >>confdefs.h
<<\EOF
4127 #define STDC_HEADERS 1
4132 echo "$as_me:4132: checking whether time.h and sys/time.h may both be included" >&5
4133 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4134 if test "${ac_cv_header_time+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.
$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4141 #include <sys/time.h>
4147 if ((struct tm *) 0)
4153 rm -f conftest.
$ac_objext
4154 if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:4160: \"$ac_try\"") >&5
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_header_time
=yes
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4169 ac_cv_header_time
=no
4171 rm -f conftest.
$ac_objext conftest.
$ac_ext
4173 echo "$as_me:4173: result: $ac_cv_header_time" >&5
4174 echo "${ECHO_T}$ac_cv_header_time" >&6
4175 if test $ac_cv_header_time = yes; then
4177 cat >>confdefs.h
<<\EOF
4178 #define TIME_WITH_SYS_TIME 1
4183 echo "$as_me:4183: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4184 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4185 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.
$ac_ext <<_ACEOF
4189 #line 4189 "configure"
4190 #include "confdefs.h"
4191 #include <sys/types.h>
4193 /* NetBSD declares sys_siglist in unistd.h. */
4195 # include <unistd.h>
4201 char *msg = *(sys_siglist + 1);
4206 rm -f conftest.
$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try
='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_decl_sys_siglist
=yes
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4222 ac_cv_decl_sys_siglist
=no
4224 rm -f conftest.
$ac_objext conftest.
$ac_ext
4226 echo "$as_me:4226: result: $ac_cv_decl_sys_siglist" >&5
4227 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4228 if test $ac_cv_decl_sys_siglist = yes; then
4230 cat >>confdefs.h
<<\EOF
4231 #define SYS_SIGLIST_DECLARED 1
4236 echo "$as_me:4236: checking for sys/wait.h that is POSIX.1 compatible" >&5
4237 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4238 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 cat >conftest.
$ac_ext <<_ACEOF
4242 #line 4242 "configure"
4243 #include "confdefs.h"
4244 #include <sys/types.h>
4245 #include <sys/wait.h>
4247 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4250 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4258 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4263 rm -f conftest.
$ac_objext
4264 if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try
='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_header_sys_wait_h
=yes
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4279 ac_cv_header_sys_wait_h
=no
4281 rm -f conftest.
$ac_objext conftest.
$ac_ext
4283 echo "$as_me:4283: result: $ac_cv_header_sys_wait_h" >&5
4284 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4285 if test $ac_cv_header_sys_wait_h = yes; then
4287 cat >>confdefs.h
<<\EOF
4288 #define HAVE_SYS_WAIT_H 1
4293 echo "$as_me:4293: checking for struct utimbuf" >&5
4294 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4295 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 cat >conftest.
$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #ifdef TIME_WITH_SYS_TIME
4302 #include <sys/time.h>
4305 #ifdef HAVE_SYS_TIME_H
4306 #include <sys/time.h>
4317 static struct utimbuf x; x.actime = x.modtime;
4322 rm -f conftest.
$ac_objext
4323 if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4326 echo "$as_me:4326: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try
='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:4329: \"$ac_try\"") >&5
4332 echo "$as_me:4332: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 emacs_cv_struct_utimbuf
=yes
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.
$ac_ext >&5
4338 emacs_cv_struct_utimbuf
=no
4340 rm -f conftest.
$ac_objext conftest.
$ac_ext
4342 echo "$as_me:4342: result: $emacs_cv_struct_utimbuf" >&5
4343 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4344 if test $emacs_cv_struct_utimbuf = yes; then
4345 cat >>confdefs.h
<<\EOF
4346 #define HAVE_STRUCT_UTIMBUF 1
4351 echo "$as_me:4351: checking return type of signal handlers" >&5
4352 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4353 if test "${ac_cv_type_signal+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.
$ac_ext <<_ACEOF
4357 #line 4357 "configure"
4358 #include "confdefs.h"
4359 #include <sys/types.h>
4365 extern "C" void (*signal (int, void (*)(int)))(int);
4367 void (*signal ()) ();
4378 rm -f conftest.
$ac_objext
4379 if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>&5
4382 echo "$as_me:4382: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try
='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:4385: \"$ac_try\"") >&5
4388 echo "$as_me:4388: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_type_signal
=void
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4394 ac_cv_type_signal
=int
4396 rm -f conftest.
$ac_objext conftest.
$ac_ext
4398 echo "$as_me:4398: result: $ac_cv_type_signal" >&5
4399 echo "${ECHO_T}$ac_cv_type_signal" >&6
4401 cat >>confdefs.h
<<EOF
4402 #define RETSIGTYPE $ac_cv_type_signal
4405 echo "$as_me:4405: checking for speed_t" >&5
4406 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4407 if test "${emacs_cv_speed_t+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.
$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4413 #include <termios.h>
4422 rm -f conftest.
$ac_objext
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try
='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 emacs_cv_speed_t
=yes
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.
$ac_ext >&5
4440 rm -f conftest.
$ac_objext conftest.
$ac_ext
4442 echo "$as_me:4442: result: $emacs_cv_speed_t" >&5
4443 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4444 if test $emacs_cv_speed_t = yes; then
4445 cat >>confdefs.h
<<\EOF
4446 #define HAVE_SPEED_T 1
4451 echo "$as_me:4451: checking for struct timeval" >&5
4452 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4453 if test "${emacs_cv_struct_timeval+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.
$ac_ext <<_ACEOF
4457 #line 4457 "configure"
4458 #include "confdefs.h"
4459 #ifdef TIME_WITH_SYS_TIME
4460 #include <sys/time.h>
4463 #ifdef HAVE_SYS_TIME_H
4464 #include <sys/time.h>
4472 static struct timeval x; x.tv_sec = x.tv_usec;
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:4478: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4481 echo "$as_me:4481: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try
='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:4484: \"$ac_try\"") >&5
4487 echo "$as_me:4487: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 emacs_cv_struct_timeval
=yes
4491 echo "$as_me: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4493 emacs_cv_struct_timeval
=no
4495 rm -f conftest.
$ac_objext conftest.
$ac_ext
4497 echo "$as_me:4497: result: $emacs_cv_struct_timeval" >&5
4498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4499 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4500 if test $emacs_cv_struct_timeval = yes; then
4501 cat >>confdefs.h
<<\EOF
4502 #define HAVE_TIMEVAL 1
4507 echo "$as_me:4507: checking for struct exception" >&5
4508 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4509 if test "${emacs_cv_struct_exception+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 cat >conftest.
$ac_ext <<_ACEOF
4513 #line 4513 "configure"
4514 #include "confdefs.h"
4519 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:4525: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:4528: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try
='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:4531: \"$ac_try\"") >&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 emacs_cv_struct_exception
=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4540 emacs_cv_struct_exception
=no
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4544 echo "$as_me:4544: result: $emacs_cv_struct_exception" >&5
4545 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4546 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4547 if test $emacs_cv_struct_exception != yes; then
4548 cat >>confdefs.h
<<\EOF
4549 #define NO_MATHERR 1
4554 echo "$as_me:4554: checking whether struct tm is in sys/time.h or time.h" >&5
4555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4556 if test "${ac_cv_struct_tm+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 cat >conftest.
$ac_ext <<_ACEOF
4560 #line 4560 "configure"
4561 #include "confdefs.h"
4562 #include <sys/types.h>
4568 struct tm *tp; tp->tm_sec;
4573 rm -f conftest.
$ac_objext
4574 if { (eval echo "$as_me:4574: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4577 echo "$as_me:4577: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try
='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:4580: \"$ac_try\"") >&5
4583 echo "$as_me:4583: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_struct_tm
=time.h
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.
$ac_ext >&5
4589 ac_cv_struct_tm
=sys
/time.h
4591 rm -f conftest.
$ac_objext conftest.
$ac_ext
4593 echo "$as_me:4593: result: $ac_cv_struct_tm" >&5
4594 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4595 if test $ac_cv_struct_tm = sys
/time.h
; then
4597 cat >>confdefs.h
<<\EOF
4598 #define TM_IN_SYS_TIME 1
4603 echo "$as_me:4603: checking for struct tm.tm_zone" >&5
4604 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4605 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 cat >conftest.
$ac_ext <<_ACEOF
4609 #line 4609 "configure"
4610 #include "confdefs.h"
4611 #include <sys/types.h>
4612 #include <$ac_cv_struct_tm>
4617 static struct tm ac_aggr;
4618 if (ac_aggr.tm_zone)
4624 rm -f conftest.
$ac_objext
4625 if { (eval echo "$as_me:4625: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try
='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:4631: \"$ac_try\"") >&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_member_struct_tm_tm_zone
=yes
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.
$ac_ext >&5
4640 ac_cv_member_struct_tm_tm_zone
=no
4642 rm -f conftest.
$ac_objext conftest.
$ac_ext
4644 echo "$as_me:4644: result: $ac_cv_member_struct_tm_tm_zone" >&5
4645 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4646 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4648 cat >>confdefs.h
<<EOF
4649 #define HAVE_STRUCT_TM_TM_ZONE 1
4654 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4656 cat >>confdefs.h
<<\EOF
4657 #define HAVE_TM_ZONE 1
4661 echo "$as_me:4661: checking for tzname" >&5
4662 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4663 if test "${ac_cv_var_tzname+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 cat >conftest.
$ac_ext <<_ACEOF
4667 #line 4667 "configure"
4668 #include "confdefs.h"
4670 #ifndef tzname /* For SGI. */
4671 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4682 rm -f conftest.
$ac_objext conftest
$ac_exeext
4683 if { (eval echo "$as_me:4683: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4686 echo "$as_me:4686: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try
='test -s conftest$ac_exeext'
4689 { (eval echo "$as_me:4689: \"$ac_try\"") >&5
4692 echo "$as_me:4692: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_var_tzname
=yes
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4700 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4702 echo "$as_me:4702: result: $ac_cv_var_tzname" >&5
4703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4704 if test $ac_cv_var_tzname = yes; then
4706 cat >>confdefs.h
<<\EOF
4707 #define HAVE_TZNAME 1
4713 echo "$as_me:4713: checking for tm_gmtoff in struct tm" >&5
4714 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4715 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.
$ac_ext <<_ACEOF
4719 #line 4719 "configure"
4720 #include "confdefs.h"
4725 struct tm t; t.tm_gmtoff = 0
4730 rm -f conftest.
$ac_objext conftest
$ac_exeext
4731 if { (eval echo "$as_me:4731: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4734 echo "$as_me:4734: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try
='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:4737: \"$ac_try\"") >&5
4740 echo "$as_me:4740: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 emacs_cv_tm_gmtoff
=yes
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.
$ac_ext >&5
4746 emacs_cv_tm_gmtoff
=no
4748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4750 echo "$as_me:4750: result: $emacs_cv_tm_gmtoff" >&5
4751 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4752 if test $emacs_cv_tm_gmtoff = yes; then
4753 cat >>confdefs.h
<<\EOF
4754 #define HAVE_TM_GMTOFF 1
4759 echo "$as_me:4759: checking for $CC option to accept ANSI C" >&5
4760 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4761 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_cv_prog_cc_stdc
=no
4766 cat >conftest.
$ac_ext <<_ACEOF
4767 #line 4767 "configure"
4768 #include "confdefs.h"
4771 #include <sys/types.h>
4772 #include <sys/stat.h>
4773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4774 struct buf { int x; };
4775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4776 static char *e (p, i)
4782 static char *f (char * (*g) (char **, int), char **p, ...)
4787 s = g (p, va_arg (v,int));
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4805 # Don't try gcc -ansi; that turns off useful extensions and
4806 # breaks some systems' header files.
4807 # AIX -qlanglvl=ansi
4808 # Ultrix and OSF/1 -std1
4809 # HP-UX 10.20 and later -Ae
4810 # HP-UX older versions -Aa -D_HPUX_SOURCE
4811 # SVR4 -Xc -D__EXTENSIONS__
4812 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4814 CC
="$ac_save_CC $ac_arg"
4815 rm -f conftest.
$ac_objext
4816 if { (eval echo "$as_me:4816: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4819 echo "$as_me:4819: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try
='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:4822: \"$ac_try\"") >&5
4825 echo "$as_me:4825: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_prog_cc_stdc
=$ac_arg
4830 echo "$as_me: failed program was:" >&5
4831 cat conftest.
$ac_ext >&5
4833 rm -f conftest.
$ac_objext
4835 rm -f conftest.
$ac_ext conftest.
$ac_objext
4840 case "x$ac_cv_prog_cc_stdc" in
4842 echo "$as_me:4842: result: none needed" >&5
4843 echo "${ECHO_T}none needed" >&6 ;;
4845 echo "$as_me:4845: result: $ac_cv_prog_cc_stdc" >&5
4846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4847 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4850 echo "$as_me:4850: checking for function prototypes" >&5
4851 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4852 if test "$ac_cv_prog_cc_stdc" != no
; then
4853 echo "$as_me:4853: result: yes" >&5
4854 echo "${ECHO_T}yes" >&6
4856 cat >>confdefs.h
<<\EOF
4857 #define PROTOTYPES 1
4861 echo "$as_me:4861: result: no" >&5
4862 echo "${ECHO_T}no" >&6
4865 echo "$as_me:4865: checking for working volatile" >&5
4866 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4867 if test "${ac_cv_c_volatile+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 cat >conftest.
$ac_ext <<_ACEOF
4871 #line 4871 "configure"
4872 #include "confdefs.h"
4884 rm -f conftest.
$ac_objext
4885 if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4888 echo "$as_me:4888: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try
='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:4891: \"$ac_try\"") >&5
4894 echo "$as_me:4894: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_c_volatile
=yes
4898 echo "$as_me: failed program was:" >&5
4899 cat conftest.
$ac_ext >&5
4902 rm -f conftest.
$ac_objext conftest.
$ac_ext
4904 echo "$as_me:4904: result: $ac_cv_c_volatile" >&5
4905 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4906 if test $ac_cv_c_volatile = no
; then
4908 cat >>confdefs.h
<<\EOF
4914 echo "$as_me:4914: checking for an ANSI C-conforming const" >&5
4915 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4916 if test "${ac_cv_c_const+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 cat >conftest.
$ac_ext <<_ACEOF
4920 #line 4920 "configure"
4921 #include "confdefs.h"
4926 /* FIXME: Include the comments suggested by Paul. */
4928 /* Ultrix mips cc rejects this. */
4929 typedef int charset[2];
4931 /* SunOS 4.1.1 cc rejects this. */
4932 char const *const *ccp;
4934 /* NEC SVR4.0.2 mips cc rejects this. */
4935 struct point {int x, y;};
4936 static struct point const zero = {0,0};
4937 /* AIX XL C 1.02.0.0 rejects this.
4938 It does not let you subtract one const X* pointer from another in
4939 an arm of an if-expression whose if-part is not a constant
4941 const char *g = "string";
4942 ccp = &g + (g ? g-g : 0);
4943 /* HPUX 7.0 cc rejects these. */
4946 ccp = (char const *const *) p;
4947 { /* SCO 3.2v4 cc rejects this. */
4949 char const *s = 0 ? (char *) 0 : (char const *) 0;
4953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4955 const int *foo = &x[0];
4958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4959 typedef const int *iptr;
4963 { /* AIX XL C 1.02.0.0 rejects this saying
4964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4965 struct s { int j; const int *ap[3]; };
4966 struct s *b; b->j = 5;
4968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 rm -f conftest.
$ac_objext
4978 if { (eval echo "$as_me:4978: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try
='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:4984: \"$ac_try\"") >&5
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4991 echo "$as_me: failed program was:" >&5
4992 cat conftest.
$ac_ext >&5
4995 rm -f conftest.
$ac_objext conftest.
$ac_ext
4997 echo "$as_me:4997: result: $ac_cv_c_const" >&5
4998 echo "${ECHO_T}$ac_cv_c_const" >&6
4999 if test $ac_cv_c_const = no
; then
5001 cat >>confdefs.h
<<\EOF
5007 echo "$as_me:5007: checking for void * support" >&5
5008 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5009 if test "${emacs_cv_void_star+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.
$ac_ext <<_ACEOF
5013 #line 5013 "configure"
5014 #include "confdefs.h"
5024 rm -f conftest.
$ac_objext
5025 if { (eval echo "$as_me:5025: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5028 echo "$as_me:5028: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:5031: \"$ac_try\"") >&5
5034 echo "$as_me:5034: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 emacs_cv_void_star
=yes
5038 echo "$as_me: failed program was:" >&5
5039 cat conftest.
$ac_ext >&5
5040 emacs_cv_void_star
=no
5042 rm -f conftest.
$ac_objext conftest.
$ac_ext
5044 echo "$as_me:5044: result: $emacs_cv_void_star" >&5
5045 echo "${ECHO_T}$emacs_cv_void_star" >&6
5046 if test $emacs_cv_void_star = yes; then
5047 cat >>confdefs.h
<<\EOF
5048 #define POINTER_TYPE void
5052 cat >>confdefs.h
<<\EOF
5053 #define POINTER_TYPE char
5058 echo "$as_me:5058: checking whether ${MAKE-make} sets \${MAKE}" >&5
5059 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5060 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5061 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 cat >conftest.
make <<\EOF
5066 @
echo 'ac_maketemp="${MAKE}"'
5068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5069 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5070 if test -n "$ac_maketemp"; then
5071 eval ac_cv_prog_make_
${ac_make}_set
=yes
5073 eval ac_cv_prog_make_
${ac_make}_set
=no
5077 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5078 echo "$as_me:5078: result: yes" >&5
5079 echo "${ECHO_T}yes" >&6
5082 echo "$as_me:5082: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 SET_MAKE
="MAKE=${MAKE-make}"
5087 echo "$as_me:5087: checking for long file names" >&5
5088 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5089 if test "${ac_cv_sys_long_file_names+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_cv_sys_long_file_names
=yes
5093 # Test for long file names in all the places we know might matter:
5094 # . the current directory, where building will happen
5095 # $prefix/lib where we will be installing things
5096 # $exec_prefix/lib likewise
5097 # eval it to expand exec_prefix.
5098 # $TMPDIR if set, where it might want to write temporary files
5099 # if $TMPDIR is not set:
5100 # /tmp where it might want to write temporary files
5103 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5106 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5108 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5109 test -d $ac_dir ||
continue
5110 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5111 ac_xdir
=$ac_dir/cf$$
5112 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5113 ac_tf1
=$ac_xdir/conftest9012345
5114 ac_tf2
=$ac_xdir/conftest9012346
5115 (echo 1 >$ac_tf1) 2>/dev
/null
5116 (echo 2 >$ac_tf2) 2>/dev
/null
5117 ac_val
=`cat $ac_tf1 2>/dev/null`
5118 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5119 ac_cv_sys_long_file_names
=no
5120 rm -rf $ac_xdir 2>/dev
/null
5123 rm -rf $ac_xdir 2>/dev
/null
5126 echo "$as_me:5126: result: $ac_cv_sys_long_file_names" >&5
5127 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5128 if test $ac_cv_sys_long_file_names = yes; then
5130 cat >>confdefs.h
<<\EOF
5131 #define HAVE_LONG_FILE_NAMES 1
5136 #### Choose a window system.
5138 echo "$as_me:5138: checking for X" >&5
5139 echo $ECHO_N "checking for X... $ECHO_C" >&6
5141 # Check whether --with-x or --without-x was given.
5142 if test "${with_x+set}" = set; then
5146 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5147 if test "x$with_x" = xno
; then
5148 # The user explicitly disabled X.
5151 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5152 # Both variables are already set.
5155 if test "${ac_cv_have_x+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 # One or both of the vars are not set, and there is no cached value.
5159 ac_x_includes
=no ac_x_libraries
=no
5161 if mkdir conftest.dir
; then
5163 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5164 cat >Imakefile
<<'EOF'
5166 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5168 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5170 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5171 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5172 for ac_extension
in a so sl
; do
5173 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5174 test -f $ac_im_libdir/libX11.
$ac_extension; then
5175 ac_im_usrlibdir
=$ac_im_libdir; break
5178 # Screen out bogus values from the imake configuration. They are
5179 # bogus both because they are the default anyway, and because
5180 # using them would break gcc on systems where it needs fixed includes.
5181 case $ac_im_incroot in
5183 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5185 case $ac_im_usrlibdir in
5187 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5194 # Standard set of common directories for X headers.
5195 # Check X11 before X11Rn because it is often a symlink to the current release.
5207 /usr/local/X11/include
5208 /usr/local/X11R6/include
5209 /usr/local/X11R5/include
5210 /usr/local/X11R4/include
5212 /usr/local/include/X11
5213 /usr/local/include/X11R6
5214 /usr/local/include/X11R5
5215 /usr/local/include/X11R4
5219 /usr/XFree86/include/X11
5223 /usr/unsupported/include
5225 /usr/local/x11r5/include
5226 /usr/lpp/Xamples/include
5228 /usr/openwin/include
5229 /usr/openwin/share/include'
5231 if test "$ac_x_includes" = no
; then
5232 # Guess where to find include files, by looking for Intrinsic.h.
5233 # First, try using that file with no special directory specified.
5234 cat >conftest.
$ac_ext <<_ACEOF
5235 #line 5235 "configure"
5236 #include "confdefs.h"
5237 #include <X11/Intrinsic.h>
5239 if { (eval echo "$as_me:5239: \"$ac_cpp conftest.$ac_ext\"") >&5
5240 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5242 egrep -v '^ *\+' conftest.er1
>conftest.err
5244 cat conftest.err
>&5
5245 echo "$as_me:5245: \$? = $ac_status" >&5
5246 (exit $ac_status); } >/dev
/null
; then
5247 if test -s conftest.err
; then
5248 ac_cpp_err
=$ac_c_preproc_warn_flag
5255 if test -z "$ac_cpp_err"; then
5256 # We can compile using X headers with no special include directory.
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5261 for ac_dir
in $ac_x_header_dirs; do
5262 if test -r "$ac_dir/X11/Intrinsic.h"; then
5263 ac_x_includes
=$ac_dir
5268 rm -f conftest.err conftest.
$ac_ext
5269 fi # $ac_x_includes = no
5271 if test "$ac_x_libraries" = no
; then
5272 # Check for the libraries.
5273 # See if we find them without any special options.
5274 # Don't add to $LIBS permanently.
5277 cat >conftest.
$ac_ext <<_ACEOF
5278 #line 5278 "configure"
5279 #include "confdefs.h"
5280 #include <X11/Intrinsic.h>
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext
5290 if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try
='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:5296: \"$ac_try\"") >&5
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5302 # We can link X programs with no special library path.
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.
$ac_ext >&5
5308 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5310 # Don't even attempt the hair of trying to link an X program!
5311 for ac_extension
in a so sl
; do
5312 if test -r $ac_dir/libXt.
$ac_extension; then
5313 ac_x_libraries
=$ac_dir
5319 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5320 fi # $ac_x_libraries = no
5322 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5323 # Didn't find X anywhere. Cache the known absence of X.
5324 ac_cv_have_x
="have_x=no"
5326 # Record where we found X for the cache.
5327 ac_cv_have_x
="have_x=yes \
5328 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5333 eval "$ac_cv_have_x"
5336 if test "$have_x" != yes; then
5337 echo "$as_me:5337: result: $have_x" >&5
5338 echo "${ECHO_T}$have_x" >&6
5341 # If each of the values was on the command line, it overrides each guess.
5342 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5343 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5344 # Update the cache value to reflect the command line values.
5345 ac_cv_have_x
="have_x=yes \
5346 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5347 echo "$as_me:5347: result: libraries $x_libraries, headers $x_includes" >&5
5348 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5351 if test "$no_x" = yes; then
5357 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5358 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5359 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5360 x_default_search_path
=""
5361 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5363 ${x_library}/X11/%L/%T/%N%C%S:\
5364 ${x_library}/X11/%l/%T/%N%C%S:\
5365 ${x_library}/X11/%T/%N%C%S:\
5366 ${x_library}/X11/%L/%T/%N%S:\
5367 ${x_library}/X11/%l/%T/%N%S:\
5368 ${x_library}/X11/%T/%N%S"
5369 if test x
"${x_default_search_path}" = x
; then
5370 x_default_search_path
=${x_search_path}
5372 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5376 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5377 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5380 if test x
"${x_includes}" = x
; then
5381 bitmapdir
=/usr
/include
/X11
/bitmaps
5383 # accumulate include directories that have X11 bitmap subdirectories
5385 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5386 if test -d "${bmd}/X11/bitmaps"; then
5387 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5389 if test -d "${bmd}/bitmaps"; then
5390 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5393 if test ${bmd_acc} != "dummyval"; then
5394 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5398 case "${window_system}" in
5402 case "${with_x_toolkit}" in
5403 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5404 motif
) USE_X_TOOLKIT
=MOTIF
;;
5405 no
) USE_X_TOOLKIT
=none
;;
5406 * ) USE_X_TOOLKIT
=maybe
;;
5416 ### If we're using X11, we should use the X menu package.
5419 yes ) HAVE_MENUS
=yes ;;
5422 if test "${opsys}" = "hpux9"; then
5423 case "${x_libraries}" in
5425 opsysfile
="s/hpux9-x11r4.h"
5430 if test "${opsys}" = "hpux9shr"; then
5431 case "${x_libraries}" in
5433 opsysfile
="s/hpux9shxr4.h"
5438 ### Compute the unexec source name from the object name.
5439 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5441 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5442 # Assume not, until told otherwise.
5445 echo "$as_me:5445: checking for malloc_get_state" >&5
5446 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5447 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 cat >conftest.
$ac_ext <<_ACEOF
5451 #line 5451 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char malloc_get_state (); below. */
5456 /* Override any gcc2 internal prototype to avoid an error. */
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char malloc_get_state ();
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5474 f = malloc_get_state;
5481 rm -f conftest.
$ac_objext conftest
$ac_exeext
5482 if { (eval echo "$as_me:5482: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:5485: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try
='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:5488: \"$ac_try\"") >&5
5491 echo "$as_me:5491: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_func_malloc_get_state
=yes
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.
$ac_ext >&5
5497 ac_cv_func_malloc_get_state
=no
5499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5501 echo "$as_me:5501: result: $ac_cv_func_malloc_get_state" >&5
5502 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5503 if test $ac_cv_func_malloc_get_state = yes; then
5509 echo "$as_me:5509: checking for malloc_set_state" >&5
5510 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5511 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.
$ac_ext <<_ACEOF
5515 #line 5515 "configure"
5516 #include "confdefs.h"
5517 /* System header to define __stub macros and hopefully few prototypes,
5518 which can conflict with char malloc_set_state (); below. */
5520 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char malloc_set_state ();
5532 /* The GNU C library defines this for functions which it implements
5533 to always fail with ENOSYS. Some functions are actually named
5534 something starting with __ and the normal name is an alias. */
5535 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5538 f = malloc_set_state;
5545 rm -f conftest.
$ac_objext conftest
$ac_exeext
5546 if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:5549: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try
='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:5552: \"$ac_try\"") >&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_func_malloc_set_state
=yes
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.
$ac_ext >&5
5561 ac_cv_func_malloc_set_state
=no
5563 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5565 echo "$as_me:5565: result: $ac_cv_func_malloc_set_state" >&5
5566 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5567 if test $ac_cv_func_malloc_set_state = yes; then
5573 echo "$as_me:5573: checking whether __after_morecore_hook exists" >&5
5574 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5575 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.
$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 extern void (* __after_morecore_hook)();
5585 __after_morecore_hook = 0
5590 rm -f conftest.
$ac_objext conftest
$ac_exeext
5591 if { (eval echo "$as_me:5591: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5594 echo "$as_me:5594: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try
='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:5597: \"$ac_try\"") >&5
5600 echo "$as_me:5600: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 emacs_cv_var___after_morecore_hook
=yes
5604 echo "$as_me: failed program was:" >&5
5605 cat conftest.
$ac_ext >&5
5606 emacs_cv_var___after_morecore_hook
=no
5608 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5610 echo "$as_me:5610: result: $emacs_cv_var___after_morecore_hook" >&5
5611 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5612 if test $emacs_cv_var___after_morecore_hook = no
; then
5615 if test "${system_malloc}" = "yes"; then
5618 (The GNU allocators don't work with this system configuration.)"
5620 if test "$doug_lea_malloc" = "yes" ; then
5621 if test "$GNU_MALLOC" = yes ; then
5623 (Using Doug Lea's new malloc from the GNU C Library.)"
5625 cat >>confdefs.h
<<\EOF
5626 #define DOUG_LEA_MALLOC 1
5631 if test x
"${REL_ALLOC}" = x
; then
5632 REL_ALLOC
=${GNU_MALLOC}
5635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5637 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5638 inttypes.h stdint.h unistd.h
5640 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5641 echo "$as_me:5641: checking for $ac_header" >&5
5642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5647 #line 5647 "configure"
5648 #include "confdefs.h"
5649 $ac_includes_default
5650 #include <$ac_header>
5652 rm -f conftest.
$ac_objext
5653 if { (eval echo "$as_me:5653: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>&5
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try
='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:5659: \"$ac_try\"") >&5
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 eval "$as_ac_Header=yes"
5666 echo "$as_me: failed program was:" >&5
5667 cat conftest.
$ac_ext >&5
5668 eval "$as_ac_Header=no"
5670 rm -f conftest.
$ac_objext conftest.
$ac_ext
5672 echo "$as_me:5672: result: `eval echo '${'$as_ac_Header'}'`" >&5
5673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5675 cat >>confdefs.h
<<EOF
5676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 for ac_header
in stdlib.h unistd.h
5684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5685 echo "$as_me:5685: checking for $ac_header" >&5
5686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5691 #line 5691 "configure"
5692 #include "confdefs.h"
5693 #include <$ac_header>
5695 if { (eval echo "$as_me:5695: \"$ac_cpp conftest.$ac_ext\"") >&5
5696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5698 egrep -v '^ *\+' conftest.er1
>conftest.err
5700 cat conftest.err
>&5
5701 echo "$as_me:5701: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev
/null
; then
5703 if test -s conftest.err
; then
5704 ac_cpp_err
=$ac_c_preproc_warn_flag
5711 if test -z "$ac_cpp_err"; then
5712 eval "$as_ac_Header=yes"
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.
$ac_ext >&5
5716 eval "$as_ac_Header=no"
5718 rm -f conftest.err conftest.
$ac_ext
5720 echo "$as_me:5720: result: `eval echo '${'$as_ac_Header'}'`" >&5
5721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5723 cat >>confdefs.h
<<EOF
5724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5730 for ac_func
in getpagesize
5732 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5733 echo "$as_me:5733: checking for $ac_func" >&5
5734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5735 if eval "test \"\${$as_ac_var+set}\" = set"; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 cat >conftest.
$ac_ext <<_ACEOF
5739 #line 5739 "configure"
5740 #include "confdefs.h"
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func (); below. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5756 /* The GNU C library defines this for functions which it implements
5757 to always fail with ENOSYS. Some functions are actually named
5758 something starting with __ and the normal name is an alias. */
5759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5769 rm -f conftest.
$ac_objext conftest
$ac_exeext
5770 if { (eval echo "$as_me:5770: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>&5
5773 echo "$as_me:5773: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try
='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:5776: \"$ac_try\"") >&5
5779 echo "$as_me:5779: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 eval "$as_ac_var=yes"
5783 echo "$as_me: failed program was:" >&5
5784 cat conftest.
$ac_ext >&5
5785 eval "$as_ac_var=no"
5787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5789 echo "$as_me:5789: result: `eval echo '${'$as_ac_var'}'`" >&5
5790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5791 if test `eval echo '${'$as_ac_var'}'` = yes; then
5792 cat >>confdefs.h
<<EOF
5793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5799 echo "$as_me:5799: checking for working mmap" >&5
5800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 if test "$cross_compiling" = yes; then
5805 ac_cv_func_mmap_fixed_mapped
=no
5807 cat >conftest.
$ac_ext <<_ACEOF
5808 #line 5808 "configure"
5809 #include "confdefs.h"
5810 $ac_includes_default
5811 /* Thanks to Mike Haertel and Jim Avera for this test.
5812 Here is a matrix of mmap possibilities:
5813 mmap private not fixed
5814 mmap private fixed at somewhere currently unmapped
5815 mmap private fixed at somewhere already mapped
5816 mmap shared not fixed
5817 mmap shared fixed at somewhere currently unmapped
5818 mmap shared fixed at somewhere already mapped
5819 For private mappings, we should verify that changes cannot be read()
5820 back from the file, nor mmap's back from the file at a different
5821 address. (There have been systems where private was not correctly
5822 implemented like the infamous i386 svr4.0, and systems where the
5823 VM page cache was not coherent with the file system buffer cache
5824 like early versions of FreeBSD and possibly contemporary NetBSD.)
5825 For shared mappings, we should conversely verify that changes get
5826 propogated back to all the places they're supposed to be.
5828 Grep wants private fixed already mapped.
5829 The main things grep needs to know about mmap are:
5830 * does it exist and is it safe to write into the mmap'd area
5831 * how to use it (BSD variants) */
5834 #include <sys/mman.h>
5836 #if !STDC_HEADERS && !HAVE_STDLIB_H
5840 /* This mess was copied from the GNU getpagesize.h. */
5841 #if !HAVE_GETPAGESIZE
5842 /* Assume that all systems that can run configure have sys/param.h. */
5843 # if !HAVE_SYS_PARAM_H
5844 # define HAVE_SYS_PARAM_H 1
5847 # ifdef _SC_PAGESIZE
5848 # define getpagesize() sysconf(_SC_PAGESIZE)
5849 # else /* no _SC_PAGESIZE */
5850 # if HAVE_SYS_PARAM_H
5851 # include <sys/param.h>
5852 # ifdef EXEC_PAGESIZE
5853 # define getpagesize() EXEC_PAGESIZE
5854 # else /* no EXEC_PAGESIZE */
5856 # define getpagesize() NBPG * CLSIZE
5859 # endif /* no CLSIZE */
5860 # else /* no NBPG */
5862 # define getpagesize() NBPC
5863 # else /* no NBPC */
5865 # define getpagesize() PAGESIZE
5866 # endif /* PAGESIZE */
5867 # endif /* no NBPC */
5868 # endif /* no NBPG */
5869 # endif /* no EXEC_PAGESIZE */
5870 # else /* no HAVE_SYS_PARAM_H */
5871 # define getpagesize() 8192 /* punt totally */
5872 # endif /* no HAVE_SYS_PARAM_H */
5873 # endif /* no _SC_PAGESIZE */
5875 #endif /* no HAVE_GETPAGESIZE */
5880 char *data, *data2, *data3;
5884 pagesize = getpagesize ();
5886 /* First, make a file with some known garbage in it. */
5887 data = (char *) malloc (pagesize);
5890 for (i = 0; i < pagesize; ++i)
5891 *(data + i) = rand ();
5893 fd = creat ("conftest.mmap", 0600);
5896 if (write (fd, data, pagesize) != pagesize)
5900 /* Next, try to mmap the file at a fixed address which already has
5901 something else allocated at it. If we can, also make sure that
5902 we see the same garbage. */
5903 fd = open ("conftest.mmap", O_RDWR);
5906 data2 = (char *) malloc (2 * pagesize);
5909 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5913 for (i = 0; i < pagesize; ++i)
5914 if (*(data + i) != *(data2 + i))
5917 /* Finally, make sure that changes to the mapped area do not
5918 percolate back to the file as seen by read(). (This is a bug on
5919 some variants of i386 svr4.0.) */
5920 for (i = 0; i < pagesize; ++i)
5921 *(data2 + i) = *(data2 + i) + 1;
5922 data3 = (char *) malloc (pagesize);
5925 if (read (fd, data3, pagesize) != pagesize)
5927 for (i = 0; i < pagesize; ++i)
5928 if (*(data + i) != *(data3 + i))
5934 rm -f conftest
$ac_exeext
5935 if { (eval echo "$as_me:5935: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5938 echo "$as_me:5938: \$? = $ac_status" >&5
5939 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5940 { (eval echo "$as_me:5940: \"$ac_try\"") >&5
5943 echo "$as_me:5943: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_func_mmap_fixed_mapped
=yes
5947 echo "$as_me: program exited with status $ac_status" >&5
5948 echo "$as_me: failed program was:" >&5
5949 cat conftest.
$ac_ext >&5
5950 ac_cv_func_mmap_fixed_mapped
=no
5952 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:5955: result: $ac_cv_func_mmap_fixed_mapped" >&5
5956 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5957 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5959 cat >>confdefs.h
<<\EOF
5966 if test $use_mmap_for_buffers = yes; then
5970 LIBS
="$libsrc_libs $LIBS"
5972 echo "$as_me:5972: checking for dnet_ntoa in -ldnet" >&5
5973 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5974 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 ac_check_lib_save_LIBS
=$LIBS
5979 cat >conftest.
$ac_ext <<_ACEOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5983 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5998 rm -f conftest.
$ac_objext conftest
$ac_exeext
5999 if { (eval echo "$as_me:5999: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>&5
6002 echo "$as_me:6002: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try
='test -s conftest$ac_exeext'
6005 { (eval echo "$as_me:6005: \"$ac_try\"") >&5
6008 echo "$as_me:6008: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_lib_dnet_dnet_ntoa
=yes
6012 echo "$as_me: failed program was:" >&5
6013 cat conftest.
$ac_ext >&5
6014 ac_cv_lib_dnet_dnet_ntoa
=no
6016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6017 LIBS
=$ac_check_lib_save_LIBS
6019 echo "$as_me:6019: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6020 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6021 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6022 cat >>confdefs.h
<<EOF
6023 #define HAVE_LIBDNET 1
6030 echo "$as_me:6030: checking for main in -lXbsd" >&5
6031 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6032 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_check_lib_save_LIBS
=$LIBS
6037 cat >conftest.
$ac_ext <<_ACEOF
6038 #line 6038 "configure"
6039 #include "confdefs.h"
6049 rm -f conftest.
$ac_objext conftest
$ac_exeext
6050 if { (eval echo "$as_me:6050: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:6053: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try
='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:6056: \"$ac_try\"") >&5
6059 echo "$as_me:6059: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_lib_Xbsd_main
=yes
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.
$ac_ext >&5
6065 ac_cv_lib_Xbsd_main
=no
6067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6068 LIBS
=$ac_check_lib_save_LIBS
6070 echo "$as_me:6070: result: $ac_cv_lib_Xbsd_main" >&5
6071 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6072 if test $ac_cv_lib_Xbsd_main = yes; then
6073 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6076 echo "$as_me:6076: checking for cma_open in -lpthreads" >&5
6077 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6078 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_check_lib_save_LIBS
=$LIBS
6082 LIBS
="-lpthreads $LIBS"
6083 cat >conftest.
$ac_ext <<_ACEOF
6084 #line 6084 "configure"
6085 #include "confdefs.h"
6087 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6102 rm -f conftest.
$ac_objext conftest
$ac_exeext
6103 if { (eval echo "$as_me:6103: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6106 echo "$as_me:6106: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try
='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:6109: \"$ac_try\"") >&5
6112 echo "$as_me:6112: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_lib_pthreads_cma_open
=yes
6116 echo "$as_me: failed program was:" >&5
6117 cat conftest.
$ac_ext >&5
6118 ac_cv_lib_pthreads_cma_open
=no
6120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6121 LIBS
=$ac_check_lib_save_LIBS
6123 echo "$as_me:6123: result: $ac_cv_lib_pthreads_cma_open" >&5
6124 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6125 if test $ac_cv_lib_pthreads_cma_open = yes; then
6126 cat >>confdefs.h
<<EOF
6127 #define HAVE_LIBPTHREADS 1
6130 LIBS
="-lpthreads $LIBS"
6134 echo "$as_me:6134: checking for XFree86 in /usr/X386" >&5
6135 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6136 if test -d /usr
/X386
/include
; then
6138 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6142 echo "$as_me:6142: result: $HAVE_XFREE386" >&5
6143 echo "${ECHO_T}$HAVE_XFREE386" >&6
6145 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6146 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6148 REAL_CPPFLAGS
="$CPPFLAGS"
6150 if test "${HAVE_X11}" = "yes"; then
6151 DEFS
="$C_SWITCH_X_SITE $DEFS"
6152 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6154 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6155 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6157 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6158 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6159 # but it's more convenient here to set LD_RUN_PATH
6160 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6161 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6162 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6166 if test "${opsys}" = "gnu-linux"; then
6167 echo "$as_me:6167: checking whether X on GNU/Linux needs -b to link" >&5
6168 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6169 cat >conftest.
$ac_ext <<_ACEOF
6170 #line 6170 "configure"
6171 #include "confdefs.h"
6176 XOpenDisplay ("foo");
6181 rm -f conftest.
$ac_objext conftest
$ac_exeext
6182 if { (eval echo "$as_me:6182: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>&5
6185 echo "$as_me:6185: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try
='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:6188: \"$ac_try\"") >&5
6191 echo "$as_me:6191: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 xlinux_first_failure
=no
6195 echo "$as_me: failed program was:" >&5
6196 cat conftest.
$ac_ext >&5
6197 xlinux_first_failure
=yes
6199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6200 if test "${xlinux_first_failure}" = "yes"; then
6201 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6202 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6203 OLD_CPPFLAGS
="$CPPFLAGS"
6205 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6206 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6207 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6208 LIBS
="$LIBS -b i486-linuxaout"
6209 cat >conftest.
$ac_ext <<_ACEOF
6210 #line 6210 "configure"
6211 #include "confdefs.h"
6216 XOpenDisplay ("foo");
6221 rm -f conftest.
$ac_objext conftest
$ac_exeext
6222 if { (eval echo "$as_me:6222: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>&5
6225 echo "$as_me:6225: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try
='test -s conftest$ac_exeext'
6228 { (eval echo "$as_me:6228: \"$ac_try\"") >&5
6231 echo "$as_me:6231: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 xlinux_second_failure
=no
6235 echo "$as_me: failed program was:" >&5
6236 cat conftest.
$ac_ext >&5
6237 xlinux_second_failure
=yes
6239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6240 if test "${xlinux_second_failure}" = "yes"; then
6241 # If we get the same failure with -b, there is no use adding -b.
6242 # So take it out. This plays safe.
6243 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6244 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6245 CPPFLAGS
="$OLD_CPPFLAGS"
6247 echo "$as_me:6247: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6250 echo "$as_me:6250: result: yes" >&5
6251 echo "${ECHO_T}yes" >&6
6254 echo "$as_me:6254: result: no" >&5
6255 echo "${ECHO_T}no" >&6
6259 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6260 # header files included from there.
6261 echo "$as_me:6261: checking for Xkb" >&5
6262 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6264 #line 6264 "configure"
6265 #include "confdefs.h"
6266 #include <X11/Xlib.h>
6267 #include <X11/XKBlib.h>
6271 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6276 rm -f conftest.
$ac_objext conftest
$ac_exeext
6277 if { (eval echo "$as_me:6277: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>&5
6280 echo "$as_me:6280: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try
='test -s conftest$ac_exeext'
6283 { (eval echo "$as_me:6283: \"$ac_try\"") >&5
6286 echo "$as_me:6286: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6290 echo "$as_me: failed program was:" >&5
6291 cat conftest.
$ac_ext >&5
6294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6295 echo "$as_me:6295: result: $emacs_xkb" >&5
6296 echo "${ECHO_T}$emacs_xkb" >&6
6297 if test $emacs_xkb = yes; then
6298 cat >>confdefs.h
<<\EOF
6299 #define HAVE_XKBGETKEYBOARD 1
6304 for ac_func
in XrmSetDatabase XScreenResourceString \
6305 XScreenNumberOfScreen XSetWMProtocols
6307 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6308 echo "$as_me:6308: checking for $ac_func" >&5
6309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6310 if eval "test \"\${$as_ac_var+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 cat >conftest.
$ac_ext <<_ACEOF
6314 #line 6314 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func (); below. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344 rm -f conftest.
$ac_objext conftest
$ac_exeext
6345 if { (eval echo "$as_me:6345: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:6351: \"$ac_try\"") >&5
6354 echo "$as_me:6354: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 eval "$as_ac_var=yes"
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.
$ac_ext >&5
6360 eval "$as_ac_var=no"
6362 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6364 echo "$as_me:6364: result: `eval echo '${'$as_ac_var'}'`" >&5
6365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6366 if test `eval echo '${'$as_ac_var'}'` = yes; then
6367 cat >>confdefs.h
<<EOF
6368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6376 if test "${window_system}" = "x11"; then
6377 echo "$as_me:6377: checking X11 version 6" >&5
6378 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6379 if test "${emacs_cv_x11_version_6+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 cat >conftest.
$ac_ext <<_ACEOF
6383 #line 6383 "configure"
6384 #include "confdefs.h"
6385 #include <X11/Xlib.h>
6389 #if XlibSpecificationRelease < 6
6397 rm -f conftest.
$ac_objext conftest
$ac_exeext
6398 if { (eval echo "$as_me:6398: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6401 echo "$as_me:6401: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:6404: \"$ac_try\"") >&5
6407 echo "$as_me:6407: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 emacs_cv_x11_version_6
=yes
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6413 emacs_cv_x11_version_6
=no
6415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6418 if test $emacs_cv_x11_version_6 = yes; then
6419 echo "$as_me:6419: result: 6 or newer" >&5
6420 echo "${ECHO_T}6 or newer" >&6
6421 cat >>confdefs.h
<<\EOF
6422 #define HAVE_X11R6 1
6426 echo "$as_me:6426: result: before 6" >&5
6427 echo "${ECHO_T}before 6" >&6
6431 if test "${window_system}" = "x11"; then
6432 echo "$as_me:6432: checking X11 version 5" >&5
6433 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6434 if test "${emacs_cv_x11_version_5+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6438 #line 6438 "configure"
6439 #include "confdefs.h"
6440 #include <X11/Xlib.h>
6444 #if XlibSpecificationRelease < 5
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext
6453 if { (eval echo "$as_me:6453: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6456 echo "$as_me:6456: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try
='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:6459: \"$ac_try\"") >&5
6462 echo "$as_me:6462: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 emacs_cv_x11_version_5
=yes
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6468 emacs_cv_x11_version_5
=no
6470 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6473 if test $emacs_cv_x11_version_5 = yes; then
6474 echo "$as_me:6474: result: 5 or newer" >&5
6475 echo "${ECHO_T}5 or newer" >&6
6477 cat >>confdefs.h
<<\EOF
6478 #define HAVE_X11R5 1
6483 echo "$as_me:6483: result: before 5" >&5
6484 echo "${ECHO_T}before 5" >&6
6488 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6489 if test x
"${HAVE_X11R5}" = xyes
; then
6490 echo "$as_me:6490: checking X11 version 5 with Xaw" >&5
6491 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6492 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 cat >conftest.
$ac_ext <<_ACEOF
6496 #line 6496 "configure"
6497 #include "confdefs.h"
6499 #include <X11/Intrinsic.h>
6500 #include <X11/Xaw/Simple.h>
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext
6510 if { (eval echo "$as_me:6510: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:6513: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:6516: \"$ac_try\"") >&5
6519 echo "$as_me:6519: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 emacs_cv_x11_version_5_with_xaw
=yes
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.
$ac_ext >&5
6525 emacs_cv_x11_version_5_with_xaw
=no
6527 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6530 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6531 echo "$as_me:6531: result: 5 or newer, with Xaw; use toolkit by default" >&5
6532 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6535 echo "$as_me:6535: result: before 5 or no Xaw; do not use toolkit by default" >&5
6536 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6544 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6546 if test "${USE_X_TOOLKIT}" != "none"; then
6547 echo "$as_me:6547: checking X11 toolkit version" >&5
6548 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6549 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 cat >conftest.
$ac_ext <<_ACEOF
6553 #line 6553 "configure"
6554 #include "confdefs.h"
6555 #include <X11/Intrinsic.h>
6559 #if XtSpecificationRelease < 6
6567 rm -f conftest.
$ac_objext conftest
$ac_exeext
6568 if { (eval echo "$as_me:6568: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try
='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 emacs_cv_x11_toolkit_version_6
=yes
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.
$ac_ext >&5
6583 emacs_cv_x11_toolkit_version_6
=no
6585 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6588 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6589 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6590 echo "$as_me:6590: result: 6 or newer" >&5
6591 echo "${ECHO_T}6 or newer" >&6
6592 cat >>confdefs.h
<<\EOF
6593 #define HAVE_X11XTR6 1
6597 echo "$as_me:6597: result: before 6" >&5
6598 echo "${ECHO_T}before 6" >&6
6602 if test x
$HAVE_X11XTR6 = xyes
; then
6603 LIBS
="-lXt -lSM -lICE $LIBS"
6608 echo "$as_me:6608: checking for XmuConvertStandardSelection in -lXmu" >&5
6609 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6610 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_check_lib_save_LIBS
=$LIBS
6615 cat >conftest.
$ac_ext <<_ACEOF
6616 #line 6616 "configure"
6617 #include "confdefs.h"
6619 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XmuConvertStandardSelection ();
6629 XmuConvertStandardSelection ();
6634 rm -f conftest.
$ac_objext conftest
$ac_exeext
6635 if { (eval echo "$as_me:6635: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try
='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:6641: \"$ac_try\"") >&5
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6648 echo "$as_me: failed program was:" >&5
6649 cat conftest.
$ac_ext >&5
6650 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6653 LIBS
=$ac_check_lib_save_LIBS
6655 echo "$as_me:6655: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6656 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6657 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6658 cat >>confdefs.h
<<EOF
6659 #define HAVE_LIBXMU 1
6666 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6669 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6670 if test "${HAVE_X11}" = "yes"; then
6671 if test "${USE_X_TOOLKIT}" != "none"; then
6673 echo "$as_me:6673: checking for XShapeQueryExtension in -lXext" >&5
6674 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6675 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_check_lib_save_LIBS
=$LIBS
6680 cat >conftest.
$ac_ext <<_ACEOF
6681 #line 6681 "configure"
6682 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char XShapeQueryExtension ();
6694 XShapeQueryExtension ();
6699 rm -f conftest.
$ac_objext conftest
$ac_exeext
6700 if { (eval echo "$as_me:6700: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try
='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:6706: \"$ac_try\"") >&5
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.
$ac_ext >&5
6715 ac_cv_lib_Xext_XShapeQueryExtension
=no
6717 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6718 LIBS
=$ac_check_lib_save_LIBS
6720 echo "$as_me:6720: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6721 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6722 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6723 cat >>confdefs.h
<<EOF
6724 #define HAVE_LIBXEXT 1
6734 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6735 echo "$as_me:6735: checking for Motif version 2.1" >&5
6736 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6737 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.
$ac_ext <<_ACEOF
6741 #line 6741 "configure"
6742 #include "confdefs.h"
6747 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6750 Motif version prior to 2.1.
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:6757: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>&5
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try
='test -s conftest.$ac_objext'
6763 { (eval echo "$as_me:6763: \"$ac_try\"") >&5
6766 echo "$as_me:6766: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 emacs_cv_motif_version_2_1
=yes
6770 echo "$as_me: failed program was:" >&5
6771 cat conftest.
$ac_ext >&5
6772 emacs_cv_motif_version_2_1
=no
6774 rm -f conftest.
$ac_objext conftest.
$ac_ext
6776 echo "$as_me:6776: result: $emacs_cv_motif_version_2_1" >&5
6777 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6778 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6779 if test $emacs_cv_motif_version_2_1 = yes; then
6781 cat >>confdefs.h
<<\EOF
6782 #define HAVE_MOTIF_2_1 1
6785 echo "$as_me:6785: checking for XpCreateContext in -lXp" >&5
6786 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6787 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_check_lib_save_LIBS
=$LIBS
6792 cat >conftest.
$ac_ext <<_ACEOF
6793 #line 6793 "configure"
6794 #include "confdefs.h"
6796 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char XpCreateContext ();
6811 rm -f conftest.
$ac_objext conftest
$ac_exeext
6812 if { (eval echo "$as_me:6812: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>&5
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try
='test -s conftest$ac_exeext'
6818 { (eval echo "$as_me:6818: \"$ac_try\"") >&5
6821 echo "$as_me:6821: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_cv_lib_Xp_XpCreateContext
=yes
6825 echo "$as_me: failed program was:" >&5
6826 cat conftest.
$ac_ext >&5
6827 ac_cv_lib_Xp_XpCreateContext
=no
6829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6830 LIBS
=$ac_check_lib_save_LIBS
6832 echo "$as_me:6832: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6833 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6834 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6838 if test ${HAVE_LIBXP} = yes; then
6839 cat >>confdefs.h
<<\EOF
6840 #define HAVE_LIBXP 1
6847 ### Is -lXaw3d available?
6849 if test "${HAVE_X11}" = "yes"; then
6850 if test "${USE_X_TOOLKIT}" != "none"; then
6851 echo "$as_me:6851: checking for X11/Xaw3d/Scrollbar.h" >&5
6852 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6853 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 cat >conftest.
$ac_ext <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6859 #include <X11/Xaw3d/Scrollbar.h>
6861 if { (eval echo "$as_me:6861: \"$ac_cpp conftest.$ac_ext\"") >&5
6862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6864 egrep -v '^ *\+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev
/null
; then
6869 if test -s conftest.err
; then
6870 ac_cpp_err
=$ac_c_preproc_warn_flag
6877 if test -z "$ac_cpp_err"; then
6878 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.
$ac_ext >&5
6882 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6884 rm -f conftest.err conftest.
$ac_ext
6886 echo "$as_me:6886: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6887 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6888 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6889 echo "$as_me:6889: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6890 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6891 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 ac_check_lib_save_LIBS
=$LIBS
6895 LIBS
="-lXaw3d $LIBS"
6896 cat >conftest.
$ac_ext <<_ACEOF
6897 #line 6897 "configure"
6898 #include "confdefs.h"
6900 /* Override any gcc2 internal prototype to avoid an error. */
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906 char XawScrollbarSetThumb ();
6910 XawScrollbarSetThumb ();
6915 rm -f conftest.
$ac_objext conftest
$ac_exeext
6916 if { (eval echo "$as_me:6916: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
6919 echo "$as_me:6919: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try
='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:6922: \"$ac_try\"") >&5
6925 echo "$as_me:6925: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.
$ac_ext >&5
6931 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6933 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6934 LIBS
=$ac_check_lib_save_LIBS
6936 echo "$as_me:6936: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6937 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6938 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6944 if test "${HAVE_XAW3D}" = "yes"; then
6945 cat >>confdefs.h
<<\EOF
6946 #define HAVE_XAW3D 1
6953 USE_TOOLKIT_SCROLL_BARS
=no
6954 if test "${with_toolkit_scroll_bars}" != "no"; then
6955 if test "${USE_X_TOOLKIT}" != "none"; then
6956 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6957 cat >>confdefs.h
<<\EOF
6958 #define USE_TOOLKIT_SCROLL_BARS 1
6962 USE_TOOLKIT_SCROLL_BARS
=yes
6963 elif test "${HAVE_XAW3D}" = "yes"; then
6964 cat >>confdefs.h
<<\EOF
6965 #define USE_TOOLKIT_SCROLL_BARS 1
6968 USE_TOOLKIT_SCROLL_BARS
=yes
6973 if test "${with_xim}" != "no"; then
6974 cat >>confdefs.h
<<\EOF
6980 ### Use -lXpm if available, unless `--with-xpm=no'.
6982 if test "${HAVE_X11}" = "yes"; then
6983 if test "${with_xpm}" != "no"; then
6984 echo "$as_me:6984: checking for X11/xpm.h" >&5
6985 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6986 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cat >conftest.
$ac_ext <<_ACEOF
6990 #line 6990 "configure"
6991 #include "confdefs.h"
6992 #include <X11/xpm.h>
6994 if { (eval echo "$as_me:6994: \"$ac_cpp conftest.$ac_ext\"") >&5
6995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6997 egrep -v '^ *\+' conftest.er1
>conftest.err
6999 cat conftest.err
>&5
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev
/null
; then
7002 if test -s conftest.err
; then
7003 ac_cpp_err
=$ac_c_preproc_warn_flag
7010 if test -z "$ac_cpp_err"; then
7011 ac_cv_header_X11_xpm_h
=yes
7013 echo "$as_me: failed program was:" >&5
7014 cat conftest.
$ac_ext >&5
7015 ac_cv_header_X11_xpm_h
=no
7017 rm -f conftest.err conftest.
$ac_ext
7019 echo "$as_me:7019: result: $ac_cv_header_X11_xpm_h" >&5
7020 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7021 if test $ac_cv_header_X11_xpm_h = yes; then
7022 echo "$as_me:7022: checking for XpmReadFileToPixmap in -lXpm" >&5
7023 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7024 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_check_lib_save_LIBS
=$LIBS
7028 LIBS
="-lXpm -lX11 $LIBS"
7029 cat >conftest.
$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7039 char XpmReadFileToPixmap ();
7043 XpmReadFileToPixmap ();
7048 rm -f conftest.
$ac_objext conftest
$ac_exeext
7049 if { (eval echo "$as_me:7049: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try
='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:7055: \"$ac_try\"") >&5
7058 echo "$as_me:7058: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7062 echo "$as_me: failed program was:" >&5
7063 cat conftest.
$ac_ext >&5
7064 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7066 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7067 LIBS
=$ac_check_lib_save_LIBS
7069 echo "$as_me:7069: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7070 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7071 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7077 if test "${HAVE_XPM}" = "yes"; then
7078 echo "$as_me:7078: checking for XpmReturnAllocPixels preprocessor define" >&5
7079 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7080 cat >conftest.
$ac_ext <<_ACEOF
7081 #line 7081 "configure"
7082 #include "confdefs.h"
7083 #include "X11/xpm.h"
7084 #ifndef XpmReturnAllocPixels
7085 no_return_alloc_pixels
7089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7090 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7097 if test "${HAVE_XPM}" = "yes"; then
7098 echo "$as_me:7098: result: yes" >&5
7099 echo "${ECHO_T}yes" >&6
7101 echo "$as_me:7101: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7107 if test "${HAVE_XPM}" = "yes"; then
7108 cat >>confdefs.h
<<\EOF
7115 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7117 if test "${HAVE_X11}" = "yes"; then
7118 if test "${with_jpeg}" != "no"; then
7119 echo "$as_me:7119: checking for jerror.h" >&5
7120 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_jerror_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.
$ac_ext <<_ACEOF
7125 #line 7125 "configure"
7126 #include "confdefs.h"
7129 if { (eval echo "$as_me:7129: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7132 egrep -v '^ *\+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:7135: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev
/null
; then
7137 if test -s conftest.err
; then
7138 ac_cpp_err
=$ac_c_preproc_warn_flag
7145 if test -z "$ac_cpp_err"; then
7146 ac_cv_header_jerror_h
=yes
7148 echo "$as_me: failed program was:" >&5
7149 cat conftest.
$ac_ext >&5
7150 ac_cv_header_jerror_h
=no
7152 rm -f conftest.err conftest.
$ac_ext
7154 echo "$as_me:7154: result: $ac_cv_header_jerror_h" >&5
7155 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7156 if test $ac_cv_header_jerror_h = yes; then
7157 echo "$as_me:7157: checking for jpeg_destroy_compress in -ljpeg" >&5
7158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_check_lib_save_LIBS
=$LIBS
7164 cat >conftest.
$ac_ext <<_ACEOF
7165 #line 7165 "configure"
7166 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */
7172 /* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7174 char jpeg_destroy_compress ();
7178 jpeg_destroy_compress ();
7183 rm -f conftest.
$ac_objext conftest
$ac_exeext
7184 if { (eval echo "$as_me:7184: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try
='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:7190: \"$ac_try\"") >&5
7193 echo "$as_me:7193: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7197 echo "$as_me: failed program was:" >&5
7198 cat conftest.
$ac_ext >&5
7199 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7201 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7202 LIBS
=$ac_check_lib_save_LIBS
7204 echo "$as_me:7204: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7205 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7206 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7214 if test "${HAVE_JPEG}" = "yes"; then
7215 cat >>confdefs.h
<<\EOF
7222 ### Use -lpng if available, unless `--with-png=no'.
7224 if test "${HAVE_X11}" = "yes"; then
7225 if test "${with_png}" != "no"; then
7226 echo "$as_me:7226: checking for png.h" >&5
7227 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7228 if test "${ac_cv_header_png_h+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 cat >conftest.
$ac_ext <<_ACEOF
7232 #line 7232 "configure"
7233 #include "confdefs.h"
7236 if { (eval echo "$as_me:7236: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7239 egrep -v '^ *\+' conftest.er1
>conftest.err
7241 cat conftest.err
>&5
7242 echo "$as_me:7242: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev
/null
; then
7244 if test -s conftest.err
; then
7245 ac_cpp_err
=$ac_c_preproc_warn_flag
7252 if test -z "$ac_cpp_err"; then
7253 ac_cv_header_png_h
=yes
7255 echo "$as_me: failed program was:" >&5
7256 cat conftest.
$ac_ext >&5
7257 ac_cv_header_png_h
=no
7259 rm -f conftest.err conftest.
$ac_ext
7261 echo "$as_me:7261: result: $ac_cv_header_png_h" >&5
7262 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7263 if test $ac_cv_header_png_h = yes; then
7264 echo "$as_me:7264: checking for png_get_channels in -lpng" >&5
7265 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7266 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_check_lib_save_LIBS
=$LIBS
7270 LIBS
="-lpng -lz -lm $LIBS"
7271 cat >conftest.
$ac_ext <<_ACEOF
7272 #line 7272 "configure"
7273 #include "confdefs.h"
7275 /* Override any gcc2 internal prototype to avoid an error. */
7279 /* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7281 char png_get_channels ();
7285 png_get_channels ();
7290 rm -f conftest.
$ac_objext conftest
$ac_exeext
7291 if { (eval echo "$as_me:7291: \"$ac_link\"") >&5
7292 (eval $ac_link) 2>&5
7294 echo "$as_me:7294: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try
='test -s conftest$ac_exeext'
7297 { (eval echo "$as_me:7297: \"$ac_try\"") >&5
7300 echo "$as_me:7300: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_cv_lib_png_png_get_channels
=yes
7304 echo "$as_me: failed program was:" >&5
7305 cat conftest.
$ac_ext >&5
7306 ac_cv_lib_png_png_get_channels
=no
7308 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7309 LIBS
=$ac_check_lib_save_LIBS
7311 echo "$as_me:7311: result: $ac_cv_lib_png_png_get_channels" >&5
7312 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7313 if test $ac_cv_lib_png_png_get_channels = yes; then
7321 if test "${HAVE_PNG}" = "yes"; then
7322 cat >>confdefs.h
<<\EOF
7329 ### Use -ltiff if available, unless `--with-tiff=no'.
7331 if test "${HAVE_X11}" = "yes"; then
7332 if test "${with_tiff}" != "no"; then
7333 echo "$as_me:7333: checking for tiffio.h" >&5
7334 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7335 if test "${ac_cv_header_tiffio_h+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 cat >conftest.
$ac_ext <<_ACEOF
7339 #line 7339 "configure"
7340 #include "confdefs.h"
7343 if { (eval echo "$as_me:7343: \"$ac_cpp conftest.$ac_ext\"") >&5
7344 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7346 egrep -v '^ *\+' conftest.er1
>conftest.err
7348 cat conftest.err
>&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); } >/dev
/null
; then
7351 if test -s conftest.err
; then
7352 ac_cpp_err
=$ac_c_preproc_warn_flag
7359 if test -z "$ac_cpp_err"; then
7360 ac_cv_header_tiffio_h
=yes
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.
$ac_ext >&5
7364 ac_cv_header_tiffio_h
=no
7366 rm -f conftest.err conftest.
$ac_ext
7368 echo "$as_me:7368: result: $ac_cv_header_tiffio_h" >&5
7369 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7370 if test $ac_cv_header_tiffio_h = yes; then
7372 # At least one tiff package requires the jpeg library.
7373 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7374 echo "$as_me:7374: checking for TIFFGetVersion in -ltiff" >&5
7375 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7376 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_check_lib_save_LIBS
=$LIBS
7380 LIBS
="-ltiff $tifflibs $LIBS"
7381 cat >conftest.
$ac_ext <<_ACEOF
7382 #line 7382 "configure"
7383 #include "confdefs.h"
7385 /* Override any gcc2 internal prototype to avoid an error. */
7389 /* We use char because int might match the return type of a gcc2
7390 builtin and then its argument prototype would still apply. */
7391 char TIFFGetVersion ();
7400 rm -f conftest.
$ac_objext conftest
$ac_exeext
7401 if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>&5
7404 echo "$as_me:7404: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try
='test -s conftest$ac_exeext'
7407 { (eval echo "$as_me:7407: \"$ac_try\"") >&5
7410 echo "$as_me:7410: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_lib_tiff_TIFFGetVersion
=yes
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.
$ac_ext >&5
7416 ac_cv_lib_tiff_TIFFGetVersion
=no
7418 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7419 LIBS
=$ac_check_lib_save_LIBS
7421 echo "$as_me:7421: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7422 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7423 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7431 if test "${HAVE_TIFF}" = "yes"; then
7432 cat >>confdefs.h
<<\EOF
7439 ### Use -lgif if available, unless `--with-gif=no'.
7441 if test "${HAVE_X11}" = "yes"; then
7442 if test "${with_gif}" != "no"; then
7443 echo "$as_me:7443: checking for gif_lib.h" >&5
7444 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7445 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 cat >conftest.
$ac_ext <<_ACEOF
7449 #line 7449 "configure"
7450 #include "confdefs.h"
7451 #include <gif_lib.h>
7453 if { (eval echo "$as_me:7453: \"$ac_cpp conftest.$ac_ext\"") >&5
7454 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7456 egrep -v '^ *\+' conftest.er1
>conftest.err
7458 cat conftest.err
>&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev
/null
; then
7461 if test -s conftest.err
; then
7462 ac_cpp_err
=$ac_c_preproc_warn_flag
7469 if test -z "$ac_cpp_err"; then
7470 ac_cv_header_gif_lib_h
=yes
7472 echo "$as_me: failed program was:" >&5
7473 cat conftest.
$ac_ext >&5
7474 ac_cv_header_gif_lib_h
=no
7476 rm -f conftest.err conftest.
$ac_ext
7478 echo "$as_me:7478: result: $ac_cv_header_gif_lib_h" >&5
7479 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7480 if test $ac_cv_header_gif_lib_h = yes; then
7481 echo "$as_me:7481: checking for DGifOpen in -lungif" >&5
7482 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7483 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 ac_check_lib_save_LIBS
=$LIBS
7487 LIBS
="-lungif $LIBS"
7488 cat >conftest.
$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7492 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7507 rm -f conftest.
$ac_objext conftest
$ac_exeext
7508 if { (eval echo "$as_me:7508: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>&5
7511 echo "$as_me:7511: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try
='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:7514: \"$ac_try\"") >&5
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_lib_ungif_DGifOpen
=yes
7521 echo "$as_me: failed program was:" >&5
7522 cat conftest.
$ac_ext >&5
7523 ac_cv_lib_ungif_DGifOpen
=no
7525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7526 LIBS
=$ac_check_lib_save_LIBS
7528 echo "$as_me:7528: result: $ac_cv_lib_ungif_DGifOpen" >&5
7529 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7530 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7538 if test "${HAVE_GIF}" = "yes"; then
7539 cat >>confdefs.h
<<\EOF
7546 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7547 echo "$as_me:7547: checking whether netdb declares h_errno" >&5
7548 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7549 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 cat >conftest.
$ac_ext <<_ACEOF
7553 #line 7553 "configure"
7554 #include "confdefs.h"
7564 rm -f conftest.
$ac_objext conftest
$ac_exeext
7565 if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7568 echo "$as_me:7568: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try
='test -s conftest$ac_exeext'
7571 { (eval echo "$as_me:7571: \"$ac_try\"") >&5
7574 echo "$as_me:7574: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 emacs_cv_netdb_declares_h_errno
=yes
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.
$ac_ext >&5
7580 emacs_cv_netdb_declares_h_errno
=no
7582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7584 echo "$as_me:7584: result: $emacs_cv_netdb_declares_h_errno" >&5
7585 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7586 if test $emacs_cv_netdb_declares_h_errno = yes; then
7587 cat >>confdefs.h
<<\EOF
7588 #define HAVE_H_ERRNO 1
7593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7594 # for constant arguments. Useless!
7595 echo "$as_me:7595: checking for working alloca.h" >&5
7596 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7597 if test "${ac_cv_working_alloca_h+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 cat >conftest.
$ac_ext <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7607 char *p = (char *) alloca (2 * sizeof (int));
7612 rm -f conftest.
$ac_objext conftest
$ac_exeext
7613 if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try
='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:7619: \"$ac_try\"") >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_working_alloca_h
=yes
7626 echo "$as_me: failed program was:" >&5
7627 cat conftest.
$ac_ext >&5
7628 ac_cv_working_alloca_h
=no
7630 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7632 echo "$as_me:7632: result: $ac_cv_working_alloca_h" >&5
7633 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7634 if test $ac_cv_working_alloca_h = yes; then
7636 cat >>confdefs.h
<<\EOF
7637 #define HAVE_ALLOCA_H 1
7642 echo "$as_me:7642: checking for alloca" >&5
7643 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7644 if test "${ac_cv_func_alloca_works+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.
$ac_ext <<_ACEOF
7648 #line 7648 "configure"
7649 #include "confdefs.h"
7651 # define alloca __builtin_alloca
7654 # include <malloc.h>
7655 # define alloca _alloca
7658 # include <alloca.h>
7663 # ifndef alloca /* predefined by HP cc +Olibcalls */
7674 char *p = (char *) alloca (1);
7679 rm -f conftest.
$ac_objext conftest
$ac_exeext
7680 if { (eval echo "$as_me:7680: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>&5
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try
='test -s conftest$ac_exeext'
7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_func_alloca_works
=yes
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.
$ac_ext >&5
7695 ac_cv_func_alloca_works
=no
7697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7699 echo "$as_me:7699: result: $ac_cv_func_alloca_works" >&5
7700 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7702 if test $ac_cv_func_alloca_works = yes; then
7704 cat >>confdefs.h
<<\EOF
7705 #define HAVE_ALLOCA 1
7709 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7710 # that cause trouble. Some versions do not even contain alloca or
7711 # contain a buggy version. If you still want to use their alloca,
7712 # use ar to extract alloca.o from them instead of compiling alloca.c.
7714 ALLOCA
=alloca.
$ac_objext
7716 cat >>confdefs.h
<<\EOF
7720 echo "$as_me:7720: checking whether \`alloca.c' needs Cray hooks" >&5
7721 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7722 if test "${ac_cv_os_cray+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 cat >conftest.
$ac_ext <<_ACEOF
7726 #line 7726 "configure"
7727 #include "confdefs.h"
7728 #if defined(CRAY) && ! defined(CRAY2)
7735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736 egrep "webecray" >/dev
/null
2>&1; then
7744 echo "$as_me:7744: result: $ac_cv_os_cray" >&5
7745 echo "${ECHO_T}$ac_cv_os_cray" >&6
7746 if test $ac_cv_os_cray = yes; then
7747 for ac_func
in _getb67 GETB67 getb67
; do
7748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7749 echo "$as_me:7749: checking for $ac_func" >&5
7750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7751 if eval "test \"\${$as_ac_var+set}\" = set"; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.
$ac_ext <<_ACEOF
7755 #line 7755 "configure"
7756 #include "confdefs.h"
7757 /* System header to define __stub macros and hopefully few prototypes,
7758 which can conflict with char $ac_func (); below. */
7760 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7772 /* The GNU C library defines this for functions which it implements
7773 to always fail with ENOSYS. Some functions are actually named
7774 something starting with __ and the normal name is an alias. */
7775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7785 rm -f conftest.
$ac_objext conftest
$ac_exeext
7786 if { (eval echo "$as_me:7786: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>&5
7789 echo "$as_me:7789: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try
='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:7792: \"$ac_try\"") >&5
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 eval "$as_ac_var=yes"
7799 echo "$as_me: failed program was:" >&5
7800 cat conftest.
$ac_ext >&5
7801 eval "$as_ac_var=no"
7803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7805 echo "$as_me:7805: result: `eval echo '${'$as_ac_var'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7807 if test `eval echo '${'$as_ac_var'}'` = yes; then
7809 cat >>confdefs.h
<<EOF
7810 #define CRAY_STACKSEG_END $ac_func
7819 echo "$as_me:7819: checking stack direction for C alloca" >&5
7820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7821 if test "${ac_cv_c_stack_direction+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 if test "$cross_compiling" = yes; then
7825 ac_cv_c_stack_direction
=0
7827 cat >conftest.
$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7831 find_stack_direction ()
7833 static char *addr = 0;
7838 return find_stack_direction ();
7841 return (&dummy > addr) ? 1 : -1;
7847 exit (find_stack_direction () < 0);
7850 rm -f conftest
$ac_exeext
7851 if { (eval echo "$as_me:7851: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 ac_cv_c_stack_direction
=1
7863 echo "$as_me: program exited with status $ac_status" >&5
7864 echo "$as_me: failed program was:" >&5
7865 cat conftest.
$ac_ext >&5
7866 ac_cv_c_stack_direction
=-1
7868 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7871 echo "$as_me:7871: result: $ac_cv_c_stack_direction" >&5
7872 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7874 cat >>confdefs.h
<<EOF
7875 #define STACK_DIRECTION $ac_cv_c_stack_direction
7880 # fmod, logb, and frexp are found in -lm on most systems.
7881 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7883 echo "$as_me:7883: checking for sqrt in -lm" >&5
7884 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7885 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 ac_check_lib_save_LIBS
=$LIBS
7890 cat >conftest.
$ac_ext <<_ACEOF
7891 #line 7891 "configure"
7892 #include "confdefs.h"
7894 /* Override any gcc2 internal prototype to avoid an error. */
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7909 rm -f conftest.
$ac_objext conftest
$ac_exeext
7910 if { (eval echo "$as_me:7910: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try
='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:7916: \"$ac_try\"") >&5
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_lib_m_sqrt
=yes
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.
$ac_ext >&5
7927 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7928 LIBS
=$ac_check_lib_save_LIBS
7930 echo "$as_me:7930: result: $ac_cv_lib_m_sqrt" >&5
7931 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7932 if test $ac_cv_lib_m_sqrt = yes; then
7933 cat >>confdefs.h
<<EOF
7941 # Check for mail-locking functions in a "mail" library
7943 echo "$as_me:7943: checking for maillock in -lmail" >&5
7944 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7945 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 ac_check_lib_save_LIBS
=$LIBS
7950 cat >conftest.
$ac_ext <<_ACEOF
7951 #line 7951 "configure"
7952 #include "confdefs.h"
7954 /* Override any gcc2 internal prototype to avoid an error. */
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7969 rm -f conftest.
$ac_objext conftest
$ac_exeext
7970 if { (eval echo "$as_me:7970: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try
='test -s conftest$ac_exeext'
7976 { (eval echo "$as_me:7976: \"$ac_try\"") >&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_lib_mail_maillock
=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.
$ac_ext >&5
7985 ac_cv_lib_mail_maillock
=no
7987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7988 LIBS
=$ac_check_lib_save_LIBS
7990 echo "$as_me:7990: result: $ac_cv_lib_mail_maillock" >&5
7991 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7992 if test $ac_cv_lib_mail_maillock = yes; then
7993 cat >>confdefs.h
<<EOF
7994 #define HAVE_LIBMAIL 1
8001 echo "$as_me:8001: checking for maillock in -llockfile" >&5
8002 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8003 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 ac_check_lib_save_LIBS
=$LIBS
8007 LIBS
="-llockfile $LIBS"
8008 cat >conftest.
$ac_ext <<_ACEOF
8009 #line 8009 "configure"
8010 #include "confdefs.h"
8012 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8027 rm -f conftest.
$ac_objext conftest
$ac_exeext
8028 if { (eval echo "$as_me:8028: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try
='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_cv_lib_lockfile_maillock
=yes
8041 echo "$as_me: failed program was:" >&5
8042 cat conftest.
$ac_ext >&5
8043 ac_cv_lib_lockfile_maillock
=no
8045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8046 LIBS
=$ac_check_lib_save_LIBS
8048 echo "$as_me:8048: result: $ac_cv_lib_lockfile_maillock" >&5
8049 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8050 if test $ac_cv_lib_lockfile_maillock = yes; then
8051 cat >>confdefs.h
<<EOF
8052 #define HAVE_LIBLOCKFILE 1
8055 LIBS
="-llockfile $LIBS"
8059 # If we have the shared liblockfile, assume we must use it for mail
8060 # locking (e.g. Debian). If we couldn't link against liblockfile
8061 # (no liblockfile.a installed), ensure that we don't need to.
8062 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8063 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8064 set dummy liblockfile.so
; ac_word
=$2
8065 echo "$as_me:8065: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8067 if test "${ac_cv_prog_liblockfile+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 if test -n "$liblockfile"; then
8071 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8073 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8074 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8075 for ac_dir
in $ac_dummy; do
8077 test -z "$ac_dir" && ac_dir
=.
8078 $as_executable_p "$ac_dir/$ac_word" ||
continue
8079 ac_cv_prog_liblockfile
="yes"
8080 echo "$as_me:8080: found $ac_dir/$ac_word" >&5
8084 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8087 liblockfile
=$ac_cv_prog_liblockfile
8088 if test -n "$liblockfile"; then
8089 echo "$as_me:8089: result: $liblockfile" >&5
8090 echo "${ECHO_T}$liblockfile" >&6
8092 echo "$as_me:8092: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8096 if test $ac_cv_prog_liblockfile = yes; then
8097 { { echo "$as_me:8097: error: Shared liblockfile found but can't link against it.
8098 This probably means that movemail could lose mail.
8099 There may be a \`development' package to install containing liblockfile." >&5
8100 echo "$as_me: error: Shared liblockfile found but can't link against it.
8101 This probably means that movemail could lose mail.
8102 There may be a \`development' package to install containing liblockfile." >&2;}
8103 { (exit 1); exit 1; }; }
8104 else cat >>confdefs.h
<<\EOF
8105 #define LIBMAIL -llockfile
8112 for ac_func
in touchlock
8114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8115 echo "$as_me:8115: checking for $ac_func" >&5
8116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_var+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.
$ac_ext <<_ACEOF
8121 #line 8121 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func (); below. */
8126 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8138 /* The GNU C library defines this for functions which it implements
8139 to always fail with ENOSYS. Some functions are actually named
8140 something starting with __ and the normal name is an alias. */
8141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8151 rm -f conftest.
$ac_objext conftest
$ac_exeext
8152 if { (eval echo "$as_me:8152: \"$ac_link\"") >&5
8153 (eval $ac_link) 2>&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try
='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:8158: \"$ac_try\"") >&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_var=yes"
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.
$ac_ext >&5
8167 eval "$as_ac_var=no"
8169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8171 echo "$as_me:8171: result: `eval echo '${'$as_ac_var'}'`" >&5
8172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8173 if test `eval echo '${'$as_ac_var'}'` = yes; then
8174 cat >>confdefs.h
<<EOF
8175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8181 for ac_header
in maillock.h
8183 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8184 echo "$as_me:8184: checking for $ac_header" >&5
8185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8192 #include <$ac_header>
8194 if { (eval echo "$as_me:8194: \"$ac_cpp conftest.$ac_ext\"") >&5
8195 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8197 egrep -v '^ *\+' conftest.er1
>conftest.err
8199 cat conftest.err
>&5
8200 echo "$as_me:8200: \$? = $ac_status" >&5
8201 (exit $ac_status); } >/dev
/null
; then
8202 if test -s conftest.err
; then
8203 ac_cpp_err
=$ac_c_preproc_warn_flag
8210 if test -z "$ac_cpp_err"; then
8211 eval "$as_ac_Header=yes"
8213 echo "$as_me: failed program was:" >&5
8214 cat conftest.
$ac_ext >&5
8215 eval "$as_ac_Header=no"
8217 rm -f conftest.err conftest.
$ac_ext
8219 echo "$as_me:8219: result: `eval echo '${'$as_ac_Header'}'`" >&5
8220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8222 cat >>confdefs.h
<<EOF
8223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 for ac_func
in gethostname getdomainname dup2 \
8230 rename closedir mkdir
rmdir sysinfo \
8231 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8232 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8233 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8234 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8235 gai_strerror mkstemp
8237 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8238 echo "$as_me:8238: checking for $ac_func" >&5
8239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_var+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 cat >conftest.
$ac_ext <<_ACEOF
8244 #line 8244 "configure"
8245 #include "confdefs.h"
8246 /* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func (); below. */
8249 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8261 /* The GNU C library defines this for functions which it implements
8262 to always fail with ENOSYS. Some functions are actually named
8263 something starting with __ and the normal name is an alias. */
8264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8274 rm -f conftest.
$ac_objext conftest
$ac_exeext
8275 if { (eval echo "$as_me:8275: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>&5
8278 echo "$as_me:8278: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try
='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:8281: \"$ac_try\"") >&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 eval "$as_ac_var=yes"
8288 echo "$as_me: failed program was:" >&5
8289 cat conftest.
$ac_ext >&5
8290 eval "$as_ac_var=no"
8292 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8294 echo "$as_me:8294: result: `eval echo '${'$as_ac_var'}'`" >&5
8295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8296 if test `eval echo '${'$as_ac_var'}'` = yes; then
8297 cat >>confdefs.h
<<EOF
8298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304 for ac_header
in sys
/time.h unistd.h
8306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 echo "$as_me:8307: checking for $ac_header" >&5
8308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 cat >conftest.
$ac_ext <<_ACEOF
8313 #line 8313 "configure"
8314 #include "confdefs.h"
8315 #include <$ac_header>
8317 if { (eval echo "$as_me:8317: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8320 egrep -v '^ *\+' conftest.er1
>conftest.err
8322 cat conftest.err
>&5
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev
/null
; then
8325 if test -s conftest.err
; then
8326 ac_cpp_err
=$ac_c_preproc_warn_flag
8333 if test -z "$ac_cpp_err"; then
8334 eval "$as_ac_Header=yes"
8336 echo "$as_me: failed program was:" >&5
8337 cat conftest.
$ac_ext >&5
8338 eval "$as_ac_Header=no"
8340 rm -f conftest.err conftest.
$ac_ext
8342 echo "$as_me:8342: result: `eval echo '${'$as_ac_Header'}'`" >&5
8343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8345 cat >>confdefs.h
<<EOF
8346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 for ac_func
in alarm
8354 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8355 echo "$as_me:8355: checking for $ac_func" >&5
8356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8357 if eval "test \"\${$as_ac_var+set}\" = set"; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 cat >conftest.
$ac_ext <<_ACEOF
8361 #line 8361 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func (); below. */
8366 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8391 rm -f conftest.
$ac_objext conftest
$ac_exeext
8392 if { (eval echo "$as_me:8392: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try
='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:8398: \"$ac_try\"") >&5
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 eval "$as_ac_var=yes"
8405 echo "$as_me: failed program was:" >&5
8406 cat conftest.
$ac_ext >&5
8407 eval "$as_ac_var=no"
8409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8411 echo "$as_me:8411: result: `eval echo '${'$as_ac_var'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8413 if test `eval echo '${'$as_ac_var'}'` = yes; then
8414 cat >>confdefs.h
<<EOF
8415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8421 echo "$as_me:8421: checking for working mktime" >&5
8422 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8423 if test "${ac_cv_func_working_mktime+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 if test "$cross_compiling" = yes; then
8427 ac_cv_func_working_mktime
=no
8429 cat >conftest.
$ac_ext <<_ACEOF
8430 #line 8430 "configure"
8431 #include "confdefs.h"
8432 /* Test program from Paul Eggert and Tony Leneis. */
8433 #if TIME_WITH_SYS_TIME
8434 # include <sys/time.h>
8437 # if HAVE_SYS_TIME_H
8438 # include <sys/time.h>
8445 # include <unistd.h>
8449 # define alarm(X) /* empty */
8452 /* Work around redefinition to rpl_putenv by other config tests. */
8455 static time_t time_t_max;
8457 /* Values we'll use to set the TZ environment variable. */
8458 static const char *const tz_strings[] = {
8459 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8460 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8462 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8464 /* Fail if mktime fails to convert a date in the spring-forward gap.
8465 Based on a problem report from Andreas Jaeger. */
8467 spring_forward_gap ()
8469 /* glibc (up to about 1998-10-07) failed this test. */
8472 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8473 instead of "TZ=America/Vancouver" in order to detect the bug even
8474 on systems that don't support the Olson extension, or don't have the
8475 full zoneinfo tables installed. */
8476 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8485 if (mktime (&tm) == (time_t)-1)
8494 if ((lt = localtime (&now)) && mktime (lt) != now)
8496 now = time_t_max - now;
8497 if ((lt = localtime (&now)) && mktime (lt) != now)
8504 /* Based on code from Ariel Faigon. */
8514 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8524 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8526 if (now != (time_t) -1)
8528 struct tm *lt = localtime (&now);
8530 && lt->tm_year == tm.tm_year
8531 && lt->tm_mon == tm.tm_mon
8532 && lt->tm_mday == tm.tm_mday
8533 && lt->tm_hour == tm.tm_hour
8534 && lt->tm_min == tm.tm_min
8535 && lt->tm_sec == tm.tm_sec
8536 && lt->tm_yday == tm.tm_yday
8537 && lt->tm_wday == tm.tm_wday
8538 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8539 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8550 /* This test makes some buggy mktime implementations loop.
8551 Give up after 60 seconds; a mktime slower than that
8552 isn't worth using anyway. */
8555 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8558 delta = time_t_max / 997; /* a suitable prime number */
8559 for (i = 0; i < N_STRINGS; i++)
8562 putenv (tz_strings[i]);
8564 for (t = 0; t <= time_t_max - delta; t += delta)
8566 mktime_test ((time_t) 60 * 60);
8567 mktime_test ((time_t) 60 * 60 * 24);
8569 for (j = 1; 0 < j; j *= 2)
8571 bigtime_test (j - 1);
8574 spring_forward_gap ();
8578 rm -f conftest
$ac_exeext
8579 if { (eval echo "$as_me:8579: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>&5
8582 echo "$as_me:8582: \$? = $ac_status" >&5
8583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8584 { (eval echo "$as_me:8584: \"$ac_try\"") >&5
8587 echo "$as_me:8587: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_cv_func_working_mktime
=yes
8591 echo "$as_me: program exited with status $ac_status" >&5
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.
$ac_ext >&5
8594 ac_cv_func_working_mktime
=no
8596 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8599 echo "$as_me:8599: result: $ac_cv_func_working_mktime" >&5
8600 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8601 if test $ac_cv_func_working_mktime = no
; then
8602 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8605 if test "$ac_cv_func_working_mktime" = no
; then
8606 cat >>confdefs.h
<<\EOF
8607 #define BROKEN_MKTIME 1
8612 ac_have_func
=no
# yes means we've found a way to get the load average.
8616 # Check for getloadavg, but be sure not to touch the cache variable.
8617 (echo "$as_me:8617: checking for getloadavg" >&5
8618 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8619 if test "${ac_cv_func_getloadavg+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.
$ac_ext <<_ACEOF
8623 #line 8623 "configure"
8624 #include "confdefs.h"
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char getloadavg (); below. */
8628 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8640 /* The GNU C library defines this for functions which it implements
8641 to always fail with ENOSYS. Some functions are actually named
8642 something starting with __ and the normal name is an alias. */
8643 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8653 rm -f conftest.
$ac_objext conftest
$ac_exeext
8654 if { (eval echo "$as_me:8654: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8657 echo "$as_me:8657: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try
='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:8660: \"$ac_try\"") >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_func_getloadavg
=yes
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.
$ac_ext >&5
8669 ac_cv_func_getloadavg
=no
8671 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8673 echo "$as_me:8673: result: $ac_cv_func_getloadavg" >&5
8674 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8675 if test $ac_cv_func_getloadavg = yes; then
8680 ) && ac_have_func
=yes
8682 # On HPUX9, an unprivileged user can get load averages through this function.
8684 for ac_func
in pstat_getdynamic
8686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:8687: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8693 #line 8693 "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char $ac_func (); below. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8723 rm -f conftest.
$ac_objext conftest
$ac_exeext
8724 if { (eval echo "$as_me:8724: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try
='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:8730: \"$ac_try\"") >&5
8733 echo "$as_me:8733: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 eval "$as_ac_var=yes"
8737 echo "$as_me: failed program was:" >&5
8738 cat conftest.
$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8743 echo "$as_me:8743: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h
<<EOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753 # Solaris has libkstat which does not require root.
8755 echo "$as_me:8755: checking for kstat_open in -lkstat" >&5
8756 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8757 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 ac_check_lib_save_LIBS
=$LIBS
8761 LIBS
="-lkstat $LIBS"
8762 cat >conftest.
$ac_ext <<_ACEOF
8763 #line 8763 "configure"
8764 #include "confdefs.h"
8766 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8781 rm -f conftest.
$ac_objext conftest
$ac_exeext
8782 if { (eval echo "$as_me:8782: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>&5
8785 echo "$as_me:8785: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try
='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:8788: \"$ac_try\"") >&5
8791 echo "$as_me:8791: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_kstat_kstat_open
=yes
8795 echo "$as_me: failed program was:" >&5
8796 cat conftest.
$ac_ext >&5
8797 ac_cv_lib_kstat_kstat_open
=no
8799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8800 LIBS
=$ac_check_lib_save_LIBS
8802 echo "$as_me:8802: result: $ac_cv_lib_kstat_kstat_open" >&5
8803 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8804 if test $ac_cv_lib_kstat_kstat_open = yes; then
8805 cat >>confdefs.h
<<EOF
8806 #define HAVE_LIBKSTAT 1
8809 LIBS
="-lkstat $LIBS"
8813 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8815 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8816 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8817 # to get the right answer into the cache.
8818 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8819 if test $ac_have_func = no
; then
8820 echo "$as_me:8820: checking for elf_begin in -lelf" >&5
8821 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8822 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_check_lib_save_LIBS
=$LIBS
8827 cat >conftest.
$ac_ext <<_ACEOF
8828 #line 8828 "configure"
8829 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8846 rm -f conftest.
$ac_objext conftest
$ac_exeext
8847 if { (eval echo "$as_me:8847: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>&5
8850 echo "$as_me:8850: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try
='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:8853: \"$ac_try\"") >&5
8856 echo "$as_me:8856: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_cv_lib_elf_elf_begin
=yes
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.
$ac_ext >&5
8862 ac_cv_lib_elf_elf_begin
=no
8864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8865 LIBS
=$ac_check_lib_save_LIBS
8867 echo "$as_me:8867: result: $ac_cv_lib_elf_elf_begin" >&5
8868 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8869 if test $ac_cv_lib_elf_elf_begin = yes; then
8874 if test $ac_have_func = no
; then
8875 echo "$as_me:8875: checking for kvm_open in -lkvm" >&5
8876 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8877 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 ac_check_lib_save_LIBS
=$LIBS
8882 cat >conftest.
$ac_ext <<_ACEOF
8883 #line 8883 "configure"
8884 #include "confdefs.h"
8886 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8901 rm -f conftest.
$ac_objext conftest
$ac_exeext
8902 if { (eval echo "$as_me:8902: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>&5
8905 echo "$as_me:8905: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try
='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:8908: \"$ac_try\"") >&5
8911 echo "$as_me:8911: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_kvm_kvm_open
=yes
8915 echo "$as_me: failed program was:" >&5
8916 cat conftest.
$ac_ext >&5
8917 ac_cv_lib_kvm_kvm_open
=no
8919 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8920 LIBS
=$ac_check_lib_save_LIBS
8922 echo "$as_me:8922: result: $ac_cv_lib_kvm_kvm_open" >&5
8923 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8924 if test $ac_cv_lib_kvm_kvm_open = yes; then
8928 # Check for the 4.4BSD definition of getloadavg.
8929 echo "$as_me:8929: checking for getloadavg in -lutil" >&5
8930 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8931 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 ac_check_lib_save_LIBS
=$LIBS
8936 cat >conftest.
$ac_ext <<_ACEOF
8937 #line 8937 "configure"
8938 #include "confdefs.h"
8940 /* Override any gcc2 internal prototype to avoid an error. */
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8955 rm -f conftest.
$ac_objext conftest
$ac_exeext
8956 if { (eval echo "$as_me:8956: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>&5
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try
='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:8962: \"$ac_try\"") >&5
8965 echo "$as_me:8965: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_util_getloadavg
=yes
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.
$ac_ext >&5
8971 ac_cv_lib_util_getloadavg
=no
8973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8974 LIBS
=$ac_check_lib_save_LIBS
8976 echo "$as_me:8976: result: $ac_cv_lib_util_getloadavg" >&5
8977 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8978 if test $ac_cv_lib_util_getloadavg = yes; then
8979 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
8984 if test $ac_have_func = no
; then
8985 # There is a commonly available library for RS/6000 AIX.
8986 # Since it is not a standard part of AIX, it might be installed locally.
8987 ac_getloadavg_LIBS
=$LIBS
8988 LIBS
="-L/usr/local/lib $LIBS"
8989 echo "$as_me:8989: checking for getloadavg in -lgetloadavg" >&5
8990 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8991 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 ac_check_lib_save_LIBS
=$LIBS
8995 LIBS
="-lgetloadavg $LIBS"
8996 cat >conftest.
$ac_ext <<_ACEOF
8997 #line 8997 "configure"
8998 #include "confdefs.h"
9000 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9015 rm -f conftest.
$ac_objext conftest
$ac_exeext
9016 if { (eval echo "$as_me:9016: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>&5
9019 echo "$as_me:9019: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try
='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:9022: \"$ac_try\"") >&5
9025 echo "$as_me:9025: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_lib_getloadavg_getloadavg
=yes
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.
$ac_ext >&5
9031 ac_cv_lib_getloadavg_getloadavg
=no
9033 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9034 LIBS
=$ac_check_lib_save_LIBS
9036 echo "$as_me:9036: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9037 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9038 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9039 LIBS
="-lgetloadavg $LIBS"
9041 LIBS
=$ac_getloadavg_LIBS
9046 # Make sure it is really in the library, if we think we found it,
9047 # otherwise set up the replacement function.
9049 for ac_func
in getloadavg
9051 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9052 echo "$as_me:9052: checking for $ac_func" >&5
9053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_var+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 cat >conftest.
$ac_ext <<_ACEOF
9058 #line 9058 "configure"
9059 #include "confdefs.h"
9060 /* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func (); below. */
9063 /* Override any gcc2 internal prototype to avoid an error. */
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9075 /* The GNU C library defines this for functions which it implements
9076 to always fail with ENOSYS. Some functions are actually named
9077 something starting with __ and the normal name is an alias. */
9078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 rm -f conftest.
$ac_objext conftest
$ac_exeext
9089 if { (eval echo "$as_me:9089: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>&5
9092 echo "$as_me:9092: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try
='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:9095: \"$ac_try\"") >&5
9098 echo "$as_me:9098: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 eval "$as_ac_var=yes"
9102 echo "$as_me: failed program was:" >&5
9103 cat conftest.
$ac_ext >&5
9104 eval "$as_ac_var=no"
9106 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9108 echo "$as_me:9108: result: `eval echo '${'$as_ac_var'}'`" >&5
9109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9110 if test `eval echo '${'$as_ac_var'}'` = yes; then
9111 cat >>confdefs.h
<<EOF
9112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9116 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9118 cat >>confdefs.h
<<\EOF
9119 #define C_GETLOADAVG 1
9122 # Figure out what our getloadavg.c needs.
9124 echo "$as_me:9124: checking for sys/dg_sys_info.h" >&5
9125 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9126 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 cat >conftest.
$ac_ext <<_ACEOF
9130 #line 9130 "configure"
9131 #include "confdefs.h"
9132 #include <sys/dg_sys_info.h>
9134 if { (eval echo "$as_me:9134: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9137 egrep -v '^ *\+' conftest.er1
>conftest.err
9139 cat conftest.err
>&5
9140 echo "$as_me:9140: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev
/null
; then
9142 if test -s conftest.err
; then
9143 ac_cpp_err
=$ac_c_preproc_warn_flag
9150 if test -z "$ac_cpp_err"; then
9151 ac_cv_header_sys_dg_sys_info_h
=yes
9153 echo "$as_me: failed program was:" >&5
9154 cat conftest.
$ac_ext >&5
9155 ac_cv_header_sys_dg_sys_info_h
=no
9157 rm -f conftest.err conftest.
$ac_ext
9159 echo "$as_me:9159: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9161 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9164 cat >>confdefs.h
<<\EOF
9168 echo "$as_me:9168: checking for dg_sys_info in -ldgc" >&5
9169 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9170 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 ac_check_lib_save_LIBS
=$LIBS
9175 cat >conftest.
$ac_ext <<_ACEOF
9176 #line 9176 "configure"
9177 #include "confdefs.h"
9179 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char dg_sys_info ();
9194 rm -f conftest.
$ac_objext conftest
$ac_exeext
9195 if { (eval echo "$as_me:9195: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>&5
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try
='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:9201: \"$ac_try\"") >&5
9204 echo "$as_me:9204: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_lib_dgc_dg_sys_info
=yes
9208 echo "$as_me: failed program was:" >&5
9209 cat conftest.
$ac_ext >&5
9210 ac_cv_lib_dgc_dg_sys_info
=no
9212 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9213 LIBS
=$ac_check_lib_save_LIBS
9215 echo "$as_me:9215: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9217 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9218 cat >>confdefs.h
<<EOF
9219 #define HAVE_LIBDGC 1
9228 echo "$as_me:9228: checking for locale.h" >&5
9229 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9230 if test "${ac_cv_header_locale_h+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 cat >conftest.
$ac_ext <<_ACEOF
9234 #line 9234 "configure"
9235 #include "confdefs.h"
9238 if { (eval echo "$as_me:9238: \"$ac_cpp conftest.$ac_ext\"") >&5
9239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9241 egrep -v '^ *\+' conftest.er1
>conftest.err
9243 cat conftest.err
>&5
9244 echo "$as_me:9244: \$? = $ac_status" >&5
9245 (exit $ac_status); } >/dev
/null
; then
9246 if test -s conftest.err
; then
9247 ac_cpp_err
=$ac_c_preproc_warn_flag
9254 if test -z "$ac_cpp_err"; then
9255 ac_cv_header_locale_h
=yes
9257 echo "$as_me: failed program was:" >&5
9258 cat conftest.
$ac_ext >&5
9259 ac_cv_header_locale_h
=no
9261 rm -f conftest.err conftest.
$ac_ext
9263 echo "$as_me:9263: result: $ac_cv_header_locale_h" >&5
9264 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9266 for ac_func
in setlocale
9268 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 echo "$as_me:9269: checking for $ac_func" >&5
9270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_var+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 cat >conftest.
$ac_ext <<_ACEOF
9275 #line 9275 "configure"
9276 #include "confdefs.h"
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below. */
9280 /* Override any gcc2 internal prototype to avoid an error. */
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9305 rm -f conftest.
$ac_objext conftest
$ac_exeext
9306 if { (eval echo "$as_me:9306: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>&5
9309 echo "$as_me:9309: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try
='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:9312: \"$ac_try\"") >&5
9315 echo "$as_me:9315: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9319 echo "$as_me: failed program was:" >&5
9320 cat conftest.
$ac_ext >&5
9321 eval "$as_ac_var=no"
9323 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9325 echo "$as_me:9325: result: `eval echo '${'$as_ac_var'}'`" >&5
9326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9327 if test `eval echo '${'$as_ac_var'}'` = yes; then
9328 cat >>confdefs.h
<<EOF
9329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9337 # Irix 4.0.5F has the header but not the library.
9338 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9341 cat >>confdefs.h
<<\EOF
9347 if test $ac_have_func = no
; then
9348 echo "$as_me:9348: checking for inq_stats/cpustats.h" >&5
9349 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9350 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.
$ac_ext <<_ACEOF
9354 #line 9354 "configure"
9355 #include "confdefs.h"
9356 #include <inq_stats/cpustats.h>
9358 if { (eval echo "$as_me:9358: \"$ac_cpp conftest.$ac_ext\"") >&5
9359 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9361 egrep -v '^ *\+' conftest.er1
>conftest.err
9363 cat conftest.err
>&5
9364 echo "$as_me:9364: \$? = $ac_status" >&5
9365 (exit $ac_status); } >/dev
/null
; then
9366 if test -s conftest.err
; then
9367 ac_cpp_err
=$ac_c_preproc_warn_flag
9374 if test -z "$ac_cpp_err"; then
9375 ac_cv_header_inq_stats_cpustats_h
=yes
9377 echo "$as_me: failed program was:" >&5
9378 cat conftest.
$ac_ext >&5
9379 ac_cv_header_inq_stats_cpustats_h
=no
9381 rm -f conftest.err conftest.
$ac_ext
9383 echo "$as_me:9383: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9384 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9385 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9388 cat >>confdefs.h
<<\EOF
9392 cat >>confdefs.h
<<\EOF
9400 if test $ac_have_func = no
; then
9401 echo "$as_me:9401: checking for sys/cpustats.h" >&5
9402 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9403 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 cat >conftest.
$ac_ext <<_ACEOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9409 #include <sys/cpustats.h>
9411 if { (eval echo "$as_me:9411: \"$ac_cpp conftest.$ac_ext\"") >&5
9412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9414 egrep -v '^ *\+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev
/null
; then
9419 if test -s conftest.err
; then
9420 ac_cpp_err
=$ac_c_preproc_warn_flag
9427 if test -z "$ac_cpp_err"; then
9428 ac_cv_header_sys_cpustats_h
=yes
9430 echo "$as_me: failed program was:" >&5
9431 cat conftest.
$ac_ext >&5
9432 ac_cv_header_sys_cpustats_h
=no
9434 rm -f conftest.err conftest.
$ac_ext
9436 echo "$as_me:9436: result: $ac_cv_header_sys_cpustats_h" >&5
9437 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9438 if test $ac_cv_header_sys_cpustats_h = yes; then
9439 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9447 if test $ac_have_func = no
; then
9449 for ac_header
in mach
/mach.h
9451 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 echo "$as_me:9452: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cat >conftest.
$ac_ext <<_ACEOF
9458 #line 9458 "configure"
9459 #include "confdefs.h"
9460 #include <$ac_header>
9462 if { (eval echo "$as_me:9462: \"$ac_cpp conftest.$ac_ext\"") >&5
9463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9465 egrep -v '^ *\+' conftest.er1
>conftest.err
9467 cat conftest.err
>&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); } >/dev
/null
; then
9470 if test -s conftest.err
; then
9471 ac_cpp_err
=$ac_c_preproc_warn_flag
9478 if test -z "$ac_cpp_err"; then
9479 eval "$as_ac_Header=yes"
9481 echo "$as_me: failed program was:" >&5
9482 cat conftest.
$ac_ext >&5
9483 eval "$as_ac_Header=no"
9485 rm -f conftest.err conftest.
$ac_ext
9487 echo "$as_me:9487: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9490 cat >>confdefs.h
<<EOF
9491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9499 for ac_header
in nlist.h
9501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 echo "$as_me:9502: checking for $ac_header" >&5
9503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.
$ac_ext <<_ACEOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9510 #include <$ac_header>
9512 if { (eval echo "$as_me:9512: \"$ac_cpp conftest.$ac_ext\"") >&5
9513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9515 egrep -v '^ *\+' conftest.er1
>conftest.err
9517 cat conftest.err
>&5
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 (exit $ac_status); } >/dev
/null
; then
9520 if test -s conftest.err
; then
9521 ac_cpp_err
=$ac_c_preproc_warn_flag
9528 if test -z "$ac_cpp_err"; then
9529 eval "$as_ac_Header=yes"
9531 echo "$as_me: failed program was:" >&5
9532 cat conftest.
$ac_ext >&5
9533 eval "$as_ac_Header=no"
9535 rm -f conftest.err conftest.
$ac_ext
9537 echo "$as_me:9537: result: `eval echo '${'$as_ac_Header'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540 cat >>confdefs.h
<<EOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9543 echo "$as_me:9543: checking for struct nlist.n_un.n_name" >&5
9544 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9545 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.
$ac_ext <<_ACEOF
9549 #line 9549 "configure"
9550 #include "confdefs.h"
9556 static struct nlist ac_aggr;
9557 if (ac_aggr.n_un.n_name)
9563 rm -f conftest.
$ac_objext
9564 if { (eval echo "$as_me:9564: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try
='test -s conftest.$ac_objext'
9570 { (eval echo "$as_me:9570: \"$ac_try\"") >&5
9573 echo "$as_me:9573: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_member_struct_nlist_n_un_n_name
=yes
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.
$ac_ext >&5
9579 ac_cv_member_struct_nlist_n_un_n_name
=no
9581 rm -f conftest.
$ac_objext conftest.
$ac_ext
9583 echo "$as_me:9583: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9584 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9585 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9587 cat >>confdefs.h
<<EOF
9588 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9591 cat >>confdefs.h
<<\EOF
9592 #define NLIST_NAME_UNION 1
9603 # Some definitions of getloadavg require that the program be installed setgid.
9604 echo "$as_me:9604: checking whether getloadavg requires setgid" >&5
9605 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9606 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.
$ac_ext <<_ACEOF
9610 #line 9610 "configure"
9611 #include "confdefs.h"
9612 #include "$srcdir/getloadavg.c"
9613 #ifdef LDAV_PRIVILEGED
9614 Yowza Am I SETGID yet
9617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9618 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9619 ac_cv_func_getloadavg_setgid
=yes
9621 ac_cv_func_getloadavg_setgid
=no
9626 echo "$as_me:9626: result: $ac_cv_func_getloadavg_setgid" >&5
9627 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9628 if test $ac_cv_func_getloadavg_setgid = yes; then
9631 cat >>confdefs.h
<<\EOF
9632 #define GETLOADAVG_PRIVILEGED 1
9639 if test $ac_cv_func_getloadavg_setgid = yes; then
9640 echo "$as_me:9640: checking group of /dev/kmem" >&5
9641 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9642 if test "${ac_cv_group_kmem+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9646 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9647 # If we got an error (system does not support symlinks), try without -L.
9648 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9649 ac_cv_group_kmem
=`echo $ac_ls_output \
9650 | sed -ne 's/[ ][ ]*/ /g;
9651 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9655 echo "$as_me:9655: result: $ac_cv_group_kmem" >&5
9656 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9657 KMEM_GROUP
=$ac_cv_group_kmem
9659 if test "x$ac_save_LIBS" = x
; then
9660 GETLOADAVG_LIBS
=$LIBS
9662 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9666 echo "$as_me:9666: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9667 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9668 if test "${ac_cv_sys_largefile_source+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 ac_cv_sys_largefile_source
=no
9673 cat >conftest.
$ac_ext <<_ACEOF
9674 #line 9674 "configure"
9675 #include "confdefs.h"
9685 rm -f conftest.
$ac_objext
9686 if { (eval echo "$as_me:9686: \"$ac_compile\"") >&5
9687 (eval $ac_compile) 2>&5
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try
='test -s conftest.$ac_objext'
9692 { (eval echo "$as_me:9692: \"$ac_try\"") >&5
9695 echo "$as_me:9695: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9699 echo "$as_me: failed program was:" >&5
9700 cat conftest.
$ac_ext >&5
9702 rm -f conftest.
$ac_objext conftest.
$ac_ext
9703 cat >conftest.
$ac_ext <<_ACEOF
9704 #line 9704 "configure"
9705 #include "confdefs.h"
9706 #define _LARGEFILE_SOURCE 1
9716 rm -f conftest.
$ac_objext
9717 if { (eval echo "$as_me:9717: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try
='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:9723: \"$ac_try\"") >&5
9726 echo "$as_me:9726: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_sys_largefile_source
=1; break
9730 echo "$as_me: failed program was:" >&5
9731 cat conftest.
$ac_ext >&5
9733 rm -f conftest.
$ac_objext conftest.
$ac_ext
9737 echo "$as_me:9737: result: $ac_cv_sys_largefile_source" >&5
9738 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9739 if test "$ac_cv_sys_largefile_source" != no
; then
9741 cat >>confdefs.h
<<EOF
9742 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9748 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9749 # in glibc 2.1.3, but that breaks too many other things.
9750 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9751 echo "$as_me:9751: checking for fseeko" >&5
9752 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9753 if test "${ac_cv_func_fseeko+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 cat >conftest.
$ac_ext <<_ACEOF
9757 #line 9757 "configure"
9758 #include "confdefs.h"
9763 return fseeko && fseeko (stdin, 0, 0);
9768 rm -f conftest.
$ac_objext conftest
$ac_exeext
9769 if { (eval echo "$as_me:9769: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>&5
9772 echo "$as_me:9772: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try
='test -s conftest$ac_exeext'
9775 { (eval echo "$as_me:9775: \"$ac_try\"") >&5
9778 echo "$as_me:9778: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_func_fseeko
=yes
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.
$ac_ext >&5
9784 ac_cv_func_fseeko
=no
9786 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9788 echo "$as_me:9788: result: $ac_cv_func_fseeko" >&5
9789 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9790 if test $ac_cv_func_fseeko = yes; then
9792 cat >>confdefs.h
<<\EOF
9793 #define HAVE_FSEEKO 1
9800 for ac_func
in grantpt
9802 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9803 echo "$as_me:9803: checking for $ac_func" >&5
9804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9805 if eval "test \"\${$as_ac_var+set}\" = set"; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 cat >conftest.
$ac_ext <<_ACEOF
9809 #line 9809 "configure"
9810 #include "confdefs.h"
9811 /* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char $ac_func (); below. */
9814 /* Override any gcc2 internal prototype to avoid an error. */
9818 /* We use char because int might match the return type of a gcc2
9819 builtin and then its argument prototype would still apply. */
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 rm -f conftest.
$ac_objext conftest
$ac_exeext
9840 if { (eval echo "$as_me:9840: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>&5
9843 echo "$as_me:9843: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try
='test -s conftest$ac_exeext'
9846 { (eval echo "$as_me:9846: \"$ac_try\"") >&5
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 eval "$as_ac_var=yes"
9853 echo "$as_me: failed program was:" >&5
9854 cat conftest.
$ac_ext >&5
9855 eval "$as_ac_var=no"
9857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9859 echo "$as_me:9859: result: `eval echo '${'$as_ac_var'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9861 if test `eval echo '${'$as_ac_var'}'` = yes; then
9862 cat >>confdefs.h
<<EOF
9863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9869 # PTY-related GNU extensions.
9871 for ac_func
in getpt
9873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9874 echo "$as_me:9874: checking for $ac_func" >&5
9875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9876 if eval "test \"\${$as_ac_var+set}\" = set"; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.
$ac_ext <<_ACEOF
9880 #line 9880 "configure"
9881 #include "confdefs.h"
9882 /* System header to define __stub macros and hopefully few prototypes,
9883 which can conflict with char $ac_func (); below. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (eval echo "$as_me:9911: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try
='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:9917: \"$ac_try\"") >&5
9920 echo "$as_me:9920: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 eval "$as_ac_var=yes"
9924 echo "$as_me: failed program was:" >&5
9925 cat conftest.
$ac_ext >&5
9926 eval "$as_ac_var=no"
9928 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9930 echo "$as_me:9930: result: `eval echo '${'$as_ac_var'}'`" >&5
9931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9932 if test `eval echo '${'$as_ac_var'}'` = yes; then
9933 cat >>confdefs.h
<<EOF
9934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9940 # Check this now, so that we will NOT find the above functions in ncurses.
9941 # That is because we have not set up to link ncurses in lib-src.
9942 # It's better to believe a function is not available
9943 # than to expect to find it in ncurses.
9945 echo "$as_me:9945: checking for tparm in -lncurses" >&5
9946 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9947 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 ac_check_lib_save_LIBS
=$LIBS
9951 LIBS
="-lncurses $LIBS"
9952 cat >conftest.
$ac_ext <<_ACEOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9956 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9971 rm -f conftest.
$ac_objext conftest
$ac_exeext
9972 if { (eval echo "$as_me:9972: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>&5
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try
='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:9978: \"$ac_try\"") >&5
9981 echo "$as_me:9981: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_ncurses_tparm
=yes
9985 echo "$as_me: failed program was:" >&5
9986 cat conftest.
$ac_ext >&5
9987 ac_cv_lib_ncurses_tparm
=no
9989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9990 LIBS
=$ac_check_lib_save_LIBS
9992 echo "$as_me:9992: result: $ac_cv_lib_ncurses_tparm" >&5
9993 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9994 if test $ac_cv_lib_ncurses_tparm = yes; then
9995 cat >>confdefs.h
<<EOF
9996 #define HAVE_LIBNCURSES 1
9999 LIBS
="-lncurses $LIBS"
10003 # Do we need the Hesiod library to provide the support routines?
10004 if test "$with_hesiod" = yes ; then
10005 # Don't set $LIBS here -- see comments above.
10007 echo "$as_me:10007: checking for res_send" >&5
10008 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10009 if test "${ac_cv_func_res_send+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 cat >conftest.
$ac_ext <<_ACEOF
10013 #line 10013 "configure"
10014 #include "confdefs.h"
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char res_send (); below. */
10017 #include <assert.h>
10018 /* Override any gcc2 internal prototype to avoid an error. */
10022 /* We use char because int might match the return type of a gcc2
10023 builtin and then its argument prototype would still apply. */
10030 /* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
10033 #if defined (__stub_res_send) || defined (__stub___res_send)
10043 rm -f conftest.
$ac_objext conftest
$ac_exeext
10044 if { (eval echo "$as_me:10044: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try
='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_func_res_send
=yes
10057 echo "$as_me: failed program was:" >&5
10058 cat conftest.
$ac_ext >&5
10059 ac_cv_func_res_send
=no
10061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10063 echo "$as_me:10063: result: $ac_cv_func_res_send" >&5
10064 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10065 if test $ac_cv_func_res_send = yes; then
10068 echo "$as_me:10068: checking for __res_send" >&5
10069 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10070 if test "${ac_cv_func___res_send+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 cat >conftest.
$ac_ext <<_ACEOF
10074 #line 10074 "configure"
10075 #include "confdefs.h"
10076 /* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char __res_send (); below. */
10078 #include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error. */
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10085 char __res_send ();
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined (__stub___res_send) || defined (__stub_____res_send)
10104 rm -f conftest.
$ac_objext conftest
$ac_exeext
10105 if { (eval echo "$as_me:10105: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>&5
10108 echo "$as_me:10108: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try
='test -s conftest$ac_exeext'
10111 { (eval echo "$as_me:10111: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:10114: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_func___res_send
=yes
10118 echo "$as_me: failed program was:" >&5
10119 cat conftest.
$ac_ext >&5
10120 ac_cv_func___res_send
=no
10122 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10124 echo "$as_me:10124: result: $ac_cv_func___res_send" >&5
10125 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10126 if test $ac_cv_func___res_send = yes; then
10129 echo "$as_me:10129: checking for res_send in -lresolv" >&5
10130 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10131 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS
=$LIBS
10135 LIBS
="-lresolv $LIBS"
10136 cat >conftest.
$ac_ext <<_ACEOF
10137 #line 10137 "configure"
10138 #include "confdefs.h"
10140 /* Override any gcc2 internal prototype to avoid an error. */
10144 /* We use char because int might match the return type of a gcc2
10145 builtin and then its argument prototype would still apply. */
10155 rm -f conftest.
$ac_objext conftest
$ac_exeext
10156 if { (eval echo "$as_me:10156: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10159 echo "$as_me:10159: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try
='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:10162: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:10165: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_resolv_res_send
=yes
10169 echo "$as_me: failed program was:" >&5
10170 cat conftest.
$ac_ext >&5
10171 ac_cv_lib_resolv_res_send
=no
10173 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10174 LIBS
=$ac_check_lib_save_LIBS
10176 echo "$as_me:10176: result: $ac_cv_lib_resolv_res_send" >&5
10177 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10178 if test $ac_cv_lib_resolv_res_send = yes; then
10181 echo "$as_me:10181: checking for __res_send in -lresolv" >&5
10182 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10183 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 ac_check_lib_save_LIBS
=$LIBS
10187 LIBS
="-lresolv $LIBS"
10188 cat >conftest.
$ac_ext <<_ACEOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10192 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198 char __res_send ();
10207 rm -f conftest.
$ac_objext conftest
$ac_exeext
10208 if { (eval echo "$as_me:10208: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>&5
10211 echo "$as_me:10211: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try
='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:10214: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:10217: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_resolv___res_send
=yes
10221 echo "$as_me: failed program was:" >&5
10222 cat conftest.
$ac_ext >&5
10223 ac_cv_lib_resolv___res_send
=no
10225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10226 LIBS
=$ac_check_lib_save_LIBS
10228 echo "$as_me:10228: result: $ac_cv_lib_resolv___res_send" >&5
10229 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10230 if test $ac_cv_lib_resolv___res_send = yes; then
10240 if test "$resolv" = yes ; then
10242 cat >>confdefs.h
<<\EOF
10243 #define HAVE_LIBRESOLV 1
10249 echo "$as_me:10249: checking for hes_getmailhost" >&5
10250 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10251 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 cat >conftest.
$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char hes_getmailhost (); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10264 /* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266 char hes_getmailhost ();
10272 /* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
10275 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10278 f = hes_getmailhost;
10285 rm -f conftest.
$ac_objext conftest
$ac_exeext
10286 if { (eval echo "$as_me:10286: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try
='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:10292: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_func_hes_getmailhost
=yes
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.
$ac_ext >&5
10301 ac_cv_func_hes_getmailhost
=no
10303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10305 echo "$as_me:10305: result: $ac_cv_func_hes_getmailhost" >&5
10306 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10307 if test $ac_cv_func_hes_getmailhost = yes; then
10310 echo "$as_me:10310: checking for hes_getmailhost in -lhesiod" >&5
10311 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10312 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 ac_check_lib_save_LIBS
=$LIBS
10316 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10317 cat >conftest.
$ac_ext <<_ACEOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10321 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char hes_getmailhost ();
10331 hes_getmailhost ();
10336 rm -f conftest.
$ac_objext conftest
$ac_exeext
10337 if { (eval echo "$as_me:10337: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10340 echo "$as_me:10340: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try
='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:10343: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:10346: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_lib_hesiod_hes_getmailhost
=yes
10350 echo "$as_me: failed program was:" >&5
10351 cat conftest.
$ac_ext >&5
10352 ac_cv_lib_hesiod_hes_getmailhost
=no
10354 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10355 LIBS
=$ac_check_lib_save_LIBS
10357 echo "$as_me:10357: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10358 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10359 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10360 cat >>confdefs.h
<<\EOF
10361 #define HAVE_LIBHESIOD 1
10372 # These tell us which Kerberos-related libraries to use.
10373 if test "${with_kerberos+set}" = set; then
10375 echo "$as_me:10375: checking for com_err in -lcom_err" >&5
10376 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10377 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 ac_check_lib_save_LIBS
=$LIBS
10381 LIBS
="-lcom_err $LIBS"
10382 cat >conftest.
$ac_ext <<_ACEOF
10383 #line 10383 "configure"
10384 #include "confdefs.h"
10386 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10401 rm -f conftest.
$ac_objext conftest
$ac_exeext
10402 if { (eval echo "$as_me:10402: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try
='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:10408: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:10411: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_lib_com_err_com_err
=yes
10415 echo "$as_me: failed program was:" >&5
10416 cat conftest.
$ac_ext >&5
10417 ac_cv_lib_com_err_com_err
=no
10419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10420 LIBS
=$ac_check_lib_save_LIBS
10422 echo "$as_me:10422: result: $ac_cv_lib_com_err_com_err" >&5
10423 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10424 if test $ac_cv_lib_com_err_com_err = yes; then
10425 cat >>confdefs.h
<<EOF
10426 #define HAVE_LIBCOM_ERR 1
10429 LIBS
="-lcom_err $LIBS"
10433 echo "$as_me:10433: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10434 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10435 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_check_lib_save_LIBS
=$LIBS
10439 LIBS
="-lk5crypto $LIBS"
10440 cat >conftest.
$ac_ext <<_ACEOF
10441 #line 10441 "configure"
10442 #include "confdefs.h"
10444 /* Override any gcc2 internal prototype to avoid an error. */
10448 /* We use char because int might match the return type of a gcc2
10449 builtin and then its argument prototype would still apply. */
10450 char mit_des_cbc_encrypt ();
10454 mit_des_cbc_encrypt ();
10459 rm -f conftest.
$ac_objext conftest
$ac_exeext
10460 if { (eval echo "$as_me:10460: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try
='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.
$ac_ext >&5
10475 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10478 LIBS
=$ac_check_lib_save_LIBS
10480 echo "$as_me:10480: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10481 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10482 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10483 cat >>confdefs.h
<<EOF
10484 #define HAVE_LIBK5CRYPTO 1
10487 LIBS
="-lk5crypto $LIBS"
10491 echo "$as_me:10491: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10492 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10493 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 ac_check_lib_save_LIBS
=$LIBS
10497 LIBS
="-lcrypto $LIBS"
10498 cat >conftest.
$ac_ext <<_ACEOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char mit_des_cbc_encrypt ();
10512 mit_des_cbc_encrypt ();
10517 rm -f conftest.
$ac_objext conftest
$ac_exeext
10518 if { (eval echo "$as_me:10518: \"$ac_link\"") >&5
10519 (eval $ac_link) 2>&5
10521 echo "$as_me:10521: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try
='test -s conftest$ac_exeext'
10524 { (eval echo "$as_me:10524: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10531 echo "$as_me: failed program was:" >&5
10532 cat conftest.
$ac_ext >&5
10533 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10535 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10536 LIBS
=$ac_check_lib_save_LIBS
10538 echo "$as_me:10538: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10539 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10540 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10541 cat >>confdefs.h
<<EOF
10542 #define HAVE_LIBCRYPTO 1
10545 LIBS
="-lcrypto $LIBS"
10549 echo "$as_me:10549: checking for krb5_init_context in -lkrb5" >&5
10550 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10551 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 ac_check_lib_save_LIBS
=$LIBS
10555 LIBS
="-lkrb5 $LIBS"
10556 cat >conftest.
$ac_ext <<_ACEOF
10557 #line 10557 "configure"
10558 #include "confdefs.h"
10560 /* Override any gcc2 internal prototype to avoid an error. */
10564 /* We use char because int might match the return type of a gcc2
10565 builtin and then its argument prototype would still apply. */
10566 char krb5_init_context ();
10570 krb5_init_context ();
10575 rm -f conftest.
$ac_objext conftest
$ac_exeext
10576 if { (eval echo "$as_me:10576: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>&5
10579 echo "$as_me:10579: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try
='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:10582: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:10585: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_lib_krb5_krb5_init_context
=yes
10589 echo "$as_me: failed program was:" >&5
10590 cat conftest.
$ac_ext >&5
10591 ac_cv_lib_krb5_krb5_init_context
=no
10593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10594 LIBS
=$ac_check_lib_save_LIBS
10596 echo "$as_me:10596: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10597 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10598 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10599 cat >>confdefs.h
<<EOF
10600 #define HAVE_LIBKRB5 1
10603 LIBS
="-lkrb5 $LIBS"
10607 if test "${with_kerberos5+set}" != set; then
10609 echo "$as_me:10609: checking for des_cbc_encrypt in -ldes425" >&5
10610 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10611 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_check_lib_save_LIBS
=$LIBS
10615 LIBS
="-ldes425 $LIBS"
10616 cat >conftest.
$ac_ext <<_ACEOF
10617 #line 10617 "configure"
10618 #include "confdefs.h"
10620 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char des_cbc_encrypt ();
10630 des_cbc_encrypt ();
10635 rm -f conftest.
$ac_objext conftest
$ac_exeext
10636 if { (eval echo "$as_me:10636: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10639 echo "$as_me:10639: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try
='test -s conftest$ac_exeext'
10642 { (eval echo "$as_me:10642: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:10645: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_lib_des425_des_cbc_encrypt
=yes
10649 echo "$as_me: failed program was:" >&5
10650 cat conftest.
$ac_ext >&5
10651 ac_cv_lib_des425_des_cbc_encrypt
=no
10653 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10654 LIBS
=$ac_check_lib_save_LIBS
10656 echo "$as_me:10656: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10657 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10658 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10659 cat >>confdefs.h
<<EOF
10660 #define HAVE_LIBDES425 1
10663 LIBS
="-ldes425 $LIBS"
10667 echo "$as_me:10667: checking for des_cbc_encrypt in -ldes" >&5
10668 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 ac_check_lib_save_LIBS
=$LIBS
10674 cat >conftest.
$ac_ext <<_ACEOF
10675 #line 10675 "configure"
10676 #include "confdefs.h"
10678 /* Override any gcc2 internal prototype to avoid an error. */
10682 /* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684 char des_cbc_encrypt ();
10688 des_cbc_encrypt ();
10693 rm -f conftest.
$ac_objext conftest
$ac_exeext
10694 if { (eval echo "$as_me:10694: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10697 echo "$as_me:10697: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try
='test -s conftest$ac_exeext'
10700 { (eval echo "$as_me:10700: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:10703: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_lib_des_des_cbc_encrypt
=yes
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.
$ac_ext >&5
10709 ac_cv_lib_des_des_cbc_encrypt
=no
10711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10712 LIBS
=$ac_check_lib_save_LIBS
10714 echo "$as_me:10714: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10715 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10716 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10717 cat >>confdefs.h
<<EOF
10718 #define HAVE_LIBDES 1
10727 echo "$as_me:10727: checking for krb_get_cred in -lkrb4" >&5
10728 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10729 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_check_lib_save_LIBS
=$LIBS
10733 LIBS
="-lkrb4 $LIBS"
10734 cat >conftest.
$ac_ext <<_ACEOF
10735 #line 10735 "configure"
10736 #include "confdefs.h"
10738 /* Override any gcc2 internal prototype to avoid an error. */
10742 /* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10744 char krb_get_cred ();
10753 rm -f conftest.
$ac_objext conftest
$ac_exeext
10754 if { (eval echo "$as_me:10754: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10757 echo "$as_me:10757: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try
='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:10760: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:10763: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_lib_krb4_krb_get_cred
=yes
10767 echo "$as_me: failed program was:" >&5
10768 cat conftest.
$ac_ext >&5
10769 ac_cv_lib_krb4_krb_get_cred
=no
10771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10772 LIBS
=$ac_check_lib_save_LIBS
10774 echo "$as_me:10774: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10775 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10776 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10777 cat >>confdefs.h
<<EOF
10778 #define HAVE_LIBKRB4 1
10781 LIBS
="-lkrb4 $LIBS"
10785 echo "$as_me:10785: checking for krb_get_cred in -lkrb" >&5
10786 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10787 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 ac_check_lib_save_LIBS
=$LIBS
10792 cat >conftest.
$ac_ext <<_ACEOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802 char krb_get_cred ();
10811 rm -f conftest.
$ac_objext conftest
$ac_exeext
10812 if { (eval echo "$as_me:10812: \"$ac_link\"") >&5
10813 (eval $ac_link) 2>&5
10815 echo "$as_me:10815: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try
='test -s conftest$ac_exeext'
10818 { (eval echo "$as_me:10818: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:10821: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_lib_krb_krb_get_cred
=yes
10825 echo "$as_me: failed program was:" >&5
10826 cat conftest.
$ac_ext >&5
10827 ac_cv_lib_krb_krb_get_cred
=no
10829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10830 LIBS
=$ac_check_lib_save_LIBS
10832 echo "$as_me:10832: result: $ac_cv_lib_krb_krb_get_cred" >&5
10833 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10834 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10835 cat >>confdefs.h
<<EOF
10836 #define HAVE_LIBKRB 1
10847 if test "${with_kerberos5+set}" = set; then
10849 for ac_header
in krb5.h
10851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 echo "$as_me:10852: checking for $ac_header" >&5
10853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.
$ac_ext <<_ACEOF
10858 #line 10858 "configure"
10859 #include "confdefs.h"
10860 #include <$ac_header>
10862 if { (eval echo "$as_me:10862: \"$ac_cpp conftest.$ac_ext\"") >&5
10863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10865 egrep -v '^ *\+' conftest.er1
>conftest.err
10867 cat conftest.err
>&5
10868 echo "$as_me:10868: \$? = $ac_status" >&5
10869 (exit $ac_status); } >/dev
/null
; then
10870 if test -s conftest.err
; then
10871 ac_cpp_err
=$ac_c_preproc_warn_flag
10878 if test -z "$ac_cpp_err"; then
10879 eval "$as_ac_Header=yes"
10881 echo "$as_me: failed program was:" >&5
10882 cat conftest.
$ac_ext >&5
10883 eval "$as_ac_Header=no"
10885 rm -f conftest.err conftest.
$ac_ext
10887 echo "$as_me:10887: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10890 cat >>confdefs.h
<<EOF
10891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899 for ac_header
in des.h
10901 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 echo "$as_me:10902: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.
$ac_ext <<_ACEOF
10908 #line 10908 "configure"
10909 #include "confdefs.h"
10910 #include <$ac_header>
10912 if { (eval echo "$as_me:10912: \"$ac_cpp conftest.$ac_ext\"") >&5
10913 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10915 egrep -v '^ *\+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:10918: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev
/null
; then
10920 if test -s conftest.err
; then
10921 ac_cpp_err
=$ac_c_preproc_warn_flag
10928 if test -z "$ac_cpp_err"; then
10929 eval "$as_ac_Header=yes"
10931 echo "$as_me: failed program was:" >&5
10932 cat conftest.
$ac_ext >&5
10933 eval "$as_ac_Header=no"
10935 rm -f conftest.err conftest.
$ac_ext
10937 echo "$as_me:10937: result: `eval echo '${'$as_ac_Header'}'`" >&5
10938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940 cat >>confdefs.h
<<EOF
10941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10946 for ac_header
in kerberosIV
/des.h
10948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10949 echo "$as_me:10949: checking for $ac_header" >&5
10950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.
$ac_ext <<_ACEOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10957 #include <$ac_header>
10959 if { (eval echo "$as_me:10959: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10962 egrep -v '^ *\+' conftest.er1
>conftest.err
10964 cat conftest.err
>&5
10965 echo "$as_me:10965: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev
/null
; then
10967 if test -s conftest.err
; then
10968 ac_cpp_err
=$ac_c_preproc_warn_flag
10975 if test -z "$ac_cpp_err"; then
10976 eval "$as_ac_Header=yes"
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.
$ac_ext >&5
10980 eval "$as_ac_Header=no"
10982 rm -f conftest.err conftest.
$ac_ext
10984 echo "$as_me:10984: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h
<<EOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993 for ac_header
in kerberos
/des.h
10995 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10996 echo "$as_me:10996: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.
$ac_ext <<_ACEOF
11002 #line 11002 "configure"
11003 #include "confdefs.h"
11004 #include <$ac_header>
11006 if { (eval echo "$as_me:11006: \"$ac_cpp conftest.$ac_ext\"") >&5
11007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11009 egrep -v '^ *\+' conftest.er1
>conftest.err
11011 cat conftest.err
>&5
11012 echo "$as_me:11012: \$? = $ac_status" >&5
11013 (exit $ac_status); } >/dev
/null
; then
11014 if test -s conftest.err
; then
11015 ac_cpp_err
=$ac_c_preproc_warn_flag
11022 if test -z "$ac_cpp_err"; then
11023 eval "$as_ac_Header=yes"
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.
$ac_ext >&5
11027 eval "$as_ac_Header=no"
11029 rm -f conftest.err conftest.
$ac_ext
11031 echo "$as_me:11031: result: `eval echo '${'$as_ac_Header'}'`" >&5
11032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11034 cat >>confdefs.h
<<EOF
11035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11047 for ac_header
in krb.h
11049 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 echo "$as_me:11050: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 cat >conftest.
$ac_ext <<_ACEOF
11056 #line 11056 "configure"
11057 #include "confdefs.h"
11058 #include <$ac_header>
11060 if { (eval echo "$as_me:11060: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11063 egrep -v '^ *\+' conftest.er1
>conftest.err
11065 cat conftest.err
>&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev
/null
; then
11068 if test -s conftest.err
; then
11069 ac_cpp_err
=$ac_c_preproc_warn_flag
11076 if test -z "$ac_cpp_err"; then
11077 eval "$as_ac_Header=yes"
11079 echo "$as_me: failed program was:" >&5
11080 cat conftest.
$ac_ext >&5
11081 eval "$as_ac_Header=no"
11083 rm -f conftest.err conftest.
$ac_ext
11085 echo "$as_me:11085: result: `eval echo '${'$as_ac_Header'}'`" >&5
11086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11088 cat >>confdefs.h
<<EOF
11089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11094 for ac_header
in kerberosIV
/krb.h
11096 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 echo "$as_me:11097: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.
$ac_ext <<_ACEOF
11103 #line 11103 "configure"
11104 #include "confdefs.h"
11105 #include <$ac_header>
11107 if { (eval echo "$as_me:11107: \"$ac_cpp conftest.$ac_ext\"") >&5
11108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11110 egrep -v '^ *\+' conftest.er1
>conftest.err
11112 cat conftest.err
>&5
11113 echo "$as_me:11113: \$? = $ac_status" >&5
11114 (exit $ac_status); } >/dev
/null
; then
11115 if test -s conftest.err
; then
11116 ac_cpp_err
=$ac_c_preproc_warn_flag
11123 if test -z "$ac_cpp_err"; then
11124 eval "$as_ac_Header=yes"
11126 echo "$as_me: failed program was:" >&5
11127 cat conftest.
$ac_ext >&5
11128 eval "$as_ac_Header=no"
11130 rm -f conftest.err conftest.
$ac_ext
11132 echo "$as_me:11132: result: `eval echo '${'$as_ac_Header'}'`" >&5
11133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135 cat >>confdefs.h
<<EOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11141 for ac_header
in kerberos
/krb.h
11143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11144 echo "$as_me:11144: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 cat >conftest.
$ac_ext <<_ACEOF
11150 #line 11150 "configure"
11151 #include "confdefs.h"
11152 #include <$ac_header>
11154 if { (eval echo "$as_me:11154: \"$ac_cpp conftest.$ac_ext\"") >&5
11155 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11157 egrep -v '^ *\+' conftest.er1
>conftest.err
11159 cat conftest.err
>&5
11160 echo "$as_me:11160: \$? = $ac_status" >&5
11161 (exit $ac_status); } >/dev
/null
; then
11162 if test -s conftest.err
; then
11163 ac_cpp_err
=$ac_c_preproc_warn_flag
11170 if test -z "$ac_cpp_err"; then
11171 eval "$as_ac_Header=yes"
11173 echo "$as_me: failed program was:" >&5
11174 cat conftest.
$ac_ext >&5
11175 eval "$as_ac_Header=no"
11177 rm -f conftest.err conftest.
$ac_ext
11179 echo "$as_me:11179: result: `eval echo '${'$as_ac_Header'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11182 cat >>confdefs.h
<<EOF
11183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 for ac_header
in com_err.h
11199 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 echo "$as_me:11200: checking for $ac_header" >&5
11201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 cat >conftest.
$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 #include <$ac_header>
11210 if { (eval echo "$as_me:11210: \"$ac_cpp conftest.$ac_ext\"") >&5
11211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11213 egrep -v '^ *\+' conftest.er1
>conftest.err
11215 cat conftest.err
>&5
11216 echo "$as_me:11216: \$? = $ac_status" >&5
11217 (exit $ac_status); } >/dev
/null
; then
11218 if test -s conftest.err
; then
11219 ac_cpp_err
=$ac_c_preproc_warn_flag
11226 if test -z "$ac_cpp_err"; then
11227 eval "$as_ac_Header=yes"
11229 echo "$as_me: failed program was:" >&5
11230 cat conftest.
$ac_ext >&5
11231 eval "$as_ac_Header=no"
11233 rm -f conftest.err conftest.
$ac_ext
11235 echo "$as_me:11235: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238 cat >>confdefs.h
<<EOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11247 # Solaris requires -lintl if you want strerror (which calls dgettext)
11248 # to return localized messages.
11250 echo "$as_me:11250: checking for dgettext in -lintl" >&5
11251 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11252 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_check_lib_save_LIBS
=$LIBS
11256 LIBS
="-lintl $LIBS"
11257 cat >conftest.
$ac_ext <<_ACEOF
11258 #line 11258 "configure"
11259 #include "confdefs.h"
11261 /* Override any gcc2 internal prototype to avoid an error. */
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11276 rm -f conftest.
$ac_objext conftest
$ac_exeext
11277 if { (eval echo "$as_me:11277: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try
='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:11283: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:11286: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_lib_intl_dgettext
=yes
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.
$ac_ext >&5
11292 ac_cv_lib_intl_dgettext
=no
11294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11295 LIBS
=$ac_check_lib_save_LIBS
11297 echo "$as_me:11297: result: $ac_cv_lib_intl_dgettext" >&5
11298 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11299 if test $ac_cv_lib_intl_dgettext = yes; then
11300 cat >>confdefs.h
<<EOF
11301 #define HAVE_LIBINTL 1
11304 LIBS
="-lintl $LIBS"
11308 echo "$as_me:11308: checking whether localtime caches TZ" >&5
11309 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11310 if test "${emacs_cv_localtime_cache+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 if test x
$ac_cv_func_tzset = xyes
; then
11314 if test "$cross_compiling" = yes; then
11315 # If we have tzset, assume the worst when cross-compiling.
11316 emacs_cv_localtime_cache
=yes
11318 cat >conftest.
$ac_ext <<_ACEOF
11319 #line 11319 "configure"
11320 #include "confdefs.h"
11322 extern char **environ;
11326 for (to = from = environ; (*to = *from); from++)
11327 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11330 char TZ_GMT0[] = "TZ=GMT0";
11331 char TZ_PST8[] = "TZ=PST8";
11334 time_t now = time ((time_t *) 0);
11335 int hour_GMT0, hour_unset;
11336 if (putenv (TZ_GMT0) != 0)
11338 hour_GMT0 = localtime (&now)->tm_hour;
11340 hour_unset = localtime (&now)->tm_hour;
11341 if (putenv (TZ_PST8) != 0)
11343 if (localtime (&now)->tm_hour == hour_GMT0)
11346 if (localtime (&now)->tm_hour != hour_unset)
11351 rm -f conftest
$ac_exeext
11352 if { (eval echo "$as_me:11352: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11355 echo "$as_me:11355: \$? = $ac_status" >&5
11356 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11357 { (eval echo "$as_me:11357: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:11360: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 emacs_cv_localtime_cache
=no
11364 echo "$as_me: program exited with status $ac_status" >&5
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.
$ac_ext >&5
11367 emacs_cv_localtime_cache
=yes
11369 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11372 # If we lack tzset, report that localtime does not cache TZ,
11373 # since we can't invalidate the cache if we don't have tzset.
11374 emacs_cv_localtime_cache
=no
11377 echo "$as_me:11377: result: $emacs_cv_localtime_cache" >&5
11378 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11379 if test $emacs_cv_localtime_cache = yes; then
11380 cat >>confdefs.h
<<\EOF
11381 #define LOCALTIME_CACHE 1
11386 if test "x$HAVE_TIMEVAL" = xyes
; then
11388 for ac_func
in gettimeofday
11390 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 echo "$as_me:11391: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11393 if eval "test \"\${$as_ac_var+set}\" = set"; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 cat >conftest.
$ac_ext <<_ACEOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11399 /* System header to define __stub macros and hopefully few prototypes,
11400 which can conflict with char $ac_func (); below. */
11401 #include <assert.h>
11402 /* Override any gcc2 internal prototype to avoid an error. */
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11427 rm -f conftest.
$ac_objext conftest
$ac_exeext
11428 if { (eval echo "$as_me:11428: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11431 echo "$as_me:11431: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try
='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:11434: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:11437: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 eval "$as_ac_var=yes"
11441 echo "$as_me: failed program was:" >&5
11442 cat conftest.
$ac_ext >&5
11443 eval "$as_ac_var=no"
11445 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11447 echo "$as_me:11447: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450 cat >>confdefs.h
<<EOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 echo "$as_me:11457: checking whether gettimeofday can accept two arguments" >&5
11458 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11459 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 cat >conftest.
$ac_ext <<_ACEOF
11463 #line 11463 "configure"
11464 #include "confdefs.h"
11466 #ifdef TIME_WITH_SYS_TIME
11467 #include <sys/time.h>
11470 #ifdef HAVE_SYS_TIME_H
11471 #include <sys/time.h>
11479 struct timeval time;
11480 gettimeofday (&time, 0);
11485 rm -f conftest.
$ac_objext
11486 if { (eval echo "$as_me:11486: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>&5
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try
='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:11492: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:11495: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 emacs_cv_gettimeofday_two_arguments
=yes
11499 echo "$as_me: failed program was:" >&5
11500 cat conftest.
$ac_ext >&5
11501 emacs_cv_gettimeofday_two_arguments
=no
11503 rm -f conftest.
$ac_objext conftest.
$ac_ext
11505 echo "$as_me:11505: result: $emacs_cv_gettimeofday_two_arguments" >&5
11506 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11507 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11508 cat >>confdefs.h
<<\EOF
11509 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11515 if test "$ac_cv_func_gettimeofday" = yes; then
11516 echo "$as_me:11516: checking for struct timezone" >&5
11517 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11518 if test "${emacs_cv_struct_timezone+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 cat >conftest.
$ac_ext <<_ACEOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11524 #include <sys/time.h>
11528 struct timezone tz;
11533 rm -f conftest.
$ac_objext
11534 if { (eval echo "$as_me:11534: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>&5
11537 echo "$as_me:11537: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try
='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:11540: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 if test "$cross_compiling" = yes; then
11546 emacs_cv_struct_timezone
=yes
11548 cat >conftest.
$ac_ext <<_ACEOF
11549 #line 11549 "configure"
11550 #include "confdefs.h"
11552 #ifdef TIME_WITH_SYS_TIME
11553 #include <sys/time.h>
11556 #ifdef HAVE_SYS_TIME_H
11557 #include <sys/time.h>
11563 struct timeval time;
11564 struct timezone dummy;
11565 exit (gettimeofday (&time, &dummy));
11568 rm -f conftest
$ac_exeext
11569 if { (eval echo "$as_me:11569: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11572 echo "$as_me:11572: \$? = $ac_status" >&5
11573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11574 { (eval echo "$as_me:11574: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:11577: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 emacs_cv_struct_timezone
=yes
11581 echo "$as_me: program exited with status $ac_status" >&5
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.
$ac_ext >&5
11584 emacs_cv_struct_timezone
=no
11586 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11589 echo "$as_me: failed program was:" >&5
11590 cat conftest.
$ac_ext >&5
11591 emacs_cv_struct_timezone
=no
11593 rm -f conftest.
$ac_objext conftest.
$ac_ext
11595 echo "$as_me:11595: result: $emacs_cv_struct_timezone" >&5
11596 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11600 echo "$as_me:11600: checking for socket" >&5
11601 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11602 if test "${ac_cv_func_socket+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 cat >conftest.
$ac_ext <<_ACEOF
11606 #line 11606 "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char socket (); below. */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error. */
11615 /* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11623 /* The GNU C library defines this for functions which it implements
11624 to always fail with ENOSYS. Some functions are actually named
11625 something starting with __ and the normal name is an alias. */
11626 #if defined (__stub_socket) || defined (__stub___socket)
11636 rm -f conftest.
$ac_objext conftest
$ac_exeext
11637 if { (eval echo "$as_me:11637: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:11640: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try
='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:11643: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:11646: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_func_socket
=yes
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.
$ac_ext >&5
11652 ac_cv_func_socket
=no
11654 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11656 echo "$as_me:11656: result: $ac_cv_func_socket" >&5
11657 echo "${ECHO_T}$ac_cv_func_socket" >&6
11658 if test $ac_cv_func_socket = yes; then
11664 if test $ok_so_far = yes; then
11665 echo "$as_me:11665: checking for netinet/in.h" >&5
11666 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11667 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 cat >conftest.
$ac_ext <<_ACEOF
11671 #line 11671 "configure"
11672 #include "confdefs.h"
11673 #include <netinet/in.h>
11675 if { (eval echo "$as_me:11675: \"$ac_cpp conftest.$ac_ext\"") >&5
11676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11678 egrep -v '^ *\+' conftest.er1
>conftest.err
11680 cat conftest.err
>&5
11681 echo "$as_me:11681: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev
/null
; then
11683 if test -s conftest.err
; then
11684 ac_cpp_err
=$ac_c_preproc_warn_flag
11691 if test -z "$ac_cpp_err"; then
11692 ac_cv_header_netinet_in_h
=yes
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.
$ac_ext >&5
11696 ac_cv_header_netinet_in_h
=no
11698 rm -f conftest.err conftest.
$ac_ext
11700 echo "$as_me:11700: result: $ac_cv_header_netinet_in_h" >&5
11701 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11702 if test $ac_cv_header_netinet_in_h = yes; then
11709 if test $ok_so_far = yes; then
11710 echo "$as_me:11710: checking for arpa/inet.h" >&5
11711 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11712 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.
$ac_ext <<_ACEOF
11716 #line 11716 "configure"
11717 #include "confdefs.h"
11718 #include <arpa/inet.h>
11720 if { (eval echo "$as_me:11720: \"$ac_cpp conftest.$ac_ext\"") >&5
11721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11723 egrep -v '^ *\+' conftest.er1
>conftest.err
11725 cat conftest.err
>&5
11726 echo "$as_me:11726: \$? = $ac_status" >&5
11727 (exit $ac_status); } >/dev
/null
; then
11728 if test -s conftest.err
; then
11729 ac_cpp_err
=$ac_c_preproc_warn_flag
11736 if test -z "$ac_cpp_err"; then
11737 ac_cv_header_arpa_inet_h
=yes
11739 echo "$as_me: failed program was:" >&5
11740 cat conftest.
$ac_ext >&5
11741 ac_cv_header_arpa_inet_h
=no
11743 rm -f conftest.err conftest.
$ac_ext
11745 echo "$as_me:11745: result: $ac_cv_header_arpa_inet_h" >&5
11746 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11747 if test $ac_cv_header_arpa_inet_h = yes; then
11754 if test $ok_so_far = yes; then
11755 cat >>confdefs.h
<<\EOF
11756 #define HAVE_INET_SOCKETS 1
11761 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11762 cat >>confdefs.h
<<\EOF
11763 #define HAVE_AIX_SMT_EXP 1
11768 echo "$as_me:11768: checking whether system supports dynamic ptys" >&5
11769 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11770 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11771 echo "$as_me:11771: result: yes" >&5
11772 echo "${ECHO_T}yes" >&6
11773 cat >>confdefs.h
<<\EOF
11774 #define HAVE_DEV_PTMX 1
11778 echo "$as_me:11778: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11782 echo "$as_me:11782: checking for pid_t" >&5
11783 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11784 if test "${ac_cv_type_pid_t+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 cat >conftest.
$ac_ext <<_ACEOF
11788 #line 11788 "configure"
11789 #include "confdefs.h"
11790 $ac_includes_default
11796 if (sizeof (pid_t))
11802 rm -f conftest.
$ac_objext
11803 if { (eval echo "$as_me:11803: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>&5
11806 echo "$as_me:11806: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try
='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:11809: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:11812: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_type_pid_t
=yes
11816 echo "$as_me: failed program was:" >&5
11817 cat conftest.
$ac_ext >&5
11818 ac_cv_type_pid_t
=no
11820 rm -f conftest.
$ac_objext conftest.
$ac_ext
11822 echo "$as_me:11822: result: $ac_cv_type_pid_t" >&5
11823 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11824 if test $ac_cv_type_pid_t = yes; then
11828 cat >>confdefs.h
<<EOF
11834 for ac_header
in unistd.h vfork.h
11836 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11837 echo "$as_me:11837: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.
$ac_ext <<_ACEOF
11843 #line 11843 "configure"
11844 #include "confdefs.h"
11845 #include <$ac_header>
11847 if { (eval echo "$as_me:11847: \"$ac_cpp conftest.$ac_ext\"") >&5
11848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11850 egrep -v '^ *\+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 echo "$as_me:11853: \$? = $ac_status" >&5
11854 (exit $ac_status); } >/dev
/null
; then
11855 if test -s conftest.err
; then
11856 ac_cpp_err
=$ac_c_preproc_warn_flag
11863 if test -z "$ac_cpp_err"; then
11864 eval "$as_ac_Header=yes"
11866 echo "$as_me: failed program was:" >&5
11867 cat conftest.
$ac_ext >&5
11868 eval "$as_ac_Header=no"
11870 rm -f conftest.err conftest.
$ac_ext
11872 echo "$as_me:11872: result: `eval echo '${'$as_ac_Header'}'`" >&5
11873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11875 cat >>confdefs.h
<<EOF
11876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 for ac_func
in fork vfork
11884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 echo "$as_me:11885: checking for $ac_func" >&5
11886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_var+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 cat >conftest.
$ac_ext <<_ACEOF
11891 #line 11891 "configure"
11892 #include "confdefs.h"
11893 /* System header to define __stub macros and hopefully few prototypes,
11894 which can conflict with char $ac_func (); below. */
11895 #include <assert.h>
11896 /* Override any gcc2 internal prototype to avoid an error. */
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11908 /* The GNU C library defines this for functions which it implements
11909 to always fail with ENOSYS. Some functions are actually named
11910 something starting with __ and the normal name is an alias. */
11911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11921 rm -f conftest.
$ac_objext conftest
$ac_exeext
11922 if { (eval echo "$as_me:11922: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>&5
11925 echo "$as_me:11925: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try
='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:11928: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:11931: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11935 echo "$as_me: failed program was:" >&5
11936 cat conftest.
$ac_ext >&5
11937 eval "$as_ac_var=no"
11939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11941 echo "$as_me:11941: result: `eval echo '${'$as_ac_var'}'`" >&5
11942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11944 cat >>confdefs.h
<<EOF
11945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11951 ac_cv_func_fork_works
=$ac_cv_func_fork
11952 if test "x$ac_cv_func_fork" = xyes
; then
11953 echo "$as_me:11953: checking for working fork" >&5
11954 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11955 if test "${ac_cv_func_fork_works+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 if test "$cross_compiling" = yes; then
11959 ac_cv_func_fork_works
=cross
11961 cat >conftest.
$ac_ext <<_ACEOF
11962 /* By Rüdiger Kuhlmann. */
11963 #include <sys/types.h>
11965 # include <unistd.h>
11967 /* Some systems only have a dummy stub for fork() */
11975 rm -f conftest
$ac_exeext
11976 if { (eval echo "$as_me:11976: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11981 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_func_fork_works
=yes
11988 echo "$as_me: program exited with status $ac_status" >&5
11989 echo "$as_me: failed program was:" >&5
11990 cat conftest.
$ac_ext >&5
11991 ac_cv_func_fork_works
=no
11993 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11996 echo "$as_me:11996: result: $ac_cv_func_fork_works" >&5
11997 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12000 if test "x$ac_cv_func_fork_works" = xcross
; then
12002 *-*-amigaos* |
*-*-msdosdjgpp*)
12003 # Override, as these systems have only a dummy fork() stub
12004 ac_cv_func_fork_works
=no
12007 ac_cv_func_fork_works
=yes
12010 { echo "$as_me:12010: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12011 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12013 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12014 if test "x$ac_cv_func_vfork" = xyes
; then
12015 echo "$as_me:12015: checking for working vfork" >&5
12016 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12017 if test "${ac_cv_func_vfork_works+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 if test "$cross_compiling" = yes; then
12021 ac_cv_func_vfork_works
=cross
12023 cat >conftest.
$ac_ext <<_ACEOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12026 /* Thanks to Paul Eggert for this test. */
12028 #include <sys/types.h>
12029 #include <sys/stat.h>
12031 # include <unistd.h>
12034 # include <vfork.h>
12036 /* On some sparc systems, changes by the child to local and incoming
12037 argument registers are propagated back to the parent. The compiler
12038 is told about this with #include <vfork.h>, but some compilers
12039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12040 static variable whose address is put into a register that is
12041 clobbered by the vfork. */
12044 sparc_address_test (int arg)
12046 sparc_address_test (arg) int arg;
12049 static pid_t child;
12067 pid_t parent = getpid ();
12070 sparc_address_test ();
12075 /* Here is another test for sparc vfork register problems. This
12076 test uses lots of local variables, at least as many local
12077 variables as main has allocated so far including compiler
12078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12080 reuse the register of parent for one of the local variables,
12081 since it will think that parent can't possibly be used any more
12082 in this routine. Assigning to the local variable will thus
12083 munge parent in the parent process. */
12085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12087 /* Convince the compiler that p..p7 are live; otherwise, it might
12088 use the same hardware register for all 8 local variables. */
12089 if (p != p1 || p != p2 || p != p3 || p != p4
12090 || p != p5 || p != p6 || p != p7)
12093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12094 from child file descriptors. If the child closes a descriptor
12095 before it execs or exits, this munges the parent's descriptor
12096 as well. Test for this by closing stdout in the child. */
12097 _exit(close(fileno(stdout)) != 0);
12102 while (wait(&status) != child)
12105 /* Was there some problem with vforking? */
12108 /* Did the child fail? (This shouldn't happen.) */
12111 /* Did the vfork/compiler bug occur? */
12112 || parent != getpid()
12114 /* Did the file descriptor bug occur? */
12115 || fstat(fileno(stdout), &st) != 0
12120 rm -f conftest
$ac_exeext
12121 if { (eval echo "$as_me:12121: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12126 { (eval echo "$as_me:12126: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:12129: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_func_vfork_works
=yes
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 cat conftest.
$ac_ext >&5
12136 ac_cv_func_vfork_works
=no
12138 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12141 echo "$as_me:12141: result: $ac_cv_func_vfork_works" >&5
12142 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12145 if test "x$ac_cv_func_fork_works" = xcross
; then
12146 ac_cv_func_vfork_works
=ac_cv_func_vfork
12147 { echo "$as_me:12147: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12148 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12151 if test "x$ac_cv_func_vfork_works" = xyes
; then
12153 cat >>confdefs.h
<<\EOF
12154 #define HAVE_WORKING_VFORK 1
12159 cat >>confdefs.h
<<\EOF
12164 if test "x$ac_cv_func_fork_works" = xyes
; then
12166 cat >>confdefs.h
<<\EOF
12167 #define HAVE_WORKING_FORK 1
12172 # Fixme: This should be replaced when we have autoconf 2.14.
12173 echo "$as_me:12173: checking for size_t" >&5
12174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12175 if test "${ac_cv_type_size_t+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.
$ac_ext <<_ACEOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181 $ac_includes_default
12187 if (sizeof (size_t))
12193 rm -f conftest.
$ac_objext
12194 if { (eval echo "$as_me:12194: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try
='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:12200: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:12203: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_type_size_t
=yes
12207 echo "$as_me: failed program was:" >&5
12208 cat conftest.
$ac_ext >&5
12209 ac_cv_type_size_t
=no
12211 rm -f conftest.
$ac_objext conftest.
$ac_ext
12213 echo "$as_me:12213: result: $ac_cv_type_size_t" >&5
12214 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12215 if test $ac_cv_type_size_t = yes; then
12219 cat >>confdefs.h
<<EOF
12220 #define size_t unsigned
12225 # Set up the CFLAGS for real compilation, so we can substitute it.
12226 CFLAGS
="$REAL_CFLAGS"
12227 CPPFLAGS
="$REAL_CPPFLAGS"
12229 #### Find out which version of Emacs this is.
12230 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12231 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12232 if test x
"${version}" = x
; then
12233 { { echo "$as_me:12233: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12234 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12235 { (exit 1); exit 1; }; }
12238 ### Specify what sort of things we'll be editing into Makefile and config.h.
12239 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12241 cat >>confdefs.h
<<EOF
12242 #define EMACS_CONFIGURATION "${canonical}"
12245 cat >>confdefs.h
<<EOF
12246 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12249 cat >>confdefs.h
<<EOF
12250 #define config_machfile "${machfile}"
12253 cat >>confdefs.h
<<EOF
12254 #define config_opsysfile "${opsysfile}"
12257 cat >>confdefs.h
<<EOF
12258 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12261 cat >>confdefs.h
<<EOF
12262 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12265 cat >>confdefs.h
<<EOF
12266 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12269 cat >>confdefs.h
<<EOF
12270 #define UNEXEC_SRC ${UNEXEC_SRC}
12273 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12274 cat >>confdefs.h
<<\EOF
12275 #define HAVE_X_WINDOWS 1
12279 if test "${USE_X_TOOLKIT}" != "none" ; then
12280 cat >>confdefs.h
<<\EOF
12281 #define USE_X_TOOLKIT 1
12285 if test "${HAVE_X11}" = "yes" ; then
12286 cat >>confdefs.h
<<\EOF
12291 if test "${HAVE_XFREE386}" = "yes" ; then
12292 cat >>confdefs.h
<<\EOF
12293 #define HAVE_XFREE386 1
12297 if test "${HAVE_MENUS}" = "yes" ; then
12298 cat >>confdefs.h
<<\EOF
12299 #define HAVE_MENUS 1
12303 if test "${GNU_MALLOC}" = "yes" ; then
12304 cat >>confdefs.h
<<\EOF
12305 #define GNU_MALLOC 1
12309 if test "${REL_ALLOC}" = "yes" ; then
12310 cat >>confdefs.h
<<\EOF
12311 #define REL_ALLOC 1
12316 for ac_header
in nlist.h
12318 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 echo "$as_me:12319: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 cat >conftest.
$ac_ext <<_ACEOF
12325 #line 12325 "configure"
12326 #include "confdefs.h"
12327 #include <$ac_header>
12329 if { (eval echo "$as_me:12329: \"$ac_cpp conftest.$ac_ext\"") >&5
12330 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12332 egrep -v '^ *\+' conftest.er1
>conftest.err
12334 cat conftest.err
>&5
12335 echo "$as_me:12335: \$? = $ac_status" >&5
12336 (exit $ac_status); } >/dev
/null
; then
12337 if test -s conftest.err
; then
12338 ac_cpp_err
=$ac_c_preproc_warn_flag
12345 if test -z "$ac_cpp_err"; then
12346 eval "$as_ac_Header=yes"
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.
$ac_ext >&5
12350 eval "$as_ac_Header=no"
12352 rm -f conftest.err conftest.
$ac_ext
12354 echo "$as_me:12354: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12357 cat >>confdefs.h
<<EOF
12358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 cat >>confdefs.h
<<\EOF
12362 #define NLIST_STRUCT 1
12368 #### Report on what we decided to do.
12370 Configured for \`${canonical}'.
12372 Where should the build process find the source code? ${srcdir}
12373 What operating system and machine description files should Emacs use?
12374 \`${opsysfile}' and \`${machfile}'
12375 What compiler should emacs be built with? ${CC} ${CFLAGS}
12376 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12377 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12378 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12379 What window system should Emacs use? ${window_system}
12380 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12382 if test -n "${x_includes}"; then
12383 echo " Where do we find X Windows header files? ${x_includes}"
12385 echo " Where do we find X Windows header files? Standard dirs"
12387 if test -n "${x_libraries}"; then
12388 echo " Where do we find X Windows libraries? ${x_libraries}"
12390 echo " Where do we find X Windows libraries? Standard dirs"
12393 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12394 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12395 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12396 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12397 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12398 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12399 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12402 # Remove any trailing slashes in these variables.
12403 test "${prefix}" != NONE
&&
12404 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12405 test "${exec_prefix}" != NONE
&&
12406 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12408 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12409 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12410 ## from Makefile.c can correctly provide the arg `-traditional' to the
12413 cat >conftest.
$ac_ext <<_ACEOF
12414 #line 12414 "configure"
12415 #include "confdefs.h"
12418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12419 egrep "yes..yes" >/dev
/null
2>&1; then
12420 CPP_NEED_TRADITIONAL
=no
12422 CPP_NEED_TRADITIONAL
=yes
12426 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"
12427 ac_config_commands
="$ac_config_commands default"
12428 cat >confcache
<<\_ACEOF
12429 # This file is a shell script that caches the results of configure
12430 # tests run on this system so they can be shared between configure
12431 # scripts and configure runs, see configure's option --config-cache.
12432 # It is not useful on other systems. If it contains results you don't
12433 # want to keep, you may remove or edit it.
12435 # config.status only pays attention to the cache file if you give it
12436 # the --recheck option to rerun configure.
12438 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12440 # following values.
12444 # The following way of writing the cache mishandles newlines in values,
12445 # but we know of no workaround that is simple, portable, and efficient.
12446 # So, don't put newlines in cache variables' values.
12447 # Ultrix sh set writes to stderr and can't be redirected directly,
12448 # and sets the high bit in the cache file unless we assign to the vars.
12451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12453 # `set' does not quote correctly, so add quotes (double-quote
12454 # substitution turns \\\\ into \\, and sed turns \\ into \).
12457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12460 # `set' quotes correctly as required by POSIX, so do not add quotes.
12462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12473 if cmp -s $cache_file confcache
; then :; else
12474 if test -w $cache_file; then
12475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12476 cat confcache
>$cache_file
12478 echo "not updating unwritable cache $cache_file"
12483 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12484 # Let make expand exec_prefix.
12485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12489 # trailing colons and then remove the whole line if VPATH becomes empty
12490 # (actually we leave an empty line to preserve line numbers).
12491 if test "x$srcdir" = x.
; then
12492 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12493 s/:*\$(srcdir):*/:/;
12494 s/:*\${srcdir}:*/:/;
12496 s/^\([^=]*=[ ]*\):*/\1/;
12502 DEFS
=-DHAVE_CONFIG_H
12504 : ${CONFIG_STATUS=./config.status}
12505 ac_clean_files_save
=$ac_clean_files
12506 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12507 { echo "$as_me:12507: creating $CONFIG_STATUS" >&5
12508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12509 cat >$CONFIG_STATUS <<_ACEOF
12511 # Generated automatically by configure.
12512 # Run this file to recreate the current configuration.
12513 # Compiler output produced by configure, useful for debugging
12514 # configure, is in config.log if it exists.
12517 SHELL=\${CONFIG_SHELL-$SHELL}
12518 ac_cs_invocation="\$0 \$@"
12522 cat >>$CONFIG_STATUS <<\_ACEOF
12523 # Be Bourne compatible
12524 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12527 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12531 # Name of the executable.
12532 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12534 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12540 rm -f conf$$ conf$$.exe conf$$.
file
12542 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12543 # We could just check for DJGPP; but this test a) works b) is more generic
12544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12545 if test -f conf$$.exe
; then
12546 # Don't use ln at all; we don't have any links
12551 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12556 rm -f conf$$ conf$$.exe conf$$.
file
12558 as_executable_p
="test -f"
12560 # Support unset when possible.
12561 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12568 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12569 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12570 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12571 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12572 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12573 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12574 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12575 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12578 # We need space, tab and new line, in precisely that order.
12584 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12590 # Files that config.status was made for.
12591 if test -n "$ac_config_files"; then
12592 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12595 if test -n "$ac_config_headers"; then
12596 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12599 if test -n "$ac_config_links"; then
12600 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12603 if test -n "$ac_config_commands"; then
12604 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12607 cat >>$CONFIG_STATUS <<\EOF
12610 \`$as_me' instantiates files from templates according to the
12611 current configuration.
12613 Usage: $0 [OPTIONS] [FILE]...
12615 -h, --help print this help, then exit
12616 -V, --version print version number, then exit
12617 -d, --debug don't remove temporary files
12618 --recheck update $as_me by reconfiguring in the same conditions
12619 --file=FILE[:TEMPLATE]
12620 instantiate the configuration file FILE
12621 --header=FILE[:TEMPLATE]
12622 instantiate the configuration header FILE
12624 Configuration files:
12627 Configuration headers:
12630 Configuration commands:
12633 Report bugs to <bug-autoconf@gnu.org>."
12636 cat >>$CONFIG_STATUS <<EOF
12639 configured by $0, generated by GNU Autoconf 2.52,
12640 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12642 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12643 Free Software Foundation, Inc.
12644 This config.status script is free software; the Free Software Foundation
12645 gives unlimited permission to copy, distribute and modify it."
12650 cat >>$CONFIG_STATUS <<\EOF
12651 # If no file are specified by the user, then we need to provide default
12652 # value. By we need to know if files were specified by the user.
12658 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12659 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12661 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12665 *) # This is not an option, so the user has probably given explicit
12667 ac_need_defaults
=false
;;
12671 # Handling of the options.
12673 cat >>$CONFIG_STATUS <<EOF
12674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12675 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12676 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12678 cat >>$CONFIG_STATUS <<\EOF
12679 --version |
--vers* |
-V )
12680 echo "$ac_cs_version"; exit 0 ;;
12682 # Conflict between --help and --header
12683 { { echo "$as_me:12683: error: ambiguous option: $1
12684 Try \`$0 --help' for more information." >&5
12685 echo "$as_me: error: ambiguous option: $1
12686 Try \`$0 --help' for more information." >&2;}
12687 { (exit 1); exit 1; }; };;
12688 --help |
--hel |
-h )
12689 echo "$ac_cs_usage"; exit 0 ;;
12690 --debug |
--d* |
-d )
12692 --file |
--fil |
--fi |
--f )
12694 CONFIG_FILES
="$CONFIG_FILES $1"
12695 ac_need_defaults
=false
;;
12696 --header |
--heade |
--head |
--hea )
12698 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12699 ac_need_defaults
=false
;;
12701 # This is an error.
12702 -*) { { echo "$as_me:12702: error: unrecognized option: $1
12703 Try \`$0 --help' for more information." >&5
12704 echo "$as_me: error: unrecognized option: $1
12705 Try \`$0 --help' for more information." >&2;}
12706 { (exit 1); exit 1; }; } ;;
12708 *) ac_config_targets
="$ac_config_targets $1" ;;
12717 ## ----------------------- ##
12718 ## Running config.status. ##
12719 ## ----------------------- ##
12721 This file was extended by $as_me 2.52, executed with
12722 CONFIG_FILES = $CONFIG_FILES
12723 CONFIG_HEADERS = $CONFIG_HEADERS
12724 CONFIG_LINKS = $CONFIG_LINKS
12725 CONFIG_COMMANDS = $CONFIG_COMMANDS
12726 > $ac_cs_invocation
12727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12732 cat >>$CONFIG_STATUS <<EOF
12734 # INIT-COMMANDS section.
12737 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12741 cat >>$CONFIG_STATUS <<\EOF
12742 for ac_config_target
in $ac_config_targets
12744 case "$ac_config_target" in
12745 # Handling of arguments.
12746 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12747 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12748 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12749 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12750 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12751 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12752 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12753 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12754 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
12755 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12756 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12757 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12758 *) { { echo "$as_me:12758: error: invalid argument: $ac_config_target" >&5
12759 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12760 { (exit 1); exit 1; }; };;
12764 # If the user did not use the arguments to specify the items to instantiate,
12765 # then the envvar interface is used. Set only those that are not.
12766 # We use the long form for the default assignment because of an extremely
12767 # bizarre bug on SunOS 4.1.3.
12768 if $ac_need_defaults; then
12769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12774 # Create a temporary directory, and hook for its removal unless debugging.
12777 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12778 trap '{ (exit 1); exit 1; }' 1 2 13 15
12781 # Create a (secure) tmp directory for tmp files.
12784 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12785 test -n "$tmp" && test -d "$tmp"
12788 tmp
=$TMPDIR/cs$$
-$RANDOM
12789 (umask 077 && mkdir
$tmp)
12792 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12793 { (exit 1); exit 1; }
12798 cat >>$CONFIG_STATUS <<EOF
12801 # CONFIG_FILES section.
12804 # No need to generate the scripts if there are no CONFIG_FILES.
12805 # This happens for instance when ./config.status config.h
12806 if test -n "\$CONFIG_FILES"; then
12807 # Protect against being on the right side of a sed subst in config.status.
12808 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12809 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12810 s,@SHELL@,$SHELL,;t t
12811 s,@exec_prefix@,$exec_prefix,;t t
12812 s,@prefix@,$prefix,;t t
12813 s,@program_transform_name@,$program_transform_name,;t t
12814 s,@bindir@,$bindir,;t t
12815 s,@sbindir@,$sbindir,;t t
12816 s,@libexecdir@,$libexecdir,;t t
12817 s,@datadir@,$datadir,;t t
12818 s,@sysconfdir@,$sysconfdir,;t t
12819 s,@sharedstatedir@,$sharedstatedir,;t t
12820 s,@localstatedir@,$localstatedir,;t t
12821 s,@libdir@,$libdir,;t t
12822 s,@includedir@,$includedir,;t t
12823 s,@oldincludedir@,$oldincludedir,;t t
12824 s,@infodir@,$infodir,;t t
12825 s,@mandir@,$mandir,;t t
12826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12831 s,@build_alias@,$build_alias,;t t
12832 s,@host_alias@,$host_alias,;t t
12833 s,@target_alias@,$target_alias,;t t
12834 s,@ECHO_C@,$ECHO_C,;t t
12835 s,@ECHO_N@,$ECHO_N,;t t
12836 s,@ECHO_T@,$ECHO_T,;t t
12837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12838 s,@DEFS@,$DEFS,;t t
12839 s,@LIBS@,$LIBS,;t t
12840 s,@build@,$build,;t t
12841 s,@build_cpu@,$build_cpu,;t t
12842 s,@build_vendor@,$build_vendor,;t t
12843 s,@build_os@,$build_os,;t t
12844 s,@host@,$host,;t t
12845 s,@host_cpu@,$host_cpu,;t t
12846 s,@host_vendor@,$host_vendor,;t t
12847 s,@host_os@,$host_os,;t t
12849 s,@CFLAGS@,$CFLAGS,;t t
12850 s,@LDFLAGS@,$LDFLAGS,;t t
12851 s,@CPPFLAGS@,$CPPFLAGS,;t t
12852 s,@ac_ct_CC@,$ac_ct_CC,;t t
12853 s,@EXEEXT@,$EXEEXT,;t t
12854 s,@OBJEXT@,$OBJEXT,;t t
12855 s,@LN_S@,$LN_S,;t t
12857 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12858 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12859 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12860 s,@YACC@,$YACC,;t t
12861 s,@RANLIB@,$RANLIB,;t t
12862 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12863 s,@LIBSOUND@,$LIBSOUND,;t t
12864 s,@SET_MAKE@,$SET_MAKE,;t t
12865 s,@ALLOCA@,$ALLOCA,;t t
12866 s,@liblockfile@,$liblockfile,;t t
12867 s,@LIBOBJS@,$LIBOBJS,;t t
12868 s,@NEED_SETGID@,$NEED_SETGID,;t t
12869 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12870 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12871 s,@version@,$version,;t t
12872 s,@configuration@,$configuration,;t t
12873 s,@canonical@,$canonical,;t t
12874 s,@srcdir@,$srcdir,;t t
12875 s,@lispdir@,$lispdir,;t t
12876 s,@locallisppath@,$locallisppath,;t t
12877 s,@lisppath@,$lisppath,;t t
12878 s,@x_default_search_path@,$x_default_search_path,;t t
12879 s,@etcdir@,$etcdir,;t t
12880 s,@archlibdir@,$archlibdir,;t t
12881 s,@docdir@,$docdir,;t t
12882 s,@bitmapdir@,$bitmapdir,;t t
12883 s,@c_switch_system@,$c_switch_system,;t t
12884 s,@c_switch_machine@,$c_switch_machine,;t t
12885 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12886 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12887 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12888 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12889 s,@machfile@,$machfile,;t t
12890 s,@opsysfile@,$opsysfile,;t t
12895 cat >>$CONFIG_STATUS <<\EOF
12896 # Split the substitutions into bite-sized pieces for seds with
12897 # small command number limits, like on Digital OSF/1 and HP-UX.
12898 ac_max_sed_lines
=48
12899 ac_sed_frag
=1 # Number of current file.
12900 ac_beg
=1 # First line for current file.
12901 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12904 while $ac_more_lines; do
12905 if test $ac_beg -gt 1; then
12906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12908 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12910 if test ! -s $tmp/subs.frag
; then
12911 ac_more_lines
=false
12913 # The purpose of the label and of the branching condition is to
12914 # speed up the sed processing (if there are no `@' at all, there
12915 # is no need to browse any of the substitutions).
12916 # These are the two extra sed commands mentioned above.
12918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12919 if test -z "$ac_sed_cmds"; then
12920 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12922 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12924 ac_sed_frag
=`expr $ac_sed_frag + 1`
12926 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12929 if test -z "$ac_sed_cmds"; then
12932 fi # test -n "$CONFIG_FILES"
12935 cat >>$CONFIG_STATUS <<\EOF
12936 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12939 - |
*:- |
*:-:* ) # input from stdin
12941 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12942 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12943 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12944 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12945 * ) ac_file_in
=$ac_file.
in ;;
12948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12949 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12950 X"$ac_file" : 'X\(//\)[^/]' \| \
12951 X"$ac_file" : 'X\(//\)$' \| \
12952 X"$ac_file" : 'X\(/\)' \| \
12953 . : '\(.\)' 2>/dev/null ||
12955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12957 /^X\(\/\/\)$/{ s//\1/; q; }
12958 /^X\(\/\).*/{ s//\1/; q; }
12960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12961 { case "$ac_dir" in
12962 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12966 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12967 case $as_mkdir_dir in
12968 # Skip DOS drivespec
12969 ?
:) as_incr_dir
=$as_mkdir_dir ;;
12971 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
12972 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
12977 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
12978 # A "../" for each directory in $ac_dir_suffix.
12979 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12981 ac_dir_suffix
= ac_dots
=
12986 if test -z "$ac_dots"; then
12989 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
12991 [\\/]* | ?
:[\\/]* )
12992 ac_srcdir
=$srcdir$ac_dir_suffix;
12993 ac_top_srcdir
=$srcdir ;;
12994 *) # Relative path.
12995 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
12996 ac_top_srcdir
=$ac_dots$srcdir ;;
13000 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13001 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13004 if test x
"$ac_file" != x-
; then
13005 { echo "$as_me:13005: creating $ac_file" >&5
13006 echo "$as_me: creating $ac_file" >&6;}
13009 # Let's still pretend it is `configure' which instantiates (i.e., don't
13010 # use $as_me), people would be surprised to read:
13011 # /* config.h. Generated automatically by config.status. */
13012 configure_input
="Generated automatically from `echo $ac_file_in |
13013 sed 's,.*/,,'` by configure."
13015 # First look for the input files in the build tree, otherwise in the
13017 ac_file_inputs
=`IFS=:
13018 for f in $ac_file_in; do
13020 -) echo $tmp/stdin ;;
13022 # Absolute (can't be DOS-style, as IFS=:)
13023 test -f "$f" || { { echo "$as_me:13023: error: cannot find input file: $f" >&5
13024 echo "$as_me: error: cannot find input file: $f" >&2;}
13025 { (exit 1); exit 1; }; }
13028 if test -f "$f"; then
13031 elif test -f "$srcdir/$f"; then
13036 { { echo "$as_me:13036: error: cannot find input file: $f" >&5
13037 echo "$as_me: error: cannot find input file: $f" >&2;}
13038 { (exit 1); exit 1; }; }
13041 done` ||
{ (exit 1); exit 1; }
13043 cat >>$CONFIG_STATUS <<EOF
13047 cat >>$CONFIG_STATUS <<\EOF
13049 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13050 s
,@configure_input@
,$configure_input,;t t
13051 s
,@srcdir@
,$ac_srcdir,;t t
13052 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13053 s
,@INSTALL@
,$ac_INSTALL,;t t
13054 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13056 if test x"$ac_file" != x-; then
13057 mv $tmp/out $ac_file
13065 cat >>$CONFIG_STATUS <<\EOF
13068 # CONFIG_HEADER section.
13071 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13072 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13074 # ac_d sets the value in "#define NAME VALUE" lines.
13075 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13076 ac_dB
='[ ].*$,\1#\2'
13079 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13080 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13081 ac_uB
='$,\1#\2define\3'
13085 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13088 - |
*:- |
*:-:* ) # input from stdin
13090 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13091 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13092 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13093 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13094 * ) ac_file_in
=$ac_file.
in ;;
13097 test x
"$ac_file" != x-
&& { echo "$as_me:13097: creating $ac_file" >&5
13098 echo "$as_me: creating $ac_file" >&6;}
13100 # First look for the input files in the build tree, otherwise in the
13102 ac_file_inputs
=`IFS=:
13103 for f in $ac_file_in; do
13105 -) echo $tmp/stdin ;;
13107 # Absolute (can't be DOS-style, as IFS=:)
13108 test -f "$f" || { { echo "$as_me:13108: error: cannot find input file: $f" >&5
13109 echo "$as_me: error: cannot find input file: $f" >&2;}
13110 { (exit 1); exit 1; }; }
13113 if test -f "$f"; then
13116 elif test -f "$srcdir/$f"; then
13121 { { echo "$as_me:13121: error: cannot find input file: $f" >&5
13122 echo "$as_me: error: cannot find input file: $f" >&2;}
13123 { (exit 1); exit 1; }; }
13126 done` ||
{ (exit 1); exit 1; }
13127 # Remove the trailing spaces.
13128 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13132 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13133 # `conftest.undefs', that substitutes the proper values into
13134 # config.h.in to produce config.h. The first handles `#define'
13135 # templates, and the second `#undef' templates.
13136 # And first: Protect against being on the right side of a sed subst in
13137 # config.status. Protect against being in an unquoted here document
13138 # in config.status.
13139 rm -f conftest.defines conftest.undefs
13140 # Using a here document instead of a string reduces the quoting nightmare.
13141 # Putting comments in sed scripts is not portable.
13143 # `end' is used to avoid that the second main sed command (meant for
13144 # 0-ary CPP macros) applies to n-ary macro definitions.
13145 # See the Autoconf documentation for `clear'.
13146 cat >confdef2sed.
sed <<\EOF
13151 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13153 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13156 # If some macros were called several times there might be several times
13157 # the same #defines, which is useless. Nevertheless, we may not want to
13158 # sort them, since we want the *last* AC-DEFINE to be honored.
13159 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13160 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13161 rm -f confdef2sed.sed
13163 # This sed command replaces #undef with comments. This is necessary, for
13164 # example, in the case of _POSIX_SOURCE, which is predefined and required
13165 # on some systems where configure will not decide to define it.
13166 cat >>conftest.undefs <<\EOF
13167 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13170 # Break up conftest.defines because some shells have a limit on the size
13171 # of here documents, and old seds have small limits too (100 cmds).
13172 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13173 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13174 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13175 echo ' :' >>$CONFIG_STATUS
13176 rm -f conftest.tail
13177 while grep . conftest.defines >/dev/null
13179 # Write a limited-size here document to $tmp/defines.sed.
13180 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13181 # Speed up: don't consider the non `#define' lines.
13182 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13183 # Work around the forget-to-reset-the-flag bug.
13184 echo 't clr' >>$CONFIG_STATUS
13185 echo ': clr' >>$CONFIG_STATUS
13186 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13188 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13190 mv $tmp/out $tmp/in
13192 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13193 rm -f conftest.defines
13194 mv conftest.
tail conftest.defines
13196 rm -f conftest.defines
13197 echo ' fi # egrep' >>$CONFIG_STATUS
13198 echo >>$CONFIG_STATUS
13200 # Break up conftest.undefs 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 #undef templates' >>$CONFIG_STATUS
13203 rm -f conftest.
tail
13204 while grep . conftest.undefs
>/dev
/null
13206 # Write a limited-size here document to $tmp/undefs.sed.
13207 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13208 # Speed up: don't consider the non
`#undef'
13209 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13210 # Work around the forget-to-reset-the-flag bug.
13211 echo 't clr' >>$CONFIG_STATUS
13212 echo ': clr' >>$CONFIG_STATUS
13213 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13215 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13217 mv $tmp/out $tmp/in
13219 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13220 rm -f conftest.undefs
13221 mv conftest.tail conftest.undefs
13223 rm -f conftest.undefs
13225 cat >>$CONFIG_STATUS <<\EOF
13226 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13227 # use $as_me), people would be surprised to read:
13228 # /* config.h. Generated automatically by config.status. */
13229 if test x
"$ac_file" = x-
; then
13230 echo "/* Generated automatically by configure. */" >$tmp/config.h
13232 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13234 cat $tmp/in >>$tmp/config.h
13236 if test x
"$ac_file" != x-
; then
13237 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13238 { echo "$as_me:13238: $ac_file is unchanged" >&5
13239 echo "$as_me: $ac_file is unchanged" >&6;}
13241 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13242 X"$ac_file" : 'X\(//\)[^/]' \| \
13243 X"$ac_file" : 'X\(//\)$' \| \
13244 X"$ac_file" : 'X\(/\)' \| \
13245 . : '\(.\)' 2>/dev/null ||
13247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13249 /^X\(\/\/\)$/{ s//\1/; q; }
13250 /^X\(\/\).*/{ s//\1/; q; }
13252 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13253 { case "$ac_dir" in
13254 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13258 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13259 case $as_mkdir_dir in
13260 # Skip DOS drivespec
13261 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13263 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13264 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13271 mv $tmp/config.h
$ac_file
13275 rm -f $tmp/config.h
13279 cat >>$CONFIG_STATUS <<\EOF
13282 # CONFIG_COMMANDS section.
13284 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13285 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13286 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13291 ### Make the necessary directories, if they don't exist.
13292 for dir
in etc lisp
; do
13293 test -d ${dir} || mkdir
${dir}
13296 # Build src/Makefile from ${srcdir}/src/Makefile.c
13297 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13298 # This must be done after src/config.h is built, since we rely on that file.
13300 # Now get this: Some word that is part of the ${srcdir} directory name
13301 # or the ${configuration} value might, just might, happen to be an
13302 # identifier like `sun4' or `i386' or something, and be predefined by
13303 # the C preprocessor to some helpful value like 1, or maybe the empty
13304 # string. Needless to say consequent macro substitutions are less
13305 # than conducive to the makefile finding the correct directory.
13306 undefs
="`echo $top_srcdir $configuration $canonical |
13307 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13308 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13311 echo creating src
/epaths.h
13312 ${MAKE-make} epaths-force
13314 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13315 # `..' to `. .' unless invoked with -traditional
13317 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13318 CPPFLAGS
="$CPPFLAGS -traditional"
13321 echo creating lib-src
/Makefile
13323 rm -f junk.c junk1.c junk2.c
13324 sed -e '/start of cpp stuff/q' \
13325 < Makefile.c
> junk1.c
13326 sed -e '1,/start of cpp stuff/d'\
13327 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13328 < Makefile.c
> junk.c
13329 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13330 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13331 cat junk1.c junk2.c
> Makefile.new
13332 rm -f junk.c junk1.c junk2.c
13333 chmod 444 Makefile.new
13334 mv -f Makefile.new Makefile
13337 echo creating src
/Makefile
13339 rm -f junk.c junk1.c junk2.c
13340 sed -e '/start of cpp stuff/q' \
13341 < Makefile.c
> junk1.c
13342 sed -e '1,/start of cpp stuff/d'\
13343 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13344 < Makefile.c
> junk.c
13345 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13346 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13347 cat junk1.c junk2.c
> Makefile.new
13348 rm -f junk.c junk1.c junk2.c
13349 chmod 444 Makefile.new
13350 mv -f Makefile.new Makefile
13353 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13354 echo creating src
/.gdbinit
13355 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13358 # This is how we know whether to re-run configure in certain cases.
13359 touch src
/config.stamp
13366 cat >>$CONFIG_STATUS <<\EOF
13368 { (exit 0); exit 0; }
13370 chmod +x
$CONFIG_STATUS
13371 ac_clean_files
=$ac_clean_files_save
13373 # configure is writing to config.log, and then calls config.status.
13374 # config.status does its own redirection, appending to config.log.
13375 # Unfortunately, on DOS this fails, as config.log is still kept open
13376 # by configure, so config.status won't be able to write to it; its
13377 # output is simply discarded. So we exec the FD to /dev/null,
13378 # effectively closing config.log, so it can be properly (re)opened and
13379 # appended to by config.status. When coming back to configure, we
13380 # need to make the FD available again.
13381 if test "$no_create" != yes; then
13384 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13387 # would make configure fail if this is the last instruction.
13388 $ac_cs_success ||
{ (exit 1); exit 1; }