(cvs-add-face): Fix silly oversight.
[emacs.git] / configure
blobb743cf733b5c137e5ea7d7a407e373156216f0a8
1 #! /bin/sh
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
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >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
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
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
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
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; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
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`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
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="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
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.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
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 ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
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'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
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.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
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)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
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)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
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)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
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)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
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)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
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'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
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" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
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; }; }
468 *=*)
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'"
476 export $ac_envvar ;;
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}
486 esac
487 done
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`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
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`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
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
531 cross_compiling=yes
535 ac_tool_prefix=
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.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
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; }; }
558 else
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}
577 ac_env_CC_value=$CC
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.
603 cat <<EOF
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.
613 Configuration:
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 \`..']
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
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]
655 cat <<\EOF
657 Program names:
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
662 X features:
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
666 System types:
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
674 cat <<\EOF
676 Optional Features:
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
681 Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --with-game-dir use a shared game directory if possible
685 --with-game-user use specified user for game directory
686 --without-gcc don't use GCC to compile Emacs if GCC is found
687 --without-pop don't support POP mail retrieval with movemail
688 --with-kerberos support Kerberos-authenticated POP
689 --with-kerberos5 support Kerberos version 5 authenticated POP
690 --with-hesiod support Hesiod to get the POP server host
691 --without-sound don't compile with sound support
692 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
693 --with-xpm use -lXpm for displaying XPM images
694 --with-jpeg use -ljpeg for displaying JPEG images
695 --with-tiff use -ltiff for displaying TIFF images
696 --with-gif use -lungif for displaying GIF images
697 --with-png use -lpng for displaying PNG images
698 --without-toolkit-scroll-bars
699 don't use Motif or Xaw3d scroll bars
700 --without-xim don't use X11 XIM
701 --without-carbon don't use Carbon GUI on Mac OS X
702 --with-x use the X Window System
704 Some influential environment variables:
705 CC C compiler command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
708 nonstandard directory <lib dir>
709 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
710 headers in a nonstandard directory <include dir>
711 CPP C preprocessor
713 Use these variables to override the choices made by `configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
721 ac_popdir=`pwd`
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 cd $ac_subdir
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 case $srcdir in
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 *) # Relative path.
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 esac
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
739 echo
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
742 echo
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
746 echo
747 $ac_configure --help
748 else
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
751 cd $ac_popdir
752 done
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
757 cat <<\EOF
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
764 exit 0
766 exec 5>config.log
767 cat >&5 <<EOF
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
774 $ $0 $@
778 cat <<_ASUNAME
779 ## ---------- ##
780 ## Platform. ##
781 ## ---------- ##
783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
790 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
792 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
793 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
795 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
796 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
797 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
798 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
800 PATH = $PATH
802 _ASUNAME
803 } >&5
805 cat >&5 <<EOF
806 ## ------------ ##
807 ## Core tests. ##
808 ## ------------ ##
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
815 ac_configure_args=
816 ac_sep=
817 for ac_arg
819 case $ac_arg in
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 ac_sep=" " ;;
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 ac_sep=" " ;;
830 esac
831 # Get rid of the leading space.
832 done
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
837 trap 'exit_status=$?
838 # Save into config.log some information that might help in debugging.
839 echo >&5
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
843 echo >&5
844 # The following way of writing the cache mishandles newlines in values,
846 (set) 2>&1 |
847 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 *ac_space=\ *)
849 sed -n \
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 sed -n \
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 esac;
858 } >&5
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
861 echo >&5
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
865 echo >&5
866 cat conftest.log >&5
868 (echo; echo) >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 exit $exit_status
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
877 done
878 ac_signal=0
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 echo >confdefs.h
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 else
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
899 . "$ac_site_file"
901 done
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
909 case $cache_file in
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
911 *) . ./$cache_file;;
912 esac
914 else
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
917 >$cache_file
920 # Check that the precious variables saved in the cache have kept the same
921 # value.
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
930 set,)
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
934 ,set)
935 { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5
936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
938 ,);;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
943 { echo "$as_me:943: former value: $ac_old_val" >&5
944 echo "$as_me: former value: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value: $ac_new_val" >&5
946 echo "$as_me: current value: $ac_new_val" >&2;}
947 ac_cache_corrupted=:
948 fi;;
949 esac
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
953 case $ac_new_val in
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
960 esac
962 done
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error: changes in the environment can compromise the build" >&5
965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
966 { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
971 ac_ext=c
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
979 ' ECHO_T=' ' ;;
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 esac
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
985 chmod +x conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
988 ac_status=$?
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
992 else
993 ac_path_separator=:
995 PATH_SEPARATOR="$ac_path_separator"
996 rm -f conftest.sh
998 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1000 test "$program_prefix" != NONE &&
1001 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1002 # Use a double $ so make ignores it.
1003 test "$program_suffix" != NONE &&
1004 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1005 # Double any \ or $. echo might interpret backslashes.
1006 # By default was `s,x,x', remove it if useless.
1007 cat <<\_ACEOF >conftest.sed
1008 s/[\\$]/&&/g;s/;s,x,x,$//
1009 _ACEOF
1010 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1011 rm conftest.sed
1013 lispdir='${datadir}/emacs/${version}/lisp'
1014 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1015 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1016 lisppath='${locallisppath}:${lispdir}'
1017 etcdir='${datadir}/emacs/${version}/etc'
1018 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1019 docdir='${datadir}/emacs/${version}/etc'
1020 gamedir=yes
1022 # Check whether --with-game-dir or --without-game-dir was given.
1023 if test "${with_game_dir+set}" = set; then
1024 withval="$with_game_dir"
1026 gamedir="$withval"
1029 if test "$gamedir" = yes; then
1030 gamedir="${localstatedir}/games/emacs"
1032 eval tgamedir=\"$gamedir\"
1033 if test "$gamedir" != no; then
1035 cat >>confdefs.h <<EOF
1036 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1041 gameuser=games
1043 # Check whether --with-game-user or --without-game-user was given.
1044 if test "${with_game_user+set}" = set; then
1045 withval="$with_game_user"
1046 gameuser="$withval"
1049 # Check whether --with-gcc or --without-gcc was given.
1050 if test "${with_gcc+set}" = set; then
1051 withval="$with_gcc"
1055 # Check whether --with-pop or --without-pop was given.
1056 if test "${with_pop+set}" = set; then
1057 withval="$with_pop"
1058 if test "$withval" = yes; then
1059 cat >>confdefs.h <<\EOF
1060 #define MAIL_USE_POP 1
1063 else :
1065 else
1066 cat >>confdefs.h <<\EOF
1067 #define MAIL_USE_POP 1
1072 # Check whether --with-kerberos or --without-kerberos was given.
1073 if test "${with_kerberos+set}" = set; then
1074 withval="$with_kerberos"
1075 cat >>confdefs.h <<\EOF
1076 #define KERBEROS 1
1081 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1082 if test "${with_kerberos5+set}" = set; then
1083 withval="$with_kerberos5"
1084 if test "${with_kerberos5+set}" = set; then
1085 if test "${with_kerberos+set}" != set; then
1086 with_kerberos=yes
1087 cat >>confdefs.h <<\EOF
1088 #define KERBEROS 1
1094 cat >>confdefs.h <<\EOF
1095 #define KERBEROS5 1
1100 # Check whether --with-hesiod or --without-hesiod was given.
1101 if test "${with_hesiod+set}" = set; then
1102 withval="$with_hesiod"
1104 cat >>confdefs.h <<\EOF
1105 #define HESIOD 1
1110 # Check whether --with-sound or --without-sound was given.
1111 if test "${with_sound+set}" = set; then
1112 withval="$with_sound"
1116 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1117 if test "${with_x_toolkit+set}" = set; then
1118 withval="$with_x_toolkit"
1119 case "${withval}" in
1120 y | ye | yes ) val=athena ;;
1121 n | no ) val=no ;;
1122 l | lu | luc | luci | lucid ) val=lucid ;;
1123 a | at | ath | athe | athen | athena ) val=athena ;;
1124 m | mo | mot | moti | motif ) val=motif ;;
1126 { { echo "$as_me:1126: error: \`--with-x-toolkit=$withval' is invalid\;
1127 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1128 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1129 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1130 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1131 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1132 { (exit 1); exit 1; }; }
1134 esac
1135 with_x_toolkit=$val
1139 # Check whether --with-xpm or --without-xpm was given.
1140 if test "${with_xpm+set}" = set; then
1141 withval="$with_xpm"
1145 # Check whether --with-jpeg or --without-jpeg was given.
1146 if test "${with_jpeg+set}" = set; then
1147 withval="$with_jpeg"
1151 # Check whether --with-tiff or --without-tiff was given.
1152 if test "${with_tiff+set}" = set; then
1153 withval="$with_tiff"
1157 # Check whether --with-gif or --without-gif was given.
1158 if test "${with_gif+set}" = set; then
1159 withval="$with_gif"
1163 # Check whether --with-png or --without-png was given.
1164 if test "${with_png+set}" = set; then
1165 withval="$with_png"
1169 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1170 if test "${with_toolkit_scroll_bars+set}" = set; then
1171 withval="$with_toolkit_scroll_bars"
1175 # Check whether --with-xim or --without-xim was given.
1176 if test "${with_xim+set}" = set; then
1177 withval="$with_xim"
1181 # Check whether --with-carbon or --without-carbon was given.
1182 if test "${with_carbon+set}" = set; then
1183 withval="$with_carbon"
1187 #### Make srcdir absolute, if it isn't already. It's important to
1188 #### avoid running the path through pwd unnecessarily, since pwd can
1189 #### give you automounter prefixes, which can go away. We do all this
1190 #### so Emacs can find its files when run uninstalled.
1191 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1192 unset CDPATH
1193 case "${srcdir}" in
1194 /* ) ;;
1196 ## We may be able to use the $PWD environment variable to make this
1197 ## absolute. But sometimes PWD is inaccurate.
1198 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1199 ## but that tested only for a well-formed and valid PWD,
1200 ## it did not object when PWD was well-formed and valid but just wrong.
1201 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1202 then
1203 srcdir="$PWD"
1204 else
1205 srcdir="`(cd ${srcdir}; pwd)`"
1208 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1209 esac
1211 #### Check if the source directory already has a configured system in it.
1212 if test `pwd` != `(cd ${srcdir} && pwd)` \
1213 && test -f "${srcdir}/src/config.h" ; then
1214 { echo "$as_me:1214: WARNING: The directory tree \`${srcdir}' is being used
1215 as a build directory right now; it has been configured in its own
1216 right. To configure in another directory as well, you MUST
1217 use GNU make. If you do not have GNU make, then you must
1218 now do \`make distclean' in ${srcdir},
1219 and then run $0 again." >&5
1220 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1221 as a build directory right now; it has been configured in its own
1222 right. To configure in another directory as well, you MUST
1223 use GNU make. If you do not have GNU make, then you must
1224 now do \`make distclean' in ${srcdir},
1225 and then run $0 again." >&2;}
1227 extrasub='/^VPATH[ ]*=/c\
1228 vpath %.c $(srcdir)\
1229 vpath %.h $(srcdir)\
1230 vpath %.y $(srcdir)\
1231 vpath %.l $(srcdir)\
1232 vpath %.s $(srcdir)\
1233 vpath %.in $(srcdir)\
1234 vpath %.texi $(srcdir)'
1237 #### Given the configuration name, set machfile and opsysfile to the
1238 #### names of the m/*.h and s/*.h files we should use.
1240 ### Canonicalize the configuration name.
1242 ac_aux_dir=
1243 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1244 if test -f $ac_dir/install-sh; then
1245 ac_aux_dir=$ac_dir
1246 ac_install_sh="$ac_aux_dir/install-sh -c"
1247 break
1248 elif test -f $ac_dir/install.sh; then
1249 ac_aux_dir=$ac_dir
1250 ac_install_sh="$ac_aux_dir/install.sh -c"
1251 break
1252 elif test -f $ac_dir/shtool; then
1253 ac_aux_dir=$ac_dir
1254 ac_install_sh="$ac_aux_dir/shtool install -c"
1255 break
1257 done
1258 if test -z "$ac_aux_dir"; then
1259 { { echo "$as_me:1259: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1260 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1261 { (exit 1); exit 1; }; }
1263 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1264 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1265 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1267 # Make sure we can run config.sub.
1268 $ac_config_sub sun4 >/dev/null 2>&1 ||
1269 { { echo "$as_me:1269: error: cannot run $ac_config_sub" >&5
1270 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1271 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: checking build system type" >&5
1274 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1275 if test "${ac_cv_build+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 else
1278 ac_cv_build_alias=$build_alias
1279 test -z "$ac_cv_build_alias" &&
1280 ac_cv_build_alias=`$ac_config_guess`
1281 test -z "$ac_cv_build_alias" &&
1282 { { echo "$as_me:1282: error: cannot guess build type; you must specify one" >&5
1283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1284 { (exit 1); exit 1; }; }
1285 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1286 { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: $ac_cv_build" >&5
1292 echo "${ECHO_T}$ac_cv_build" >&6
1293 build=$ac_cv_build
1294 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1298 echo "$as_me:1298: checking host system type" >&5
1299 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1300 if test "${ac_cv_host+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303 ac_cv_host_alias=$host_alias
1304 test -z "$ac_cv_host_alias" &&
1305 ac_cv_host_alias=$ac_cv_build_alias
1306 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_host" >&5
1313 echo "${ECHO_T}$ac_cv_host" >&6
1314 host=$ac_cv_host
1315 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 canonical=$host
1320 configuration=${host_alias-$host}
1322 ### If you add support for a new configuration, add code to this
1323 ### switch statement to recognize your configuration name and select
1324 ### the appropriate operating system and machine description files.
1326 ### You would hope that you could choose an m/*.h file pretty much
1327 ### based on the machine portion of the configuration name, and an s-
1328 ### file based on the operating system portion. However, it turns out
1329 ### that each m/*.h file is pretty manufacturer-specific - for
1330 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1331 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1332 ### machines. So we basically have to have a special case for each
1333 ### configuration name.
1335 ### As far as handling version numbers on operating systems is
1336 ### concerned, make sure things will fail in a fixable way. If
1337 ### /etc/MACHINES doesn't say anything about version numbers, be
1338 ### prepared to handle anything reasonably. If version numbers
1339 ### matter, be sure /etc/MACHINES says something about it.
1341 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1342 ### "System V Release 4"; he writes, "The old convention encouraged
1343 ### confusion between `system' and `release' levels'."
1345 machine='' opsys='' unported=no
1346 case "${canonical}" in
1348 ## FreeBSD ports
1349 *-*-freebsd* )
1350 opsys=freebsd
1351 case "${canonical}" in
1352 alpha*-*-freebsd*) machine=alpha ;;
1353 i[3456]86-*-freebsd*) machine=intel386 ;;
1354 esac
1357 ## NetBSD ports
1358 *-*-netbsd* )
1359 opsys=netbsd
1360 case "${canonical}" in
1361 alpha*-*-netbsd*) machine=alpha ;;
1362 i[3456]86-*-netbsd*) machine=intel386 ;;
1363 m68k-*-netbsd*)
1364 # This is somewhat bogus.
1365 machine=hp9000s300 ;;
1366 powerpc-apple-netbsd*) machine=macppc ;;
1367 mips-*-netbsd*) machine=pmax ;;
1368 mipsel-*-netbsd*) machine=pmax ;;
1369 ns32k-*-netbsd*) machine=ns32000 ;;
1370 powerpc-*-netbsd*) machine=macppc ;;
1371 sparc*-*-netbsd*) machine=sparc ;;
1372 vax-*-netbsd*) machine=vax ;;
1373 arm-*-netbsd*) machine=arm ;;
1374 esac
1377 ## OpenBSD ports
1378 *-*-openbsd* )
1379 opsys=openbsd
1380 case "${canonical}" in
1381 alpha*-*-openbsd*) machine=alpha ;;
1382 i386-*-openbsd*) machine=intel386 ;;
1383 m68k-*-openbsd*) machine=hp9000s300 ;;
1384 mipsel-*-openbsd*) machine=pmax ;;
1385 ns32k-*-openbsd*) machine=ns32000 ;;
1386 sparc-*-openbsd*) machine=sparc ;;
1387 vax-*-openbsd*) machine=vax ;;
1388 esac
1391 ## Acorn RISCiX:
1392 arm-acorn-riscix1.1* )
1393 machine=acorn opsys=riscix1-1
1395 arm-acorn-riscix1.2* | arm-acorn-riscix )
1396 ## This name is riscix12 instead of riscix1.2
1397 ## to avoid a file name conflict on MSDOS.
1398 machine=acorn opsys=riscix12
1401 ## BSDI ports
1402 *-*-bsdi* )
1403 opsys=bsdi
1404 case "${canonical}" in
1405 i[345]86-*-bsdi*) machine=intel386 ;;
1406 sparc-*-bsdi*) machine=sparc ;;
1407 powerpc-*-bsdi*) machine=macppc ;;
1408 esac
1409 case "${canonical}" in
1410 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1411 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1412 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1413 *-*-bsdi3* ) opsys=bsdos3 ;;
1414 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1415 esac
1418 ## Alliant machines
1419 ## Strictly speaking, we need the version of the alliant operating
1420 ## system to choose the right machine file, but currently the
1421 ## configuration name doesn't tell us enough to choose the right
1422 ## one; we need to give alliants their own operating system name to
1423 ## do this right. When someone cares, they can help us.
1424 fx80-alliant-* )
1425 machine=alliant4 opsys=bsd4-2
1427 i860-alliant-* )
1428 machine=alliant-2800 opsys=bsd4-3
1431 ## Alpha (DEC) machines.
1432 alpha*-dec-osf* )
1433 machine=alpha opsys=osf1
1434 # This is needed to find X11R6.1 libraries for certain tests.
1435 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1436 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1437 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1438 # due to non-traditional preprocessing with the current compiler
1439 # defaults. OSF 4 can also have that compiler version, and there
1440 # seems always to have been a usable /usr/bin/cpp.
1441 NON_GNU_CPP=/usr/bin/cpp
1442 case "${canonical}" in
1443 alpha*-dec-osf[5-9]*)
1444 opsys=osf5-0 ;;
1445 esac
1448 alpha*-*-linux-gnu* )
1449 machine=alpha opsys=gnu-linux
1452 arm*-*-linux-gnu* )
1453 machine=arm opsys=gnu-linux
1456 ppc-*-linux | \
1457 powerpc-*-linux* )
1458 machine=macppc opsys=gnu-linux
1461 ## Altos 3068
1462 m68*-altos-sysv* )
1463 machine=altos opsys=usg5-2
1466 ## Amdahl UTS
1467 580-amdahl-sysv* )
1468 machine=amdahl opsys=usg5-2-2
1471 ## Apollo, Domain/OS
1472 m68*-apollo-* )
1473 machine=apollo opsys=bsd4-3
1476 ## AT&T 3b2, 3b5, 3b15, 3b20
1477 we32k-att-sysv* )
1478 machine=att3b opsys=usg5-2-2
1481 ## AT&T 3b1 - The Mighty Unix PC!
1482 m68*-att-sysv* )
1483 machine=7300 opsys=usg5-2-2
1486 ## Bull dpx20
1487 rs6000-bull-bosx* )
1488 machine=ibmrs6000 opsys=aix3-2
1491 ## Bull dpx2
1492 m68*-bull-sysv3* )
1493 machine=dpx2 opsys=usg5-3
1496 ## Bull sps7
1497 m68*-bull-sysv2* )
1498 machine=sps7 opsys=usg5-2
1501 ## CCI 5/32, 6/32 -- see "Tahoe".
1503 ## Celerity
1504 ## I don't know what configuration name to use for this; config.sub
1505 ## doesn't seem to know anything about it. Hey, Celerity users, get
1506 ## in touch with us!
1507 celerity-celerity-bsd* )
1508 machine=celerity opsys=bsd4-2
1511 ## Clipper
1512 ## What operating systems does this chip run that Emacs has been
1513 ## tested on?
1514 clipper-* )
1515 machine=clipper
1516 ## We'll use the catch-all code at the bottom to guess the
1517 ## operating system.
1520 ## Compaq Nonstop
1521 mips-compaq-nonstopux* )
1522 machine=nonstopux opsys=nonstopux
1525 ## Convex
1526 *-convex-bsd* | *-convex-convexos* )
1527 machine=convex opsys=bsd4-3
1528 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1529 NON_GNU_CPP="cc -E -P"
1532 ## Cubix QBx/386
1533 i[3456]86-cubix-sysv* )
1534 machine=intel386 opsys=usg5-3
1537 ## Cydra 5
1538 cydra*-cydrome-sysv* )
1539 machine=cydra5 opsys=usg5-3
1542 ## Data General AViiON Machines
1543 ## DG changed naming conventions with the release of 5.4.4.10, they
1544 ## dropped the initial 5.4 but left the intervening R. Because of the
1545 ## R this shouldn't conflict with older versions of the OS (which I
1546 ## think were named like dgux4.*). In addition, DG new AViiONs series
1547 ## uses either Motorola M88k or Intel Pentium CPUs.
1548 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1549 machine=aviion opsys=dgux4
1551 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1552 ## This name is dgux5-4-3 instead of dgux5-4r3
1553 ## to avoid a file name conflict on MSDOS.
1554 machine=aviion opsys=dgux5-4-3
1556 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1557 machine=aviion opsys=dgux5-4r2
1559 m88k-dg-dgux* )
1560 machine=aviion opsys=dgux
1563 ## Data General AViiON Intel (x86) Machines
1564 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1565 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1566 i[345]86-dg-dguxR4* )
1567 machine=aviion-intel opsys=dgux4
1570 ## DECstations
1571 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1572 machine=pmax opsys=bsd4-2
1574 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1575 machine=pmax opsys=bsd4-3
1577 mips-dec-ultrix* )
1578 machine=pmax opsys=ultrix4-3
1580 mips-dec-osf* )
1581 machine=pmax opsys=osf1
1583 mips-dec-mach_bsd4.3* )
1584 machine=pmax opsys=mach-bsd4-3
1587 ## Motorola Delta machines
1588 m68k-motorola-sysv* | m68000-motorola-sysv* )
1589 machine=delta opsys=usg5-3
1590 if test -z "`type gnucc | grep 'not found'`"
1591 then
1592 if test -s /etc/167config
1593 then CC="gnucc -m68040"
1594 else CC="gnucc -m68881"
1596 else
1597 if test -z "`type gcc | grep 'not found'`"
1598 then CC=gcc
1599 else CC=cc
1603 m88k-motorola-sysv4* )
1604 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1605 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1606 # I hope there are not other 4.0 versions for this machine
1607 # which really need usg5-4 instead.
1608 machine=delta88k opsys=usg5-4-2
1610 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1611 machine=delta88k opsys=usg5-3
1614 ## Dual machines
1615 m68*-dual-sysv* )
1616 machine=dual opsys=usg5-2
1618 m68*-dual-uniplus* )
1619 machine=dual opsys=unipl5-2
1622 ## Elxsi 6400
1623 elxsi-elxsi-sysv* )
1624 machine=elxsi opsys=usg5-2
1627 ## Encore machines
1628 ns16k-encore-bsd* )
1629 machine=ns16000 opsys=umax
1632 ## The GEC 63 - apparently, this port isn't really finished yet.
1633 # I'm sure we finished off the last of the machines, though. -- fx
1635 ## Gould Power Node and NP1
1636 pn-gould-bsd4.2* )
1637 machine=gould opsys=bsd4-2
1639 pn-gould-bsd4.3* )
1640 machine=gould opsys=bsd4-3
1642 np1-gould-bsd* )
1643 machine=gould-np1 opsys=bsd4-3
1646 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1647 ## as far as Emacs is concerned).
1648 m88k-harris-cxux* )
1649 # Build needs to be different on 7.0 and later releases
1650 case "`uname -r`" in
1651 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1652 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1653 esac
1654 NON_GNU_CPP="/lib/cpp"
1656 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1657 m68k-harris-cxux* )
1658 machine=nh3000 opsys=cxux
1660 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1661 powerpc-harris-powerunix )
1662 machine=nh6000 opsys=powerunix
1663 NON_GNU_CPP="cc -Xo -E -P"
1665 ## SR2001/SR2201 running HI-UX/MPP
1666 hppa1.1-hitachi-hiuxmpp* )
1667 machine=sr2k opsys=hiuxmpp
1669 hppa1.1-hitachi-hiuxwe2* )
1670 machine=sr2k opsys=hiuxwe2
1672 ## Honeywell XPS100
1673 xps*-honeywell-sysv* )
1674 machine=xps100 opsys=usg5-2
1677 ## HP 9000 series 200 or 300
1678 m68*-hp-bsd* )
1679 machine=hp9000s300 opsys=bsd4-3
1681 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1682 m68*-hp-hpux* )
1683 case "`uname -r`" in
1684 ## Someone's system reports A.B8.05 for this.
1685 ## I wonder what other possibilities there are.
1686 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1687 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1688 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1689 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1690 *) machine=hp9000s300 opsys=hpux ;;
1691 esac
1694 ## HP 9000 series 700 and 800, running HP/UX
1695 hppa*-hp-hpux7* )
1696 machine=hp800 opsys=hpux
1698 hppa*-hp-hpux8* )
1699 machine=hp800 opsys=hpux8
1701 hppa*-hp-hpux9shr* )
1702 machine=hp800 opsys=hpux9shr
1704 hppa*-hp-hpux9* )
1705 machine=hp800 opsys=hpux9
1707 hppa*-hp-hpux10* )
1708 machine=hp800 opsys=hpux10
1710 hppa*-hp-hpux1[1-9]* )
1711 machine=hp800 opsys=hpux11
1714 hppa*-*-linux-gnu* )
1715 machine=hp800 opsys=gnu-linux
1718 ## HP 9000 series 700 and 800, running HP/UX
1719 hppa*-hp-hpux* )
1720 ## Cross-compilation? Nah!
1721 case "`uname -r`" in
1722 ## Someone's system reports A.B8.05 for this.
1723 ## I wonder what other possibilities there are.
1724 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1725 *.08.* ) machine=hp800 opsys=hpux8 ;;
1726 *.09.* ) machine=hp800 opsys=hpux9 ;;
1727 *) machine=hp800 opsys=hpux10 ;;
1728 esac
1730 hppa*-*-nextstep* )
1731 machine=hp800 opsys=nextstep
1734 ## Orion machines
1735 orion-orion-bsd* )
1736 machine=orion opsys=bsd4-2
1738 clipper-orion-bsd* )
1739 machine=orion105 opsys=bsd4-2
1742 ## IBM machines
1743 i[3456]86-ibm-aix1.1* )
1744 machine=ibmps2-aix opsys=usg5-2-2
1746 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1747 machine=ibmps2-aix opsys=usg5-3
1749 i370-ibm-aix*)
1750 machine=ibm370aix opsys=usg5-3
1752 s390-*-linux-gnu)
1753 machine=ibms390 opsys=gnu-linux
1755 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1756 machine=ibmrs6000 opsys=aix3-1
1758 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1759 machine=ibmrs6000 opsys=aix3-2-5
1761 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1762 machine=ibmrs6000 opsys=aix4-1
1764 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1765 machine=ibmrs6000 opsys=aix4-2
1767 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1768 machine=ibmrs6000 opsys=aix4-2
1770 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1771 machine=ibmrs6000 opsys=aix4
1773 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1774 machine=ibmrs6000 opsys=aix4-1
1776 rs6000-ibm-aix* | powerpc-ibm-aix* )
1777 machine=ibmrs6000 opsys=aix3-2
1779 romp-ibm-bsd4.3* )
1780 machine=ibmrt opsys=bsd4-3
1782 romp-ibm-bsd4.2* )
1783 machine=ibmrt opsys=bsd4-2
1785 romp-ibm-aos4.3* )
1786 machine=ibmrt opsys=bsd4-3
1788 romp-ibm-aos4.2* )
1789 machine=ibmrt opsys=bsd4-2
1791 romp-ibm-aos* )
1792 machine=ibmrt opsys=bsd4-3
1794 romp-ibm-bsd* )
1795 machine=ibmrt opsys=bsd4-3
1797 romp-ibm-aix* )
1798 machine=ibmrt-aix opsys=usg5-2-2
1801 ## Integrated Solutions `Optimum V'
1802 m68*-isi-bsd4.2* )
1803 machine=isi-ov opsys=bsd4-2
1805 m68*-isi-bsd4.3* )
1806 machine=isi-ov opsys=bsd4-3
1809 ## Intel 386 machines where we do care about the manufacturer
1810 i[3456]86-intsys-sysv* )
1811 machine=is386 opsys=usg5-2-2
1814 ## Prime EXL
1815 i[3456]86-prime-sysv* )
1816 machine=i386 opsys=usg5-3
1819 ## Sequent Symmetry running Dynix
1820 i[3456]86-sequent-bsd* )
1821 machine=symmetry opsys=bsd4-3
1824 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1825 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1826 machine=sequent-ptx opsys=ptx4
1827 NON_GNU_CPP=/lib/cpp
1830 ## Sequent Symmetry running DYNIX/ptx
1831 ## Use the old cpp rather than the newer ANSI one.
1832 i[3456]86-sequent-ptx* )
1833 machine=sequent-ptx opsys=ptx
1834 NON_GNU_CPP="/lib/cpp"
1837 ## ncr machine running svr4.3.
1838 i[3456]86-ncr-sysv4.3 )
1839 machine=ncr386 opsys=usg5-4-3
1842 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1843 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1844 i[3456]86-ncr-sysv* )
1845 machine=ncr386 opsys=usg5-4-2
1848 ## Intel Paragon OSF/1
1849 i860-intel-osf1* )
1850 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1853 ## Intel 860
1854 i860-*-sysv4* )
1855 machine=i860 opsys=usg5-4
1856 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1857 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1860 ## Macintosh PowerPC
1861 powerpc*-*-linux-gnu* )
1862 machine=macppc opsys=gnu-linux
1865 ## Masscomp machines
1866 m68*-masscomp-rtu* )
1867 machine=masscomp opsys=rtu
1870 ## Megatest machines
1871 m68*-megatest-bsd* )
1872 machine=mega68 opsys=bsd4-2
1875 ## Workstations sold by MIPS
1876 ## This is not necessarily all workstations using the MIPS processor -
1877 ## Irises are produced by SGI, and DECstations by DEC.
1879 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1880 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1881 ## it gives for choosing between the alternatives seems to be "Use
1882 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1883 ## the BSD world." I'll assume that these are instructions for
1884 ## handling two odd situations, and that every other situation
1885 ## should use mips.h and usg5-2-2, they being listed first.
1886 mips-mips-usg* )
1887 machine=mips4
1888 ## Fall through to the general code at the bottom to decide on the OS.
1890 mips-mips-riscos4* )
1891 machine=mips4 opsys=bsd4-3
1892 NON_GNU_CC="cc -systype bsd43"
1893 NON_GNU_CPP="cc -systype bsd43 -E"
1895 mips-mips-riscos5* )
1896 machine=mips4 opsys=riscos5
1897 NON_GNU_CC="cc -systype bsd43"
1898 NON_GNU_CPP="cc -systype bsd43 -E"
1900 mips-mips-bsd* )
1901 machine=mips opsys=bsd4-3
1903 mips-mips-* )
1904 machine=mips opsys=usg5-2-2
1907 ## NeXT
1908 m68*-next-* | m68k-*-nextstep* )
1909 machine=m68k opsys=nextstep
1912 ## The complete machine from National Semiconductor
1913 ns32k-ns-genix* )
1914 machine=ns32000 opsys=usg5-2
1917 ## NCR machines
1918 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1919 machine=tower32 opsys=usg5-2-2
1921 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1922 machine=tower32v3 opsys=usg5-3
1925 ## NEC EWS4800
1926 mips-nec-sysv4*)
1927 machine=ews4800 opsys=ux4800
1930 ## Nixdorf Targon 31
1931 m68*-nixdorf-sysv* )
1932 machine=targon31 opsys=usg5-2-2
1935 ## Nu (TI or LMI)
1936 m68*-nu-sysv* )
1937 machine=nu opsys=usg5-2
1940 ## Plexus
1941 m68*-plexus-sysv* )
1942 machine=plexus opsys=usg5-2
1945 ## PowerPC reference platform
1946 powerpcle-*-solaris2* )
1947 machine=prep
1948 opsys=sol2-5
1951 ## Pyramid machines
1952 ## I don't really have any idea what sort of processor the Pyramid has,
1953 ## so I'm assuming it is its own architecture.
1954 pyramid-pyramid-bsd* )
1955 machine=pyramid opsys=bsd4-2
1958 ## Sequent Balance
1959 ns32k-sequent-bsd4.2* )
1960 machine=sequent opsys=bsd4-2
1962 ns32k-sequent-bsd4.3* )
1963 machine=sequent opsys=bsd4-3
1966 ## Siemens Nixdorf
1967 mips-siemens-sysv* | mips-sni-sysv*)
1968 machine=mips-siemens opsys=usg5-4
1969 NON_GNU_CC=/usr/ccs/bin/cc
1970 NON_GNU_CPP=/usr/ccs/lib/cpp
1973 ## Silicon Graphics machines
1974 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1975 m68*-sgi-iris3.5* )
1976 machine=irist opsys=iris3-5
1978 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1979 machine=irist opsys=iris3-6
1981 ## Iris 4D
1982 mips-sgi-irix3* )
1983 machine=iris4d opsys=irix3-3
1985 mips-sgi-irix4* )
1986 machine=iris4d opsys=irix4-0
1988 mips-sgi-irix6.5 )
1989 machine=iris4d opsys=irix6-5
1990 # Without defining _LANGUAGE_C, things get masked out in the headers
1991 # so that, for instance, grepping for `free' in stdlib.h fails and
1992 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1993 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1994 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1996 mips-sgi-irix6* )
1997 machine=iris4d opsys=irix6-0
1998 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1999 # but presumably it does no harm.
2000 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2001 # -32 probably isn't necessary in later v.6s -- anyone know which?
2002 NON_GCC_TEST_OPTIONS=-32
2004 mips-sgi-irix5.[01]* )
2005 machine=iris4d opsys=irix5-0
2007 mips-sgi-irix5* | mips-sgi-irix* )
2008 machine=iris4d opsys=irix5-2
2011 ## SONY machines
2012 m68*-sony-bsd4.2* )
2013 machine=news opsys=bsd4-2
2015 m68*-sony-bsd4.3* )
2016 machine=news opsys=bsd4-3
2018 m68*-sony-newsos3* | m68*-sony-news3*)
2019 machine=news opsys=bsd4-3
2021 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2022 machine=news-risc opsys=bsd4-3
2024 mips-sony-newsos6* )
2025 machine=news-r6 opsys=newsos6
2027 mips-sony-news* )
2028 machine=news-risc opsys=newsos5
2031 ## Stride
2032 m68*-stride-sysv* )
2033 machine=stride opsys=usg5-2
2036 ## Suns
2037 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2038 machine=sparc opsys=gnu-linux
2041 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2042 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2043 | rs6000-*-solaris2*)
2044 case "${canonical}" in
2045 m68*-sunos1* ) machine=sun1 ;;
2046 m68*-sunos2* ) machine=sun2 ;;
2047 m68* ) machine=sun3 ;;
2048 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2049 i[3456]86-*-* ) machine=intel386 ;;
2050 powerpcle* ) machine=powerpcle ;;
2051 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2052 sparc* ) machine=sparc ;;
2053 * ) unported=yes ;;
2054 esac
2055 case "${canonical}" in
2056 ## The Sun386 didn't get past 4.0.
2057 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2058 *-sunos4.0* ) opsys=sunos4-0 ;;
2059 *-sunos4.1.[3-9]*noshare )
2060 ## This name is sunos413 instead of sunos4-1-3
2061 ## to avoid a file name conflict on MSDOS.
2062 opsys=sunos413
2063 NON_GNU_CPP=/usr/lib/cpp
2064 NON_GCC_TEST_OPTIONS=-Bstatic
2065 GCC_TEST_OPTIONS=-static
2067 *-sunos4.1.[3-9]* | *-sunos4shr*)
2068 opsys=sunos4shr
2069 NON_GNU_CPP=/usr/lib/cpp
2071 *-sunos4* | *-sunos )
2072 opsys=sunos4-1
2073 NON_GCC_TEST_OPTIONS=-Bstatic
2074 GCC_TEST_OPTIONS=-static
2076 *-sunos5.3* | *-solaris2.3* )
2077 opsys=sol2-3
2078 NON_GNU_CPP=/usr/ccs/lib/cpp
2080 *-sunos5.4* | *-solaris2.4* )
2081 opsys=sol2-4
2082 NON_GNU_CPP=/usr/ccs/lib/cpp
2083 RANLIB="ar -ts"
2085 *-sunos5.5* | *-solaris2.5* )
2086 opsys=sol2-5
2087 NON_GNU_CPP=/usr/ccs/lib/cpp
2088 RANLIB="ar -ts"
2090 *-sunos5* | *-solaris* )
2091 opsys=sol2-5
2092 NON_GNU_CPP=/usr/ccs/lib/cpp
2094 * ) opsys=bsd4-2 ;;
2095 esac
2096 ## Watch out for a compiler that we know will not work.
2097 case "${canonical}" in
2098 *-solaris* | *-sunos5* )
2099 if [ "x$CC" = x/usr/ucb/cc ]; then
2100 ## /usr/ucb/cc doesn't work;
2101 ## we should find some other compiler that does work.
2102 unset CC
2105 *) ;;
2106 esac
2108 sparc-*-nextstep* )
2109 machine=sparc opsys=nextstep
2112 ## Tadpole 68k
2113 m68*-tadpole-sysv* )
2114 machine=tad68k opsys=usg5-3
2117 ## Tahoe machines
2118 tahoe-tahoe-bsd4.2* )
2119 machine=tahoe opsys=bsd4-2
2121 tahoe-tahoe-bsd4.3* )
2122 machine=tahoe opsys=bsd4-3
2125 ## Tandem Integrity S2
2126 mips-tandem-sysv* )
2127 machine=tandem-s2 opsys=usg5-3
2130 ## Tektronix XD88
2131 m88k-tektronix-sysv3* )
2132 machine=tekxd88 opsys=usg5-3
2135 ## Tektronix 16000 box (6130?)
2136 ns16k-tektronix-bsd* )
2137 machine=ns16000 opsys=bsd4-2
2139 ## Tektronix 4300
2140 ## src/m/tek4300.h hints that this is a m68k machine.
2141 m68*-tektronix-bsd* )
2142 machine=tek4300 opsys=bsd4-3
2145 ## Titan P2 or P3
2146 ## We seem to have lost the machine-description file titan.h!
2147 titan-titan-sysv* )
2148 machine=titan opsys=usg5-3
2151 ## Ustation E30 (SS5E)
2152 m68*-unisys-uniplus* )
2153 machine=ustation opsystem=unipl5-2
2156 ## Vaxen.
2157 vax-dec-* )
2158 machine=vax
2159 case "${canonical}" in
2160 *-bsd4.1* ) opsys=bsd4-1 ;;
2161 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2162 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2163 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2164 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2165 *-vms* ) opsys=vms ;;
2166 * ) unported=yes
2167 esac
2170 ## Whitechapel MG1
2171 ns16k-whitechapel-* )
2172 machine=mg1
2173 ## We don't know what sort of OS runs on these; we'll let the
2174 ## operating system guessing code below try.
2177 ## Wicat
2178 m68*-wicat-sysv* )
2179 machine=wicat opsys=usg5-2
2182 ## IA-64
2183 ia64*-*-linux* )
2184 machine=ia64 opsys=gnu-linux
2187 ## Intel 386 machines where we don't care about the manufacturer
2188 i[3456]86-*-* )
2189 machine=intel386
2190 case "${canonical}" in
2191 *-lynxos* ) opsys=lynxos ;;
2192 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2193 *-isc2.2* ) opsys=isc2-2 ;;
2194 *-isc4.0* ) opsys=isc4-0 ;;
2195 *-isc4.* ) opsys=isc4-1
2196 GCC_TEST_OPTIONS=-posix
2197 NON_GCC_TEST_OPTIONS=-Xp
2199 *-isc* ) opsys=isc3-0 ;;
2200 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2201 *-esix* ) opsys=esix ;;
2202 *-xenix* ) opsys=xenix ;;
2203 *-linux-gnu* ) opsys=gnu-linux ;;
2204 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2205 *-sco3.2v5* ) opsys=sco5
2206 NON_GNU_CPP=/lib/cpp
2207 # Prevent -belf from being passed to $CPP.
2208 # /lib/cpp does not accept it.
2209 OVERRIDE_CPPFLAGS=" "
2211 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2212 *-386bsd* ) opsys=386bsd ;;
2213 *-nextstep* ) opsys=nextstep ;;
2214 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2215 esac
2218 ## m68k Linux-based GNU system
2219 m68k-*-linux-gnu* )
2220 machine=m68k opsys=gnu-linux
2223 ## Mips Linux-based GNU system
2224 mips-*-linux-gnu* )
2225 machine=mips opsys=gnu-linux
2228 ## UXP/DS
2229 sparc-fujitsu-sysv4* )
2230 machine=sparc opsys=uxpds
2231 NON_GNU_CPP=/usr/ccs/lib/cpp
2232 RANLIB="ar -ts"
2235 ## UXP/V
2236 f301-fujitsu-uxpv4.1)
2237 machine=f301 opsys=uxpv
2240 ## Darwin / Mac OS X
2241 powerpc-apple-darwin* )
2242 machine=powermac opsys=darwin
2243 # Define CPP as follows to make autoconf work correctly.
2244 CPP="cc -E -traditional-cpp"
2247 ## AMD x86-64 Linux-based GNU system
2248 x86_64-*-linux-gnu* )
2249 machine=amdx86-64 opsys=gnu-linux
2253 unported=yes
2255 esac
2257 ### If the code above didn't choose an operating system, just choose
2258 ### an operating system based on the configuration name. You really
2259 ### only want to use this when you have no idea what the right
2260 ### operating system is; if you know what operating systems a machine
2261 ### runs, it's cleaner to make it explicit in the case statement
2262 ### above.
2263 if test x"${opsys}" = x; then
2264 case "${canonical}" in
2265 *-gnu* ) opsys=gnu ;;
2266 *-bsd4.[01] ) opsys=bsd4-1 ;;
2267 *-bsd4.2 ) opsys=bsd4-2 ;;
2268 *-bsd4.3 ) opsys=bsd4-3 ;;
2269 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2270 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2271 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2272 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2273 *-sysv4.2uw* ) opsys=unixware ;;
2274 *-sysv4.1* | *-sysvr4.1* )
2275 NON_GNU_CPP=/usr/lib/cpp
2276 opsys=usg5-4 ;;
2277 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2278 if [ x$NON_GNU_CPP = x ]; then
2279 if [ -f /usr/ccs/lib/cpp ]; then
2280 NON_GNU_CPP=/usr/ccs/lib/cpp
2281 else
2282 NON_GNU_CPP=/lib/cpp
2285 opsys=usg5-4-2 ;;
2286 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2288 unported=yes
2290 esac
2293 if test $unported = yes; then
2294 { { echo "$as_me:2294: error: Emacs hasn't been ported to \`${canonical}' systems.
2295 Check \`etc/MACHINES' for recognized configuration names." >&5
2296 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2297 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2298 { (exit 1); exit 1; }; }
2301 machfile="m/${machine}.h"
2302 opsysfile="s/${opsys}.h"
2304 #### Choose a compiler.
2305 test -n "$CC" && cc_specified=yes
2307 # Save the value of CFLAGS that the user specified.
2308 SPECIFIED_CFLAGS="$CFLAGS"
2310 case ${with_gcc} in
2311 "yes" ) CC="gcc" GCC=yes ;;
2312 "no" ) : ${CC=cc} ;;
2314 esac
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2323 echo "$as_me:2323: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 ac_save_IFS=$IFS; IFS=$ac_path_separator
2332 ac_dummy="$PATH"
2333 for ac_dir in $ac_dummy; do
2334 IFS=$ac_save_IFS
2335 test -z "$ac_dir" && ac_dir=.
2336 $as_executable_p "$ac_dir/$ac_word" || continue
2337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:2338: found $ac_dir/$ac_word" >&5
2339 break
2340 done
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346 echo "$as_me:2346: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6
2348 else
2349 echo "$as_me:2349: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2354 if test -z "$ac_cv_prog_CC"; then
2355 ac_ct_CC=$CC
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 echo "$as_me:2358: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 if test -n "$ac_ct_CC"; then
2364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 else
2366 ac_save_IFS=$IFS; IFS=$ac_path_separator
2367 ac_dummy="$PATH"
2368 for ac_dir in $ac_dummy; do
2369 IFS=$ac_save_IFS
2370 test -z "$ac_dir" && ac_dir=.
2371 $as_executable_p "$ac_dir/$ac_word" || continue
2372 ac_cv_prog_ac_ct_CC="gcc"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2374 break
2375 done
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:2381: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2383 else
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 CC=$ac_ct_CC
2389 else
2390 CC="$ac_cv_prog_CC"
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}cc; ac_word=$2
2397 echo "$as_me:2397: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 ac_save_IFS=$IFS; IFS=$ac_path_separator
2406 ac_dummy="$PATH"
2407 for ac_dir in $ac_dummy; do
2408 IFS=$ac_save_IFS
2409 test -z "$ac_dir" && ac_dir=.
2410 $as_executable_p "$ac_dir/$ac_word" || continue
2411 ac_cv_prog_CC="${ac_tool_prefix}cc"
2412 echo "$as_me:2412: found $ac_dir/$ac_word" >&5
2413 break
2414 done
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420 echo "$as_me:2420: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6
2422 else
2423 echo "$as_me:2423: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2428 if test -z "$ac_cv_prog_CC"; then
2429 ac_ct_CC=$CC
2430 # Extract the first word of "cc", so it can be a program name with args.
2431 set dummy cc; ac_word=$2
2432 echo "$as_me:2432: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$ac_ct_CC"; then
2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439 else
2440 ac_save_IFS=$IFS; IFS=$ac_path_separator
2441 ac_dummy="$PATH"
2442 for ac_dir in $ac_dummy; do
2443 IFS=$ac_save_IFS
2444 test -z "$ac_dir" && ac_dir=.
2445 $as_executable_p "$ac_dir/$ac_word" || continue
2446 ac_cv_prog_ac_ct_CC="cc"
2447 echo "$as_me:2447: found $ac_dir/$ac_word" >&5
2448 break
2449 done
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 echo "$as_me:2455: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6
2457 else
2458 echo "$as_me:2458: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2462 CC=$ac_ct_CC
2463 else
2464 CC="$ac_cv_prog_CC"
2468 if test -z "$CC"; then
2469 # Extract the first word of "cc", so it can be a program name with args.
2470 set dummy cc; ac_word=$2
2471 echo "$as_me:2471: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_prog_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 else
2479 ac_prog_rejected=no
2480 ac_save_IFS=$IFS; IFS=$ac_path_separator
2481 ac_dummy="$PATH"
2482 for ac_dir in $ac_dummy; do
2483 IFS=$ac_save_IFS
2484 test -z "$ac_dir" && ac_dir=.
2485 $as_executable_p "$ac_dir/$ac_word" || continue
2486 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2490 ac_cv_prog_CC="cc"
2491 echo "$as_me:2491: found $ac_dir/$ac_word" >&5
2492 break
2493 done
2495 if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2498 shift
2499 if test $# != 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2503 shift
2504 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2505 shift
2506 ac_cv_prog_CC="$@"
2511 CC=$ac_cv_prog_CC
2512 if test -n "$CC"; then
2513 echo "$as_me:2513: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6
2515 else
2516 echo "$as_me:2516: result: no" >&5
2517 echo "${ECHO_T}no" >&6
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 for ac_prog in cl
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 echo "$as_me:2527: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 ac_save_IFS=$IFS; IFS=$ac_path_separator
2536 ac_dummy="$PATH"
2537 for ac_dir in $ac_dummy; do
2538 IFS=$ac_save_IFS
2539 test -z "$ac_dir" && ac_dir=.
2540 $as_executable_p "$ac_dir/$ac_word" || continue
2541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2542 echo "$as_me:2542: found $ac_dir/$ac_word" >&5
2543 break
2544 done
2548 CC=$ac_cv_prog_CC
2549 if test -n "$CC"; then
2550 echo "$as_me:2550: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6
2552 else
2553 echo "$as_me:2553: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2557 test -n "$CC" && break
2558 done
2560 if test -z "$CC"; then
2561 ac_ct_CC=$CC
2562 for ac_prog in cl
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 echo "$as_me:2566: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 else
2574 ac_save_IFS=$IFS; IFS=$ac_path_separator
2575 ac_dummy="$PATH"
2576 for ac_dir in $ac_dummy; do
2577 IFS=$ac_save_IFS
2578 test -z "$ac_dir" && ac_dir=.
2579 $as_executable_p "$ac_dir/$ac_word" || continue
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:2581: found $ac_dir/$ac_word" >&5
2582 break
2583 done
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 echo "$as_me:2589: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6
2591 else
2592 echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2596 test -n "$ac_ct_CC" && break
2597 done
2599 CC=$ac_ct_CC
2604 test -z "$CC" && { { echo "$as_me:2604: error: no acceptable cc found in \$PATH" >&5
2605 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2606 { (exit 1); exit 1; }; }
2608 # Provide some information about the compiler.
2609 echo "$as_me:2609:" \
2610 "checking for C compiler version" >&5
2611 ac_compiler=`set X $ac_compile; echo $2`
2612 { (eval echo "$as_me:2612: \"$ac_compiler --version </dev/null >&5\"") >&5
2613 (eval $ac_compiler --version </dev/null >&5) 2>&5
2614 ac_status=$?
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:2617: \"$ac_compiler -v </dev/null >&5\"") >&5
2618 (eval $ac_compiler -v </dev/null >&5) 2>&5
2619 ac_status=$?
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:2622: \"$ac_compiler -V </dev/null >&5\"") >&5
2623 (eval $ac_compiler -V </dev/null >&5) 2>&5
2624 ac_status=$?
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line 2624 "configure"
2630 #include "confdefs.h"
2633 main ()
2637 return 0;
2639 _ACEOF
2640 ac_clean_files_save=$ac_clean_files
2641 ac_clean_files="$ac_clean_files a.out a.exe"
2642 # Try to create an executable without -o first, disregard a.out.
2643 # It will help us diagnose broken compilers, and finding out an intuition
2644 # of exeext.
2645 echo "$as_me:2645: checking for C compiler default output" >&5
2646 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2647 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2648 if { (eval echo "$as_me:2648: \"$ac_link_default\"") >&5
2649 (eval $ac_link_default) 2>&5
2650 ac_status=$?
2651 echo "$as_me:2651: \$? = $ac_status" >&5
2652 (exit $ac_status); }; then
2653 # Find the output, starting from the most likely. This scheme is
2654 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2655 # resort.
2656 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2657 ls a.out conftest 2>/dev/null;
2658 ls a.* conftest.* 2>/dev/null`; do
2659 case $ac_file in
2660 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2661 a.out ) # We found the default executable, but exeext='' is most
2662 # certainly right.
2663 break;;
2664 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2665 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2666 export ac_cv_exeext
2667 break;;
2668 * ) break;;
2669 esac
2670 done
2671 else
2672 echo "$as_me: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 { { echo "$as_me:2674: error: C compiler cannot create executables" >&5
2675 echo "$as_me: error: C compiler cannot create executables" >&2;}
2676 { (exit 77); exit 77; }; }
2679 ac_exeext=$ac_cv_exeext
2680 echo "$as_me:2680: result: $ac_file" >&5
2681 echo "${ECHO_T}$ac_file" >&6
2683 # Check the compiler produces executables we can run. If not, either
2684 # the compiler is broken, or we cross compile.
2685 echo "$as_me:2685: checking whether the C compiler works" >&5
2686 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2687 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2688 # If not cross compiling, check that we can run a simple program.
2689 if test "$cross_compiling" != yes; then
2690 if { ac_try='./$ac_file'
2691 { (eval echo "$as_me:2691: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:2694: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 cross_compiling=no
2697 else
2698 if test "$cross_compiling" = maybe; then
2699 cross_compiling=yes
2700 else
2701 { { echo "$as_me:2701: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'." >&5
2703 echo "$as_me: error: cannot run C compiled programs.
2704 If you meant to cross compile, use \`--host'." >&2;}
2705 { (exit 1); exit 1; }; }
2709 echo "$as_me:2709: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6
2712 rm -f a.out a.exe conftest$ac_cv_exeext
2713 ac_clean_files=$ac_clean_files_save
2714 # Check the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 echo "$as_me:2716: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2718 echo "$as_me:2718: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6
2721 echo "$as_me:2721: checking for executable suffix" >&5
2722 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2723 if { (eval echo "$as_me:2723: \"$ac_link\"") >&5
2724 (eval $ac_link) 2>&5
2725 ac_status=$?
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }; then
2728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2730 # work properly (i.e., refer to `conftest.exe'), while it won't with
2731 # `rm'.
2732 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2733 case $ac_file in
2734 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736 export ac_cv_exeext
2737 break;;
2738 * ) break;;
2739 esac
2740 done
2741 else
2742 { { echo "$as_me:2742: error: cannot compute EXEEXT: cannot compile and link" >&5
2743 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2744 { (exit 1); exit 1; }; }
2747 rm -f conftest$ac_cv_exeext
2748 echo "$as_me:2748: result: $ac_cv_exeext" >&5
2749 echo "${ECHO_T}$ac_cv_exeext" >&6
2751 rm -f conftest.$ac_ext
2752 EXEEXT=$ac_cv_exeext
2753 ac_exeext=$EXEEXT
2754 echo "$as_me:2754: checking for object suffix" >&5
2755 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2756 if test "${ac_cv_objext+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line 2755 "configure"
2761 #include "confdefs.h"
2764 main ()
2768 return 0;
2770 _ACEOF
2771 rm -f conftest.o conftest.obj
2772 if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>&5
2774 ac_status=$?
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2781 break;;
2782 esac
2783 done
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 { { echo "$as_me:2787: error: cannot compute OBJEXT: cannot compile" >&5
2788 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2789 { (exit 1); exit 1; }; }
2792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2794 echo "$as_me:2794: result: $ac_cv_objext" >&5
2795 echo "${ECHO_T}$ac_cv_objext" >&6
2796 OBJEXT=$ac_cv_objext
2797 ac_objext=$OBJEXT
2798 echo "$as_me:2798: checking whether we are using the GNU C compiler" >&5
2799 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2800 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line 2799 "configure"
2805 #include "confdefs.h"
2808 main ()
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2821 ac_status=$?
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_compiler_gnu=yes
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 ac_compiler_gnu=no
2836 rm -f conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2840 echo "$as_me:2840: result: $ac_cv_c_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2842 GCC=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 CFLAGS="-g"
2846 echo "$as_me:2846: checking whether $CC accepts -g" >&5
2847 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2848 if test "${ac_cv_prog_cc_g+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line 2847 "configure"
2853 #include "confdefs.h"
2856 main ()
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2866 ac_status=$?
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_prog_cc_g=yes
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2879 ac_cv_prog_cc_g=no
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2883 echo "$as_me:2883: result: $ac_cv_prog_cc_g" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2885 if test "$ac_test_CFLAGS" = set; then
2886 CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888 if test "$GCC" = yes; then
2889 CFLAGS="-g -O2"
2890 else
2891 CFLAGS="-g"
2893 else
2894 if test "$GCC" = yes; then
2895 CFLAGS="-O2"
2896 else
2897 CFLAGS=
2900 # Some people use a C++ compiler to compile C. Since we use `exit',
2901 # in C++ we need to declare it. In case someone uses the same compiler
2902 # for both compiling C and C++ we need to have the C++ compiler decide
2903 # the declaration of exit, since it's the most demanding environment.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #ifndef __cplusplus
2906 choke me
2907 #endif
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>&5
2912 ac_status=$?
2913 echo "$as_me:2913: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:2916: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 for ac_declaration in \
2923 '#include <stdlib.h>' \
2924 'extern "C" void std::exit (int) throw (); using std::exit;' \
2925 'extern "C" void std::exit (int); using std::exit;' \
2926 'extern "C" void exit (int) throw ();' \
2927 'extern "C" void exit (int);' \
2928 'void exit (int);'
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2926 "configure"
2932 #include "confdefs.h"
2933 #include <stdlib.h>
2934 $ac_declaration
2936 main ()
2938 exit (42);
2940 return 0;
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2946 ac_status=$?
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:2953: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 continue
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line 2958 "configure"
2964 #include "confdefs.h"
2965 $ac_declaration
2967 main ()
2969 exit (42);
2971 return 0;
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:2975: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>&5
2977 ac_status=$?
2978 echo "$as_me:2978: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -s conftest.$ac_objext'
2981 { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:2984: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 break
2987 else
2988 echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2991 rm -f conftest.$ac_objext conftest.$ac_ext
2992 done
2993 rm -f conftest*
2994 if test -n "$ac_declaration"; then
2995 echo '#ifdef __cplusplus' >>confdefs.h
2996 echo $ac_declaration >>confdefs.h
2997 echo '#endif' >>confdefs.h
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 rm -f conftest.$ac_objext conftest.$ac_ext
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 # On Suns, sometimes $CPP names a directory.
3012 if test -n "$CPP" && test -d "$CPP"; then
3013 CPP=
3016 #### Some systems specify a CPP to use unless we are using GCC.
3017 #### Now that we know whether we are using GCC, we can decide whether
3018 #### to use that one.
3019 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3020 then
3021 CPP="$NON_GNU_CPP"
3024 #### Some systems specify a CC to use unless we are using GCC.
3025 #### Now that we know whether we are using GCC, we can decide whether
3026 #### to use that one.
3027 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3028 test x$cc_specified != xyes
3029 then
3030 CC="$NON_GNU_CC"
3033 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3034 then
3035 CC="$CC $GCC_TEST_OPTIONS"
3038 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3039 then
3040 CC="$CC $NON_GCC_TEST_OPTIONS"
3043 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3044 then
3045 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3048 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3049 then
3050 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3053 #### Some other nice autoconf tests. If you add a test here which
3054 #### should make an entry in src/config.h, don't forget to add an
3055 #### #undef clause to src/config.h.in for autoconf to modify.
3057 echo "$as_me:3057: checking whether ln -s works" >&5
3058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3059 LN_S=$as_ln_s
3060 if test "$LN_S" = "ln -s"; then
3061 echo "$as_me:3061: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6
3063 else
3064 echo "$as_me:3064: result: no, using $LN_S" >&5
3065 echo "${ECHO_T}no, using $LN_S" >&6
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 echo "$as_me:3073: checking how to run the C preprocessor" >&5
3074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3075 # On Suns, sometimes $CPP names a directory.
3076 if test -n "$CPP" && test -d "$CPP"; then
3077 CPP=
3079 if test -z "$CPP"; then
3080 if test "${ac_cv_prog_CPP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 # Double quotes because CPP needs to be expanded
3084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3086 ac_preproc_ok=false
3087 for ac_c_preproc_warn_flag in '' yes
3089 # Use a header file that comes with gcc, so configuring glibc
3090 # with a fresh cross-compiler works.
3091 # On the NeXT, cc -E runs the code through the compiler's parser,
3092 # not just through cpp. "Syntax error" is here to catch this case.
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line 3089 "configure"
3095 #include "confdefs.h"
3096 #include <assert.h>
3097 Syntax error
3098 _ACEOF
3099 if { (eval echo "$as_me:3099: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 ac_status=$?
3102 egrep -v '^ *\+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:3105: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 else
3110 ac_cpp_err=
3112 else
3113 ac_cpp_err=yes
3115 if test -z "$ac_cpp_err"; then
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 # Broken: fails on valid input.
3121 continue
3123 rm -f conftest.err conftest.$ac_ext
3125 # OK, works on sane cases. Now check whether non-existent headers
3126 # can be detected and how.
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line 3123 "configure"
3129 #include "confdefs.h"
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:3132: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 egrep -v '^ *\+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:3138: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 else
3143 ac_cpp_err=
3145 else
3146 ac_cpp_err=yes
3148 if test -z "$ac_cpp_err"; then
3149 # Broken: success on invalid input.
3150 continue
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3158 rm -f conftest.err conftest.$ac_ext
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 break
3167 done
3168 ac_cv_prog_CPP=$CPP
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3175 echo "$as_me:3175: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line 3180 "configure"
3186 #include "confdefs.h"
3187 #include <assert.h>
3188 Syntax error
3189 _ACEOF
3190 if { (eval echo "$as_me:3190: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192 ac_status=$?
3193 egrep -v '^ *\+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:3196: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 else
3201 ac_cpp_err=
3203 else
3204 ac_cpp_err=yes
3206 if test -z "$ac_cpp_err"; then
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 # Broken: fails on valid input.
3212 continue
3214 rm -f conftest.err conftest.$ac_ext
3216 # OK, works on sane cases. Now check whether non-existent headers
3217 # can be detected and how.
3218 cat >conftest.$ac_ext <<_ACEOF
3219 #line 3214 "configure"
3220 #include "confdefs.h"
3221 #include <ac_nonexistent.h>
3222 _ACEOF
3223 if { (eval echo "$as_me:3223: \"$ac_cpp conftest.$ac_ext\"") >&5
3224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3225 ac_status=$?
3226 egrep -v '^ *\+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:3229: \$? = $ac_status" >&5
3230 (exit $ac_status); } >/dev/null; then
3231 if test -s conftest.err; then
3232 ac_cpp_err=$ac_c_preproc_warn_flag
3233 else
3234 ac_cpp_err=
3236 else
3237 ac_cpp_err=yes
3239 if test -z "$ac_cpp_err"; then
3240 # Broken: success on invalid input.
3241 continue
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3249 rm -f conftest.err conftest.$ac_ext
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3256 else
3257 { { echo "$as_me:3257: error: C preprocessor \"$CPP\" fails sanity check" >&5
3258 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3259 { (exit 1); exit 1; }; }
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 # Find a good install program. We prefer a C program (faster),
3269 # so one script is as good as another. But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3274 # AIX /bin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # ./install, which can be erroneously created by make from ./install.sh.
3280 echo "$as_me:3280: checking for a BSD compatible install" >&5
3281 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3282 if test -z "$INSTALL"; then
3283 if test "${ac_cv_path_install+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $PATH; do
3288 IFS=$ac_save_IFS
3289 # Account for people who put trailing slashes in PATH elements.
3290 case $ac_dir/ in
3291 / | ./ | .// | /cC/* \
3292 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3293 | /usr/ucb/* ) ;;
3295 # OSF1 and SCO ODT 3.0 have their own names for install.
3296 # Don't use installbsd from OSF since it installs stuff as root
3297 # by default.
3298 for ac_prog in ginstall scoinst install; do
3299 if $as_executable_p "$ac_dir/$ac_prog"; then
3300 if test $ac_prog = install &&
3301 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3302 # AIX install. It has an incompatible calling convention.
3304 elif test $ac_prog = install &&
3305 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3306 # program-specific install script used by HP pwplus--don't use.
3308 else
3309 ac_cv_path_install="$ac_dir/$ac_prog -c"
3310 break 2
3313 done
3315 esac
3316 done
3319 if test "${ac_cv_path_install+set}" = set; then
3320 INSTALL=$ac_cv_path_install
3321 else
3322 # As a last resort, use the slow shell script. We don't cache a
3323 # path for INSTALL within a source directory, because that will
3324 # break other packages using the cache if that directory is
3325 # removed, or if the path is relative.
3326 INSTALL=$ac_install_sh
3329 echo "$as_me:3329: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 for ac_prog in 'bison -y' byacc
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 echo "$as_me:3344: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_YACC+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -n "$YACC"; then
3350 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3351 else
3352 ac_save_IFS=$IFS; IFS=$ac_path_separator
3353 ac_dummy="$PATH"
3354 for ac_dir in $ac_dummy; do
3355 IFS=$ac_save_IFS
3356 test -z "$ac_dir" && ac_dir=.
3357 $as_executable_p "$ac_dir/$ac_word" || continue
3358 ac_cv_prog_YACC="$ac_prog"
3359 echo "$as_me:3359: found $ac_dir/$ac_word" >&5
3360 break
3361 done
3365 YACC=$ac_cv_prog_YACC
3366 if test -n "$YACC"; then
3367 echo "$as_me:3367: result: $YACC" >&5
3368 echo "${ECHO_T}$YACC" >&6
3369 else
3370 echo "$as_me:3370: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 test -n "$YACC" && break
3375 done
3376 test -n "$YACC" || YACC="yacc"
3378 if test "x$RANLIB" = x; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3382 echo "$as_me:3382: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_RANLIB+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$RANLIB"; then
3388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3389 else
3390 ac_save_IFS=$IFS; IFS=$ac_path_separator
3391 ac_dummy="$PATH"
3392 for ac_dir in $ac_dummy; do
3393 IFS=$ac_save_IFS
3394 test -z "$ac_dir" && ac_dir=.
3395 $as_executable_p "$ac_dir/$ac_word" || continue
3396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3397 echo "$as_me:3397: found $ac_dir/$ac_word" >&5
3398 break
3399 done
3403 RANLIB=$ac_cv_prog_RANLIB
3404 if test -n "$RANLIB"; then
3405 echo "$as_me:3405: result: $RANLIB" >&5
3406 echo "${ECHO_T}$RANLIB" >&6
3407 else
3408 echo "$as_me:3408: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3413 if test -z "$ac_cv_prog_RANLIB"; then
3414 ac_ct_RANLIB=$RANLIB
3415 # Extract the first word of "ranlib", so it can be a program name with args.
3416 set dummy ranlib; ac_word=$2
3417 echo "$as_me:3417: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 if test -n "$ac_ct_RANLIB"; then
3423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3424 else
3425 ac_save_IFS=$IFS; IFS=$ac_path_separator
3426 ac_dummy="$PATH"
3427 for ac_dir in $ac_dummy; do
3428 IFS=$ac_save_IFS
3429 test -z "$ac_dir" && ac_dir=.
3430 $as_executable_p "$ac_dir/$ac_word" || continue
3431 ac_cv_prog_ac_ct_RANLIB="ranlib"
3432 echo "$as_me:3432: found $ac_dir/$ac_word" >&5
3433 break
3434 done
3436 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3440 if test -n "$ac_ct_RANLIB"; then
3441 echo "$as_me:3441: result: $ac_ct_RANLIB" >&5
3442 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3443 else
3444 echo "$as_me:3444: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3448 RANLIB=$ac_ct_RANLIB
3449 else
3450 RANLIB="$ac_cv_prog_RANLIB"
3455 echo "$as_me:3455: checking for AIX" >&5
3456 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line 3453 "configure"
3459 #include "confdefs.h"
3460 #ifdef _AIX
3462 #endif
3464 _ACEOF
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466 egrep "yes" >/dev/null 2>&1; then
3467 echo "$as_me:3467: result: yes" >&5
3468 echo "${ECHO_T}yes" >&6
3469 cat >>confdefs.h <<\EOF
3470 #define _ALL_SOURCE 1
3473 else
3474 echo "$as_me:3474: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3477 rm -f conftest*
3479 #### Extract some information from the operating system and machine files.
3481 { echo "$as_me:3481: checking the machine- and system-dependent files to find out
3482 - which libraries the lib-src programs will want, and
3483 - whether the GNU malloc routines are usable..." >&5
3484 echo "$as_me: checking the machine- and system-dependent files to find out
3485 - which libraries the lib-src programs will want, and
3486 - whether the GNU malloc routines are usable..." >&6;}
3488 ### First figure out CFLAGS (which we use for running the compiler here)
3489 ### and REAL_CFLAGS (which we use for real compilation).
3490 ### The two are the same except on a few systems, where they are made
3491 ### different to work around various lossages. For example,
3492 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3493 ### as implying static linking.
3495 ### If the CFLAGS env var is specified, we use that value
3496 ### instead of the default.
3498 ### It's not important that this name contain the PID; you can't run
3499 ### two configures in the same directory and have anything work
3500 ### anyway.
3501 tempcname="conftest.c"
3503 echo '
3504 #include "'${srcdir}'/src/'${opsysfile}'"
3505 #include "'${srcdir}'/src/'${machfile}'"
3506 #ifndef LIBS_MACHINE
3507 #define LIBS_MACHINE
3508 #endif
3509 #ifndef LIBS_SYSTEM
3510 #define LIBS_SYSTEM
3511 #endif
3512 #ifndef C_SWITCH_SYSTEM
3513 #define C_SWITCH_SYSTEM
3514 #endif
3515 #ifndef C_SWITCH_MACHINE
3516 #define C_SWITCH_MACHINE
3517 #endif
3518 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3519 configure___ c_switch_system=C_SWITCH_SYSTEM
3520 configure___ c_switch_machine=C_SWITCH_MACHINE
3522 #ifndef LIB_X11_LIB
3523 #define LIB_X11_LIB -lX11
3524 #endif
3526 #ifndef LIBX11_MACHINE
3527 #define LIBX11_MACHINE
3528 #endif
3530 #ifndef LIBX11_SYSTEM
3531 #define LIBX11_SYSTEM
3532 #endif
3533 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3535 #ifdef UNEXEC
3536 configure___ unexec=UNEXEC
3537 #else
3538 configure___ unexec=unexec.o
3539 #endif
3541 #ifdef SYSTEM_MALLOC
3542 configure___ system_malloc=yes
3543 #else
3544 configure___ system_malloc=no
3545 #endif
3547 #ifdef USE_MMAP_FOR_BUFFERS
3548 configure___ use_mmap_for_buffers=yes
3549 #else
3550 configure___ use_mmap_for_buffers=no
3551 #endif
3553 #ifndef C_DEBUG_SWITCH
3554 #define C_DEBUG_SWITCH -g
3555 #endif
3557 #ifndef C_OPTIMIZE_SWITCH
3558 #ifdef __GNUC__
3559 #define C_OPTIMIZE_SWITCH -O2
3560 #else
3561 #define C_OPTIMIZE_SWITCH -O
3562 #endif
3563 #endif
3565 #ifndef LD_SWITCH_MACHINE
3566 #define LD_SWITCH_MACHINE
3567 #endif
3569 #ifndef LD_SWITCH_SYSTEM
3570 #define LD_SWITCH_SYSTEM
3571 #endif
3573 #ifndef LD_SWITCH_X_SITE_AUX
3574 #define LD_SWITCH_X_SITE_AUX
3575 #endif
3577 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3578 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3580 #ifdef THIS_IS_CONFIGURE
3582 /* Get the CFLAGS for tests in configure. */
3583 #ifdef __GNUC__
3584 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3585 #else
3586 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3587 #endif
3589 #else /* not THIS_IS_CONFIGURE */
3591 /* Get the CFLAGS for real compilation. */
3592 #ifdef __GNUC__
3593 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3594 #else
3595 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3596 #endif
3598 #endif /* not THIS_IS_CONFIGURE */
3599 ' > ${tempcname}
3601 # The value of CPP is a quoted variable reference, so we need to do this
3602 # to get its actual value...
3603 CPP=`eval "echo $CPP"`
3604 eval `${CPP} -Isrc ${tempcname} \
3605 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3606 if test "x$SPECIFIED_CFLAGS" = x; then
3607 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3608 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3609 else
3610 REAL_CFLAGS="$CFLAGS"
3612 rm ${tempcname}
3614 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3616 ### Make sure subsequent tests use flags consistent with the build flags.
3618 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3619 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3620 else
3621 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3624 # Check whether --enable-largefile or --disable-largefile was given.
3625 if test "${enable_largefile+set}" = set; then
3626 enableval="$enable_largefile"
3629 if test "$enable_largefile" != no; then
3631 echo "$as_me:3631: checking for special C compiler options needed for large files" >&5
3632 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3633 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 ac_cv_sys_largefile_CC=no
3637 if test "$GCC" != yes; then
3638 ac_save_CC=$CC
3639 while :; do
3640 # IRIX 6.2 and later do not support large files by default,
3641 # so use the C compiler's -n32 option if that helps.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line 3638 "configure"
3644 #include "confdefs.h"
3645 #include <sys/types.h>
3646 /* Check that off_t can represent 2**63 - 1 correctly.
3647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3648 since some C++ compilers masquerading as C compilers
3649 incorrectly reject 9223372036854775807. */
3650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3652 && LARGE_OFF_T % 2147483647 == 1)
3653 ? 1 : -1];
3655 main ()
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>&5
3665 ac_status=$?
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:3672: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 break
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 rm -f conftest.$ac_objext
3680 CC="$CC -n32"
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3684 ac_status=$?
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:3688: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:3691: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_sys_largefile_CC=' -n32'; break
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 rm -f conftest.$ac_objext
3699 break
3700 done
3701 CC=$ac_save_CC
3702 rm -f conftest.$ac_ext
3705 echo "$as_me:3705: result: $ac_cv_sys_largefile_CC" >&5
3706 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3707 if test "$ac_cv_sys_largefile_CC" != no; then
3708 CC=$CC$ac_cv_sys_largefile_CC
3711 echo "$as_me:3711: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3712 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3713 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 while :; do
3717 ac_cv_sys_file_offset_bits=no
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line 3714 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3722 /* Check that off_t can represent 2**63 - 1 correctly.
3723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3724 since some C++ compilers masquerading as C compilers
3725 incorrectly reject 9223372036854775807. */
3726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3728 && LARGE_OFF_T % 2147483647 == 1)
3729 ? 1 : -1];
3731 main ()
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:3739: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>&5
3741 ac_status=$?
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:3748: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 break
3751 else
3752 echo "$as_me: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3752 "configure"
3758 #include "confdefs.h"
3759 #define _FILE_OFFSET_BITS 64
3760 #include <sys/types.h>
3761 /* Check that off_t can represent 2**63 - 1 correctly.
3762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3763 since some C++ compilers masquerading as C compilers
3764 incorrectly reject 9223372036854775807. */
3765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3767 && LARGE_OFF_T % 2147483647 == 1)
3768 ? 1 : -1];
3770 main ()
3774 return 0;
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3780 ac_status=$?
3781 echo "$as_me:3781: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:3784: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:3787: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_sys_file_offset_bits=64; break
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 rm -f conftest.$ac_objext conftest.$ac_ext
3795 break
3796 done
3798 echo "$as_me:3798: result: $ac_cv_sys_file_offset_bits" >&5
3799 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3800 if test "$ac_cv_sys_file_offset_bits" != no; then
3802 cat >>confdefs.h <<EOF
3803 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3807 rm -f conftest*
3808 echo "$as_me:3808: checking for _LARGE_FILES value needed for large files" >&5
3809 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3810 if test "${ac_cv_sys_large_files+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 while :; do
3814 ac_cv_sys_large_files=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line 3811 "configure"
3817 #include "confdefs.h"
3818 #include <sys/types.h>
3819 /* Check that off_t can represent 2**63 - 1 correctly.
3820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3821 since some C++ compilers masquerading as C compilers
3822 incorrectly reject 9223372036854775807. */
3823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3825 && LARGE_OFF_T % 2147483647 == 1)
3826 ? 1 : -1];
3828 main ()
3832 return 0;
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3838 ac_status=$?
3839 echo "$as_me:3839: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:3845: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 break
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3853 cat >conftest.$ac_ext <<_ACEOF
3854 #line 3849 "configure"
3855 #include "confdefs.h"
3856 #define _LARGE_FILES 1
3857 #include <sys/types.h>
3858 /* Check that off_t can represent 2**63 - 1 correctly.
3859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3860 since some C++ compilers masquerading as C compilers
3861 incorrectly reject 9223372036854775807. */
3862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3864 && LARGE_OFF_T % 2147483647 == 1)
3865 ? 1 : -1];
3867 main ()
3871 return 0;
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
3877 ac_status=$?
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:3884: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_cv_sys_large_files=1; break
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 rm -f conftest.$ac_objext conftest.$ac_ext
3892 break
3893 done
3895 echo "$as_me:3895: result: $ac_cv_sys_large_files" >&5
3896 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3897 if test "$ac_cv_sys_large_files" != no; then
3899 cat >>confdefs.h <<EOF
3900 #define _LARGE_FILES $ac_cv_sys_large_files
3904 rm -f conftest*
3907 if test "${with_sound}" != "no"; then
3908 # Sound support for GNU/Linux and the free BSDs.
3910 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3913 echo "$as_me:3913: checking for $ac_header" >&5
3914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line 3914 "configure"
3920 #include "confdefs.h"
3921 #include <$ac_header>
3922 _ACEOF
3923 if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5
3924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3925 ac_status=$?
3926 egrep -v '^ *\+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } >/dev/null; then
3931 if test -s conftest.err; then
3932 ac_cpp_err=$ac_c_preproc_warn_flag
3933 else
3934 ac_cpp_err=
3936 else
3937 ac_cpp_err=yes
3939 if test -z "$ac_cpp_err"; then
3940 eval "$as_ac_Header=yes"
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 eval "$as_ac_Header=no"
3946 rm -f conftest.err conftest.$ac_ext
3948 echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3951 cat >>confdefs.h <<EOF
3952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3956 done
3958 # Emulation library used on NetBSD.
3959 echo "$as_me:3959: checking for _oss_ioctl in -lossaudio" >&5
3960 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3961 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 ac_check_lib_save_LIBS=$LIBS
3965 LIBS="-lossaudio $LIBS"
3966 cat >conftest.$ac_ext <<_ACEOF
3967 #line 3962 "configure"
3968 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 #ifdef __cplusplus
3972 extern "C"
3973 #endif
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976 char _oss_ioctl ();
3978 main ()
3980 _oss_ioctl ();
3982 return 0;
3984 _ACEOF
3985 rm -f conftest.$ac_objext conftest$ac_exeext
3986 if { (eval echo "$as_me:3986: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>&5
3988 ac_status=$?
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -s conftest$ac_exeext'
3992 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:3995: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_cv_lib_ossaudio__oss_ioctl=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 ac_cv_lib_ossaudio__oss_ioctl=no
4003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4004 LIBS=$ac_check_lib_save_LIBS
4006 echo "$as_me:4006: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4007 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4008 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4009 LIBSOUND=-lossaudio
4010 else
4011 LIBSOUND=
4016 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4017 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4018 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4021 echo "$as_me:4021: checking for $ac_header" >&5
4022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line 4022 "configure"
4028 #include "confdefs.h"
4029 #include <$ac_header>
4030 _ACEOF
4031 if { (eval echo "$as_me:4031: \"$ac_cpp conftest.$ac_ext\"") >&5
4032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4033 ac_status=$?
4034 egrep -v '^ *\+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:4037: \$? = $ac_status" >&5
4038 (exit $ac_status); } >/dev/null; then
4039 if test -s conftest.err; then
4040 ac_cpp_err=$ac_c_preproc_warn_flag
4041 else
4042 ac_cpp_err=
4044 else
4045 ac_cpp_err=yes
4047 if test -z "$ac_cpp_err"; then
4048 eval "$as_ac_Header=yes"
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 eval "$as_ac_Header=no"
4054 rm -f conftest.err conftest.$ac_ext
4056 echo "$as_me:4056: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<EOF
4060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 done
4066 echo "$as_me:4066: checking for ANSI C header files" >&5
4067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4068 if test "${ac_cv_header_stdc+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4067 "configure"
4073 #include "confdefs.h"
4074 #include <stdlib.h>
4075 #include <stdarg.h>
4076 #include <string.h>
4077 #include <float.h>
4079 _ACEOF
4080 if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 egrep -v '^ *\+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:4086: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 else
4091 ac_cpp_err=
4093 else
4094 ac_cpp_err=yes
4096 if test -z "$ac_cpp_err"; then
4097 ac_cv_header_stdc=yes
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 ac_cv_header_stdc=no
4103 rm -f conftest.err conftest.$ac_ext
4105 if test $ac_cv_header_stdc = yes; then
4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 #line 4103 "configure"
4109 #include "confdefs.h"
4110 #include <string.h>
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 egrep "memchr" >/dev/null 2>&1; then
4116 else
4117 ac_cv_header_stdc=no
4119 rm -f conftest*
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line 4121 "configure"
4127 #include "confdefs.h"
4128 #include <stdlib.h>
4130 _ACEOF
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 egrep "free" >/dev/null 2>&1; then
4134 else
4135 ac_cv_header_stdc=no
4137 rm -f conftest*
4141 if test $ac_cv_header_stdc = yes; then
4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4143 if test "$cross_compiling" = yes; then
4145 else
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line 4142 "configure"
4148 #include "confdefs.h"
4149 #include <ctype.h>
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 #else
4154 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4155 || ('j' <= (c) && (c) <= 'r') \
4156 || ('s' <= (c) && (c) <= 'z'))
4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4158 #endif
4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162 main ()
4164 int i;
4165 for (i = 0; i < 256; i++)
4166 if (XOR (islower (i), ISLOWER (i))
4167 || toupper (i) != TOUPPER (i))
4168 exit(2);
4169 exit (0);
4171 _ACEOF
4172 rm -f conftest$ac_exeext
4173 if { (eval echo "$as_me:4173: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4175 ac_status=$?
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178 { (eval echo "$as_me:4178: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:4181: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4184 else
4185 echo "$as_me: program exited with status $ac_status" >&5
4186 echo "$as_me: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 ac_cv_header_stdc=no
4190 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194 echo "$as_me:4194: result: $ac_cv_header_stdc" >&5
4195 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4196 if test $ac_cv_header_stdc = yes; then
4198 cat >>confdefs.h <<\EOF
4199 #define STDC_HEADERS 1
4204 echo "$as_me:4204: checking whether time.h and sys/time.h may both be included" >&5
4205 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4206 if test "${ac_cv_header_time+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line 4205 "configure"
4211 #include "confdefs.h"
4212 #include <sys/types.h>
4213 #include <sys/time.h>
4214 #include <time.h>
4217 main ()
4219 if ((struct tm *) 0)
4220 return 0;
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:4226: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4228 ac_status=$?
4229 echo "$as_me:4229: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:4232: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_header_time=yes
4238 else
4239 echo "$as_me: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4241 ac_cv_header_time=no
4243 rm -f conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me:4245: result: $ac_cv_header_time" >&5
4246 echo "${ECHO_T}$ac_cv_header_time" >&6
4247 if test $ac_cv_header_time = yes; then
4249 cat >>confdefs.h <<\EOF
4250 #define TIME_WITH_SYS_TIME 1
4255 echo "$as_me:4255: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4256 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4257 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line 4256 "configure"
4262 #include "confdefs.h"
4263 #include <sys/types.h>
4264 #include <signal.h>
4265 /* NetBSD declares sys_siglist in unistd.h. */
4266 #if HAVE_UNISTD_H
4267 # include <unistd.h>
4268 #endif
4271 main ()
4273 char *msg = *(sys_siglist + 1);
4275 return 0;
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:4279: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>&5
4281 ac_status=$?
4282 echo "$as_me:4282: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:4285: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:4288: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_decl_sys_siglist=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 ac_cv_decl_sys_siglist=no
4296 rm -f conftest.$ac_objext conftest.$ac_ext
4298 echo "$as_me:4298: result: $ac_cv_decl_sys_siglist" >&5
4299 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4300 if test $ac_cv_decl_sys_siglist = yes; then
4302 cat >>confdefs.h <<\EOF
4303 #define SYS_SIGLIST_DECLARED 1
4308 echo "$as_me:4308: checking for sys/wait.h that is POSIX.1 compatible" >&5
4309 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4310 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line 4309 "configure"
4315 #include "confdefs.h"
4316 #include <sys/types.h>
4317 #include <sys/wait.h>
4318 #ifndef WEXITSTATUS
4319 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4320 #endif
4321 #ifndef WIFEXITED
4322 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4323 #endif
4326 main ()
4328 int s;
4329 wait (&s);
4330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:4336: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>&5
4338 ac_status=$?
4339 echo "$as_me:4339: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:4342: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:4345: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_header_sys_wait_h=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 ac_cv_header_sys_wait_h=no
4353 rm -f conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:4355: result: $ac_cv_header_sys_wait_h" >&5
4356 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4357 if test $ac_cv_header_sys_wait_h = yes; then
4359 cat >>confdefs.h <<\EOF
4360 #define HAVE_SYS_WAIT_H 1
4365 echo "$as_me:4365: checking for struct utimbuf" >&5
4366 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4367 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line 4366 "configure"
4372 #include "confdefs.h"
4373 #ifdef TIME_WITH_SYS_TIME
4374 #include <sys/time.h>
4375 #include <time.h>
4376 #else
4377 #ifdef HAVE_SYS_TIME_H
4378 #include <sys/time.h>
4379 #else
4380 #include <time.h>
4381 #endif
4382 #endif
4383 #ifdef HAVE_UTIME_H
4384 #include <utime.h>
4385 #endif
4387 main ()
4389 static struct utimbuf x; x.actime = x.modtime;
4391 return 0;
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:4395: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:4398: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:4401: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:4404: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 emacs_cv_struct_utimbuf=yes
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 emacs_cv_struct_utimbuf=no
4412 rm -f conftest.$ac_objext conftest.$ac_ext
4414 echo "$as_me:4414: result: $emacs_cv_struct_utimbuf" >&5
4415 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4416 if test $emacs_cv_struct_utimbuf = yes; then
4418 cat >>confdefs.h <<\EOF
4419 #define HAVE_STRUCT_UTIMBUF 1
4424 echo "$as_me:4424: checking return type of signal handlers" >&5
4425 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4426 if test "${ac_cv_type_signal+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 cat >conftest.$ac_ext <<_ACEOF
4430 #line 4425 "configure"
4431 #include "confdefs.h"
4432 #include <sys/types.h>
4433 #include <signal.h>
4434 #ifdef signal
4435 # undef signal
4436 #endif
4437 #ifdef __cplusplus
4438 extern "C" void (*signal (int, void (*)(int)))(int);
4439 #else
4440 void (*signal ()) ();
4441 #endif
4444 main ()
4446 int i;
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:4458: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:4461: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_type_signal=void
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 ac_cv_type_signal=int
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4471 echo "$as_me:4471: result: $ac_cv_type_signal" >&5
4472 echo "${ECHO_T}$ac_cv_type_signal" >&6
4474 cat >>confdefs.h <<EOF
4475 #define RETSIGTYPE $ac_cv_type_signal
4478 echo "$as_me:4478: checking for speed_t" >&5
4479 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4480 if test "${emacs_cv_speed_t+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line 4479 "configure"
4485 #include "confdefs.h"
4486 #include <termios.h>
4488 main ()
4490 speed_t x = 1;
4492 return 0;
4494 _ACEOF
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:4496: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>&5
4498 ac_status=$?
4499 echo "$as_me:4499: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:4502: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:4505: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 emacs_cv_speed_t=yes
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 emacs_cv_speed_t=no
4513 rm -f conftest.$ac_objext conftest.$ac_ext
4515 echo "$as_me:4515: result: $emacs_cv_speed_t" >&5
4516 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4517 if test $emacs_cv_speed_t = yes; then
4519 cat >>confdefs.h <<\EOF
4520 #define HAVE_SPEED_T 1
4525 echo "$as_me:4525: checking for struct timeval" >&5
4526 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4527 if test "${emacs_cv_struct_timeval+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line 4526 "configure"
4532 #include "confdefs.h"
4533 #ifdef TIME_WITH_SYS_TIME
4534 #include <sys/time.h>
4535 #include <time.h>
4536 #else
4537 #ifdef HAVE_SYS_TIME_H
4538 #include <sys/time.h>
4539 #else
4540 #include <time.h>
4541 #endif
4542 #endif
4544 main ()
4546 static struct timeval x; x.tv_sec = x.tv_usec;
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>&5
4554 ac_status=$?
4555 echo "$as_me:4555: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:4558: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:4561: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 emacs_cv_struct_timeval=yes
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4567 emacs_cv_struct_timeval=no
4569 rm -f conftest.$ac_objext conftest.$ac_ext
4571 echo "$as_me:4571: result: $emacs_cv_struct_timeval" >&5
4572 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4573 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4574 if test $emacs_cv_struct_timeval = yes; then
4576 cat >>confdefs.h <<\EOF
4577 #define HAVE_TIMEVAL 1
4582 echo "$as_me:4582: checking for struct exception" >&5
4583 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4584 if test "${emacs_cv_struct_exception+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line 4583 "configure"
4589 #include "confdefs.h"
4590 #include <math.h>
4592 main ()
4594 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4596 return 0;
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:4600: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:4603: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:4606: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:4609: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 emacs_cv_struct_exception=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 emacs_cv_struct_exception=no
4617 rm -f conftest.$ac_objext conftest.$ac_ext
4619 echo "$as_me:4619: result: $emacs_cv_struct_exception" >&5
4620 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4621 HAVE_EXCEPTION=$emacs_cv_struct_exception
4622 if test $emacs_cv_struct_exception != yes; then
4624 cat >>confdefs.h <<\EOF
4625 #define NO_MATHERR 1
4630 echo "$as_me:4630: checking whether struct tm is in sys/time.h or time.h" >&5
4631 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4632 if test "${ac_cv_struct_tm+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line 4631 "configure"
4637 #include "confdefs.h"
4638 #include <sys/types.h>
4639 #include <time.h>
4642 main ()
4644 struct tm *tp; tp->tm_sec;
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:4650: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>&5
4652 ac_status=$?
4653 echo "$as_me:4653: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:4656: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:4659: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_struct_tm=time.h
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 ac_cv_struct_tm=sys/time.h
4667 rm -f conftest.$ac_objext conftest.$ac_ext
4669 echo "$as_me:4669: result: $ac_cv_struct_tm" >&5
4670 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4671 if test $ac_cv_struct_tm = sys/time.h; then
4673 cat >>confdefs.h <<\EOF
4674 #define TM_IN_SYS_TIME 1
4679 echo "$as_me:4679: checking for struct tm.tm_zone" >&5
4680 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4681 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line 4680 "configure"
4686 #include "confdefs.h"
4687 #include <sys/types.h>
4688 #include <$ac_cv_struct_tm>
4691 main ()
4693 static struct tm ac_aggr;
4694 if (ac_aggr.tm_zone)
4695 return 0;
4697 return 0;
4699 _ACEOF
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:4701: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>&5
4703 ac_status=$?
4704 echo "$as_me:4704: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:4707: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:4710: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_member_struct_tm_tm_zone=yes
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 ac_cv_member_struct_tm_tm_zone=no
4718 rm -f conftest.$ac_objext conftest.$ac_ext
4720 echo "$as_me:4720: result: $ac_cv_member_struct_tm_tm_zone" >&5
4721 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4722 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4724 cat >>confdefs.h <<EOF
4725 #define HAVE_STRUCT_TM_TM_ZONE 1
4730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4732 cat >>confdefs.h <<\EOF
4733 #define HAVE_TM_ZONE 1
4736 else
4737 echo "$as_me:4737: checking for tzname" >&5
4738 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4739 if test "${ac_cv_var_tzname+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line 4738 "configure"
4744 #include "confdefs.h"
4745 #include <time.h>
4746 #ifndef tzname /* For SGI. */
4747 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4748 #endif
4751 main ()
4753 atoi(*tzname);
4755 return 0;
4757 _ACEOF
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:4759: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4761 ac_status=$?
4762 echo "$as_me:4762: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -s conftest$ac_exeext'
4765 { (eval echo "$as_me:4765: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:4768: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_cv_var_tzname=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4774 ac_cv_var_tzname=no
4776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4778 echo "$as_me:4778: result: $ac_cv_var_tzname" >&5
4779 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4780 if test $ac_cv_var_tzname = yes; then
4782 cat >>confdefs.h <<\EOF
4783 #define HAVE_TZNAME 1
4789 echo "$as_me:4789: checking for struct tm.tm_gmtoff" >&5
4790 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4791 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 cat >conftest.$ac_ext <<_ACEOF
4795 #line 4790 "configure"
4796 #include "confdefs.h"
4797 #include <time.h>
4800 main ()
4802 static struct tm ac_aggr;
4803 if (ac_aggr.tm_gmtoff)
4804 return 0;
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:4810: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4812 ac_status=$?
4813 echo "$as_me:4813: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:4816: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:4819: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_member_struct_tm_tm_gmtoff=yes
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 ac_cv_member_struct_tm_tm_gmtoff=no
4827 rm -f conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:4829: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4830 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4831 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4833 cat >>confdefs.h <<\EOF
4834 #define HAVE_TM_GMTOFF 1
4839 echo "$as_me:4839: checking for $CC option to accept ANSI C" >&5
4840 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4841 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 ac_cv_prog_cc_stdc=no
4845 ac_save_CC=$CC
4846 cat >conftest.$ac_ext <<_ACEOF
4847 #line 4842 "configure"
4848 #include "confdefs.h"
4849 #include <stdarg.h>
4850 #include <stdio.h>
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4857 char **p;
4858 int i;
4860 return p[i];
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4864 char *s;
4865 va_list v;
4866 va_start (v,p);
4867 s = g (p, va_arg (v,int));
4868 va_end (v);
4869 return s;
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4878 main ()
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 return 0;
4884 _ACEOF
4885 # Don't try gcc -ansi; that turns off useful extensions and
4886 # breaks some systems' header files.
4887 # AIX -qlanglvl=ansi
4888 # Ultrix and OSF/1 -std1
4889 # HP-UX 10.20 and later -Ae
4890 # HP-UX older versions -Aa -D_HPUX_SOURCE
4891 # SVR4 -Xc -D__EXTENSIONS__
4892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894 CC="$ac_save_CC $ac_arg"
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>&5
4898 ac_status=$?
4899 echo "$as_me:4899: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_prog_cc_stdc=$ac_arg
4908 break
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4913 rm -f conftest.$ac_objext
4914 done
4915 rm -f conftest.$ac_ext conftest.$ac_objext
4916 CC=$ac_save_CC
4920 case "x$ac_cv_prog_cc_stdc" in
4921 x|xno)
4922 echo "$as_me:4922: result: none needed" >&5
4923 echo "${ECHO_T}none needed" >&6 ;;
4925 echo "$as_me:4925: result: $ac_cv_prog_cc_stdc" >&5
4926 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4927 CC="$CC $ac_cv_prog_cc_stdc" ;;
4928 esac
4930 echo "$as_me:4930: checking for function prototypes" >&5
4931 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4932 if test "$ac_cv_prog_cc_stdc" != no; then
4933 echo "$as_me:4933: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6
4936 cat >>confdefs.h <<\EOF
4937 #define PROTOTYPES 1
4940 else
4941 echo "$as_me:4941: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4945 echo "$as_me:4945: checking for working volatile" >&5
4946 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4947 if test "${ac_cv_c_volatile+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line 4946 "configure"
4952 #include "confdefs.h"
4955 main ()
4958 volatile int x;
4959 int * volatile y;
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:4965: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>&5
4967 ac_status=$?
4968 echo "$as_me:4968: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:4971: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:4974: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_c_volatile=yes
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4980 ac_cv_c_volatile=no
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4984 echo "$as_me:4984: result: $ac_cv_c_volatile" >&5
4985 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4986 if test $ac_cv_c_volatile = no; then
4988 cat >>confdefs.h <<\EOF
4989 #define volatile
4994 echo "$as_me:4994: checking for an ANSI C-conforming const" >&5
4995 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4996 if test "${ac_cv_c_const+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line 4995 "configure"
5001 #include "confdefs.h"
5004 main ()
5006 /* FIXME: Include the comments suggested by Paul. */
5007 #ifndef __cplusplus
5008 /* Ultrix mips cc rejects this. */
5009 typedef int charset[2];
5010 const charset x;
5011 /* SunOS 4.1.1 cc rejects this. */
5012 char const *const *ccp;
5013 char **p;
5014 /* NEC SVR4.0.2 mips cc rejects this. */
5015 struct point {int x, y;};
5016 static struct point const zero = {0,0};
5017 /* AIX XL C 1.02.0.0 rejects this.
5018 It does not let you subtract one const X* pointer from another in
5019 an arm of an if-expression whose if-part is not a constant
5020 expression */
5021 const char *g = "string";
5022 ccp = &g + (g ? g-g : 0);
5023 /* HPUX 7.0 cc rejects these. */
5024 ++ccp;
5025 p = (char**) ccp;
5026 ccp = (char const *const *) p;
5027 { /* SCO 3.2v4 cc rejects this. */
5028 char *t;
5029 char const *s = 0 ? (char *) 0 : (char const *) 0;
5031 *t++ = 0;
5033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5034 int x[] = {25, 17};
5035 const int *foo = &x[0];
5036 ++foo;
5038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5039 typedef const int *iptr;
5040 iptr p = 0;
5041 ++p;
5043 { /* AIX XL C 1.02.0.0 rejects this saying
5044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5045 struct s { int j; const int *ap[3]; };
5046 struct s *b; b->j = 5;
5048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5049 const int foo = 10;
5051 #endif
5054 return 0;
5056 _ACEOF
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:5058: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>&5
5060 ac_status=$?
5061 echo "$as_me:5061: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest.$ac_objext'
5064 { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:5067: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_c_const=yes
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 ac_cv_c_const=no
5075 rm -f conftest.$ac_objext conftest.$ac_ext
5077 echo "$as_me:5077: result: $ac_cv_c_const" >&5
5078 echo "${ECHO_T}$ac_cv_c_const" >&6
5079 if test $ac_cv_c_const = no; then
5081 cat >>confdefs.h <<\EOF
5082 #define const
5087 echo "$as_me:5087: checking for void * support" >&5
5088 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5089 if test "${emacs_cv_void_star+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line 5088 "configure"
5094 #include "confdefs.h"
5097 main ()
5099 void * foo;
5101 return 0;
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5107 ac_status=$?
5108 echo "$as_me:5108: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:5111: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:5114: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 emacs_cv_void_star=yes
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 emacs_cv_void_star=no
5122 rm -f conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:5124: result: $emacs_cv_void_star" >&5
5125 echo "${ECHO_T}$emacs_cv_void_star" >&6
5126 if test $emacs_cv_void_star = yes; then
5127 cat >>confdefs.h <<\EOF
5128 #define POINTER_TYPE void
5131 else
5132 cat >>confdefs.h <<\EOF
5133 #define POINTER_TYPE char
5138 echo "$as_me:5138: checking whether ${MAKE-make} sets \${MAKE}" >&5
5139 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5140 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5141 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 cat >conftest.make <<\EOF
5145 all:
5146 @echo 'ac_maketemp="${MAKE}"'
5148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5149 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5150 if test -n "$ac_maketemp"; then
5151 eval ac_cv_prog_make_${ac_make}_set=yes
5152 else
5153 eval ac_cv_prog_make_${ac_make}_set=no
5155 rm -f conftest.make
5157 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5158 echo "$as_me:5158: result: yes" >&5
5159 echo "${ECHO_T}yes" >&6
5160 SET_MAKE=
5161 else
5162 echo "$as_me:5162: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 SET_MAKE="MAKE=${MAKE-make}"
5167 echo "$as_me:5167: checking for long file names" >&5
5168 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5169 if test "${ac_cv_sys_long_file_names+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 ac_cv_sys_long_file_names=yes
5173 # Test for long file names in all the places we know might matter:
5174 # . the current directory, where building will happen
5175 # $prefix/lib where we will be installing things
5176 # $exec_prefix/lib likewise
5177 # eval it to expand exec_prefix.
5178 # $TMPDIR if set, where it might want to write temporary files
5179 # if $TMPDIR is not set:
5180 # /tmp where it might want to write temporary files
5181 # /var/tmp likewise
5182 # /usr/tmp likewise
5183 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5184 ac_tmpdirs=$TMPDIR
5185 else
5186 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5188 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5189 test -d $ac_dir || continue
5190 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5191 ac_xdir=$ac_dir/cf$$
5192 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5193 ac_tf1=$ac_xdir/conftest9012345
5194 ac_tf2=$ac_xdir/conftest9012346
5195 (echo 1 >$ac_tf1) 2>/dev/null
5196 (echo 2 >$ac_tf2) 2>/dev/null
5197 ac_val=`cat $ac_tf1 2>/dev/null`
5198 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5199 ac_cv_sys_long_file_names=no
5200 rm -rf $ac_xdir 2>/dev/null
5201 break
5203 rm -rf $ac_xdir 2>/dev/null
5204 done
5206 echo "$as_me:5206: result: $ac_cv_sys_long_file_names" >&5
5207 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5208 if test $ac_cv_sys_long_file_names = yes; then
5210 cat >>confdefs.h <<\EOF
5211 #define HAVE_LONG_FILE_NAMES 1
5216 #### Choose a window system.
5218 echo "$as_me:5218: checking for X" >&5
5219 echo $ECHO_N "checking for X... $ECHO_C" >&6
5221 # Check whether --with-x or --without-x was given.
5222 if test "${with_x+set}" = set; then
5223 withval="$with_x"
5226 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5227 if test "x$with_x" = xno; then
5228 # The user explicitly disabled X.
5229 have_x=disabled
5230 else
5231 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5232 # Both variables are already set.
5233 have_x=yes
5234 else
5235 if test "${ac_cv_have_x+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 # One or both of the vars are not set, and there is no cached value.
5239 ac_x_includes=no ac_x_libraries=no
5240 rm -fr conftest.dir
5241 if mkdir conftest.dir; then
5242 cd conftest.dir
5243 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5244 cat >Imakefile <<'EOF'
5245 acfindx:
5246 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5248 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5250 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5251 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5252 for ac_extension in a so sl; do
5253 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5254 test -f $ac_im_libdir/libX11.$ac_extension; then
5255 ac_im_usrlibdir=$ac_im_libdir; break
5257 done
5258 # Screen out bogus values from the imake configuration. They are
5259 # bogus both because they are the default anyway, and because
5260 # using them would break gcc on systems where it needs fixed includes.
5261 case $ac_im_incroot in
5262 /usr/include) ;;
5263 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5264 esac
5265 case $ac_im_usrlibdir in
5266 /usr/lib | /lib) ;;
5267 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5268 esac
5270 cd ..
5271 rm -fr conftest.dir
5274 # Standard set of common directories for X headers.
5275 # Check X11 before X11Rn because it is often a symlink to the current release.
5276 ac_x_header_dirs='
5277 /usr/X11/include
5278 /usr/X11R6/include
5279 /usr/X11R5/include
5280 /usr/X11R4/include
5282 /usr/include/X11
5283 /usr/include/X11R6
5284 /usr/include/X11R5
5285 /usr/include/X11R4
5287 /usr/local/X11/include
5288 /usr/local/X11R6/include
5289 /usr/local/X11R5/include
5290 /usr/local/X11R4/include
5292 /usr/local/include/X11
5293 /usr/local/include/X11R6
5294 /usr/local/include/X11R5
5295 /usr/local/include/X11R4
5297 /usr/X386/include
5298 /usr/x386/include
5299 /usr/XFree86/include/X11
5301 /usr/include
5302 /usr/local/include
5303 /usr/unsupported/include
5304 /usr/athena/include
5305 /usr/local/x11r5/include
5306 /usr/lpp/Xamples/include
5308 /usr/openwin/include
5309 /usr/openwin/share/include'
5311 if test "$ac_x_includes" = no; then
5312 # Guess where to find include files, by looking for Intrinsic.h.
5313 # First, try using that file with no special directory specified.
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line 5310 "configure"
5316 #include "confdefs.h"
5317 #include <X11/Intrinsic.h>
5318 _ACEOF
5319 if { (eval echo "$as_me:5319: \"$ac_cpp conftest.$ac_ext\"") >&5
5320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5321 ac_status=$?
5322 egrep -v '^ *\+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:5325: \$? = $ac_status" >&5
5326 (exit $ac_status); } >/dev/null; then
5327 if test -s conftest.err; then
5328 ac_cpp_err=$ac_c_preproc_warn_flag
5329 else
5330 ac_cpp_err=
5332 else
5333 ac_cpp_err=yes
5335 if test -z "$ac_cpp_err"; then
5336 # We can compile using X headers with no special include directory.
5337 ac_x_includes=
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 for ac_dir in $ac_x_header_dirs; do
5342 if test -r "$ac_dir/X11/Intrinsic.h"; then
5343 ac_x_includes=$ac_dir
5344 break
5346 done
5348 rm -f conftest.err conftest.$ac_ext
5349 fi # $ac_x_includes = no
5351 if test "$ac_x_libraries" = no; then
5352 # Check for the libraries.
5353 # See if we find them without any special options.
5354 # Don't add to $LIBS permanently.
5355 ac_save_LIBS=$LIBS
5356 LIBS="-lXt $LIBS"
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line 5353 "configure"
5359 #include "confdefs.h"
5360 #include <X11/Intrinsic.h>
5362 main ()
5364 XtMalloc (0)
5366 return 0;
5368 _ACEOF
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:5370: \"$ac_link\"") >&5
5371 (eval $ac_link) 2>&5
5372 ac_status=$?
5373 echo "$as_me:5373: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -s conftest$ac_exeext'
5376 { (eval echo "$as_me:5376: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:5379: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 LIBS=$ac_save_LIBS
5382 # We can link X programs with no special library path.
5383 ac_x_libraries=
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5387 LIBS=$ac_save_LIBS
5388 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5390 # Don't even attempt the hair of trying to link an X program!
5391 for ac_extension in a so sl; do
5392 if test -r $ac_dir/libXt.$ac_extension; then
5393 ac_x_libraries=$ac_dir
5394 break 2
5396 done
5397 done
5399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5400 fi # $ac_x_libraries = no
5402 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5403 # Didn't find X anywhere. Cache the known absence of X.
5404 ac_cv_have_x="have_x=no"
5405 else
5406 # Record where we found X for the cache.
5407 ac_cv_have_x="have_x=yes \
5408 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5413 eval "$ac_cv_have_x"
5414 fi # $with_x != no
5416 if test "$have_x" != yes; then
5417 echo "$as_me:5417: result: $have_x" >&5
5418 echo "${ECHO_T}$have_x" >&6
5419 no_x=yes
5420 else
5421 # If each of the values was on the command line, it overrides each guess.
5422 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5423 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5424 # Update the cache value to reflect the command line values.
5425 ac_cv_have_x="have_x=yes \
5426 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5427 echo "$as_me:5427: result: libraries $x_libraries, headers $x_includes" >&5
5428 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5431 if test "$no_x" = yes; then
5432 window_system=none
5433 else
5434 window_system=x11
5437 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5438 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5439 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5440 x_default_search_path=""
5441 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5442 x_search_path="\
5443 ${x_library}/X11/%L/%T/%N%C%S:\
5444 ${x_library}/X11/%l/%T/%N%C%S:\
5445 ${x_library}/X11/%T/%N%C%S:\
5446 ${x_library}/X11/%L/%T/%N%S:\
5447 ${x_library}/X11/%l/%T/%N%S:\
5448 ${x_library}/X11/%T/%N%S"
5449 if test x"${x_default_search_path}" = x; then
5450 x_default_search_path=${x_search_path}
5451 else
5452 x_default_search_path="${x_search_path}:${x_default_search_path}"
5454 done
5456 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5457 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5460 if test x"${x_includes}" = x; then
5461 bitmapdir=/usr/include/X11/bitmaps
5462 else
5463 # accumulate include directories that have X11 bitmap subdirectories
5464 bmd_acc="dummyval"
5465 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5466 if test -d "${bmd}/X11/bitmaps"; then
5467 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5469 if test -d "${bmd}/bitmaps"; then
5470 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5472 done
5473 if test ${bmd_acc} != "dummyval"; then
5474 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5478 case "${window_system}" in
5479 x11 )
5480 HAVE_X_WINDOWS=yes
5481 HAVE_X11=yes
5482 case "${with_x_toolkit}" in
5483 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5484 motif ) USE_X_TOOLKIT=MOTIF ;;
5485 no ) USE_X_TOOLKIT=none ;;
5486 * ) USE_X_TOOLKIT=maybe ;;
5487 esac
5489 none )
5490 HAVE_X_WINDOWS=no
5491 HAVE_X11=no
5492 USE_X_TOOLKIT=none
5494 esac
5496 ### If we're using X11, we should use the X menu package.
5497 HAVE_MENUS=no
5498 case ${HAVE_X11} in
5499 yes ) HAVE_MENUS=yes ;;
5500 esac
5502 if test "${opsys}" = "hpux9"; then
5503 case "${x_libraries}" in
5504 *X11R4* )
5505 opsysfile="s/hpux9-x11r4.h"
5507 esac
5510 if test "${opsys}" = "hpux9shr"; then
5511 case "${x_libraries}" in
5512 *X11R4* )
5513 opsysfile="s/hpux9shxr4.h"
5515 esac
5518 ### Compute the unexec source name from the object name.
5519 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5521 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5522 # Assume not, until told otherwise.
5523 GNU_MALLOC=yes
5524 doug_lea_malloc=yes
5525 echo "$as_me:5525: checking for malloc_get_state" >&5
5526 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5527 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 #line 5526 "configure"
5532 #include "confdefs.h"
5533 /* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char malloc_get_state (); below. */
5535 #include <assert.h>
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 #ifdef __cplusplus
5538 extern "C"
5539 #endif
5540 /* We use char because int might match the return type of a gcc2
5541 builtin and then its argument prototype would still apply. */
5542 char malloc_get_state ();
5543 char (*f) ();
5546 main ()
5548 /* The GNU C library defines this for functions which it implements
5549 to always fail with ENOSYS. Some functions are actually named
5550 something starting with __ and the normal name is an alias. */
5551 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5552 choke me
5553 #else
5554 f = malloc_get_state;
5555 #endif
5558 return 0;
5560 _ACEOF
5561 rm -f conftest.$ac_objext conftest$ac_exeext
5562 if { (eval echo "$as_me:5562: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5564 ac_status=$?
5565 echo "$as_me:5565: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try='test -s conftest$ac_exeext'
5568 { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 ac_cv_func_malloc_get_state=yes
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 ac_cv_func_malloc_get_state=no
5579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5581 echo "$as_me:5581: result: $ac_cv_func_malloc_get_state" >&5
5582 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5583 if test $ac_cv_func_malloc_get_state = yes; then
5585 else
5586 doug_lea_malloc=no
5589 echo "$as_me:5589: checking for malloc_set_state" >&5
5590 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5591 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line 5590 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char malloc_set_state (); below. */
5599 #include <assert.h>
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 #ifdef __cplusplus
5602 extern "C"
5603 #endif
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char malloc_set_state ();
5607 char (*f) ();
5610 main ()
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5616 choke me
5617 #else
5618 f = malloc_set_state;
5619 #endif
5622 return 0;
5624 _ACEOF
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:5626: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>&5
5628 ac_status=$?
5629 echo "$as_me:5629: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:5632: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:5635: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_func_malloc_set_state=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5641 ac_cv_func_malloc_set_state=no
5643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5645 echo "$as_me:5645: result: $ac_cv_func_malloc_set_state" >&5
5646 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5647 if test $ac_cv_func_malloc_set_state = yes; then
5649 else
5650 doug_lea_malloc=no
5653 echo "$as_me:5653: checking whether __after_morecore_hook exists" >&5
5654 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5655 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line 5654 "configure"
5660 #include "confdefs.h"
5661 extern void (* __after_morecore_hook)();
5663 main ()
5665 __after_morecore_hook = 0
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:5671: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>&5
5673 ac_status=$?
5674 echo "$as_me:5674: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -s conftest$ac_exeext'
5677 { (eval echo "$as_me:5677: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:5680: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 emacs_cv_var___after_morecore_hook=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 emacs_cv_var___after_morecore_hook=no
5688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5690 echo "$as_me:5690: result: $emacs_cv_var___after_morecore_hook" >&5
5691 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5692 if test $emacs_cv_var___after_morecore_hook = no; then
5693 doug_lea_malloc=no
5695 if test "${system_malloc}" = "yes"; then
5696 GNU_MALLOC=no
5697 GNU_MALLOC_reason="
5698 (The GNU allocators don't work with this system configuration.)"
5700 if test "$doug_lea_malloc" = "yes" ; then
5701 if test "$GNU_MALLOC" = yes ; then
5702 GNU_MALLOC_reason="
5703 (Using Doug Lea's new malloc from the GNU C Library.)"
5706 cat >>confdefs.h <<\EOF
5707 #define DOUG_LEA_MALLOC 1
5712 if test x"${REL_ALLOC}" = x; then
5713 REL_ALLOC=${GNU_MALLOC}
5716 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5719 inttypes.h stdint.h unistd.h
5721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5722 echo "$as_me:5722: checking for $ac_header" >&5
5723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line 5723 "configure"
5729 #include "confdefs.h"
5730 $ac_includes_default
5731 #include <$ac_header>
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:5734: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5736 ac_status=$?
5737 echo "$as_me:5737: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:5740: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 eval "$as_ac_Header=yes"
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5749 eval "$as_ac_Header=no"
5751 rm -f conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:5753: result: `eval echo '${'$as_ac_Header'}'`" >&5
5754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5756 cat >>confdefs.h <<EOF
5757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761 done
5763 for ac_header in stdlib.h unistd.h
5765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766 echo "$as_me:5766: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line 5767 "configure"
5773 #include "confdefs.h"
5774 #include <$ac_header>
5775 _ACEOF
5776 if { (eval echo "$as_me:5776: \"$ac_cpp conftest.$ac_ext\"") >&5
5777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5778 ac_status=$?
5779 egrep -v '^ *\+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:5782: \$? = $ac_status" >&5
5783 (exit $ac_status); } >/dev/null; then
5784 if test -s conftest.err; then
5785 ac_cpp_err=$ac_c_preproc_warn_flag
5786 else
5787 ac_cpp_err=
5789 else
5790 ac_cpp_err=yes
5792 if test -z "$ac_cpp_err"; then
5793 eval "$as_ac_Header=yes"
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 eval "$as_ac_Header=no"
5799 rm -f conftest.err conftest.$ac_ext
5801 echo "$as_me:5801: result: `eval echo '${'$as_ac_Header'}'`" >&5
5802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h <<EOF
5805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 done
5811 for ac_func in getpagesize
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 echo "$as_me:5814: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_var+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line 5815 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below. */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func ();
5832 char (*f) ();
5835 main ()
5837 /* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5841 choke me
5842 #else
5843 f = $ac_func;
5844 #endif
5847 return 0;
5849 _ACEOF
5850 rm -f conftest.$ac_objext conftest$ac_exeext
5851 if { (eval echo "$as_me:5851: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5853 ac_status=$?
5854 echo "$as_me:5854: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest$ac_exeext'
5857 { (eval echo "$as_me:5857: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 eval "$as_ac_var=yes"
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5866 eval "$as_ac_var=no"
5868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5870 echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5872 if test `eval echo '${'$as_ac_var'}'` = yes; then
5873 cat >>confdefs.h <<EOF
5874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5878 done
5880 echo "$as_me:5880: checking for working mmap" >&5
5881 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5882 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 if test "$cross_compiling" = yes; then
5886 ac_cv_func_mmap_fixed_mapped=no
5887 else
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line 5884 "configure"
5890 #include "confdefs.h"
5891 $ac_includes_default
5892 /* Thanks to Mike Haertel and Jim Avera for this test.
5893 Here is a matrix of mmap possibilities:
5894 mmap private not fixed
5895 mmap private fixed at somewhere currently unmapped
5896 mmap private fixed at somewhere already mapped
5897 mmap shared not fixed
5898 mmap shared fixed at somewhere currently unmapped
5899 mmap shared fixed at somewhere already mapped
5900 For private mappings, we should verify that changes cannot be read()
5901 back from the file, nor mmap's back from the file at a different
5902 address. (There have been systems where private was not correctly
5903 implemented like the infamous i386 svr4.0, and systems where the
5904 VM page cache was not coherent with the file system buffer cache
5905 like early versions of FreeBSD and possibly contemporary NetBSD.)
5906 For shared mappings, we should conversely verify that changes get
5907 propogated back to all the places they're supposed to be.
5909 Grep wants private fixed already mapped.
5910 The main things grep needs to know about mmap are:
5911 * does it exist and is it safe to write into the mmap'd area
5912 * how to use it (BSD variants) */
5914 #include <fcntl.h>
5915 #include <sys/mman.h>
5917 #if !STDC_HEADERS && !HAVE_STDLIB_H
5918 char *malloc ();
5919 #endif
5921 /* This mess was copied from the GNU getpagesize.h. */
5922 #if !HAVE_GETPAGESIZE
5923 /* Assume that all systems that can run configure have sys/param.h. */
5924 # if !HAVE_SYS_PARAM_H
5925 # define HAVE_SYS_PARAM_H 1
5926 # endif
5928 # ifdef _SC_PAGESIZE
5929 # define getpagesize() sysconf(_SC_PAGESIZE)
5930 # else /* no _SC_PAGESIZE */
5931 # if HAVE_SYS_PARAM_H
5932 # include <sys/param.h>
5933 # ifdef EXEC_PAGESIZE
5934 # define getpagesize() EXEC_PAGESIZE
5935 # else /* no EXEC_PAGESIZE */
5936 # ifdef NBPG
5937 # define getpagesize() NBPG * CLSIZE
5938 # ifndef CLSIZE
5939 # define CLSIZE 1
5940 # endif /* no CLSIZE */
5941 # else /* no NBPG */
5942 # ifdef NBPC
5943 # define getpagesize() NBPC
5944 # else /* no NBPC */
5945 # ifdef PAGESIZE
5946 # define getpagesize() PAGESIZE
5947 # endif /* PAGESIZE */
5948 # endif /* no NBPC */
5949 # endif /* no NBPG */
5950 # endif /* no EXEC_PAGESIZE */
5951 # else /* no HAVE_SYS_PARAM_H */
5952 # define getpagesize() 8192 /* punt totally */
5953 # endif /* no HAVE_SYS_PARAM_H */
5954 # endif /* no _SC_PAGESIZE */
5956 #endif /* no HAVE_GETPAGESIZE */
5959 main ()
5961 char *data, *data2, *data3;
5962 int i, pagesize;
5963 int fd;
5965 pagesize = getpagesize ();
5967 /* First, make a file with some known garbage in it. */
5968 data = (char *) malloc (pagesize);
5969 if (!data)
5970 exit (1);
5971 for (i = 0; i < pagesize; ++i)
5972 *(data + i) = rand ();
5973 umask (0);
5974 fd = creat ("conftest.mmap", 0600);
5975 if (fd < 0)
5976 exit (1);
5977 if (write (fd, data, pagesize) != pagesize)
5978 exit (1);
5979 close (fd);
5981 /* Next, try to mmap the file at a fixed address which already has
5982 something else allocated at it. If we can, also make sure that
5983 we see the same garbage. */
5984 fd = open ("conftest.mmap", O_RDWR);
5985 if (fd < 0)
5986 exit (1);
5987 data2 = (char *) malloc (2 * pagesize);
5988 if (!data2)
5989 exit (1);
5990 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5991 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5992 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5993 exit (1);
5994 for (i = 0; i < pagesize; ++i)
5995 if (*(data + i) != *(data2 + i))
5996 exit (1);
5998 /* Finally, make sure that changes to the mapped area do not
5999 percolate back to the file as seen by read(). (This is a bug on
6000 some variants of i386 svr4.0.) */
6001 for (i = 0; i < pagesize; ++i)
6002 *(data2 + i) = *(data2 + i) + 1;
6003 data3 = (char *) malloc (pagesize);
6004 if (!data3)
6005 exit (1);
6006 if (read (fd, data3, pagesize) != pagesize)
6007 exit (1);
6008 for (i = 0; i < pagesize; ++i)
6009 if (*(data + i) != *(data3 + i))
6010 exit (1);
6011 close (fd);
6012 exit (0);
6014 _ACEOF
6015 rm -f conftest$ac_exeext
6016 if { (eval echo "$as_me:6016: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6018 ac_status=$?
6019 echo "$as_me:6019: \$? = $ac_status" >&5
6020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6021 { (eval echo "$as_me:6021: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:6024: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_cv_func_mmap_fixed_mapped=yes
6027 else
6028 echo "$as_me: program exited with status $ac_status" >&5
6029 echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_func_mmap_fixed_mapped=no
6033 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6036 echo "$as_me:6036: result: $ac_cv_func_mmap_fixed_mapped" >&5
6037 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6038 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6040 cat >>confdefs.h <<\EOF
6041 #define HAVE_MMAP 1
6045 rm -f conftest.mmap
6047 if test $use_mmap_for_buffers = yes; then
6048 REL_ALLOC=no
6051 LIBS="$libsrc_libs $LIBS"
6053 echo "$as_me:6053: checking for dnet_ntoa in -ldnet" >&5
6054 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6055 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-ldnet $LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line 6056 "configure"
6062 #include "confdefs.h"
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6070 char dnet_ntoa ();
6072 main ()
6074 dnet_ntoa ();
6076 return 0;
6078 _ACEOF
6079 rm -f conftest.$ac_objext conftest$ac_exeext
6080 if { (eval echo "$as_me:6080: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>&5
6082 ac_status=$?
6083 echo "$as_me:6083: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -s conftest$ac_exeext'
6086 { (eval echo "$as_me:6086: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:6089: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_lib_dnet_dnet_ntoa=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6095 ac_cv_lib_dnet_dnet_ntoa=no
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 LIBS=$ac_check_lib_save_LIBS
6100 echo "$as_me:6100: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6101 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6102 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6103 cat >>confdefs.h <<EOF
6104 #define HAVE_LIBDNET 1
6107 LIBS="-ldnet $LIBS"
6111 echo "$as_me:6111: checking for main in -lXbsd" >&5
6112 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6113 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 ac_check_lib_save_LIBS=$LIBS
6117 LIBS="-lXbsd $LIBS"
6118 cat >conftest.$ac_ext <<_ACEOF
6119 #line 6114 "configure"
6120 #include "confdefs.h"
6123 main ()
6125 main ();
6127 return 0;
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:6131: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>&5
6133 ac_status=$?
6134 echo "$as_me:6134: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:6137: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:6140: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_lib_Xbsd_main=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 ac_cv_lib_Xbsd_main=no
6148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6149 LIBS=$ac_check_lib_save_LIBS
6151 echo "$as_me:6151: result: $ac_cv_lib_Xbsd_main" >&5
6152 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6153 if test $ac_cv_lib_Xbsd_main = yes; then
6154 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6157 echo "$as_me:6157: checking for cma_open in -lpthreads" >&5
6158 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6159 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 ac_check_lib_save_LIBS=$LIBS
6163 LIBS="-lpthreads $LIBS"
6164 cat >conftest.$ac_ext <<_ACEOF
6165 #line 6160 "configure"
6166 #include "confdefs.h"
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 #ifdef __cplusplus
6170 extern "C"
6171 #endif
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6174 char cma_open ();
6176 main ()
6178 cma_open ();
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>&5
6186 ac_status=$?
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_lib_pthreads_cma_open=yes
6196 else
6197 echo "$as_me: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 ac_cv_lib_pthreads_cma_open=no
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 LIBS=$ac_check_lib_save_LIBS
6204 echo "$as_me:6204: result: $ac_cv_lib_pthreads_cma_open" >&5
6205 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6206 if test $ac_cv_lib_pthreads_cma_open = yes; then
6207 cat >>confdefs.h <<EOF
6208 #define HAVE_LIBPTHREADS 1
6211 LIBS="-lpthreads $LIBS"
6215 echo "$as_me:6215: checking for XFree86 in /usr/X386" >&5
6216 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6217 if test -d /usr/X386/include; then
6218 HAVE_XFREE386=yes
6219 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6220 else
6221 HAVE_XFREE386=no
6223 echo "$as_me:6223: result: $HAVE_XFREE386" >&5
6224 echo "${ECHO_T}$HAVE_XFREE386" >&6
6226 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6227 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6229 REAL_CPPFLAGS="$CPPFLAGS"
6231 if test "${HAVE_X11}" = "yes"; then
6232 DEFS="$C_SWITCH_X_SITE $DEFS"
6233 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6234 LIBS="$LIBX $LIBS"
6235 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6236 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6238 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6239 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6240 # but it's more convenient here to set LD_RUN_PATH
6241 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6242 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6243 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6244 export LD_RUN_PATH
6247 if test "${opsys}" = "gnu-linux"; then
6248 echo "$as_me:6248: checking whether X on GNU/Linux needs -b to link" >&5
6249 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line 6246 "configure"
6252 #include "confdefs.h"
6255 main ()
6257 XOpenDisplay ("foo");
6259 return 0;
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:6263: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6265 ac_status=$?
6266 echo "$as_me:6266: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:6272: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 xlinux_first_failure=no
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 xlinux_first_failure=yes
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 if test "${xlinux_first_failure}" = "yes"; then
6282 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6283 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6284 OLD_CPPFLAGS="$CPPFLAGS"
6285 OLD_LIBS="$LIBS"
6286 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6287 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6288 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6289 LIBS="$LIBS -b i486-linuxaout"
6290 cat >conftest.$ac_ext <<_ACEOF
6291 #line 6286 "configure"
6292 #include "confdefs.h"
6295 main ()
6297 XOpenDisplay ("foo");
6299 return 0;
6301 _ACEOF
6302 rm -f conftest.$ac_objext conftest$ac_exeext
6303 if { (eval echo "$as_me:6303: \"$ac_link\"") >&5
6304 (eval $ac_link) 2>&5
6305 ac_status=$?
6306 echo "$as_me:6306: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:6309: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:6312: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 xlinux_second_failure=no
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6318 xlinux_second_failure=yes
6320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6321 if test "${xlinux_second_failure}" = "yes"; then
6322 # If we get the same failure with -b, there is no use adding -b.
6323 # So take it out. This plays safe.
6324 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6325 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6326 CPPFLAGS="$OLD_CPPFLAGS"
6327 LIBS="$OLD_LIBS"
6328 echo "$as_me:6328: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6330 else
6331 echo "$as_me:6331: result: yes" >&5
6332 echo "${ECHO_T}yes" >&6
6334 else
6335 echo "$as_me:6335: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6340 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6341 # header files included from there.
6342 echo "$as_me:6342: checking for Xkb" >&5
6343 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line 6340 "configure"
6346 #include "confdefs.h"
6347 #include <X11/Xlib.h>
6348 #include <X11/XKBlib.h>
6350 main ()
6352 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6354 return 0;
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:6358: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6360 ac_status=$?
6361 echo "$as_me:6361: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:6364: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:6367: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 emacs_xkb=yes
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6373 emacs_xkb=no
6375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376 echo "$as_me:6376: result: $emacs_xkb" >&5
6377 echo "${ECHO_T}$emacs_xkb" >&6
6378 if test $emacs_xkb = yes; then
6380 cat >>confdefs.h <<\EOF
6381 #define HAVE_XKBGETKEYBOARD 1
6386 for ac_func in XrmSetDatabase XScreenResourceString \
6387 XScreenNumberOfScreen XSetWMProtocols
6389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6390 echo "$as_me:6390: checking for $ac_func" >&5
6391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6392 if eval "test \"\${$as_ac_var+set}\" = set"; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line 6391 "configure"
6397 #include "confdefs.h"
6398 /* System header to define __stub macros and hopefully few prototypes,
6399 which can conflict with char $ac_func (); below. */
6400 #include <assert.h>
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 #ifdef __cplusplus
6403 extern "C"
6404 #endif
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char $ac_func ();
6408 char (*f) ();
6411 main ()
6413 /* The GNU C library defines this for functions which it implements
6414 to always fail with ENOSYS. Some functions are actually named
6415 something starting with __ and the normal name is an alias. */
6416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6417 choke me
6418 #else
6419 f = $ac_func;
6420 #endif
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (eval echo "$as_me:6427: \"$ac_link\"") >&5
6428 (eval $ac_link) 2>&5
6429 ac_status=$?
6430 echo "$as_me:6430: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:6433: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:6436: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 eval "$as_ac_var=yes"
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 eval "$as_ac_var=no"
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6446 echo "$as_me:6446: result: `eval echo '${'$as_ac_var'}'`" >&5
6447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6448 if test `eval echo '${'$as_ac_var'}'` = yes; then
6449 cat >>confdefs.h <<EOF
6450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454 done
6458 if test "${window_system}" = "x11"; then
6459 echo "$as_me:6459: checking X11 version 6" >&5
6460 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6461 if test "${emacs_cv_x11_version_6+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line 6460 "configure"
6466 #include "confdefs.h"
6467 #include <X11/Xlib.h>
6469 main ()
6471 #if XlibSpecificationRelease < 6
6472 fail;
6473 #endif
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:6486: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 emacs_cv_x11_version_6=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 emacs_cv_x11_version_6=no
6497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 if test $emacs_cv_x11_version_6 = yes; then
6501 echo "$as_me:6501: result: 6 or newer" >&5
6502 echo "${ECHO_T}6 or newer" >&6
6504 cat >>confdefs.h <<\EOF
6505 #define HAVE_X11R6 1
6508 else
6509 echo "$as_me:6509: result: before 6" >&5
6510 echo "${ECHO_T}before 6" >&6
6514 if test "${window_system}" = "x11"; then
6515 echo "$as_me:6515: checking X11 version 5" >&5
6516 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6517 if test "${emacs_cv_x11_version_5+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line 6516 "configure"
6522 #include "confdefs.h"
6523 #include <X11/Xlib.h>
6525 main ()
6527 #if XlibSpecificationRelease < 5
6528 fail;
6529 #endif
6532 return 0;
6534 _ACEOF
6535 rm -f conftest.$ac_objext conftest$ac_exeext
6536 if { (eval echo "$as_me:6536: \"$ac_link\"") >&5
6537 (eval $ac_link) 2>&5
6538 ac_status=$?
6539 echo "$as_me:6539: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:6542: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:6545: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 emacs_cv_x11_version_5=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6551 emacs_cv_x11_version_5=no
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6556 if test $emacs_cv_x11_version_5 = yes; then
6557 echo "$as_me:6557: result: 5 or newer" >&5
6558 echo "${ECHO_T}5 or newer" >&6
6559 HAVE_X11R5=yes
6561 cat >>confdefs.h <<\EOF
6562 #define HAVE_X11R5 1
6565 else
6566 HAVE_X11R5=no
6567 echo "$as_me:6567: result: before 5" >&5
6568 echo "${ECHO_T}before 5" >&6
6572 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6573 if test x"${HAVE_X11R5}" = xyes; then
6574 echo "$as_me:6574: checking X11 version 5 with Xaw" >&5
6575 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6576 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6575 "configure"
6581 #include "confdefs.h"
6583 #include <X11/Intrinsic.h>
6584 #include <X11/Xaw/Simple.h>
6586 main ()
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:6594: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 echo "$as_me:6597: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest$ac_exeext'
6600 { (eval echo "$as_me:6600: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:6603: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 emacs_cv_x11_version_5_with_xaw=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 cat conftest.$ac_ext >&5
6609 emacs_cv_x11_version_5_with_xaw=no
6611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6615 echo "$as_me:6615: result: 5 or newer, with Xaw; use toolkit by default" >&5
6616 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6617 USE_X_TOOLKIT=LUCID
6618 else
6619 echo "$as_me:6619: result: before 5 or no Xaw; do not use toolkit by default" >&5
6620 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6621 USE_X_TOOLKIT=none
6623 else
6624 USE_X_TOOLKIT=none
6628 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6630 if test "${USE_X_TOOLKIT}" != "none"; then
6631 echo "$as_me:6631: checking X11 toolkit version" >&5
6632 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6633 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 #line 6632 "configure"
6638 #include "confdefs.h"
6639 #include <X11/Intrinsic.h>
6641 main ()
6643 #if XtSpecificationRelease < 6
6644 fail;
6645 #endif
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:6652: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>&5
6654 ac_status=$?
6655 echo "$as_me:6655: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:6658: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:6661: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 emacs_cv_x11_toolkit_version_6=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 emacs_cv_x11_toolkit_version_6=no
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6673 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6674 echo "$as_me:6674: result: 6 or newer" >&5
6675 echo "${ECHO_T}6 or newer" >&6
6677 cat >>confdefs.h <<\EOF
6678 #define HAVE_X11XTR6 1
6681 else
6682 echo "$as_me:6682: result: before 6" >&5
6683 echo "${ECHO_T}before 6" >&6
6686 OLDLIBS="$LIBS"
6687 if test x$HAVE_X11XTR6 = xyes; then
6688 LIBS="-lXt -lSM -lICE $LIBS"
6689 else
6690 LIBS="-lXt $LIBS"
6693 echo "$as_me:6693: checking for XmuConvertStandardSelection in -lXmu" >&5
6694 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6695 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 ac_check_lib_save_LIBS=$LIBS
6699 LIBS="-lXmu $LIBS"
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line 6696 "configure"
6702 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 #ifdef __cplusplus
6706 extern "C"
6707 #endif
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6710 char XmuConvertStandardSelection ();
6712 main ()
6714 XmuConvertStandardSelection ();
6716 return 0;
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:6720: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6722 ac_status=$?
6723 echo "$as_me:6723: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -s conftest$ac_exeext'
6726 { (eval echo "$as_me:6726: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:6729: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6738 LIBS=$ac_check_lib_save_LIBS
6740 echo "$as_me:6740: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6741 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6742 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6743 cat >>confdefs.h <<EOF
6744 #define HAVE_LIBXMU 1
6747 LIBS="-lXmu $LIBS"
6751 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6754 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6755 if test "${HAVE_X11}" = "yes"; then
6756 if test "${USE_X_TOOLKIT}" != "none"; then
6758 echo "$as_me:6758: checking for XShapeQueryExtension in -lXext" >&5
6759 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6760 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 ac_check_lib_save_LIBS=$LIBS
6764 LIBS="-lXext $LIBS"
6765 cat >conftest.$ac_ext <<_ACEOF
6766 #line 6761 "configure"
6767 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 #ifdef __cplusplus
6771 extern "C"
6772 #endif
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6775 char XShapeQueryExtension ();
6777 main ()
6779 XShapeQueryExtension ();
6781 return 0;
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo "$as_me:6785: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>&5
6787 ac_status=$?
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -s conftest$ac_exeext'
6791 { (eval echo "$as_me:6791: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:6794: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 ac_cv_lib_Xext_XShapeQueryExtension=yes
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 ac_cv_lib_Xext_XShapeQueryExtension=no
6802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803 LIBS=$ac_check_lib_save_LIBS
6805 echo "$as_me:6805: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6806 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6807 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6808 cat >>confdefs.h <<EOF
6809 #define HAVE_LIBXEXT 1
6812 LIBS="-lXext $LIBS"
6819 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6820 echo "$as_me:6820: checking for Motif version 2.1" >&5
6821 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6822 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line 6821 "configure"
6827 #include "confdefs.h"
6828 #include <Xm/Xm.h>
6830 main ()
6832 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6833 int x = 5;
6834 #else
6835 Motif version prior to 2.1.
6836 #endif
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:6842: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 echo "$as_me:6845: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:6848: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:6851: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 emacs_cv_motif_version_2_1=yes
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 emacs_cv_motif_version_2_1=no
6859 rm -f conftest.$ac_objext conftest.$ac_ext
6861 echo "$as_me:6861: result: $emacs_cv_motif_version_2_1" >&5
6862 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6863 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6864 if test $emacs_cv_motif_version_2_1 = yes; then
6865 HAVE_LIBXP=no
6867 cat >>confdefs.h <<\EOF
6868 #define HAVE_MOTIF_2_1 1
6871 echo "$as_me:6871: checking for XpCreateContext in -lXp" >&5
6872 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6873 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 ac_check_lib_save_LIBS=$LIBS
6877 LIBS="-lXp $LIBS"
6878 cat >conftest.$ac_ext <<_ACEOF
6879 #line 6874 "configure"
6880 #include "confdefs.h"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 #ifdef __cplusplus
6884 extern "C"
6885 #endif
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6888 char XpCreateContext ();
6890 main ()
6892 XpCreateContext ();
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:6898: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>&5
6900 ac_status=$?
6901 echo "$as_me:6901: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:6904: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_lib_Xp_XpCreateContext=yes
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 ac_cv_lib_Xp_XpCreateContext=no
6915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6916 LIBS=$ac_check_lib_save_LIBS
6918 echo "$as_me:6918: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6919 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6920 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6921 HAVE_LIBXP=yes
6924 if test ${HAVE_LIBXP} = yes; then
6926 cat >>confdefs.h <<\EOF
6927 #define HAVE_LIBXP 1
6934 ### Is -lXaw3d available?
6935 HAVE_XAW3D=no
6936 if test "${HAVE_X11}" = "yes"; then
6937 if test "${USE_X_TOOLKIT}" != "none"; then
6938 echo "$as_me:6938: checking for X11/Xaw3d/Scrollbar.h" >&5
6939 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6940 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line 6939 "configure"
6945 #include "confdefs.h"
6946 #include <X11/Xaw3d/Scrollbar.h>
6947 _ACEOF
6948 if { (eval echo "$as_me:6948: \"$ac_cpp conftest.$ac_ext\"") >&5
6949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6950 ac_status=$?
6951 egrep -v '^ *\+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); } >/dev/null; then
6956 if test -s conftest.err; then
6957 ac_cpp_err=$ac_c_preproc_warn_flag
6958 else
6959 ac_cpp_err=
6961 else
6962 ac_cpp_err=yes
6964 if test -z "$ac_cpp_err"; then
6965 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6971 rm -f conftest.err conftest.$ac_ext
6973 echo "$as_me:6973: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6974 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6975 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6976 echo "$as_me:6976: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6977 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6978 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lXaw3d $LIBS"
6983 cat >conftest.$ac_ext <<_ACEOF
6984 #line 6979 "configure"
6985 #include "confdefs.h"
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6993 char XawScrollbarSetThumb ();
6995 main ()
6997 XawScrollbarSetThumb ();
6999 return 0;
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:7003: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>&5
7005 ac_status=$?
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:7009: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:7012: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7018 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7021 LIBS=$ac_check_lib_save_LIBS
7023 echo "$as_me:7023: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7024 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7025 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7026 HAVE_XAW3D=yes
7031 if test "${HAVE_XAW3D}" = "yes"; then
7033 cat >>confdefs.h <<\EOF
7034 #define HAVE_XAW3D 1
7041 USE_TOOLKIT_SCROLL_BARS=no
7042 if test "${with_toolkit_scroll_bars}" != "no"; then
7043 if test "${USE_X_TOOLKIT}" != "none"; then
7044 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7045 cat >>confdefs.h <<\EOF
7046 #define USE_TOOLKIT_SCROLL_BARS 1
7049 HAVE_XAW3D=no
7050 USE_TOOLKIT_SCROLL_BARS=yes
7051 elif test "${HAVE_XAW3D}" = "yes"; then
7052 cat >>confdefs.h <<\EOF
7053 #define USE_TOOLKIT_SCROLL_BARS 1
7056 USE_TOOLKIT_SCROLL_BARS=yes
7061 if test "${with_xim}" != "no"; then
7063 cat >>confdefs.h <<\EOF
7064 #define USE_XIM 1
7069 ### Use -lXpm if available, unless `--with-xpm=no'.
7070 HAVE_XPM=no
7071 if test "${HAVE_X11}" = "yes"; then
7072 if test "${with_xpm}" != "no"; then
7073 echo "$as_me:7073: checking for X11/xpm.h" >&5
7074 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7075 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line 7074 "configure"
7080 #include "confdefs.h"
7081 #include <X11/xpm.h>
7082 _ACEOF
7083 if { (eval echo "$as_me:7083: \"$ac_cpp conftest.$ac_ext\"") >&5
7084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7085 ac_status=$?
7086 egrep -v '^ *\+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); } >/dev/null; then
7091 if test -s conftest.err; then
7092 ac_cpp_err=$ac_c_preproc_warn_flag
7093 else
7094 ac_cpp_err=
7096 else
7097 ac_cpp_err=yes
7099 if test -z "$ac_cpp_err"; then
7100 ac_cv_header_X11_xpm_h=yes
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7104 ac_cv_header_X11_xpm_h=no
7106 rm -f conftest.err conftest.$ac_ext
7108 echo "$as_me:7108: result: $ac_cv_header_X11_xpm_h" >&5
7109 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7110 if test $ac_cv_header_X11_xpm_h = yes; then
7111 echo "$as_me:7111: checking for XpmReadFileToPixmap in -lXpm" >&5
7112 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7113 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 ac_check_lib_save_LIBS=$LIBS
7117 LIBS="-lXpm -lX11 $LIBS"
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line 7114 "configure"
7120 #include "confdefs.h"
7122 /* Override any gcc2 internal prototype to avoid an error. */
7123 #ifdef __cplusplus
7124 extern "C"
7125 #endif
7126 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */
7128 char XpmReadFileToPixmap ();
7130 main ()
7132 XpmReadFileToPixmap ();
7134 return 0;
7136 _ACEOF
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (eval echo "$as_me:7138: \"$ac_link\"") >&5
7139 (eval $ac_link) 2>&5
7140 ac_status=$?
7141 echo "$as_me:7141: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest$ac_exeext'
7144 { (eval echo "$as_me:7144: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7158 echo "$as_me:7158: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7159 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7160 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7161 HAVE_XPM=yes
7166 if test "${HAVE_XPM}" = "yes"; then
7167 echo "$as_me:7167: checking for XpmReturnAllocPixels preprocessor define" >&5
7168 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line 7165 "configure"
7171 #include "confdefs.h"
7172 #include "X11/xpm.h"
7173 #ifndef XpmReturnAllocPixels
7174 no_return_alloc_pixels
7175 #endif
7177 _ACEOF
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7180 HAVE_XPM=no
7181 else
7182 HAVE_XPM=yes
7184 rm -f conftest*
7186 if test "${HAVE_XPM}" = "yes"; then
7187 echo "$as_me:7187: result: yes" >&5
7188 echo "${ECHO_T}yes" >&6
7189 else
7190 echo "$as_me:7190: result: no" >&5
7191 echo "${ECHO_T}no" >&6
7196 if test "${HAVE_XPM}" = "yes"; then
7198 cat >>confdefs.h <<\EOF
7199 #define HAVE_XPM 1
7205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7206 HAVE_JPEG=no
7207 if test "${HAVE_X11}" = "yes"; then
7208 if test "${with_jpeg}" != "no"; then
7209 echo "$as_me:7209: checking for jerror.h" >&5
7210 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7211 if test "${ac_cv_header_jerror_h+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line 7210 "configure"
7216 #include "confdefs.h"
7217 #include <jerror.h>
7218 _ACEOF
7219 if { (eval echo "$as_me:7219: \"$ac_cpp conftest.$ac_ext\"") >&5
7220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7221 ac_status=$?
7222 egrep -v '^ *\+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:7225: \$? = $ac_status" >&5
7226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7229 else
7230 ac_cpp_err=
7232 else
7233 ac_cpp_err=yes
7235 if test -z "$ac_cpp_err"; then
7236 ac_cv_header_jerror_h=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 ac_cv_header_jerror_h=no
7242 rm -f conftest.err conftest.$ac_ext
7244 echo "$as_me:7244: result: $ac_cv_header_jerror_h" >&5
7245 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7246 if test $ac_cv_header_jerror_h = yes; then
7247 echo "$as_me:7247: checking for jpeg_destroy_compress in -ljpeg" >&5
7248 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7249 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-ljpeg $LIBS"
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line 7250 "configure"
7256 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char jpeg_destroy_compress ();
7266 main ()
7268 jpeg_destroy_compress ();
7270 return 0;
7272 _ACEOF
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:7274: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>&5
7276 ac_status=$?
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7292 LIBS=$ac_check_lib_save_LIBS
7294 echo "$as_me:7294: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7295 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7296 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7297 HAVE_JPEG=yes
7304 if test "${HAVE_JPEG}" = "yes"; then
7305 cat >>confdefs.h <<\EOF
7306 #define HAVE_JPEG 1
7309 cat >conftest.$ac_ext <<_ACEOF
7310 #line 7305 "configure"
7311 #include "confdefs.h"
7312 #include <jpeglib.h>
7313 version=JPEG_LIB_VERSION
7315 _ACEOF
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7318 cat >>confdefs.h <<\EOF
7319 #define HAVE_JPEG 1
7322 else
7323 { echo "$as_me:7323: WARNING: libjpeg found, but not version 6b or later" >&5
7324 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7325 HAVE_JPEG=no
7327 rm -f conftest*
7332 ### Use -lpng if available, unless `--with-png=no'.
7333 HAVE_PNG=no
7334 if test "${HAVE_X11}" = "yes"; then
7335 if test "${with_png}" != "no"; then
7336 echo "$as_me:7336: checking for png.h" >&5
7337 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7338 if test "${ac_cv_header_png_h+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 cat >conftest.$ac_ext <<_ACEOF
7342 #line 7337 "configure"
7343 #include "confdefs.h"
7344 #include <png.h>
7345 _ACEOF
7346 if { (eval echo "$as_me:7346: \"$ac_cpp conftest.$ac_ext\"") >&5
7347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348 ac_status=$?
7349 egrep -v '^ *\+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:7352: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null; then
7354 if test -s conftest.err; then
7355 ac_cpp_err=$ac_c_preproc_warn_flag
7356 else
7357 ac_cpp_err=
7359 else
7360 ac_cpp_err=yes
7362 if test -z "$ac_cpp_err"; then
7363 ac_cv_header_png_h=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7367 ac_cv_header_png_h=no
7369 rm -f conftest.err conftest.$ac_ext
7371 echo "$as_me:7371: result: $ac_cv_header_png_h" >&5
7372 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7373 if test $ac_cv_header_png_h = yes; then
7374 echo "$as_me:7374: checking for png_get_channels in -lpng" >&5
7375 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7376 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 ac_check_lib_save_LIBS=$LIBS
7380 LIBS="-lpng -lz -lm $LIBS"
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line 7377 "configure"
7383 #include "confdefs.h"
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
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 png_get_channels ();
7393 main ()
7395 png_get_channels ();
7397 return 0;
7399 _ACEOF
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
7403 ac_status=$?
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
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:7410: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_lib_png_png_get_channels=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 ac_cv_lib_png_png_get_channels=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_png_png_get_channels" >&5
7422 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7423 if test $ac_cv_lib_png_png_get_channels = yes; then
7424 HAVE_PNG=yes
7431 if test "${HAVE_PNG}" = "yes"; then
7433 cat >>confdefs.h <<\EOF
7434 #define HAVE_PNG 1
7440 ### Use -ltiff if available, unless `--with-tiff=no'.
7441 HAVE_TIFF=no
7442 if test "${HAVE_X11}" = "yes"; then
7443 if test "${with_tiff}" != "no"; then
7444 echo "$as_me:7444: checking for tiffio.h" >&5
7445 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7446 if test "${ac_cv_header_tiffio_h+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line 7445 "configure"
7451 #include "confdefs.h"
7452 #include <tiffio.h>
7453 _ACEOF
7454 if { (eval echo "$as_me:7454: \"$ac_cpp conftest.$ac_ext\"") >&5
7455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7456 ac_status=$?
7457 egrep -v '^ *\+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:7460: \$? = $ac_status" >&5
7461 (exit $ac_status); } >/dev/null; then
7462 if test -s conftest.err; then
7463 ac_cpp_err=$ac_c_preproc_warn_flag
7464 else
7465 ac_cpp_err=
7467 else
7468 ac_cpp_err=yes
7470 if test -z "$ac_cpp_err"; then
7471 ac_cv_header_tiffio_h=yes
7472 else
7473 echo "$as_me: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 ac_cv_header_tiffio_h=no
7477 rm -f conftest.err conftest.$ac_ext
7479 echo "$as_me:7479: result: $ac_cv_header_tiffio_h" >&5
7480 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7481 if test $ac_cv_header_tiffio_h = yes; then
7482 tifflibs="-lz -lm"
7483 # At least one tiff package requires the jpeg library.
7484 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7485 echo "$as_me:7485: checking for TIFFGetVersion in -ltiff" >&5
7486 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7487 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-ltiff $tifflibs $LIBS"
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line 7488 "configure"
7494 #include "confdefs.h"
7496 /* Override any gcc2 internal prototype to avoid an error. */
7497 #ifdef __cplusplus
7498 extern "C"
7499 #endif
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7502 char TIFFGetVersion ();
7504 main ()
7506 TIFFGetVersion ();
7508 return 0;
7510 _ACEOF
7511 rm -f conftest.$ac_objext conftest$ac_exeext
7512 if { (eval echo "$as_me:7512: \"$ac_link\"") >&5
7513 (eval $ac_link) 2>&5
7514 ac_status=$?
7515 echo "$as_me:7515: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:7518: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:7521: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_lib_tiff_TIFFGetVersion=yes
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_cv_lib_tiff_TIFFGetVersion=no
7529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7530 LIBS=$ac_check_lib_save_LIBS
7532 echo "$as_me:7532: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7533 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7534 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7535 HAVE_TIFF=yes
7542 if test "${HAVE_TIFF}" = "yes"; then
7544 cat >>confdefs.h <<\EOF
7545 #define HAVE_TIFF 1
7551 ### Use -lgif if available, unless `--with-gif=no'.
7552 HAVE_GIF=no
7553 if test "${HAVE_X11}" = "yes"; then
7554 if test "${with_gif}" != "no"; then
7555 echo "$as_me:7555: checking for gif_lib.h" >&5
7556 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7557 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 #line 7556 "configure"
7562 #include "confdefs.h"
7563 #include <gif_lib.h>
7564 _ACEOF
7565 if { (eval echo "$as_me:7565: \"$ac_cpp conftest.$ac_ext\"") >&5
7566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567 ac_status=$?
7568 egrep -v '^ *\+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 (exit $ac_status); } >/dev/null; then
7573 if test -s conftest.err; then
7574 ac_cpp_err=$ac_c_preproc_warn_flag
7575 else
7576 ac_cpp_err=
7578 else
7579 ac_cpp_err=yes
7581 if test -z "$ac_cpp_err"; then
7582 ac_cv_header_gif_lib_h=yes
7583 else
7584 echo "$as_me: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7586 ac_cv_header_gif_lib_h=no
7588 rm -f conftest.err conftest.$ac_ext
7590 echo "$as_me:7590: result: $ac_cv_header_gif_lib_h" >&5
7591 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7592 if test $ac_cv_header_gif_lib_h = yes; then
7593 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7594 # Earlier versions can crash Emacs.
7595 echo "$as_me:7595: checking for EGifPutExtensionLast in -lungif" >&5
7596 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7597 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-lungif $LIBS"
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7598 "configure"
7604 #include "confdefs.h"
7606 /* Override any gcc2 internal prototype to avoid an error. */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char EGifPutExtensionLast ();
7614 main ()
7616 EGifPutExtensionLast ();
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7624 ac_status=$?
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:7631: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 ac_cv_lib_ungif_EGifPutExtensionLast=no
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS
7642 echo "$as_me:7642: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7643 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7644 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7645 HAVE_GIF=yes
7652 if test "${HAVE_GIF}" = "yes"; then
7654 cat >>confdefs.h <<\EOF
7655 #define HAVE_GIF 1
7661 ### Use Mac OS X Carbon API to implement GUI.
7662 HAVE_CARBON=no
7663 if test "${with_carbon}" != "no"; then
7664 echo "$as_me:7664: checking for Carbon/Carbon.h" >&5
7665 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7666 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 #line 7665 "configure"
7671 #include "confdefs.h"
7672 #include <Carbon/Carbon.h>
7673 _ACEOF
7674 if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5
7675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7676 ac_status=$?
7677 egrep -v '^ *\+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 (exit $ac_status); } >/dev/null; then
7682 if test -s conftest.err; then
7683 ac_cpp_err=$ac_c_preproc_warn_flag
7684 else
7685 ac_cpp_err=
7687 else
7688 ac_cpp_err=yes
7690 if test -z "$ac_cpp_err"; then
7691 ac_cv_header_Carbon_Carbon_h=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 ac_cv_header_Carbon_Carbon_h=no
7697 rm -f conftest.err conftest.$ac_ext
7699 echo "$as_me:7699: result: $ac_cv_header_Carbon_Carbon_h" >&5
7700 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7701 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7702 HAVE_CARBON=yes
7707 if test "${HAVE_CARBON}" = "yes"; then
7709 cat >>confdefs.h <<\EOF
7710 #define HAVE_CARBON 1
7715 ### Use session management (-lSM -lICE) if available
7716 HAVE_X_SM=no
7717 if test "${HAVE_X11}" = "yes"; then
7718 echo "$as_me:7718: checking for X11/SM/SMlib.h" >&5
7719 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7720 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line 7719 "configure"
7725 #include "confdefs.h"
7726 #include <X11/SM/SMlib.h>
7727 _ACEOF
7728 if { (eval echo "$as_me:7728: \"$ac_cpp conftest.$ac_ext\"") >&5
7729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7730 ac_status=$?
7731 egrep -v '^ *\+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:7734: \$? = $ac_status" >&5
7735 (exit $ac_status); } >/dev/null; then
7736 if test -s conftest.err; then
7737 ac_cpp_err=$ac_c_preproc_warn_flag
7738 else
7739 ac_cpp_err=
7741 else
7742 ac_cpp_err=yes
7744 if test -z "$ac_cpp_err"; then
7745 ac_cv_header_X11_SM_SMlib_h=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 ac_cv_header_X11_SM_SMlib_h=no
7751 rm -f conftest.err conftest.$ac_ext
7753 echo "$as_me:7753: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7754 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7755 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7756 echo "$as_me:7756: checking for SmcOpenConnection in -lSM" >&5
7757 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7758 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761 ac_check_lib_save_LIBS=$LIBS
7762 LIBS="-lSM $LIBS"
7763 cat >conftest.$ac_ext <<_ACEOF
7764 #line 7759 "configure"
7765 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 #ifdef __cplusplus
7769 extern "C"
7770 #endif
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7773 char SmcOpenConnection ();
7775 main ()
7777 SmcOpenConnection ();
7779 return 0;
7781 _ACEOF
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (eval echo "$as_me:7783: \"$ac_link\"") >&5
7784 (eval $ac_link) 2>&5
7785 ac_status=$?
7786 echo "$as_me:7786: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (eval echo "$as_me:7789: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:7792: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_lib_SM_SmcOpenConnection=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 ac_cv_lib_SM_SmcOpenConnection=no
7800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7803 echo "$as_me:7803: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7804 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7805 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7806 HAVE_X_SM=yes
7807 else
7808 -lICE
7813 if test "${HAVE_X_SM}" = "yes"; then
7815 cat >>confdefs.h <<\EOF
7816 #define HAVE_X_SM 1
7819 case "$LIBS" in
7820 *-lSM*) ;;
7821 *) LIBS="-lSM -lICE $LIBS" ;;
7822 esac
7826 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7827 echo "$as_me:7827: checking whether netdb declares h_errno" >&5
7828 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7829 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line 7828 "configure"
7834 #include "confdefs.h"
7835 #include <netdb.h>
7837 main ()
7839 return h_errno;
7841 return 0;
7843 _ACEOF
7844 rm -f conftest.$ac_objext conftest$ac_exeext
7845 if { (eval echo "$as_me:7845: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>&5
7847 ac_status=$?
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 emacs_cv_netdb_declares_h_errno=yes
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 emacs_cv_netdb_declares_h_errno=no
7862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7864 echo "$as_me:7864: result: $emacs_cv_netdb_declares_h_errno" >&5
7865 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7866 if test $emacs_cv_netdb_declares_h_errno = yes; then
7868 cat >>confdefs.h <<\EOF
7869 #define HAVE_H_ERRNO 1
7874 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7875 # for constant arguments. Useless!
7876 echo "$as_me:7876: checking for working alloca.h" >&5
7877 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7878 if test "${ac_cv_working_alloca_h+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 cat >conftest.$ac_ext <<_ACEOF
7882 #line 7877 "configure"
7883 #include "confdefs.h"
7884 #include <alloca.h>
7886 main ()
7888 char *p = (char *) alloca (2 * sizeof (int));
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:7894: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7896 ac_status=$?
7897 echo "$as_me:7897: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:7900: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:7903: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_working_alloca_h=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 ac_cv_working_alloca_h=no
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913 echo "$as_me:7913: result: $ac_cv_working_alloca_h" >&5
7914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7915 if test $ac_cv_working_alloca_h = yes; then
7917 cat >>confdefs.h <<\EOF
7918 #define HAVE_ALLOCA_H 1
7923 echo "$as_me:7923: checking for alloca" >&5
7924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7925 if test "${ac_cv_func_alloca_works+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line 7924 "configure"
7930 #include "confdefs.h"
7931 #ifdef __GNUC__
7932 # define alloca __builtin_alloca
7933 #else
7934 # ifdef _MSC_VER
7935 # include <malloc.h>
7936 # define alloca _alloca
7937 # else
7938 # if HAVE_ALLOCA_H
7939 # include <alloca.h>
7940 # else
7941 # ifdef _AIX
7942 #pragma alloca
7943 # else
7944 # ifndef alloca /* predefined by HP cc +Olibcalls */
7945 char *alloca ();
7946 # endif
7947 # endif
7948 # endif
7949 # endif
7950 #endif
7953 main ()
7955 char *p = (char *) alloca (1);
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7963 ac_status=$?
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_func_alloca_works=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 ac_cv_func_alloca_works=no
7978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7980 echo "$as_me:7980: result: $ac_cv_func_alloca_works" >&5
7981 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7983 if test $ac_cv_func_alloca_works = yes; then
7985 cat >>confdefs.h <<\EOF
7986 #define HAVE_ALLOCA 1
7989 else
7990 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7991 # that cause trouble. Some versions do not even contain alloca or
7992 # contain a buggy version. If you still want to use their alloca,
7993 # use ar to extract alloca.o from them instead of compiling alloca.c.
7995 ALLOCA=alloca.$ac_objext
7997 cat >>confdefs.h <<\EOF
7998 #define C_ALLOCA 1
8001 echo "$as_me:8001: checking whether \`alloca.c' needs Cray hooks" >&5
8002 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8003 if test "${ac_cv_os_cray+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 cat >conftest.$ac_ext <<_ACEOF
8007 #line 8002 "configure"
8008 #include "confdefs.h"
8009 #if defined(CRAY) && ! defined(CRAY2)
8010 webecray
8011 #else
8012 wenotbecray
8013 #endif
8015 _ACEOF
8016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8017 egrep "webecray" >/dev/null 2>&1; then
8018 ac_cv_os_cray=yes
8019 else
8020 ac_cv_os_cray=no
8022 rm -f conftest*
8025 echo "$as_me:8025: result: $ac_cv_os_cray" >&5
8026 echo "${ECHO_T}$ac_cv_os_cray" >&6
8027 if test $ac_cv_os_cray = yes; then
8028 for ac_func in _getb67 GETB67 getb67; do
8029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030 echo "$as_me:8030: checking for $ac_func" >&5
8031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8032 if eval "test \"\${$as_ac_var+set}\" = set"; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035 cat >conftest.$ac_ext <<_ACEOF
8036 #line 8031 "configure"
8037 #include "confdefs.h"
8038 /* System header to define __stub macros and hopefully few prototypes,
8039 which can conflict with char $ac_func (); below. */
8040 #include <assert.h>
8041 /* Override any gcc2 internal prototype to avoid an error. */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8047 char $ac_func ();
8048 char (*f) ();
8051 main ()
8053 /* The GNU C library defines this for functions which it implements
8054 to always fail with ENOSYS. Some functions are actually named
8055 something starting with __ and the normal name is an alias. */
8056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8057 choke me
8058 #else
8059 f = $ac_func;
8060 #endif
8063 return 0;
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:8067: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8069 ac_status=$?
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:8073: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 eval "$as_ac_var=yes"
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8082 eval "$as_ac_var=no"
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 echo "$as_me:8086: result: `eval echo '${'$as_ac_var'}'`" >&5
8087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8088 if test `eval echo '${'$as_ac_var'}'` = yes; then
8090 cat >>confdefs.h <<EOF
8091 #define CRAY_STACKSEG_END $ac_func
8094 break
8097 done
8100 echo "$as_me:8100: checking stack direction for C alloca" >&5
8101 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8102 if test "${ac_cv_c_stack_direction+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 if test "$cross_compiling" = yes; then
8106 ac_cv_c_stack_direction=0
8107 else
8108 cat >conftest.$ac_ext <<_ACEOF
8109 #line 8104 "configure"
8110 #include "confdefs.h"
8112 find_stack_direction ()
8114 static char *addr = 0;
8115 auto char dummy;
8116 if (addr == 0)
8118 addr = &dummy;
8119 return find_stack_direction ();
8121 else
8122 return (&dummy > addr) ? 1 : -1;
8126 main ()
8128 exit (find_stack_direction () < 0);
8130 _ACEOF
8131 rm -f conftest$ac_exeext
8132 if { (eval echo "$as_me:8132: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>&5
8134 ac_status=$?
8135 echo "$as_me:8135: \$? = $ac_status" >&5
8136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8137 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:8140: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_cv_c_stack_direction=1
8143 else
8144 echo "$as_me: program exited with status $ac_status" >&5
8145 echo "$as_me: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 ac_cv_c_stack_direction=-1
8149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:8152: result: $ac_cv_c_stack_direction" >&5
8153 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8155 cat >>confdefs.h <<EOF
8156 #define STACK_DIRECTION $ac_cv_c_stack_direction
8161 # fmod, logb, and frexp are found in -lm on most systems.
8162 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8164 echo "$as_me:8164: checking for sqrt in -lm" >&5
8165 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8166 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169 ac_check_lib_save_LIBS=$LIBS
8170 LIBS="-lm $LIBS"
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line 8167 "configure"
8173 #include "confdefs.h"
8175 /* Override any gcc2 internal prototype to avoid an error. */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181 char sqrt ();
8183 main ()
8185 sqrt ();
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:8191: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>&5
8193 ac_status=$?
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (eval echo "$as_me:8197: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:8200: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_lib_m_sqrt=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 ac_cv_lib_m_sqrt=no
8208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 LIBS=$ac_check_lib_save_LIBS
8211 echo "$as_me:8211: result: $ac_cv_lib_m_sqrt" >&5
8212 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8213 if test $ac_cv_lib_m_sqrt = yes; then
8214 cat >>confdefs.h <<EOF
8215 #define HAVE_LIBM 1
8218 LIBS="-lm $LIBS"
8222 # Check for mail-locking functions in a "mail" library
8224 echo "$as_me:8224: checking for maillock in -lmail" >&5
8225 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8226 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-lmail $LIBS"
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line 8227 "configure"
8233 #include "confdefs.h"
8235 /* Override any gcc2 internal prototype to avoid an error. */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241 char maillock ();
8243 main ()
8245 maillock ();
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (eval echo "$as_me:8251: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8253 ac_status=$?
8254 echo "$as_me:8254: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:8257: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:8260: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_lib_mail_maillock=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8266 ac_cv_lib_mail_maillock=no
8268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8269 LIBS=$ac_check_lib_save_LIBS
8271 echo "$as_me:8271: result: $ac_cv_lib_mail_maillock" >&5
8272 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8273 if test $ac_cv_lib_mail_maillock = yes; then
8274 cat >>confdefs.h <<EOF
8275 #define HAVE_LIBMAIL 1
8278 LIBS="-lmail $LIBS"
8282 echo "$as_me:8282: checking for maillock in -llockfile" >&5
8283 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8284 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-llockfile $LIBS"
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line 8285 "configure"
8291 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 #ifdef __cplusplus
8295 extern "C"
8296 #endif
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299 char maillock ();
8301 main ()
8303 maillock ();
8305 return 0;
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:8309: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8311 ac_status=$?
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:8315: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_lib_lockfile_maillock=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 ac_cv_lib_lockfile_maillock=no
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8329 echo "$as_me:8329: result: $ac_cv_lib_lockfile_maillock" >&5
8330 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8331 if test $ac_cv_lib_lockfile_maillock = yes; then
8332 cat >>confdefs.h <<EOF
8333 #define HAVE_LIBLOCKFILE 1
8336 LIBS="-llockfile $LIBS"
8340 # If we have the shared liblockfile, assume we must use it for mail
8341 # locking (e.g. Debian). If we couldn't link against liblockfile
8342 # (no liblockfile.a installed), ensure that we don't need to.
8343 if test "$ac_cv_lib_lockfile_maillock" = no; then
8344 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8345 set dummy liblockfile.so; ac_word=$2
8346 echo "$as_me:8346: checking for $ac_word" >&5
8347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8348 if test "${ac_cv_prog_liblockfile+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 if test -n "$liblockfile"; then
8352 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8353 else
8354 ac_save_IFS=$IFS; IFS=$ac_path_separator
8355 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8356 for ac_dir in $ac_dummy; do
8357 IFS=$ac_save_IFS
8358 test -z "$ac_dir" && ac_dir=.
8359 $as_executable_p "$ac_dir/$ac_word" || continue
8360 ac_cv_prog_liblockfile="yes"
8361 echo "$as_me:8361: found $ac_dir/$ac_word" >&5
8362 break
8363 done
8365 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8368 liblockfile=$ac_cv_prog_liblockfile
8369 if test -n "$liblockfile"; then
8370 echo "$as_me:8370: result: $liblockfile" >&5
8371 echo "${ECHO_T}$liblockfile" >&6
8372 else
8373 echo "$as_me:8373: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8377 if test $ac_cv_prog_liblockfile = yes; then
8378 { { echo "$as_me:8378: error: Shared liblockfile found but can't link against it.
8379 This probably means that movemail could lose mail.
8380 There may be a \`development' package to install containing liblockfile." >&5
8381 echo "$as_me: error: Shared liblockfile found but can't link against it.
8382 This probably means that movemail could lose mail.
8383 There may be a \`development' package to install containing liblockfile." >&2;}
8384 { (exit 1); exit 1; }; }
8385 else
8386 cat >>confdefs.h <<\EOF
8387 #define LIBMAIL -llockfile
8391 else :
8394 for ac_func in touchlock
8396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8397 echo "$as_me:8397: checking for $ac_func" >&5
8398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_var+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line 8398 "configure"
8404 #include "confdefs.h"
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char $ac_func (); below. */
8407 #include <assert.h>
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 /* We use char because int might match the return type of a gcc2
8413 builtin and then its argument prototype would still apply. */
8414 char $ac_func ();
8415 char (*f) ();
8418 main ()
8420 /* The GNU C library defines this for functions which it implements
8421 to always fail with ENOSYS. Some functions are actually named
8422 something starting with __ and the normal name is an alias. */
8423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8424 choke me
8425 #else
8426 f = $ac_func;
8427 #endif
8430 return 0;
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
8435 (eval $ac_link) 2>&5
8436 ac_status=$?
8437 echo "$as_me:8437: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:8440: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:8443: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 eval "$as_ac_var=yes"
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 eval "$as_ac_var=no"
8451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453 echo "$as_me:8453: result: `eval echo '${'$as_ac_var'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8455 if test `eval echo '${'$as_ac_var'}'` = yes; then
8456 cat >>confdefs.h <<EOF
8457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8461 done
8463 for ac_header in maillock.h
8465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 echo "$as_me:8466: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line 8467 "configure"
8473 #include "confdefs.h"
8474 #include <$ac_header>
8475 _ACEOF
8476 if { (eval echo "$as_me:8476: \"$ac_cpp conftest.$ac_ext\"") >&5
8477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478 ac_status=$?
8479 egrep -v '^ *\+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:8482: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null; then
8484 if test -s conftest.err; then
8485 ac_cpp_err=$ac_c_preproc_warn_flag
8486 else
8487 ac_cpp_err=
8489 else
8490 ac_cpp_err=yes
8492 if test -z "$ac_cpp_err"; then
8493 eval "$as_ac_Header=yes"
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8497 eval "$as_ac_Header=no"
8499 rm -f conftest.err conftest.$ac_ext
8501 echo "$as_me:8501: result: `eval echo '${'$as_ac_Header'}'`" >&5
8502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8504 cat >>confdefs.h <<EOF
8505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509 done
8511 for ac_func in gethostname getdomainname dup2 \
8512 rename closedir mkdir rmdir sysinfo \
8513 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8514 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8515 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8516 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8517 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8518 gai_strerror mkstemp getline getdelim
8520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8521 echo "$as_me:8521: checking for $ac_func" >&5
8522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8523 if eval "test \"\${$as_ac_var+set}\" = set"; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 #line 8522 "configure"
8528 #include "confdefs.h"
8529 /* System header to define __stub macros and hopefully few prototypes,
8530 which can conflict with char $ac_func (); below. */
8531 #include <assert.h>
8532 /* Override any gcc2 internal prototype to avoid an error. */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538 char $ac_func ();
8539 char (*f) ();
8542 main ()
8544 /* The GNU C library defines this for functions which it implements
8545 to always fail with ENOSYS. Some functions are actually named
8546 something starting with __ and the normal name is an alias. */
8547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8548 choke me
8549 #else
8550 f = $ac_func;
8551 #endif
8554 return 0;
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:8558: \"$ac_link\"") >&5
8559 (eval $ac_link) 2>&5
8560 ac_status=$?
8561 echo "$as_me:8561: \$? = $ac_status" >&5
8562 (exit $ac_status); } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:8564: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:8567: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 eval "$as_ac_var=yes"
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8573 eval "$as_ac_var=no"
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8577 echo "$as_me:8577: result: `eval echo '${'$as_ac_var'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8579 if test `eval echo '${'$as_ac_var'}'` = yes; then
8580 cat >>confdefs.h <<EOF
8581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8585 done
8587 for ac_header in sys/un.h
8589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8590 echo "$as_me:8590: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line 8591 "configure"
8597 #include "confdefs.h"
8598 #include <$ac_header>
8599 _ACEOF
8600 if { (eval echo "$as_me:8600: \"$ac_cpp conftest.$ac_ext\"") >&5
8601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8602 ac_status=$?
8603 egrep -v '^ *\+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:8606: \$? = $ac_status" >&5
8607 (exit $ac_status); } >/dev/null; then
8608 if test -s conftest.err; then
8609 ac_cpp_err=$ac_c_preproc_warn_flag
8610 else
8611 ac_cpp_err=
8613 else
8614 ac_cpp_err=yes
8616 if test -z "$ac_cpp_err"; then
8617 eval "$as_ac_Header=yes"
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 eval "$as_ac_Header=no"
8623 rm -f conftest.err conftest.$ac_ext
8625 echo "$as_me:8625: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8628 cat >>confdefs.h <<EOF
8629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 done
8635 for ac_header in sys/time.h unistd.h
8637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638 echo "$as_me:8638: checking for $ac_header" >&5
8639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line 8639 "configure"
8645 #include "confdefs.h"
8646 #include <$ac_header>
8647 _ACEOF
8648 if { (eval echo "$as_me:8648: \"$ac_cpp conftest.$ac_ext\"") >&5
8649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650 ac_status=$?
8651 egrep -v '^ *\+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:8654: \$? = $ac_status" >&5
8655 (exit $ac_status); } >/dev/null; then
8656 if test -s conftest.err; then
8657 ac_cpp_err=$ac_c_preproc_warn_flag
8658 else
8659 ac_cpp_err=
8661 else
8662 ac_cpp_err=yes
8664 if test -z "$ac_cpp_err"; then
8665 eval "$as_ac_Header=yes"
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 eval "$as_ac_Header=no"
8671 rm -f conftest.err conftest.$ac_ext
8673 echo "$as_me:8673: result: `eval echo '${'$as_ac_Header'}'`" >&5
8674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8676 cat >>confdefs.h <<EOF
8677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8681 done
8683 for ac_func in alarm
8685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686 echo "$as_me:8686: checking for $ac_func" >&5
8687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8688 if eval "test \"\${$as_ac_var+set}\" = set"; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line 8687 "configure"
8693 #include "confdefs.h"
8694 /* System header to define __stub macros and hopefully few prototypes,
8695 which can conflict with char $ac_func (); below. */
8696 #include <assert.h>
8697 /* Override any gcc2 internal prototype to avoid an error. */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char $ac_func ();
8704 char (*f) ();
8707 main ()
8709 /* The GNU C library defines this for functions which it implements
8710 to always fail with ENOSYS. Some functions are actually named
8711 something starting with __ and the normal name is an alias. */
8712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8713 choke me
8714 #else
8715 f = $ac_func;
8716 #endif
8719 return 0;
8721 _ACEOF
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (eval echo "$as_me:8723: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>&5
8725 ac_status=$?
8726 echo "$as_me:8726: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:8729: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:8732: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 eval "$as_ac_var=no"
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8742 echo "$as_me:8742: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745 cat >>confdefs.h <<EOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 done
8752 echo "$as_me:8752: checking for working mktime" >&5
8753 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8754 if test "${ac_cv_func_working_mktime+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 if test "$cross_compiling" = yes; then
8758 ac_cv_func_working_mktime=no
8759 else
8760 cat >conftest.$ac_ext <<_ACEOF
8761 #line 8756 "configure"
8762 #include "confdefs.h"
8763 /* Test program from Paul Eggert and Tony Leneis. */
8764 #if TIME_WITH_SYS_TIME
8765 # include <sys/time.h>
8766 # include <time.h>
8767 #else
8768 # if HAVE_SYS_TIME_H
8769 # include <sys/time.h>
8770 # else
8771 # include <time.h>
8772 # endif
8773 #endif
8775 #if HAVE_UNISTD_H
8776 # include <unistd.h>
8777 #endif
8779 #if !HAVE_ALARM
8780 # define alarm(X) /* empty */
8781 #endif
8783 /* Work around redefinition to rpl_putenv by other config tests. */
8784 #undef putenv
8786 static time_t time_t_max;
8788 /* Values we'll use to set the TZ environment variable. */
8789 static const char *const tz_strings[] = {
8790 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8791 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8793 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8795 /* Fail if mktime fails to convert a date in the spring-forward gap.
8796 Based on a problem report from Andreas Jaeger. */
8797 static void
8798 spring_forward_gap ()
8800 /* glibc (up to about 1998-10-07) failed this test. */
8801 struct tm tm;
8803 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8804 instead of "TZ=America/Vancouver" in order to detect the bug even
8805 on systems that don't support the Olson extension, or don't have the
8806 full zoneinfo tables installed. */
8807 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8809 tm.tm_year = 98;
8810 tm.tm_mon = 3;
8811 tm.tm_mday = 5;
8812 tm.tm_hour = 2;
8813 tm.tm_min = 0;
8814 tm.tm_sec = 0;
8815 tm.tm_isdst = -1;
8816 if (mktime (&tm) == (time_t)-1)
8817 exit (1);
8820 static void
8821 mktime_test (now)
8822 time_t now;
8824 struct tm *lt;
8825 if ((lt = localtime (&now)) && mktime (lt) != now)
8826 exit (1);
8827 now = time_t_max - now;
8828 if ((lt = localtime (&now)) && mktime (lt) != now)
8829 exit (1);
8832 static void
8833 irix_6_4_bug ()
8835 /* Based on code from Ariel Faigon. */
8836 struct tm tm;
8837 tm.tm_year = 96;
8838 tm.tm_mon = 3;
8839 tm.tm_mday = 0;
8840 tm.tm_hour = 0;
8841 tm.tm_min = 0;
8842 tm.tm_sec = 0;
8843 tm.tm_isdst = -1;
8844 mktime (&tm);
8845 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8846 exit (1);
8849 static void
8850 bigtime_test (j)
8851 int j;
8853 struct tm tm;
8854 time_t now;
8855 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8856 now = mktime (&tm);
8857 if (now != (time_t) -1)
8859 struct tm *lt = localtime (&now);
8860 if (! (lt
8861 && lt->tm_year == tm.tm_year
8862 && lt->tm_mon == tm.tm_mon
8863 && lt->tm_mday == tm.tm_mday
8864 && lt->tm_hour == tm.tm_hour
8865 && lt->tm_min == tm.tm_min
8866 && lt->tm_sec == tm.tm_sec
8867 && lt->tm_yday == tm.tm_yday
8868 && lt->tm_wday == tm.tm_wday
8869 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8870 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8871 exit (1);
8876 main ()
8878 time_t t, delta;
8879 int i, j;
8881 /* This test makes some buggy mktime implementations loop.
8882 Give up after 60 seconds; a mktime slower than that
8883 isn't worth using anyway. */
8884 alarm (60);
8886 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8887 continue;
8888 time_t_max--;
8889 delta = time_t_max / 997; /* a suitable prime number */
8890 for (i = 0; i < N_STRINGS; i++)
8892 if (tz_strings[i])
8893 putenv (tz_strings[i]);
8895 for (t = 0; t <= time_t_max - delta; t += delta)
8896 mktime_test (t);
8897 mktime_test ((time_t) 60 * 60);
8898 mktime_test ((time_t) 60 * 60 * 24);
8900 for (j = 1; 0 < j; j *= 2)
8901 bigtime_test (j);
8902 bigtime_test (j - 1);
8904 irix_6_4_bug ();
8905 spring_forward_gap ();
8906 exit (0);
8908 _ACEOF
8909 rm -f conftest$ac_exeext
8910 if { (eval echo "$as_me:8910: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>&5
8912 ac_status=$?
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8915 { (eval echo "$as_me:8915: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:8918: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_cv_func_working_mktime=yes
8921 else
8922 echo "$as_me: program exited with status $ac_status" >&5
8923 echo "$as_me: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 ac_cv_func_working_mktime=no
8927 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8930 echo "$as_me:8930: result: $ac_cv_func_working_mktime" >&5
8931 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8932 if test $ac_cv_func_working_mktime = no; then
8933 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8936 if test "$ac_cv_func_working_mktime" = no; then
8938 cat >>confdefs.h <<\EOF
8939 #define BROKEN_MKTIME 1
8944 ac_have_func=no # yes means we've found a way to get the load average.
8946 ac_save_LIBS=$LIBS
8948 # Check for getloadavg, but be sure not to touch the cache variable.
8949 (echo "$as_me:8949: checking for getloadavg" >&5
8950 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8951 if test "${ac_cv_func_getloadavg+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line 8950 "configure"
8956 #include "confdefs.h"
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char getloadavg (); below. */
8959 #include <assert.h>
8960 /* Override any gcc2 internal prototype to avoid an error. */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 /* We use char because int might match the return type of a gcc2
8965 builtin and then its argument prototype would still apply. */
8966 char getloadavg ();
8967 char (*f) ();
8970 main ()
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8976 choke me
8977 #else
8978 f = getloadavg;
8979 #endif
8982 return 0;
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8988 ac_status=$?
8989 echo "$as_me:8989: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:8995: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_func_getloadavg=yes
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9001 ac_cv_func_getloadavg=no
9003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9005 echo "$as_me:9005: result: $ac_cv_func_getloadavg" >&5
9006 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9007 if test $ac_cv_func_getloadavg = yes; then
9008 exit 0
9009 else
9010 exit 1
9012 ) && ac_have_func=yes
9014 # On HPUX9, an unprivileged user can get load averages through this function.
9016 for ac_func in pstat_getdynamic
9018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9019 echo "$as_me:9019: checking for $ac_func" >&5
9020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9021 if eval "test \"\${$as_ac_var+set}\" = set"; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 #line 9020 "configure"
9026 #include "confdefs.h"
9027 /* System header to define __stub macros and hopefully few prototypes,
9028 which can conflict with char $ac_func (); below. */
9029 #include <assert.h>
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036 char $ac_func ();
9037 char (*f) ();
9040 main ()
9042 /* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9046 choke me
9047 #else
9048 f = $ac_func;
9049 #endif
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>&5
9058 ac_status=$?
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_var=yes"
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9071 eval "$as_ac_var=no"
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9075 echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9077 if test `eval echo '${'$as_ac_var'}'` = yes; then
9078 cat >>confdefs.h <<EOF
9079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9083 done
9085 # Solaris has libkstat which does not require root.
9087 echo "$as_me:9087: checking for kstat_open in -lkstat" >&5
9088 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9089 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_check_lib_save_LIBS=$LIBS
9093 LIBS="-lkstat $LIBS"
9094 cat >conftest.$ac_ext <<_ACEOF
9095 #line 9090 "configure"
9096 #include "confdefs.h"
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char kstat_open ();
9106 main ()
9108 kstat_open ();
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9116 ac_status=$?
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:9123: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_kstat_kstat_open=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 ac_cv_lib_kstat_kstat_open=no
9131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132 LIBS=$ac_check_lib_save_LIBS
9134 echo "$as_me:9134: result: $ac_cv_lib_kstat_kstat_open" >&5
9135 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9136 if test $ac_cv_lib_kstat_kstat_open = yes; then
9137 cat >>confdefs.h <<EOF
9138 #define HAVE_LIBKSTAT 1
9141 LIBS="-lkstat $LIBS"
9145 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9147 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9148 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9149 # to get the right answer into the cache.
9150 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9151 if test $ac_have_func = no; then
9152 echo "$as_me:9152: checking for elf_begin in -lelf" >&5
9153 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9154 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 ac_check_lib_save_LIBS=$LIBS
9158 LIBS="-lelf $LIBS"
9159 cat >conftest.$ac_ext <<_ACEOF
9160 #line 9155 "configure"
9161 #include "confdefs.h"
9163 /* Override any gcc2 internal prototype to avoid an error. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9169 char elf_begin ();
9171 main ()
9173 elf_begin ();
9175 return 0;
9177 _ACEOF
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (eval echo "$as_me:9179: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>&5
9181 ac_status=$?
9182 echo "$as_me:9182: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:9185: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:9188: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 ac_cv_lib_elf_elf_begin=yes
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 ac_cv_lib_elf_elf_begin=no
9196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9197 LIBS=$ac_check_lib_save_LIBS
9199 echo "$as_me:9199: result: $ac_cv_lib_elf_elf_begin" >&5
9200 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9201 if test $ac_cv_lib_elf_elf_begin = yes; then
9202 LIBS="-lelf $LIBS"
9206 if test $ac_have_func = no; then
9207 echo "$as_me:9207: checking for kvm_open in -lkvm" >&5
9208 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9209 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lkvm $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line 9210 "configure"
9216 #include "confdefs.h"
9218 /* Override any gcc2 internal prototype to avoid an error. */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9224 char kvm_open ();
9226 main ()
9228 kvm_open ();
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:9234: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>&5
9236 ac_status=$?
9237 echo "$as_me:9237: \$? = $ac_status" >&5
9238 (exit $ac_status); } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:9240: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:9243: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_kvm_kvm_open=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 ac_cv_lib_kvm_kvm_open=no
9251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 echo "$as_me:9254: result: $ac_cv_lib_kvm_kvm_open" >&5
9255 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9256 if test $ac_cv_lib_kvm_kvm_open = yes; then
9257 LIBS="-lkvm $LIBS"
9260 # Check for the 4.4BSD definition of getloadavg.
9261 echo "$as_me:9261: checking for getloadavg in -lutil" >&5
9262 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9263 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lutil $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line 9264 "configure"
9270 #include "confdefs.h"
9272 /* Override any gcc2 internal prototype to avoid an error. */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9278 char getloadavg ();
9280 main ()
9282 getloadavg ();
9284 return 0;
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (eval echo "$as_me:9288: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9290 ac_status=$?
9291 echo "$as_me:9291: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:9294: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_util_getloadavg=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_lib_util_getloadavg=no
9305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 echo "$as_me:9308: result: $ac_cv_lib_util_getloadavg" >&5
9309 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9310 if test $ac_cv_lib_util_getloadavg = yes; then
9311 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9316 if test $ac_have_func = no; then
9317 # There is a commonly available library for RS/6000 AIX.
9318 # Since it is not a standard part of AIX, it might be installed locally.
9319 ac_getloadavg_LIBS=$LIBS
9320 LIBS="-L/usr/local/lib $LIBS"
9321 echo "$as_me:9321: checking for getloadavg in -lgetloadavg" >&5
9322 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9323 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 ac_check_lib_save_LIBS=$LIBS
9327 LIBS="-lgetloadavg $LIBS"
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line 9324 "configure"
9330 #include "confdefs.h"
9332 /* Override any gcc2 internal prototype to avoid an error. */
9333 #ifdef __cplusplus
9334 extern "C"
9335 #endif
9336 /* We use char because int might match the return type of a gcc2
9337 builtin and then its argument prototype would still apply. */
9338 char getloadavg ();
9340 main ()
9342 getloadavg ();
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:9348: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>&5
9350 ac_status=$?
9351 echo "$as_me:9351: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:9354: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:9357: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_lib_getloadavg_getloadavg=yes
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 ac_cv_lib_getloadavg_getloadavg=no
9365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9368 echo "$as_me:9368: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9369 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9370 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9371 LIBS="-lgetloadavg $LIBS"
9372 else
9373 LIBS=$ac_getloadavg_LIBS
9378 # Make sure it is really in the library, if we think we found it,
9379 # otherwise set up the replacement function.
9381 for ac_func in getloadavg
9383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 echo "$as_me:9384: checking for $ac_func" >&5
9385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_var+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line 9385 "configure"
9391 #include "confdefs.h"
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char $ac_func (); below. */
9394 #include <assert.h>
9395 /* Override any gcc2 internal prototype to avoid an error. */
9396 #ifdef __cplusplus
9397 extern "C"
9398 #endif
9399 /* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401 char $ac_func ();
9402 char (*f) ();
9405 main ()
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9411 choke me
9412 #else
9413 f = $ac_func;
9414 #endif
9417 return 0;
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (eval echo "$as_me:9421: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9423 ac_status=$?
9424 echo "$as_me:9424: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:9427: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:9430: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 eval "$as_ac_var=yes"
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 eval "$as_ac_var=no"
9438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9440 echo "$as_me:9440: result: `eval echo '${'$as_ac_var'}'`" >&5
9441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9442 if test `eval echo '${'$as_ac_var'}'` = yes; then
9443 cat >>confdefs.h <<EOF
9444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9447 else
9448 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9450 cat >>confdefs.h <<\EOF
9451 #define C_GETLOADAVG 1
9454 # Figure out what our getloadavg.c needs.
9455 ac_have_func=no
9456 echo "$as_me:9456: checking for sys/dg_sys_info.h" >&5
9457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 cat >conftest.$ac_ext <<_ACEOF
9462 #line 9457 "configure"
9463 #include "confdefs.h"
9464 #include <sys/dg_sys_info.h>
9465 _ACEOF
9466 if { (eval echo "$as_me:9466: \"$ac_cpp conftest.$ac_ext\"") >&5
9467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9468 ac_status=$?
9469 egrep -v '^ *\+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit $ac_status); } >/dev/null; then
9474 if test -s conftest.err; then
9475 ac_cpp_err=$ac_c_preproc_warn_flag
9476 else
9477 ac_cpp_err=
9479 else
9480 ac_cpp_err=yes
9482 if test -z "$ac_cpp_err"; then
9483 ac_cv_header_sys_dg_sys_info_h=yes
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9487 ac_cv_header_sys_dg_sys_info_h=no
9489 rm -f conftest.err conftest.$ac_ext
9491 echo "$as_me:9491: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9492 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9493 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9494 ac_have_func=yes
9496 cat >>confdefs.h <<\EOF
9497 #define DGUX 1
9500 echo "$as_me:9500: checking for dg_sys_info in -ldgc" >&5
9501 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9502 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-ldgc $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line 9503 "configure"
9509 #include "confdefs.h"
9511 /* Override any gcc2 internal prototype to avoid an error. */
9512 #ifdef __cplusplus
9513 extern "C"
9514 #endif
9515 /* We use char because int might match the return type of a gcc2
9516 builtin and then its argument prototype would still apply. */
9517 char dg_sys_info ();
9519 main ()
9521 dg_sys_info ();
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:9527: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>&5
9529 ac_status=$?
9530 echo "$as_me:9530: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -s conftest$ac_exeext'
9533 { (eval echo "$as_me:9533: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:9536: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_lib_dgc_dg_sys_info=yes
9539 else
9540 echo "$as_me: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9542 ac_cv_lib_dgc_dg_sys_info=no
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9545 LIBS=$ac_check_lib_save_LIBS
9547 echo "$as_me:9547: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9548 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9549 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9550 cat >>confdefs.h <<EOF
9551 #define HAVE_LIBDGC 1
9554 LIBS="-ldgc $LIBS"
9560 echo "$as_me:9560: checking for locale.h" >&5
9561 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9562 if test "${ac_cv_header_locale_h+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line 9561 "configure"
9567 #include "confdefs.h"
9568 #include <locale.h>
9569 _ACEOF
9570 if { (eval echo "$as_me:9570: \"$ac_cpp conftest.$ac_ext\"") >&5
9571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9572 ac_status=$?
9573 egrep -v '^ *\+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 (exit $ac_status); } >/dev/null; then
9578 if test -s conftest.err; then
9579 ac_cpp_err=$ac_c_preproc_warn_flag
9580 else
9581 ac_cpp_err=
9583 else
9584 ac_cpp_err=yes
9586 if test -z "$ac_cpp_err"; then
9587 ac_cv_header_locale_h=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 ac_cv_header_locale_h=no
9593 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:9595: result: $ac_cv_header_locale_h" >&5
9596 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9598 for ac_func in setlocale
9600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9601 echo "$as_me:9601: checking for $ac_func" >&5
9602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9603 if eval "test \"\${$as_ac_var+set}\" = set"; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line 9602 "configure"
9608 #include "confdefs.h"
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char $ac_func (); below. */
9611 #include <assert.h>
9612 /* Override any gcc2 internal prototype to avoid an error. */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 /* We use char because int might match the return type of a gcc2
9617 builtin and then its argument prototype would still apply. */
9618 char $ac_func ();
9619 char (*f) ();
9622 main ()
9624 /* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
9627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9628 choke me
9629 #else
9630 f = $ac_func;
9631 #endif
9634 return 0;
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (eval echo "$as_me:9638: \"$ac_link\"") >&5
9639 (eval $ac_link) 2>&5
9640 ac_status=$?
9641 echo "$as_me:9641: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -s conftest$ac_exeext'
9644 { (eval echo "$as_me:9644: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:9647: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 eval "$as_ac_var=yes"
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9653 eval "$as_ac_var=no"
9655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9657 echo "$as_me:9657: result: `eval echo '${'$as_ac_var'}'`" >&5
9658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9659 if test `eval echo '${'$as_ac_var'}'` = yes; then
9660 cat >>confdefs.h <<EOF
9661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9665 done
9667 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9668 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9669 # Irix 4.0.5F has the header but not the library.
9670 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9671 ac_have_func=yes
9673 cat >>confdefs.h <<\EOF
9674 #define SVR4 1
9679 if test $ac_have_func = no; then
9680 echo "$as_me:9680: checking for inq_stats/cpustats.h" >&5
9681 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9682 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line 9681 "configure"
9687 #include "confdefs.h"
9688 #include <inq_stats/cpustats.h>
9689 _ACEOF
9690 if { (eval echo "$as_me:9690: \"$ac_cpp conftest.$ac_ext\"") >&5
9691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9692 ac_status=$?
9693 egrep -v '^ *\+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:9696: \$? = $ac_status" >&5
9697 (exit $ac_status); } >/dev/null; then
9698 if test -s conftest.err; then
9699 ac_cpp_err=$ac_c_preproc_warn_flag
9700 else
9701 ac_cpp_err=
9703 else
9704 ac_cpp_err=yes
9706 if test -z "$ac_cpp_err"; then
9707 ac_cv_header_inq_stats_cpustats_h=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 ac_cv_header_inq_stats_cpustats_h=no
9713 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:9715: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9716 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9717 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9718 ac_have_func=yes
9720 cat >>confdefs.h <<\EOF
9721 #define UMAX 1
9724 cat >>confdefs.h <<\EOF
9725 #define UMAX4_3 1
9732 if test $ac_have_func = no; then
9733 echo "$as_me:9733: checking for sys/cpustats.h" >&5
9734 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9735 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 cat >conftest.$ac_ext <<_ACEOF
9739 #line 9734 "configure"
9740 #include "confdefs.h"
9741 #include <sys/cpustats.h>
9742 _ACEOF
9743 if { (eval echo "$as_me:9743: \"$ac_cpp conftest.$ac_ext\"") >&5
9744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9745 ac_status=$?
9746 egrep -v '^ *\+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); } >/dev/null; then
9751 if test -s conftest.err; then
9752 ac_cpp_err=$ac_c_preproc_warn_flag
9753 else
9754 ac_cpp_err=
9756 else
9757 ac_cpp_err=yes
9759 if test -z "$ac_cpp_err"; then
9760 ac_cv_header_sys_cpustats_h=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 ac_cv_header_sys_cpustats_h=no
9766 rm -f conftest.err conftest.$ac_ext
9768 echo "$as_me:9768: result: $ac_cv_header_sys_cpustats_h" >&5
9769 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9770 if test $ac_cv_header_sys_cpustats_h = yes; then
9771 ac_have_func=yes; cat >>confdefs.h <<\EOF
9772 #define UMAX 1
9779 if test $ac_have_func = no; then
9781 for ac_header in mach/mach.h
9783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784 echo "$as_me:9784: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line 9785 "configure"
9791 #include "confdefs.h"
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (eval echo "$as_me:9794: \"$ac_cpp conftest.$ac_ext\"") >&5
9795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9796 ac_status=$?
9797 egrep -v '^ *\+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:9800: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null; then
9802 if test -s conftest.err; then
9803 ac_cpp_err=$ac_c_preproc_warn_flag
9804 else
9805 ac_cpp_err=
9807 else
9808 ac_cpp_err=yes
9810 if test -z "$ac_cpp_err"; then
9811 eval "$as_ac_Header=yes"
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 eval "$as_ac_Header=no"
9817 rm -f conftest.err conftest.$ac_ext
9819 echo "$as_me:9819: result: `eval echo '${'$as_ac_Header'}'`" >&5
9820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<EOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 done
9831 for ac_header in nlist.h
9833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 echo "$as_me:9834: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line 9835 "configure"
9841 #include "confdefs.h"
9842 #include <$ac_header>
9843 _ACEOF
9844 if { (eval echo "$as_me:9844: \"$ac_cpp conftest.$ac_ext\"") >&5
9845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9846 ac_status=$?
9847 egrep -v '^ *\+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:9850: \$? = $ac_status" >&5
9851 (exit $ac_status); } >/dev/null; then
9852 if test -s conftest.err; then
9853 ac_cpp_err=$ac_c_preproc_warn_flag
9854 else
9855 ac_cpp_err=
9857 else
9858 ac_cpp_err=yes
9860 if test -z "$ac_cpp_err"; then
9861 eval "$as_ac_Header=yes"
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 eval "$as_ac_Header=no"
9867 rm -f conftest.err conftest.$ac_ext
9869 echo "$as_me:9869: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h <<EOF
9873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9875 echo "$as_me:9875: checking for struct nlist.n_un.n_name" >&5
9876 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9877 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line 9876 "configure"
9882 #include "confdefs.h"
9883 #include <nlist.h>
9886 main ()
9888 static struct nlist ac_aggr;
9889 if (ac_aggr.n_un.n_name)
9890 return 0;
9892 return 0;
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:9896: \"$ac_compile\"") >&5
9897 (eval $ac_compile) 2>&5
9898 ac_status=$?
9899 echo "$as_me:9899: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:9902: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:9905: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_member_struct_nlist_n_un_n_name=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 ac_cv_member_struct_nlist_n_un_n_name=no
9913 rm -f conftest.$ac_objext conftest.$ac_ext
9915 echo "$as_me:9915: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9916 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9917 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9919 cat >>confdefs.h <<EOF
9920 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9923 cat >>confdefs.h <<\EOF
9924 #define NLIST_NAME_UNION 1
9930 done
9933 done
9935 # Some definitions of getloadavg require that the program be installed setgid.
9936 echo "$as_me:9936: checking whether getloadavg requires setgid" >&5
9937 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9938 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 cat >conftest.$ac_ext <<_ACEOF
9942 #line 9937 "configure"
9943 #include "confdefs.h"
9944 #include "$srcdir/getloadavg.c"
9945 #ifdef LDAV_PRIVILEGED
9946 Yowza Am I SETGID yet
9947 #endif
9948 _ACEOF
9949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9950 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9951 ac_cv_func_getloadavg_setgid=yes
9952 else
9953 ac_cv_func_getloadavg_setgid=no
9955 rm -f conftest*
9958 echo "$as_me:9958: result: $ac_cv_func_getloadavg_setgid" >&5
9959 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9960 if test $ac_cv_func_getloadavg_setgid = yes; then
9961 NEED_SETGID=true
9963 cat >>confdefs.h <<\EOF
9964 #define GETLOADAVG_PRIVILEGED 1
9967 else
9968 NEED_SETGID=false
9971 if test $ac_cv_func_getloadavg_setgid = yes; then
9972 echo "$as_me:9972: checking group of /dev/kmem" >&5
9973 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9974 if test "${ac_cv_group_kmem+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9978 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9979 # If we got an error (system does not support symlinks), try without -L.
9980 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9981 ac_cv_group_kmem=`echo $ac_ls_output \
9982 | sed -ne 's/[ ][ ]*/ /g;
9983 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9984 / /s/.* //;p;'`
9987 echo "$as_me:9987: result: $ac_cv_group_kmem" >&5
9988 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9989 KMEM_GROUP=$ac_cv_group_kmem
9991 if test "x$ac_save_LIBS" = x; then
9992 GETLOADAVG_LIBS=$LIBS
9993 else
9994 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9996 LIBS=$ac_save_LIBS
9998 echo "$as_me:9998: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9999 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10000 if test "${ac_cv_sys_largefile_source+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 while :; do
10004 ac_cv_sys_largefile_source=no
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line 10001 "configure"
10007 #include "confdefs.h"
10008 #include <stdio.h>
10010 main ()
10012 return !fseeko;
10014 return 0;
10016 _ACEOF
10017 rm -f conftest.$ac_objext
10018 if { (eval echo "$as_me:10018: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10020 ac_status=$?
10021 echo "$as_me:10021: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -s conftest.$ac_objext'
10024 { (eval echo "$as_me:10024: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:10027: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 break
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 rm -f conftest.$ac_objext conftest.$ac_ext
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line 10031 "configure"
10037 #include "confdefs.h"
10038 #define _LARGEFILE_SOURCE 1
10039 #include <stdio.h>
10041 main ()
10043 return !fseeko;
10045 return 0;
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:10049: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10051 ac_status=$?
10052 echo "$as_me:10052: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:10055: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:10058: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_sys_largefile_source=1; break
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10065 rm -f conftest.$ac_objext conftest.$ac_ext
10066 break
10067 done
10069 echo "$as_me:10069: result: $ac_cv_sys_largefile_source" >&5
10070 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10071 if test "$ac_cv_sys_largefile_source" != no; then
10073 cat >>confdefs.h <<EOF
10074 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10078 rm -f conftest*
10080 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10081 # in glibc 2.1.3, but that breaks too many other things.
10082 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10083 echo "$as_me:10083: checking for fseeko" >&5
10084 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10085 if test "${ac_cv_func_fseeko+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 cat >conftest.$ac_ext <<_ACEOF
10089 #line 10084 "configure"
10090 #include "confdefs.h"
10091 #include <stdio.h>
10093 main ()
10095 return fseeko && fseeko (stdin, 0, 0);
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:10101: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>&5
10103 ac_status=$?
10104 echo "$as_me:10104: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:10107: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:10110: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_func_fseeko=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 ac_cv_func_fseeko=no
10118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10120 echo "$as_me:10120: result: $ac_cv_func_fseeko" >&5
10121 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10122 if test $ac_cv_func_fseeko = yes; then
10124 cat >>confdefs.h <<\EOF
10125 #define HAVE_FSEEKO 1
10130 # UNIX98 PTYs.
10132 for ac_func in grantpt
10134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10135 echo "$as_me:10135: checking for $ac_func" >&5
10136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10137 if eval "test \"\${$as_ac_var+set}\" = set"; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 cat >conftest.$ac_ext <<_ACEOF
10141 #line 10136 "configure"
10142 #include "confdefs.h"
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func (); below. */
10145 #include <assert.h>
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 /* We use char because int might match the return type of a gcc2
10151 builtin and then its argument prototype would still apply. */
10152 char $ac_func ();
10153 char (*f) ();
10156 main ()
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10162 choke me
10163 #else
10164 f = $ac_func;
10165 #endif
10168 return 0;
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:10172: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10174 ac_status=$?
10175 echo "$as_me:10175: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:10178: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:10181: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 eval "$as_ac_var=no"
10189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10191 echo "$as_me:10191: result: `eval echo '${'$as_ac_var'}'`" >&5
10192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10193 if test `eval echo '${'$as_ac_var'}'` = yes; then
10194 cat >>confdefs.h <<EOF
10195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 done
10201 # PTY-related GNU extensions.
10203 for ac_func in getpt
10205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10206 echo "$as_me:10206: checking for $ac_func" >&5
10207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10208 if eval "test \"\${$as_ac_var+set}\" = set"; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 #line 10207 "configure"
10213 #include "confdefs.h"
10214 /* System header to define __stub macros and hopefully few prototypes,
10215 which can conflict with char $ac_func (); below. */
10216 #include <assert.h>
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char $ac_func ();
10224 char (*f) ();
10227 main ()
10229 /* The GNU C library defines this for functions which it implements
10230 to always fail with ENOSYS. Some functions are actually named
10231 something starting with __ and the normal name is an alias. */
10232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10233 choke me
10234 #else
10235 f = $ac_func;
10236 #endif
10239 return 0;
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (eval echo "$as_me:10243: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>&5
10245 ac_status=$?
10246 echo "$as_me:10246: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:10249: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:10252: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 eval "$as_ac_var=yes"
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 eval "$as_ac_var=no"
10260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10262 echo "$as_me:10262: result: `eval echo '${'$as_ac_var'}'`" >&5
10263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10264 if test `eval echo '${'$as_ac_var'}'` = yes; then
10265 cat >>confdefs.h <<EOF
10266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10270 done
10272 # Check this now, so that we will NOT find the above functions in ncurses.
10273 # That is because we have not set up to link ncurses in lib-src.
10274 # It's better to believe a function is not available
10275 # than to expect to find it in ncurses.
10277 echo "$as_me:10277: checking for tparm in -lncurses" >&5
10278 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10279 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lncurses $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 #line 10280 "configure"
10286 #include "confdefs.h"
10288 /* Override any gcc2 internal prototype to avoid an error. */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294 char tparm ();
10296 main ()
10298 tparm ();
10300 return 0;
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10306 ac_status=$?
10307 echo "$as_me:10307: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:10313: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_lib_ncurses_tparm=yes
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 ac_cv_lib_ncurses_tparm=no
10321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10322 LIBS=$ac_check_lib_save_LIBS
10324 echo "$as_me:10324: result: $ac_cv_lib_ncurses_tparm" >&5
10325 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10326 if test $ac_cv_lib_ncurses_tparm = yes; then
10327 cat >>confdefs.h <<EOF
10328 #define HAVE_LIBNCURSES 1
10331 LIBS="-lncurses $LIBS"
10335 # Do we need the Hesiod library to provide the support routines?
10336 if test "$with_hesiod" = yes ; then
10337 # Don't set $LIBS here -- see comments above.
10338 resolv=no
10339 echo "$as_me:10339: checking for res_send" >&5
10340 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10341 if test "${ac_cv_func_res_send+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 cat >conftest.$ac_ext <<_ACEOF
10345 #line 10340 "configure"
10346 #include "confdefs.h"
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char res_send (); below. */
10349 #include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error. */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char res_send ();
10357 char (*f) ();
10360 main ()
10362 /* The GNU C library defines this for functions which it implements
10363 to always fail with ENOSYS. Some functions are actually named
10364 something starting with __ and the normal name is an alias. */
10365 #if defined (__stub_res_send) || defined (__stub___res_send)
10366 choke me
10367 #else
10368 f = res_send;
10369 #endif
10372 return 0;
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (eval echo "$as_me:10376: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:10379: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -s conftest$ac_exeext'
10382 { (eval echo "$as_me:10382: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:10385: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_func_res_send=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10391 ac_cv_func_res_send=no
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10395 echo "$as_me:10395: result: $ac_cv_func_res_send" >&5
10396 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10397 if test $ac_cv_func_res_send = yes; then
10399 else
10400 echo "$as_me:10400: checking for __res_send" >&5
10401 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10402 if test "${ac_cv_func___res_send+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line 10401 "configure"
10407 #include "confdefs.h"
10408 /* System header to define __stub macros and hopefully few prototypes,
10409 which can conflict with char __res_send (); below. */
10410 #include <assert.h>
10411 /* Override any gcc2 internal prototype to avoid an error. */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 /* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417 char __res_send ();
10418 char (*f) ();
10421 main ()
10423 /* The GNU C library defines this for functions which it implements
10424 to always fail with ENOSYS. Some functions are actually named
10425 something starting with __ and the normal name is an alias. */
10426 #if defined (__stub___res_send) || defined (__stub_____res_send)
10427 choke me
10428 #else
10429 f = __res_send;
10430 #endif
10433 return 0;
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:10437: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>&5
10439 ac_status=$?
10440 echo "$as_me:10440: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (eval echo "$as_me:10443: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_func___res_send=yes
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10452 ac_cv_func___res_send=no
10454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456 echo "$as_me:10456: result: $ac_cv_func___res_send" >&5
10457 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10458 if test $ac_cv_func___res_send = yes; then
10460 else
10461 echo "$as_me:10461: checking for res_send in -lresolv" >&5
10462 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10463 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-lresolv $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 #line 10464 "configure"
10470 #include "confdefs.h"
10472 /* Override any gcc2 internal prototype to avoid an error. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char res_send ();
10480 main ()
10482 res_send ();
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:10488: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>&5
10490 ac_status=$?
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_lib_resolv_res_send=yes
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 ac_cv_lib_resolv_res_send=no
10505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 echo "$as_me:10508: result: $ac_cv_lib_resolv_res_send" >&5
10509 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10510 if test $ac_cv_lib_resolv_res_send = yes; then
10511 resolv=yes
10512 else
10513 echo "$as_me:10513: checking for __res_send in -lresolv" >&5
10514 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10515 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-lresolv $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 #line 10516 "configure"
10522 #include "confdefs.h"
10524 /* Override any gcc2 internal prototype to avoid an error. */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 /* We use char because int might match the return type of a gcc2
10529 builtin and then its argument prototype would still apply. */
10530 char __res_send ();
10532 main ()
10534 __res_send ();
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:10540: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>&5
10542 ac_status=$?
10543 echo "$as_me:10543: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (eval echo "$as_me:10546: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:10549: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_lib_resolv___res_send=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_lib_resolv___res_send=no
10557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10560 echo "$as_me:10560: result: $ac_cv_lib_resolv___res_send" >&5
10561 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10562 if test $ac_cv_lib_resolv___res_send = yes; then
10563 resolv=yes
10572 if test "$resolv" = yes ; then
10573 RESOLVLIB=-lresolv
10575 cat >>confdefs.h <<\EOF
10576 #define HAVE_LIBRESOLV 1
10579 else
10580 RESOLVLIB=
10582 echo "$as_me:10582: checking for hes_getmailhost" >&5
10583 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10584 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587 cat >conftest.$ac_ext <<_ACEOF
10588 #line 10583 "configure"
10589 #include "confdefs.h"
10590 /* System header to define __stub macros and hopefully few prototypes,
10591 which can conflict with char hes_getmailhost (); below. */
10592 #include <assert.h>
10593 /* Override any gcc2 internal prototype to avoid an error. */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */
10599 char hes_getmailhost ();
10600 char (*f) ();
10603 main ()
10605 /* The GNU C library defines this for functions which it implements
10606 to always fail with ENOSYS. Some functions are actually named
10607 something starting with __ and the normal name is an alias. */
10608 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10609 choke me
10610 #else
10611 f = hes_getmailhost;
10612 #endif
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:10619: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>&5
10621 ac_status=$?
10622 echo "$as_me:10622: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:10625: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:10628: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_func_hes_getmailhost=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 ac_cv_func_hes_getmailhost=no
10636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10638 echo "$as_me:10638: result: $ac_cv_func_hes_getmailhost" >&5
10639 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10640 if test $ac_cv_func_hes_getmailhost = yes; then
10642 else
10643 echo "$as_me:10643: checking for hes_getmailhost in -lhesiod" >&5
10644 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10645 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lhesiod $RESOLVLIB $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 #line 10646 "configure"
10652 #include "confdefs.h"
10654 /* Override any gcc2 internal prototype to avoid an error. */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10660 char hes_getmailhost ();
10662 main ()
10664 hes_getmailhost ();
10666 return 0;
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (eval echo "$as_me:10670: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>&5
10672 ac_status=$?
10673 echo "$as_me:10673: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:10676: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:10679: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_lib_hesiod_hes_getmailhost=yes
10682 else
10683 echo "$as_me: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 ac_cv_lib_hesiod_hes_getmailhost=no
10687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 echo "$as_me:10690: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10691 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10692 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10694 cat >>confdefs.h <<\EOF
10695 #define HAVE_LIBHESIOD 1
10698 else
10706 # These tell us which Kerberos-related libraries to use.
10707 if test "${with_kerberos+set}" = set; then
10709 echo "$as_me:10709: checking for com_err in -lcom_err" >&5
10710 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10711 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-lcom_err $LIBS"
10716 cat >conftest.$ac_ext <<_ACEOF
10717 #line 10712 "configure"
10718 #include "confdefs.h"
10720 /* Override any gcc2 internal prototype to avoid an error. */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10726 char com_err ();
10728 main ()
10730 com_err ();
10732 return 0;
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:10736: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>&5
10738 ac_status=$?
10739 echo "$as_me:10739: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:10742: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:10745: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_cv_lib_com_err_com_err=yes
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 ac_cv_lib_com_err_com_err=no
10753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_check_lib_save_LIBS
10756 echo "$as_me:10756: result: $ac_cv_lib_com_err_com_err" >&5
10757 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10758 if test $ac_cv_lib_com_err_com_err = yes; then
10759 cat >>confdefs.h <<EOF
10760 #define HAVE_LIBCOM_ERR 1
10763 LIBS="-lcom_err $LIBS"
10767 echo "$as_me:10767: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10768 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10769 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-lk5crypto $LIBS"
10774 cat >conftest.$ac_ext <<_ACEOF
10775 #line 10770 "configure"
10776 #include "confdefs.h"
10778 /* Override any gcc2 internal prototype to avoid an error. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 /* We use char because int might match the return type of a gcc2
10783 builtin and then its argument prototype would still apply. */
10784 char mit_des_cbc_encrypt ();
10786 main ()
10788 mit_des_cbc_encrypt ();
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:10794: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>&5
10796 ac_status=$?
10797 echo "$as_me:10797: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:10800: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 echo "$as_me:10814: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10815 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10816 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10817 cat >>confdefs.h <<EOF
10818 #define HAVE_LIBK5CRYPTO 1
10821 LIBS="-lk5crypto $LIBS"
10825 echo "$as_me:10825: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10826 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10827 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-lcrypto $LIBS"
10832 cat >conftest.$ac_ext <<_ACEOF
10833 #line 10828 "configure"
10834 #include "confdefs.h"
10836 /* Override any gcc2 internal prototype to avoid an error. */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 /* We use char because int might match the return type of a gcc2
10841 builtin and then its argument prototype would still apply. */
10842 char mit_des_cbc_encrypt ();
10844 main ()
10846 mit_des_cbc_encrypt ();
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:10852: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10854 ac_status=$?
10855 echo "$as_me:10855: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:10858: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:10861: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10872 echo "$as_me:10872: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10873 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10874 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10875 cat >>confdefs.h <<EOF
10876 #define HAVE_LIBCRYPTO 1
10879 LIBS="-lcrypto $LIBS"
10883 echo "$as_me:10883: checking for krb5_init_context in -lkrb5" >&5
10884 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10885 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-lkrb5 $LIBS"
10890 cat >conftest.$ac_ext <<_ACEOF
10891 #line 10886 "configure"
10892 #include "confdefs.h"
10894 /* Override any gcc2 internal prototype to avoid an error. */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900 char krb5_init_context ();
10902 main ()
10904 krb5_init_context ();
10906 return 0;
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:10910: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>&5
10912 ac_status=$?
10913 echo "$as_me:10913: \$? = $ac_status" >&5
10914 (exit $ac_status); } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:10916: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:10919: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_lib_krb5_krb5_init_context=yes
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10925 ac_cv_lib_krb5_krb5_init_context=no
10927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10930 echo "$as_me:10930: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10931 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10932 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10933 cat >>confdefs.h <<EOF
10934 #define HAVE_LIBKRB5 1
10937 LIBS="-lkrb5 $LIBS"
10941 if test "${with_kerberos5+set}" != set; then
10943 echo "$as_me:10943: checking for des_cbc_encrypt in -ldes425" >&5
10944 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10945 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldes425 $LIBS"
10950 cat >conftest.$ac_ext <<_ACEOF
10951 #line 10946 "configure"
10952 #include "confdefs.h"
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960 char des_cbc_encrypt ();
10962 main ()
10964 des_cbc_encrypt ();
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:10970: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>&5
10972 ac_status=$?
10973 echo "$as_me:10973: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -s conftest$ac_exeext'
10976 { (eval echo "$as_me:10976: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:10979: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_lib_des425_des_cbc_encrypt=yes
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 ac_cv_lib_des425_des_cbc_encrypt=no
10987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10990 echo "$as_me:10990: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10991 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10992 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10993 cat >>confdefs.h <<EOF
10994 #define HAVE_LIBDES425 1
10997 LIBS="-ldes425 $LIBS"
10999 else
11001 echo "$as_me:11001: checking for des_cbc_encrypt in -ldes" >&5
11002 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11003 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 ac_check_lib_save_LIBS=$LIBS
11007 LIBS="-ldes $LIBS"
11008 cat >conftest.$ac_ext <<_ACEOF
11009 #line 11004 "configure"
11010 #include "confdefs.h"
11012 /* Override any gcc2 internal prototype to avoid an error. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11018 char des_cbc_encrypt ();
11020 main ()
11022 des_cbc_encrypt ();
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:11028: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>&5
11030 ac_status=$?
11031 echo "$as_me:11031: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (eval echo "$as_me:11034: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:11037: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_lib_des_des_cbc_encrypt=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11043 ac_cv_lib_des_des_cbc_encrypt=no
11045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 echo "$as_me:11048: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11049 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11050 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11051 cat >>confdefs.h <<EOF
11052 #define HAVE_LIBDES 1
11055 LIBS="-ldes $LIBS"
11061 echo "$as_me:11061: checking for krb_get_cred in -lkrb4" >&5
11062 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11063 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lkrb4 $LIBS"
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line 11064 "configure"
11070 #include "confdefs.h"
11072 /* Override any gcc2 internal prototype to avoid an error. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char krb_get_cred ();
11080 main ()
11082 krb_get_cred ();
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (eval echo "$as_me:11088: \"$ac_link\"") >&5
11089 (eval $ac_link) 2>&5
11090 ac_status=$?
11091 echo "$as_me:11091: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -s conftest$ac_exeext'
11094 { (eval echo "$as_me:11094: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:11097: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_cv_lib_krb4_krb_get_cred=yes
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11103 ac_cv_lib_krb4_krb_get_cred=no
11105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 echo "$as_me:11108: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11109 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11110 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11111 cat >>confdefs.h <<EOF
11112 #define HAVE_LIBKRB4 1
11115 LIBS="-lkrb4 $LIBS"
11117 else
11119 echo "$as_me:11119: checking for krb_get_cred in -lkrb" >&5
11120 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11121 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 ac_check_lib_save_LIBS=$LIBS
11125 LIBS="-lkrb $LIBS"
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line 11122 "configure"
11128 #include "confdefs.h"
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11136 char krb_get_cred ();
11138 main ()
11140 krb_get_cred ();
11142 return 0;
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (eval echo "$as_me:11146: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>&5
11148 ac_status=$?
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest$ac_exeext'
11152 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:11155: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_cv_lib_krb_krb_get_cred=yes
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 ac_cv_lib_krb_krb_get_cred=no
11163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 echo "$as_me:11166: result: $ac_cv_lib_krb_krb_get_cred" >&5
11167 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11168 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11169 cat >>confdefs.h <<EOF
11170 #define HAVE_LIBKRB 1
11173 LIBS="-lkrb $LIBS"
11181 if test "${with_kerberos5+set}" = set; then
11183 for ac_header in krb5.h
11185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11186 echo "$as_me:11186: checking for $ac_header" >&5
11187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line 11187 "configure"
11193 #include "confdefs.h"
11194 #include <$ac_header>
11195 _ACEOF
11196 if { (eval echo "$as_me:11196: \"$ac_cpp conftest.$ac_ext\"") >&5
11197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11198 ac_status=$?
11199 egrep -v '^ *\+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:11202: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null; then
11204 if test -s conftest.err; then
11205 ac_cpp_err=$ac_c_preproc_warn_flag
11206 else
11207 ac_cpp_err=
11209 else
11210 ac_cpp_err=yes
11212 if test -z "$ac_cpp_err"; then
11213 eval "$as_ac_Header=yes"
11214 else
11215 echo "$as_me: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 eval "$as_ac_Header=no"
11219 rm -f conftest.err conftest.$ac_ext
11221 echo "$as_me:11221: result: `eval echo '${'$as_ac_Header'}'`" >&5
11222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<EOF
11225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11229 done
11231 else
11233 for ac_header in des.h
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 echo "$as_me:11236: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 #line 11237 "configure"
11243 #include "confdefs.h"
11244 #include <$ac_header>
11245 _ACEOF
11246 if { (eval echo "$as_me:11246: \"$ac_cpp conftest.$ac_ext\"") >&5
11247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11248 ac_status=$?
11249 egrep -v '^ *\+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:11252: \$? = $ac_status" >&5
11253 (exit $ac_status); } >/dev/null; then
11254 if test -s conftest.err; then
11255 ac_cpp_err=$ac_c_preproc_warn_flag
11256 else
11257 ac_cpp_err=
11259 else
11260 ac_cpp_err=yes
11262 if test -z "$ac_cpp_err"; then
11263 eval "$as_ac_Header=yes"
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 eval "$as_ac_Header=no"
11269 rm -f conftest.err conftest.$ac_ext
11271 echo "$as_me:11271: result: `eval echo '${'$as_ac_Header'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<EOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278 else
11280 for ac_header in kerberosIV/des.h
11282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11283 echo "$as_me:11283: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288 cat >conftest.$ac_ext <<_ACEOF
11289 #line 11284 "configure"
11290 #include "confdefs.h"
11291 #include <$ac_header>
11292 _ACEOF
11293 if { (eval echo "$as_me:11293: \"$ac_cpp conftest.$ac_ext\"") >&5
11294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 ac_status=$?
11296 egrep -v '^ *\+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:11299: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null; then
11301 if test -s conftest.err; then
11302 ac_cpp_err=$ac_c_preproc_warn_flag
11303 else
11304 ac_cpp_err=
11306 else
11307 ac_cpp_err=yes
11309 if test -z "$ac_cpp_err"; then
11310 eval "$as_ac_Header=yes"
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 eval "$as_ac_Header=no"
11316 rm -f conftest.err conftest.$ac_ext
11318 echo "$as_me:11318: result: `eval echo '${'$as_ac_Header'}'`" >&5
11319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11321 cat >>confdefs.h <<EOF
11322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11325 else
11327 for ac_header in kerberos/des.h
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 echo "$as_me:11330: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line 11331 "configure"
11337 #include "confdefs.h"
11338 #include <$ac_header>
11339 _ACEOF
11340 if { (eval echo "$as_me:11340: \"$ac_cpp conftest.$ac_ext\"") >&5
11341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11342 ac_status=$?
11343 egrep -v '^ *\+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:11346: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 else
11351 ac_cpp_err=
11353 else
11354 ac_cpp_err=yes
11356 if test -z "$ac_cpp_err"; then
11357 eval "$as_ac_Header=yes"
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 eval "$as_ac_Header=no"
11363 rm -f conftest.err conftest.$ac_ext
11365 echo "$as_me:11365: result: `eval echo '${'$as_ac_Header'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368 cat >>confdefs.h <<EOF
11369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11373 done
11376 done
11379 done
11381 for ac_header in krb.h
11383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11384 echo "$as_me:11384: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line 11385 "configure"
11391 #include "confdefs.h"
11392 #include <$ac_header>
11393 _ACEOF
11394 if { (eval echo "$as_me:11394: \"$ac_cpp conftest.$ac_ext\"") >&5
11395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11396 ac_status=$?
11397 egrep -v '^ *\+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:11400: \$? = $ac_status" >&5
11401 (exit $ac_status); } >/dev/null; then
11402 if test -s conftest.err; then
11403 ac_cpp_err=$ac_c_preproc_warn_flag
11404 else
11405 ac_cpp_err=
11407 else
11408 ac_cpp_err=yes
11410 if test -z "$ac_cpp_err"; then
11411 eval "$as_ac_Header=yes"
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 eval "$as_ac_Header=no"
11417 rm -f conftest.err conftest.$ac_ext
11419 echo "$as_me:11419: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11422 cat >>confdefs.h <<EOF
11423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 else
11428 for ac_header in kerberosIV/krb.h
11430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 echo "$as_me:11431: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line 11432 "configure"
11438 #include "confdefs.h"
11439 #include <$ac_header>
11440 _ACEOF
11441 if { (eval echo "$as_me:11441: \"$ac_cpp conftest.$ac_ext\"") >&5
11442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11443 ac_status=$?
11444 egrep -v '^ *\+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:11447: \$? = $ac_status" >&5
11448 (exit $ac_status); } >/dev/null; then
11449 if test -s conftest.err; then
11450 ac_cpp_err=$ac_c_preproc_warn_flag
11451 else
11452 ac_cpp_err=
11454 else
11455 ac_cpp_err=yes
11457 if test -z "$ac_cpp_err"; then
11458 eval "$as_ac_Header=yes"
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11462 eval "$as_ac_Header=no"
11464 rm -f conftest.err conftest.$ac_ext
11466 echo "$as_me:11466: result: `eval echo '${'$as_ac_Header'}'`" >&5
11467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11469 cat >>confdefs.h <<EOF
11470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 else
11475 for ac_header in kerberos/krb.h
11477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11478 echo "$as_me:11478: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 cat >conftest.$ac_ext <<_ACEOF
11484 #line 11479 "configure"
11485 #include "confdefs.h"
11486 #include <$ac_header>
11487 _ACEOF
11488 if { (eval echo "$as_me:11488: \"$ac_cpp conftest.$ac_ext\"") >&5
11489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11490 ac_status=$?
11491 egrep -v '^ *\+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:11494: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev/null; then
11496 if test -s conftest.err; then
11497 ac_cpp_err=$ac_c_preproc_warn_flag
11498 else
11499 ac_cpp_err=
11501 else
11502 ac_cpp_err=yes
11504 if test -z "$ac_cpp_err"; then
11505 eval "$as_ac_Header=yes"
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11509 eval "$as_ac_Header=no"
11511 rm -f conftest.err conftest.$ac_ext
11513 echo "$as_me:11513: result: `eval echo '${'$as_ac_Header'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11516 cat >>confdefs.h <<EOF
11517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521 done
11524 done
11527 done
11531 for ac_header in com_err.h
11533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11534 echo "$as_me:11534: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539 cat >conftest.$ac_ext <<_ACEOF
11540 #line 11535 "configure"
11541 #include "confdefs.h"
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (eval echo "$as_me:11544: \"$ac_cpp conftest.$ac_ext\"") >&5
11545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11546 ac_status=$?
11547 egrep -v '^ *\+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:11550: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null; then
11552 if test -s conftest.err; then
11553 ac_cpp_err=$ac_c_preproc_warn_flag
11554 else
11555 ac_cpp_err=
11557 else
11558 ac_cpp_err=yes
11560 if test -z "$ac_cpp_err"; then
11561 eval "$as_ac_Header=yes"
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 eval "$as_ac_Header=no"
11567 rm -f conftest.err conftest.$ac_ext
11569 echo "$as_me:11569: result: `eval echo '${'$as_ac_Header'}'`" >&5
11570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h <<EOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11577 done
11581 # Solaris requires -lintl if you want strerror (which calls dgettext)
11582 # to return localized messages.
11584 echo "$as_me:11584: checking for dgettext in -lintl" >&5
11585 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11586 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lintl $LIBS"
11591 cat >conftest.$ac_ext <<_ACEOF
11592 #line 11587 "configure"
11593 #include "confdefs.h"
11595 /* Override any gcc2 internal prototype to avoid an error. */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601 char dgettext ();
11603 main ()
11605 dgettext ();
11607 return 0;
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:11611: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:11617: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:11620: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_intl_dgettext=yes
11623 else
11624 echo "$as_me: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 ac_cv_lib_intl_dgettext=no
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11631 echo "$as_me:11631: result: $ac_cv_lib_intl_dgettext" >&5
11632 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11633 if test $ac_cv_lib_intl_dgettext = yes; then
11634 cat >>confdefs.h <<EOF
11635 #define HAVE_LIBINTL 1
11638 LIBS="-lintl $LIBS"
11642 echo "$as_me:11642: checking whether localtime caches TZ" >&5
11643 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11644 if test "${emacs_cv_localtime_cache+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647 if test x$ac_cv_func_tzset = xyes; then
11648 if test "$cross_compiling" = yes; then
11649 # If we have tzset, assume the worst when cross-compiling.
11650 emacs_cv_localtime_cache=yes
11651 else
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line 11648 "configure"
11654 #include "confdefs.h"
11655 #include <time.h>
11656 extern char **environ;
11657 unset_TZ ()
11659 char **from, **to;
11660 for (to = from = environ; (*to = *from); from++)
11661 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11662 to++;
11664 char TZ_GMT0[] = "TZ=GMT0";
11665 char TZ_PST8[] = "TZ=PST8";
11666 main()
11668 time_t now = time ((time_t *) 0);
11669 int hour_GMT0, hour_unset;
11670 if (putenv (TZ_GMT0) != 0)
11671 exit (1);
11672 hour_GMT0 = localtime (&now)->tm_hour;
11673 unset_TZ ();
11674 hour_unset = localtime (&now)->tm_hour;
11675 if (putenv (TZ_PST8) != 0)
11676 exit (1);
11677 if (localtime (&now)->tm_hour == hour_GMT0)
11678 exit (1);
11679 unset_TZ ();
11680 if (localtime (&now)->tm_hour != hour_unset)
11681 exit (1);
11682 exit (0);
11684 _ACEOF
11685 rm -f conftest$ac_exeext
11686 if { (eval echo "$as_me:11686: \"$ac_link\"") >&5
11687 (eval $ac_link) 2>&5
11688 ac_status=$?
11689 echo "$as_me:11689: \$? = $ac_status" >&5
11690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11691 { (eval echo "$as_me:11691: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:11694: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 emacs_cv_localtime_cache=no
11697 else
11698 echo "$as_me: program exited with status $ac_status" >&5
11699 echo "$as_me: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11701 emacs_cv_localtime_cache=yes
11703 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11705 else
11706 # If we lack tzset, report that localtime does not cache TZ,
11707 # since we can't invalidate the cache if we don't have tzset.
11708 emacs_cv_localtime_cache=no
11711 echo "$as_me:11711: result: $emacs_cv_localtime_cache" >&5
11712 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11713 if test $emacs_cv_localtime_cache = yes; then
11715 cat >>confdefs.h <<\EOF
11716 #define LOCALTIME_CACHE 1
11721 if test "x$HAVE_TIMEVAL" = xyes; then
11723 for ac_func in gettimeofday
11725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11726 echo "$as_me:11726: checking for $ac_func" >&5
11727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11728 if eval "test \"\${$as_ac_var+set}\" = set"; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 cat >conftest.$ac_ext <<_ACEOF
11732 #line 11727 "configure"
11733 #include "confdefs.h"
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func (); below. */
11736 #include <assert.h>
11737 /* Override any gcc2 internal prototype to avoid an error. */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 /* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11743 char $ac_func ();
11744 char (*f) ();
11747 main ()
11749 /* The GNU C library defines this for functions which it implements
11750 to always fail with ENOSYS. Some functions are actually named
11751 something starting with __ and the normal name is an alias. */
11752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11753 choke me
11754 #else
11755 f = $ac_func;
11756 #endif
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:11763: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>&5
11765 ac_status=$?
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:11769: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 eval "$as_ac_var=yes"
11775 else
11776 echo "$as_me: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 eval "$as_ac_var=no"
11780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11782 echo "$as_me:11782: result: `eval echo '${'$as_ac_var'}'`" >&5
11783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11784 if test `eval echo '${'$as_ac_var'}'` = yes; then
11785 cat >>confdefs.h <<EOF
11786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11790 done
11792 if test $ac_cv_func_gettimeofday = yes; then
11793 echo "$as_me:11793: checking whether gettimeofday can accept two arguments" >&5
11794 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11795 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 #line 11794 "configure"
11800 #include "confdefs.h"
11802 #ifdef TIME_WITH_SYS_TIME
11803 #include <sys/time.h>
11804 #include <time.h>
11805 #else
11806 #ifdef HAVE_SYS_TIME_H
11807 #include <sys/time.h>
11808 #else
11809 #include <time.h>
11810 #endif
11811 #endif
11813 main ()
11815 struct timeval time;
11816 gettimeofday (&time, 0);
11818 return 0;
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:11822: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>&5
11824 ac_status=$?
11825 echo "$as_me:11825: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:11828: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:11831: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 emacs_cv_gettimeofday_two_arguments=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 cat conftest.$ac_ext >&5
11837 emacs_cv_gettimeofday_two_arguments=no
11839 rm -f conftest.$ac_objext conftest.$ac_ext
11841 echo "$as_me:11841: result: $emacs_cv_gettimeofday_two_arguments" >&5
11842 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11843 if test $emacs_cv_gettimeofday_two_arguments = no; then
11845 cat >>confdefs.h <<\EOF
11846 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11853 if test "$ac_cv_func_gettimeofday" = yes; then
11854 echo "$as_me:11854: checking for struct timezone" >&5
11855 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11856 if test "${emacs_cv_struct_timezone+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 cat >conftest.$ac_ext <<_ACEOF
11860 #line 11855 "configure"
11861 #include "confdefs.h"
11862 #include <sys/time.h>
11864 main ()
11866 struct timezone tz;
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:11872: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>&5
11874 ac_status=$?
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:11878: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:11881: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 if test "$cross_compiling" = yes; then
11884 emacs_cv_struct_timezone=yes
11885 else
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line 11882 "configure"
11888 #include "confdefs.h"
11890 #ifdef TIME_WITH_SYS_TIME
11891 #include <sys/time.h>
11892 #include <time.h>
11893 #else
11894 #ifdef HAVE_SYS_TIME_H
11895 #include <sys/time.h>
11896 #else
11897 #include <time.h>
11898 #endif
11899 #endif
11900 main () {
11901 struct timeval time;
11902 struct timezone dummy;
11903 exit (gettimeofday (&time, &dummy));
11905 _ACEOF
11906 rm -f conftest$ac_exeext
11907 if { (eval echo "$as_me:11907: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11909 ac_status=$?
11910 echo "$as_me:11910: \$? = $ac_status" >&5
11911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11912 { (eval echo "$as_me:11912: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:11915: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 emacs_cv_struct_timezone=yes
11918 else
11919 echo "$as_me: program exited with status $ac_status" >&5
11920 echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 emacs_cv_struct_timezone=no
11924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 cat conftest.$ac_ext >&5
11929 emacs_cv_struct_timezone=no
11931 rm -f conftest.$ac_objext conftest.$ac_ext
11933 echo "$as_me:11933: result: $emacs_cv_struct_timezone" >&5
11934 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11937 ok_so_far=yes
11938 echo "$as_me:11938: checking for socket" >&5
11939 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11940 if test "${ac_cv_func_socket+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943 cat >conftest.$ac_ext <<_ACEOF
11944 #line 11939 "configure"
11945 #include "confdefs.h"
11946 /* System header to define __stub macros and hopefully few prototypes,
11947 which can conflict with char socket (); below. */
11948 #include <assert.h>
11949 /* Override any gcc2 internal prototype to avoid an error. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 /* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
11955 char socket ();
11956 char (*f) ();
11959 main ()
11961 /* The GNU C library defines this for functions which it implements
11962 to always fail with ENOSYS. Some functions are actually named
11963 something starting with __ and the normal name is an alias. */
11964 #if defined (__stub_socket) || defined (__stub___socket)
11965 choke me
11966 #else
11967 f = socket;
11968 #endif
11971 return 0;
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:11975: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>&5
11977 ac_status=$?
11978 echo "$as_me:11978: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_func_socket=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 ac_cv_func_socket=no
11992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11994 echo "$as_me:11994: result: $ac_cv_func_socket" >&5
11995 echo "${ECHO_T}$ac_cv_func_socket" >&6
11996 if test $ac_cv_func_socket = yes; then
11998 else
11999 ok_so_far=no
12002 if test $ok_so_far = yes; then
12003 echo "$as_me:12003: checking for netinet/in.h" >&5
12004 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12005 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008 cat >conftest.$ac_ext <<_ACEOF
12009 #line 12004 "configure"
12010 #include "confdefs.h"
12011 #include <netinet/in.h>
12012 _ACEOF
12013 if { (eval echo "$as_me:12013: \"$ac_cpp conftest.$ac_ext\"") >&5
12014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12015 ac_status=$?
12016 egrep -v '^ *\+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:12019: \$? = $ac_status" >&5
12020 (exit $ac_status); } >/dev/null; then
12021 if test -s conftest.err; then
12022 ac_cpp_err=$ac_c_preproc_warn_flag
12023 else
12024 ac_cpp_err=
12026 else
12027 ac_cpp_err=yes
12029 if test -z "$ac_cpp_err"; then
12030 ac_cv_header_netinet_in_h=yes
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 ac_cv_header_netinet_in_h=no
12036 rm -f conftest.err conftest.$ac_ext
12038 echo "$as_me:12038: result: $ac_cv_header_netinet_in_h" >&5
12039 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12040 if test $ac_cv_header_netinet_in_h = yes; then
12042 else
12043 ok_so_far=no
12047 if test $ok_so_far = yes; then
12048 echo "$as_me:12048: checking for arpa/inet.h" >&5
12049 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12050 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line 12049 "configure"
12055 #include "confdefs.h"
12056 #include <arpa/inet.h>
12057 _ACEOF
12058 if { (eval echo "$as_me:12058: \"$ac_cpp conftest.$ac_ext\"") >&5
12059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12060 ac_status=$?
12061 egrep -v '^ *\+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:12064: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 else
12069 ac_cpp_err=
12071 else
12072 ac_cpp_err=yes
12074 if test -z "$ac_cpp_err"; then
12075 ac_cv_header_arpa_inet_h=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 ac_cv_header_arpa_inet_h=no
12081 rm -f conftest.err conftest.$ac_ext
12083 echo "$as_me:12083: result: $ac_cv_header_arpa_inet_h" >&5
12084 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12085 if test $ac_cv_header_arpa_inet_h = yes; then
12087 else
12088 ok_so_far=no
12092 if test $ok_so_far = yes; then
12094 cat >>confdefs.h <<\EOF
12095 #define HAVE_INET_SOCKETS 1
12100 if test -f /usr/lpp/X11/bin/smt.exp; then
12102 cat >>confdefs.h <<\EOF
12103 #define HAVE_AIX_SMT_EXP 1
12108 echo "$as_me:12108: checking whether system supports dynamic ptys" >&5
12109 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12110 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12111 echo "$as_me:12111: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12114 cat >>confdefs.h <<\EOF
12115 #define HAVE_DEV_PTMX 1
12118 else
12119 echo "$as_me:12119: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12123 echo "$as_me:12123: checking for pid_t" >&5
12124 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12125 if test "${ac_cv_type_pid_t+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line 12124 "configure"
12130 #include "confdefs.h"
12131 $ac_includes_default
12133 main ()
12135 if ((pid_t *) 0)
12136 return 0;
12137 if (sizeof (pid_t))
12138 return 0;
12140 return 0;
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>&5
12146 ac_status=$?
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_cv_type_pid_t=yes
12156 else
12157 echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 ac_cv_type_pid_t=no
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:12163: result: $ac_cv_type_pid_t" >&5
12164 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12165 if test $ac_cv_type_pid_t = yes; then
12167 else
12169 cat >>confdefs.h <<EOF
12170 #define pid_t int
12175 for ac_header in unistd.h vfork.h
12177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178 echo "$as_me:12178: checking for $ac_header" >&5
12179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line 12179 "configure"
12185 #include "confdefs.h"
12186 #include <$ac_header>
12187 _ACEOF
12188 if { (eval echo "$as_me:12188: \"$ac_cpp conftest.$ac_ext\"") >&5
12189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12190 ac_status=$?
12191 egrep -v '^ *\+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:12194: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null; then
12196 if test -s conftest.err; then
12197 ac_cpp_err=$ac_c_preproc_warn_flag
12198 else
12199 ac_cpp_err=
12201 else
12202 ac_cpp_err=yes
12204 if test -z "$ac_cpp_err"; then
12205 eval "$as_ac_Header=yes"
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 eval "$as_ac_Header=no"
12211 rm -f conftest.err conftest.$ac_ext
12213 echo "$as_me:12213: result: `eval echo '${'$as_ac_Header'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216 cat >>confdefs.h <<EOF
12217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12221 done
12223 for ac_func in fork vfork
12225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 echo "$as_me:12226: checking for $ac_func" >&5
12227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12228 if eval "test \"\${$as_ac_var+set}\" = set"; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 cat >conftest.$ac_ext <<_ACEOF
12232 #line 12227 "configure"
12233 #include "confdefs.h"
12234 /* System header to define __stub macros and hopefully few prototypes,
12235 which can conflict with char $ac_func (); below. */
12236 #include <assert.h>
12237 /* Override any gcc2 internal prototype to avoid an error. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 /* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
12243 char $ac_func ();
12244 char (*f) ();
12247 main ()
12249 /* The GNU C library defines this for functions which it implements
12250 to always fail with ENOSYS. Some functions are actually named
12251 something starting with __ and the normal name is an alias. */
12252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12253 choke me
12254 #else
12255 f = $ac_func;
12256 #endif
12259 return 0;
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (eval echo "$as_me:12263: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12265 ac_status=$?
12266 echo "$as_me:12266: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (eval echo "$as_me:12269: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:12272: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 eval "$as_ac_var=yes"
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 eval "$as_ac_var=no"
12280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12282 echo "$as_me:12282: result: `eval echo '${'$as_ac_var'}'`" >&5
12283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12284 if test `eval echo '${'$as_ac_var'}'` = yes; then
12285 cat >>confdefs.h <<EOF
12286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12290 done
12292 ac_cv_func_fork_works=$ac_cv_func_fork
12293 if test "x$ac_cv_func_fork" = xyes; then
12294 echo "$as_me:12294: checking for working fork" >&5
12295 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12296 if test "${ac_cv_func_fork_works+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 if test "$cross_compiling" = yes; then
12300 ac_cv_func_fork_works=cross
12301 else
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* By Rüdiger Kuhlmann. */
12304 #include <sys/types.h>
12305 #if HAVE_UNISTD_H
12306 # include <unistd.h>
12307 #endif
12308 /* Some systems only have a dummy stub for fork() */
12309 int main ()
12311 if (fork() < 0)
12312 exit (1);
12313 exit (0);
12315 _ACEOF
12316 rm -f conftest$ac_exeext
12317 if { (eval echo "$as_me:12317: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>&5
12319 ac_status=$?
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12322 { (eval echo "$as_me:12322: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:12325: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_func_fork_works=yes
12328 else
12329 echo "$as_me: program exited with status $ac_status" >&5
12330 echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 ac_cv_func_fork_works=no
12334 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12337 echo "$as_me:12337: result: $ac_cv_func_fork_works" >&5
12338 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12341 if test "x$ac_cv_func_fork_works" = xcross; then
12342 case $host in
12343 *-*-amigaos* | *-*-msdosdjgpp*)
12344 # Override, as these systems have only a dummy fork() stub
12345 ac_cv_func_fork_works=no
12348 ac_cv_func_fork_works=yes
12350 esac
12351 { echo "$as_me:12351: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12352 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12354 ac_cv_func_vfork_works=$ac_cv_func_vfork
12355 if test "x$ac_cv_func_vfork" = xyes; then
12356 echo "$as_me:12356: checking for working vfork" >&5
12357 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12358 if test "${ac_cv_func_vfork_works+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 if test "$cross_compiling" = yes; then
12362 ac_cv_func_vfork_works=cross
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 #line 12360 "configure"
12366 #include "confdefs.h"
12367 /* Thanks to Paul Eggert for this test. */
12368 #include <stdio.h>
12369 #include <sys/types.h>
12370 #include <sys/stat.h>
12371 #if HAVE_UNISTD_H
12372 # include <unistd.h>
12373 #endif
12374 #if HAVE_VFORK_H
12375 # include <vfork.h>
12376 #endif
12377 /* On some sparc systems, changes by the child to local and incoming
12378 argument registers are propagated back to the parent. The compiler
12379 is told about this with #include <vfork.h>, but some compilers
12380 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12381 static variable whose address is put into a register that is
12382 clobbered by the vfork. */
12383 static
12384 #ifdef __cplusplus
12385 sparc_address_test (int arg)
12386 # else
12387 sparc_address_test (arg) int arg;
12388 #endif
12390 static pid_t child;
12391 if (!child) {
12392 child = vfork ();
12393 if (child < 0) {
12394 perror ("vfork");
12395 _exit(2);
12397 if (!child) {
12398 arg = getpid();
12399 write(-1, "", 0);
12400 _exit (arg);
12406 main ()
12408 pid_t parent = getpid ();
12409 pid_t child;
12411 sparc_address_test ();
12413 child = vfork ();
12415 if (child == 0) {
12416 /* Here is another test for sparc vfork register problems. This
12417 test uses lots of local variables, at least as many local
12418 variables as main has allocated so far including compiler
12419 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12420 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12421 reuse the register of parent for one of the local variables,
12422 since it will think that parent can't possibly be used any more
12423 in this routine. Assigning to the local variable will thus
12424 munge parent in the parent process. */
12425 pid_t
12426 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12427 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12428 /* Convince the compiler that p..p7 are live; otherwise, it might
12429 use the same hardware register for all 8 local variables. */
12430 if (p != p1 || p != p2 || p != p3 || p != p4
12431 || p != p5 || p != p6 || p != p7)
12432 _exit(1);
12434 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12435 from child file descriptors. If the child closes a descriptor
12436 before it execs or exits, this munges the parent's descriptor
12437 as well. Test for this by closing stdout in the child. */
12438 _exit(close(fileno(stdout)) != 0);
12439 } else {
12440 int status;
12441 struct stat st;
12443 while (wait(&status) != child)
12445 exit(
12446 /* Was there some problem with vforking? */
12447 child < 0
12449 /* Did the child fail? (This shouldn't happen.) */
12450 || status
12452 /* Did the vfork/compiler bug occur? */
12453 || parent != getpid()
12455 /* Did the file descriptor bug occur? */
12456 || fstat(fileno(stdout), &st) != 0
12460 _ACEOF
12461 rm -f conftest$ac_exeext
12462 if { (eval echo "$as_me:12462: \"$ac_link\"") >&5
12463 (eval $ac_link) 2>&5
12464 ac_status=$?
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12467 { (eval echo "$as_me:12467: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:12470: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 ac_cv_func_vfork_works=yes
12473 else
12474 echo "$as_me: program exited with status $ac_status" >&5
12475 echo "$as_me: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12477 ac_cv_func_vfork_works=no
12479 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12482 echo "$as_me:12482: result: $ac_cv_func_vfork_works" >&5
12483 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12486 if test "x$ac_cv_func_fork_works" = xcross; then
12487 ac_cv_func_vfork_works=ac_cv_func_vfork
12488 { echo "$as_me:12488: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12489 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12492 if test "x$ac_cv_func_vfork_works" = xyes; then
12494 cat >>confdefs.h <<\EOF
12495 #define HAVE_WORKING_VFORK 1
12498 else
12500 cat >>confdefs.h <<\EOF
12501 #define vfork fork
12505 if test "x$ac_cv_func_fork_works" = xyes; then
12507 cat >>confdefs.h <<\EOF
12508 #define HAVE_WORKING_FORK 1
12513 # Fixme: This should be replaced when we have autoconf 2.14.
12514 echo "$as_me:12514: checking for size_t" >&5
12515 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12516 if test "${ac_cv_type_size_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line 12515 "configure"
12521 #include "confdefs.h"
12522 $ac_includes_default
12524 main ()
12526 if ((size_t *) 0)
12527 return 0;
12528 if (sizeof (size_t))
12529 return 0;
12531 return 0;
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (eval echo "$as_me:12535: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>&5
12537 ac_status=$?
12538 echo "$as_me:12538: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -s conftest.$ac_objext'
12541 { (eval echo "$as_me:12541: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:12544: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_type_size_t=yes
12547 else
12548 echo "$as_me: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 ac_cv_type_size_t=no
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12554 echo "$as_me:12554: result: $ac_cv_type_size_t" >&5
12555 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12556 if test $ac_cv_type_size_t = yes; then
12558 else
12560 cat >>confdefs.h <<EOF
12561 #define size_t unsigned
12566 # Set up the CFLAGS for real compilation, so we can substitute it.
12567 CFLAGS="$REAL_CFLAGS"
12568 CPPFLAGS="$REAL_CPPFLAGS"
12570 #### Find out which version of Emacs this is.
12571 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12572 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12573 if test x"${version}" = x; then
12574 { { echo "$as_me:12574: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12575 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12576 { (exit 1); exit 1; }; }
12579 ### Specify what sort of things we'll be editing into Makefile and config.h.
12580 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12582 cat >>confdefs.h <<EOF
12583 #define EMACS_CONFIGURATION "${canonical}"
12586 cat >>confdefs.h <<EOF
12587 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12590 cat >>confdefs.h <<EOF
12591 #define config_machfile "${machfile}"
12594 cat >>confdefs.h <<EOF
12595 #define config_opsysfile "${opsysfile}"
12598 cat >>confdefs.h <<EOF
12599 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12602 cat >>confdefs.h <<EOF
12603 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12606 cat >>confdefs.h <<EOF
12607 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12610 cat >>confdefs.h <<EOF
12611 #define UNEXEC_SRC ${UNEXEC_SRC}
12614 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12616 cat >>confdefs.h <<\EOF
12617 #define HAVE_X_WINDOWS 1
12621 if test "${USE_X_TOOLKIT}" != "none" ; then
12623 cat >>confdefs.h <<\EOF
12624 #define USE_X_TOOLKIT 1
12628 if test "${HAVE_X11}" = "yes" ; then
12630 cat >>confdefs.h <<\EOF
12631 #define HAVE_X11 1
12635 if test "${HAVE_XFREE386}" = "yes" ; then
12637 cat >>confdefs.h <<\EOF
12638 #define HAVE_XFREE386 1
12642 if test "${HAVE_MENUS}" = "yes" ; then
12644 cat >>confdefs.h <<\EOF
12645 #define HAVE_MENUS 1
12649 if test "${GNU_MALLOC}" = "yes" ; then
12651 cat >>confdefs.h <<\EOF
12652 #define GNU_MALLOC 1
12656 if test "${REL_ALLOC}" = "yes" ; then
12658 cat >>confdefs.h <<\EOF
12659 #define REL_ALLOC 1
12664 for ac_header in nlist.h
12666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12667 echo "$as_me:12667: checking for $ac_header" >&5
12668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 cat >conftest.$ac_ext <<_ACEOF
12673 #line 12668 "configure"
12674 #include "confdefs.h"
12675 #include <$ac_header>
12676 _ACEOF
12677 if { (eval echo "$as_me:12677: \"$ac_cpp conftest.$ac_ext\"") >&5
12678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12679 ac_status=$?
12680 egrep -v '^ *\+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:12683: \$? = $ac_status" >&5
12684 (exit $ac_status); } >/dev/null; then
12685 if test -s conftest.err; then
12686 ac_cpp_err=$ac_c_preproc_warn_flag
12687 else
12688 ac_cpp_err=
12690 else
12691 ac_cpp_err=yes
12693 if test -z "$ac_cpp_err"; then
12694 eval "$as_ac_Header=yes"
12695 else
12696 echo "$as_me: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 eval "$as_ac_Header=no"
12700 rm -f conftest.err conftest.$ac_ext
12702 echo "$as_me:12702: result: `eval echo '${'$as_ac_Header'}'`" >&5
12703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12705 cat >>confdefs.h <<EOF
12706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12709 cat >>confdefs.h <<\EOF
12710 #define NLIST_STRUCT 1
12714 done
12716 #### Report on what we decided to do.
12717 echo "
12718 Configured for \`${canonical}'.
12720 Where should the build process find the source code? ${srcdir}
12721 What operating system and machine description files should Emacs use?
12722 \`${opsysfile}' and \`${machfile}'
12723 What compiler should emacs be built with? ${CC} ${CFLAGS}
12724 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12725 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12726 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12727 What window system should Emacs use? ${window_system}
12728 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12729 Should Emacs use a shared game state directory? ${gamedir}"
12731 if test -n "${x_includes}"; then
12732 echo " Where do we find X Windows header files? ${x_includes}"
12733 else
12734 echo " Where do we find X Windows header files? Standard dirs"
12736 if test -n "${x_libraries}"; then
12737 echo " Where do we find X Windows libraries? ${x_libraries}"
12738 else
12739 echo " Where do we find X Windows libraries? Standard dirs"
12742 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12743 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12744 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12745 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12746 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12747 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12748 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12749 echo
12751 # Remove any trailing slashes in these variables.
12752 test "${prefix}" != NONE &&
12753 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12754 test "${exec_prefix}" != NONE &&
12755 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12757 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12758 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12759 ## from Makefile.c can correctly provide the arg `-traditional' to the
12760 ## C preprocessor.
12762 cat >conftest.$ac_ext <<_ACEOF
12763 #line 12758 "configure"
12764 #include "confdefs.h"
12765 yes..yes
12766 _ACEOF
12767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12768 egrep "yes..yes" >/dev/null 2>&1; then
12769 CPP_NEED_TRADITIONAL=no
12770 else
12771 CPP_NEED_TRADITIONAL=yes
12773 rm -f conftest*
12775 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"
12776 ac_config_commands="$ac_config_commands default"
12777 cat >confcache <<\_ACEOF
12778 # This file is a shell script that caches the results of configure
12779 # tests run on this system so they can be shared between configure
12780 # scripts and configure runs, see configure's option --config-cache.
12781 # It is not useful on other systems. If it contains results you don't
12782 # want to keep, you may remove or edit it.
12784 # config.status only pays attention to the cache file if you give it
12785 # the --recheck option to rerun configure.
12787 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12788 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12789 # following values.
12791 _ACEOF
12793 # The following way of writing the cache mishandles newlines in values,
12794 # but we know of no workaround that is simple, portable, and efficient.
12795 # So, don't put newlines in cache variables' values.
12796 # Ultrix sh set writes to stderr and can't be redirected directly,
12797 # and sets the high bit in the cache file unless we assign to the vars.
12799 (set) 2>&1 |
12800 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12801 *ac_space=\ *)
12802 # `set' does not quote correctly, so add quotes (double-quote
12803 # substitution turns \\\\ into \\, and sed turns \\ into \).
12804 sed -n \
12805 "s/'/'\\\\''/g;
12806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12809 # `set' quotes correctly as required by POSIX, so do not add quotes.
12810 sed -n \
12811 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12813 esac;
12815 sed '
12816 t clear
12817 : clear
12818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12819 t end
12820 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12821 : end' >>confcache
12822 if cmp -s $cache_file confcache; then :; else
12823 if test -w $cache_file; then
12824 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12825 cat confcache >$cache_file
12826 else
12827 echo "not updating unwritable cache $cache_file"
12830 rm -f confcache
12832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12833 # Let make expand exec_prefix.
12834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12836 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12837 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12838 # trailing colons and then remove the whole line if VPATH becomes empty
12839 # (actually we leave an empty line to preserve line numbers).
12840 if test "x$srcdir" = x.; then
12841 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12842 s/:*\$(srcdir):*/:/;
12843 s/:*\${srcdir}:*/:/;
12844 s/:*@srcdir@:*/:/;
12845 s/^\([^=]*=[ ]*\):*/\1/;
12846 s/:*$//;
12847 s/^[^=]*=[ ]*$//;
12851 DEFS=-DHAVE_CONFIG_H
12853 : ${CONFIG_STATUS=./config.status}
12854 ac_clean_files_save=$ac_clean_files
12855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12856 { echo "$as_me:12856: creating $CONFIG_STATUS" >&5
12857 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12858 cat >$CONFIG_STATUS <<_ACEOF
12859 #! $SHELL
12860 # Generated automatically by configure.
12861 # Run this file to recreate the current configuration.
12862 # Compiler output produced by configure, useful for debugging
12863 # configure, is in config.log if it exists.
12865 debug=false
12866 SHELL=\${CONFIG_SHELL-$SHELL}
12867 ac_cs_invocation="\$0 \$@"
12869 _ACEOF
12871 cat >>$CONFIG_STATUS <<\_ACEOF
12872 # Be Bourne compatible
12873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12874 emulate sh
12875 NULLCMD=:
12876 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12877 set -o posix
12880 # Name of the executable.
12881 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12883 if expr a : '\(a\)' >/dev/null 2>&1; then
12884 as_expr=expr
12885 else
12886 as_expr=false
12889 rm -f conf$$ conf$$.exe conf$$.file
12890 echo >conf$$.file
12891 if ln -s conf$$.file conf$$ 2>/dev/null; then
12892 # We could just check for DJGPP; but this test a) works b) is more generic
12893 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12894 if test -f conf$$.exe; then
12895 # Don't use ln at all; we don't have any links
12896 as_ln_s='cp -p'
12897 else
12898 as_ln_s='ln -s'
12900 elif ln conf$$.file conf$$ 2>/dev/null; then
12901 as_ln_s=ln
12902 else
12903 as_ln_s='cp -p'
12905 rm -f conf$$ conf$$.exe conf$$.file
12907 as_executable_p="test -f"
12909 # Support unset when possible.
12910 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12911 as_unset=unset
12912 else
12913 as_unset=false
12916 # NLS nuisances.
12917 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12918 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12919 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12920 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12921 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12922 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12923 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12924 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12926 # IFS
12927 # We need space, tab and new line, in precisely that order.
12928 as_nl='
12930 IFS=" $as_nl"
12932 # CDPATH.
12933 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12935 exec 6>&1
12937 _ACEOF
12939 # Files that config.status was made for.
12940 if test -n "$ac_config_files"; then
12941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12944 if test -n "$ac_config_headers"; then
12945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12948 if test -n "$ac_config_links"; then
12949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12952 if test -n "$ac_config_commands"; then
12953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12956 cat >>$CONFIG_STATUS <<\EOF
12958 ac_cs_usage="\
12959 \`$as_me' instantiates files from templates according to the
12960 current configuration.
12962 Usage: $0 [OPTIONS] [FILE]...
12964 -h, --help print this help, then exit
12965 -V, --version print version number, then exit
12966 -d, --debug don't remove temporary files
12967 --recheck update $as_me by reconfiguring in the same conditions
12968 --file=FILE[:TEMPLATE]
12969 instantiate the configuration file FILE
12970 --header=FILE[:TEMPLATE]
12971 instantiate the configuration header FILE
12973 Configuration files:
12974 $config_files
12976 Configuration headers:
12977 $config_headers
12979 Configuration commands:
12980 $config_commands
12982 Report bugs to <bug-autoconf@gnu.org>."
12985 cat >>$CONFIG_STATUS <<EOF
12986 ac_cs_version="\\
12987 config.status
12988 configured by $0, generated by GNU Autoconf 2.52,
12989 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12992 Free Software Foundation, Inc.
12993 This config.status script is free software; the Free Software Foundation
12994 gives unlimited permission to copy, distribute and modify it."
12995 srcdir=$srcdir
12996 INSTALL="$INSTALL"
12999 cat >>$CONFIG_STATUS <<\EOF
13000 # If no file are specified by the user, then we need to provide default
13001 # value. By we need to know if files were specified by the user.
13002 ac_need_defaults=:
13003 while test $# != 0
13005 case $1 in
13006 --*=*)
13007 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13008 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13009 shift
13010 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13011 shift
13013 -*);;
13014 *) # This is not an option, so the user has probably given explicit
13015 # arguments.
13016 ac_need_defaults=false;;
13017 esac
13019 case $1 in
13020 # Handling of the options.
13022 cat >>$CONFIG_STATUS <<EOF
13023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13024 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13025 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13027 cat >>$CONFIG_STATUS <<\EOF
13028 --version | --vers* | -V )
13029 echo "$ac_cs_version"; exit 0 ;;
13030 --he | --h)
13031 # Conflict between --help and --header
13032 { { echo "$as_me:13032: error: ambiguous option: $1
13033 Try \`$0 --help' for more information." >&5
13034 echo "$as_me: error: ambiguous option: $1
13035 Try \`$0 --help' for more information." >&2;}
13036 { (exit 1); exit 1; }; };;
13037 --help | --hel | -h )
13038 echo "$ac_cs_usage"; exit 0 ;;
13039 --debug | --d* | -d )
13040 debug=: ;;
13041 --file | --fil | --fi | --f )
13042 shift
13043 CONFIG_FILES="$CONFIG_FILES $1"
13044 ac_need_defaults=false;;
13045 --header | --heade | --head | --hea )
13046 shift
13047 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13048 ac_need_defaults=false;;
13050 # This is an error.
13051 -*) { { echo "$as_me:13051: error: unrecognized option: $1
13052 Try \`$0 --help' for more information." >&5
13053 echo "$as_me: error: unrecognized option: $1
13054 Try \`$0 --help' for more information." >&2;}
13055 { (exit 1); exit 1; }; } ;;
13057 *) ac_config_targets="$ac_config_targets $1" ;;
13059 esac
13060 shift
13061 done
13063 exec 5>>config.log
13064 cat >&5 << _ACEOF
13066 ## ----------------------- ##
13067 ## Running config.status. ##
13068 ## ----------------------- ##
13070 This file was extended by $as_me 2.52, executed with
13071 CONFIG_FILES = $CONFIG_FILES
13072 CONFIG_HEADERS = $CONFIG_HEADERS
13073 CONFIG_LINKS = $CONFIG_LINKS
13074 CONFIG_COMMANDS = $CONFIG_COMMANDS
13075 > $ac_cs_invocation
13076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13078 _ACEOF
13081 cat >>$CONFIG_STATUS <<EOF
13083 # INIT-COMMANDS section.
13086 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13090 cat >>$CONFIG_STATUS <<\EOF
13091 for ac_config_target in $ac_config_targets
13093 case "$ac_config_target" in
13094 # Handling of arguments.
13095 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13096 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13097 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
13098 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13099 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
13100 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13101 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
13102 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
13103 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
13104 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
13105 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13106 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13107 *) { { echo "$as_me:13107: error: invalid argument: $ac_config_target" >&5
13108 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13109 { (exit 1); exit 1; }; };;
13110 esac
13111 done
13113 # If the user did not use the arguments to specify the items to instantiate,
13114 # then the envvar interface is used. Set only those that are not.
13115 # We use the long form for the default assignment because of an extremely
13116 # bizarre bug on SunOS 4.1.3.
13117 if $ac_need_defaults; then
13118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13123 # Create a temporary directory, and hook for its removal unless debugging.
13124 $debug ||
13126 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13127 trap '{ (exit 1); exit 1; }' 1 2 13 15
13130 # Create a (secure) tmp directory for tmp files.
13131 : ${TMPDIR=/tmp}
13133 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13134 test -n "$tmp" && test -d "$tmp"
13135 } ||
13137 tmp=$TMPDIR/cs$$-$RANDOM
13138 (umask 077 && mkdir $tmp)
13139 } ||
13141 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13142 { (exit 1); exit 1; }
13147 cat >>$CONFIG_STATUS <<EOF
13150 # CONFIG_FILES section.
13153 # No need to generate the scripts if there are no CONFIG_FILES.
13154 # This happens for instance when ./config.status config.h
13155 if test -n "\$CONFIG_FILES"; then
13156 # Protect against being on the right side of a sed subst in config.status.
13157 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13158 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13159 s,@SHELL@,$SHELL,;t t
13160 s,@exec_prefix@,$exec_prefix,;t t
13161 s,@prefix@,$prefix,;t t
13162 s,@program_transform_name@,$program_transform_name,;t t
13163 s,@bindir@,$bindir,;t t
13164 s,@sbindir@,$sbindir,;t t
13165 s,@libexecdir@,$libexecdir,;t t
13166 s,@datadir@,$datadir,;t t
13167 s,@sysconfdir@,$sysconfdir,;t t
13168 s,@sharedstatedir@,$sharedstatedir,;t t
13169 s,@localstatedir@,$localstatedir,;t t
13170 s,@libdir@,$libdir,;t t
13171 s,@includedir@,$includedir,;t t
13172 s,@oldincludedir@,$oldincludedir,;t t
13173 s,@infodir@,$infodir,;t t
13174 s,@mandir@,$mandir,;t t
13175 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13176 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13177 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13178 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13179 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13180 s,@build_alias@,$build_alias,;t t
13181 s,@host_alias@,$host_alias,;t t
13182 s,@target_alias@,$target_alias,;t t
13183 s,@ECHO_C@,$ECHO_C,;t t
13184 s,@ECHO_N@,$ECHO_N,;t t
13185 s,@ECHO_T@,$ECHO_T,;t t
13186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13187 s,@DEFS@,$DEFS,;t t
13188 s,@LIBS@,$LIBS,;t t
13189 s,@build@,$build,;t t
13190 s,@build_cpu@,$build_cpu,;t t
13191 s,@build_vendor@,$build_vendor,;t t
13192 s,@build_os@,$build_os,;t t
13193 s,@host@,$host,;t t
13194 s,@host_cpu@,$host_cpu,;t t
13195 s,@host_vendor@,$host_vendor,;t t
13196 s,@host_os@,$host_os,;t t
13197 s,@CC@,$CC,;t t
13198 s,@CFLAGS@,$CFLAGS,;t t
13199 s,@LDFLAGS@,$LDFLAGS,;t t
13200 s,@CPPFLAGS@,$CPPFLAGS,;t t
13201 s,@ac_ct_CC@,$ac_ct_CC,;t t
13202 s,@EXEEXT@,$EXEEXT,;t t
13203 s,@OBJEXT@,$OBJEXT,;t t
13204 s,@LN_S@,$LN_S,;t t
13205 s,@CPP@,$CPP,;t t
13206 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13207 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13208 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13209 s,@YACC@,$YACC,;t t
13210 s,@RANLIB@,$RANLIB,;t t
13211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13212 s,@LIBSOUND@,$LIBSOUND,;t t
13213 s,@SET_MAKE@,$SET_MAKE,;t t
13214 s,@ALLOCA@,$ALLOCA,;t t
13215 s,@liblockfile@,$liblockfile,;t t
13216 s,@LIBOBJS@,$LIBOBJS,;t t
13217 s,@NEED_SETGID@,$NEED_SETGID,;t t
13218 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13219 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13220 s,@version@,$version,;t t
13221 s,@configuration@,$configuration,;t t
13222 s,@canonical@,$canonical,;t t
13223 s,@srcdir@,$srcdir,;t t
13224 s,@lispdir@,$lispdir,;t t
13225 s,@locallisppath@,$locallisppath,;t t
13226 s,@lisppath@,$lisppath,;t t
13227 s,@x_default_search_path@,$x_default_search_path,;t t
13228 s,@etcdir@,$etcdir,;t t
13229 s,@archlibdir@,$archlibdir,;t t
13230 s,@docdir@,$docdir,;t t
13231 s,@bitmapdir@,$bitmapdir,;t t
13232 s,@gamedir@,$gamedir,;t t
13233 s,@gameuser@,$gameuser,;t t
13234 s,@c_switch_system@,$c_switch_system,;t t
13235 s,@c_switch_machine@,$c_switch_machine,;t t
13236 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13237 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13238 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13239 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13240 s,@machfile@,$machfile,;t t
13241 s,@opsysfile@,$opsysfile,;t t
13242 CEOF
13246 cat >>$CONFIG_STATUS <<\EOF
13247 # Split the substitutions into bite-sized pieces for seds with
13248 # small command number limits, like on Digital OSF/1 and HP-UX.
13249 ac_max_sed_lines=48
13250 ac_sed_frag=1 # Number of current file.
13251 ac_beg=1 # First line for current file.
13252 ac_end=$ac_max_sed_lines # Line after last line for current file.
13253 ac_more_lines=:
13254 ac_sed_cmds=
13255 while $ac_more_lines; do
13256 if test $ac_beg -gt 1; then
13257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13258 else
13259 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13261 if test ! -s $tmp/subs.frag; then
13262 ac_more_lines=false
13263 else
13264 # The purpose of the label and of the branching condition is to
13265 # speed up the sed processing (if there are no `@' at all, there
13266 # is no need to browse any of the substitutions).
13267 # These are the two extra sed commands mentioned above.
13268 (echo ':t
13269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13270 if test -z "$ac_sed_cmds"; then
13271 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13272 else
13273 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13275 ac_sed_frag=`expr $ac_sed_frag + 1`
13276 ac_beg=$ac_end
13277 ac_end=`expr $ac_end + $ac_max_sed_lines`
13279 done
13280 if test -z "$ac_sed_cmds"; then
13281 ac_sed_cmds=cat
13283 fi # test -n "$CONFIG_FILES"
13286 cat >>$CONFIG_STATUS <<\EOF
13287 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13289 case $ac_file in
13290 - | *:- | *:-:* ) # input from stdin
13291 cat >$tmp/stdin
13292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13296 * ) ac_file_in=$ac_file.in ;;
13297 esac
13299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13300 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13301 X"$ac_file" : 'X\(//\)[^/]' \| \
13302 X"$ac_file" : 'X\(//\)$' \| \
13303 X"$ac_file" : 'X\(/\)' \| \
13304 . : '\(.\)' 2>/dev/null ||
13305 echo X"$ac_file" |
13306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13308 /^X\(\/\/\)$/{ s//\1/; q; }
13309 /^X\(\/\).*/{ s//\1/; q; }
13310 s/.*/./; q'`
13311 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13312 { case "$ac_dir" in
13313 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13314 *) as_incr_dir=.;;
13315 esac
13316 as_dummy="$ac_dir"
13317 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13318 case $as_mkdir_dir in
13319 # Skip DOS drivespec
13320 ?:) as_incr_dir=$as_mkdir_dir ;;
13322 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13323 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13325 esac
13326 done; }
13328 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13329 # A "../" for each directory in $ac_dir_suffix.
13330 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13331 else
13332 ac_dir_suffix= ac_dots=
13335 case $srcdir in
13336 .) ac_srcdir=.
13337 if test -z "$ac_dots"; then
13338 ac_top_srcdir=.
13339 else
13340 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13341 fi ;;
13342 [\\/]* | ?:[\\/]* )
13343 ac_srcdir=$srcdir$ac_dir_suffix;
13344 ac_top_srcdir=$srcdir ;;
13345 *) # Relative path.
13346 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13347 ac_top_srcdir=$ac_dots$srcdir ;;
13348 esac
13350 case $INSTALL in
13351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13352 *) ac_INSTALL=$ac_dots$INSTALL ;;
13353 esac
13355 if test x"$ac_file" != x-; then
13356 { echo "$as_me:13356: creating $ac_file" >&5
13357 echo "$as_me: creating $ac_file" >&6;}
13358 rm -f "$ac_file"
13360 # Let's still pretend it is `configure' which instantiates (i.e., don't
13361 # use $as_me), people would be surprised to read:
13362 # /* config.h. Generated automatically by config.status. */
13363 configure_input="Generated automatically from `echo $ac_file_in |
13364 sed 's,.*/,,'` by configure."
13366 # First look for the input files in the build tree, otherwise in the
13367 # src tree.
13368 ac_file_inputs=`IFS=:
13369 for f in $ac_file_in; do
13370 case $f in
13371 -) echo $tmp/stdin ;;
13372 [\\/$]*)
13373 # Absolute (can't be DOS-style, as IFS=:)
13374 test -f "$f" || { { echo "$as_me:13374: error: cannot find input file: $f" >&5
13375 echo "$as_me: error: cannot find input file: $f" >&2;}
13376 { (exit 1); exit 1; }; }
13377 echo $f;;
13378 *) # Relative
13379 if test -f "$f"; then
13380 # Build tree
13381 echo $f
13382 elif test -f "$srcdir/$f"; then
13383 # Source tree
13384 echo $srcdir/$f
13385 else
13386 # /dev/null tree
13387 { { echo "$as_me:13387: error: cannot find input file: $f" >&5
13388 echo "$as_me: error: cannot find input file: $f" >&2;}
13389 { (exit 1); exit 1; }; }
13390 fi;;
13391 esac
13392 done` || { (exit 1); exit 1; }
13394 cat >>$CONFIG_STATUS <<EOF
13395 sed "$ac_vpsub
13396 $extrasub
13398 cat >>$CONFIG_STATUS <<\EOF
13400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13401 s,@configure_input@,$configure_input,;t t
13402 s,@srcdir@,$ac_srcdir,;t t
13403 s,@top_srcdir@,$ac_top_srcdir,;t t
13404 s,@INSTALL@,$ac_INSTALL,;t t
13405 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13406 rm -f $tmp/stdin
13407 if test x"$ac_file" != x-; then
13408 mv $tmp/out $ac_file
13409 else
13410 cat $tmp/out
13411 rm -f $tmp/out
13414 done
13416 cat >>$CONFIG_STATUS <<\EOF
13419 # CONFIG_HEADER section.
13422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13425 # ac_d sets the value in "#define NAME VALUE" lines.
13426 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13427 ac_dB='[ ].*$,\1#\2'
13428 ac_dC=' '
13429 ac_dD=',;t'
13430 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13431 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13432 ac_uB='$,\1#\2define\3'
13433 ac_uC=' '
13434 ac_uD=',;t'
13436 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13438 case $ac_file in
13439 - | *:- | *:-:* ) # input from stdin
13440 cat >$tmp/stdin
13441 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13443 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13445 * ) ac_file_in=$ac_file.in ;;
13446 esac
13448 test x"$ac_file" != x- && { echo "$as_me:13448: creating $ac_file" >&5
13449 echo "$as_me: creating $ac_file" >&6;}
13451 # First look for the input files in the build tree, otherwise in the
13452 # src tree.
13453 ac_file_inputs=`IFS=:
13454 for f in $ac_file_in; do
13455 case $f in
13456 -) echo $tmp/stdin ;;
13457 [\\/$]*)
13458 # Absolute (can't be DOS-style, as IFS=:)
13459 test -f "$f" || { { echo "$as_me:13459: error: cannot find input file: $f" >&5
13460 echo "$as_me: error: cannot find input file: $f" >&2;}
13461 { (exit 1); exit 1; }; }
13462 echo $f;;
13463 *) # Relative
13464 if test -f "$f"; then
13465 # Build tree
13466 echo $f
13467 elif test -f "$srcdir/$f"; then
13468 # Source tree
13469 echo $srcdir/$f
13470 else
13471 # /dev/null tree
13472 { { echo "$as_me:13472: error: cannot find input file: $f" >&5
13473 echo "$as_me: error: cannot find input file: $f" >&2;}
13474 { (exit 1); exit 1; }; }
13475 fi;;
13476 esac
13477 done` || { (exit 1); exit 1; }
13478 # Remove the trailing spaces.
13479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13484 # `conftest.undefs', that substitutes the proper values into
13485 # config.h.in to produce config.h. The first handles `#define'
13486 # templates, and the second `#undef' templates.
13487 # And first: Protect against being on the right side of a sed subst in
13488 # config.status. Protect against being in an unquoted here document
13489 # in config.status.
13490 rm -f conftest.defines conftest.undefs
13491 # Using a here document instead of a string reduces the quoting nightmare.
13492 # Putting comments in sed scripts is not portable.
13494 # `end' is used to avoid that the second main sed command (meant for
13495 # 0-ary CPP macros) applies to n-ary macro definitions.
13496 # See the Autoconf documentation for `clear'.
13497 cat >confdef2sed.sed <<\EOF
13498 s/[\\&,]/\\&/g
13499 s,[\\$`],\\&,g
13500 t clear
13501 : clear
13502 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13503 t end
13504 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13505 : end
13507 # If some macros were called several times there might be several times
13508 # the same #defines, which is useless. Nevertheless, we may not want to
13509 # sort them, since we want the *last* AC-DEFINE to be honored.
13510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13512 rm -f confdef2sed.sed
13514 # This sed command replaces #undef with comments. This is necessary, for
13515 # example, in the case of _POSIX_SOURCE, which is predefined and required
13516 # on some systems where configure will not decide to define it.
13517 cat >>conftest.undefs <<\EOF
13518 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13521 # Break up conftest.defines because some shells have a limit on the size
13522 # of here documents, and old seds have small limits too (100 cmds).
13523 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13524 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13525 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13526 echo ' :' >>$CONFIG_STATUS
13527 rm -f conftest.tail
13528 while grep . conftest.defines >/dev/null
13530 # Write a limited-size here document to $tmp/defines.sed.
13531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13532 # Speed up: don't consider the non `#define' lines.
13533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13534 # Work around the forget-to-reset-the-flag bug.
13535 echo 't clr' >>$CONFIG_STATUS
13536 echo ': clr' >>$CONFIG_STATUS
13537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13538 echo 'CEOF
13539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13540 rm -f $tmp/in
13541 mv $tmp/out $tmp/in
13542 ' >>$CONFIG_STATUS
13543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13544 rm -f conftest.defines
13545 mv conftest.tail conftest.defines
13546 done
13547 rm -f conftest.defines
13548 echo ' fi # egrep' >>$CONFIG_STATUS
13549 echo >>$CONFIG_STATUS
13551 # Break up conftest.undefs because some shells have a limit on the size
13552 # of here documents, and old seds have small limits too (100 cmds).
13553 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13554 rm -f conftest.tail
13555 while grep . conftest.undefs >/dev/null
13557 # Write a limited-size here document to $tmp/undefs.sed.
13558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13559 # Speed up: don't consider the non `#undef'
13560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13561 # Work around the forget-to-reset-the-flag bug.
13562 echo 't clr' >>$CONFIG_STATUS
13563 echo ': clr' >>$CONFIG_STATUS
13564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13565 echo 'CEOF
13566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13567 rm -f $tmp/in
13568 mv $tmp/out $tmp/in
13569 ' >>$CONFIG_STATUS
13570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13571 rm -f conftest.undefs
13572 mv conftest.tail conftest.undefs
13573 done
13574 rm -f conftest.undefs
13576 cat >>$CONFIG_STATUS <<\EOF
13577 # Let's still pretend it is `configure' which instantiates (i.e., don't
13578 # use $as_me), people would be surprised to read:
13579 # /* config.h. Generated automatically by config.status. */
13580 if test x"$ac_file" = x-; then
13581 echo "/* Generated automatically by configure. */" >$tmp/config.h
13582 else
13583 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13585 cat $tmp/in >>$tmp/config.h
13586 rm -f $tmp/in
13587 if test x"$ac_file" != x-; then
13588 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13589 { echo "$as_me:13589: $ac_file is unchanged" >&5
13590 echo "$as_me: $ac_file is unchanged" >&6;}
13591 else
13592 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13593 X"$ac_file" : 'X\(//\)[^/]' \| \
13594 X"$ac_file" : 'X\(//\)$' \| \
13595 X"$ac_file" : 'X\(/\)' \| \
13596 . : '\(.\)' 2>/dev/null ||
13597 echo X"$ac_file" |
13598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13600 /^X\(\/\/\)$/{ s//\1/; q; }
13601 /^X\(\/\).*/{ s//\1/; q; }
13602 s/.*/./; q'`
13603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13604 { case "$ac_dir" in
13605 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13606 *) as_incr_dir=.;;
13607 esac
13608 as_dummy="$ac_dir"
13609 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13610 case $as_mkdir_dir in
13611 # Skip DOS drivespec
13612 ?:) as_incr_dir=$as_mkdir_dir ;;
13614 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13615 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13617 esac
13618 done; }
13621 rm -f $ac_file
13622 mv $tmp/config.h $ac_file
13624 else
13625 cat $tmp/config.h
13626 rm -f $tmp/config.h
13628 done
13630 cat >>$CONFIG_STATUS <<\EOF
13633 # CONFIG_COMMANDS section.
13635 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13636 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13637 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13639 case $ac_dest in
13640 default )
13642 ### Make the necessary directories, if they don't exist.
13643 for dir in etc lisp ; do
13644 test -d ${dir} || mkdir ${dir}
13645 done
13647 # Build src/Makefile from ${srcdir}/src/Makefile.c
13648 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13649 # This must be done after src/config.h is built, since we rely on that file.
13651 # Now get this: Some word that is part of the ${srcdir} directory name
13652 # or the ${configuration} value might, just might, happen to be an
13653 # identifier like `sun4' or `i386' or something, and be predefined by
13654 # the C preprocessor to some helpful value like 1, or maybe the empty
13655 # string. Needless to say consequent macro substitutions are less
13656 # than conducive to the makefile finding the correct directory.
13657 undefs="`echo $top_srcdir $configuration $canonical |
13658 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13659 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13662 echo creating src/epaths.h
13663 ${MAKE-make} epaths-force
13665 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13666 # `..' to `. .' unless invoked with -traditional
13668 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13669 CPPFLAGS="$CPPFLAGS -traditional"
13672 echo creating lib-src/Makefile
13673 ( cd lib-src
13674 rm -f junk.c junk1.c junk2.c
13675 sed -e '/start of cpp stuff/q' \
13676 < Makefile.c > junk1.c
13677 sed -e '1,/start of cpp stuff/d'\
13678 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13679 < Makefile.c > junk.c
13680 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13681 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13682 cat junk1.c junk2.c > Makefile.new
13683 rm -f junk.c junk1.c junk2.c
13684 chmod 444 Makefile.new
13685 mv -f Makefile.new Makefile
13688 echo creating src/Makefile
13689 ( cd src
13690 rm -f junk.c junk1.c junk2.c
13691 sed -e '/start of cpp stuff/q' \
13692 < Makefile.c > junk1.c
13693 sed -e '1,/start of cpp stuff/d'\
13694 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13695 < Makefile.c > junk.c
13696 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13697 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13698 cat junk1.c junk2.c > Makefile.new
13699 rm -f junk.c junk1.c junk2.c
13700 chmod 444 Makefile.new
13701 mv -f Makefile.new Makefile
13704 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13705 echo creating src/.gdbinit
13706 echo source $srcdir/src/.gdbinit > src/.gdbinit
13709 # This is how we know whether to re-run configure in certain cases.
13710 touch src/config.stamp
13713 esac
13714 done
13717 cat >>$CONFIG_STATUS <<\EOF
13719 { (exit 0); exit 0; }
13721 chmod +x $CONFIG_STATUS
13722 ac_clean_files=$ac_clean_files_save
13724 # configure is writing to config.log, and then calls config.status.
13725 # config.status does its own redirection, appending to config.log.
13726 # Unfortunately, on DOS this fails, as config.log is still kept open
13727 # by configure, so config.status won't be able to write to it; its
13728 # output is simply discarded. So we exec the FD to /dev/null,
13729 # effectively closing config.log, so it can be properly (re)opened and
13730 # appended to by config.status. When coming back to configure, we
13731 # need to make the FD available again.
13732 if test "$no_create" != yes; then
13733 ac_cs_success=:
13734 exec 5>/dev/null
13735 $SHELL $CONFIG_STATUS || ac_cs_success=false
13736 exec 5>>config.log
13737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13738 # would make configure fail if this is the last instruction.
13739 $ac_cs_success || { (exit 1); exit 1; }