Undo previous change, but leave a comment.
[emacs.git] / configure
blob249676dfd53b9bb99e98a76e56895c9aba9d1edf
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 --without-gcc don't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version 5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server host
689 --without-sound don't compile with sound support
690 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
691 --with-xpm use -lXpm for displaying XPM images
692 --with-jpeg use -ljpeg for displaying JPEG images
693 --with-tiff use -ltiff for displaying TIFF images
694 --with-gif use -lungif for displaying GIF images
695 --with-png use -lpng for displaying PNG images
696 --without-toolkit-scroll-bars
697 don't use Motif or Xaw3d scroll bars
698 --without-xim don't use X11 XIM
699 --without-carbon don't use Carbon GUI on Mac OS X
700 --with-x use the X Window System
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
709 CPP C preprocessor
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
719 ac_popdir=`pwd`
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
721 cd $ac_subdir
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
726 case $srcdir in
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
731 *) # Relative path.
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
733 esac
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
737 echo
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
740 echo
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
744 echo
745 $ac_configure --help
746 else
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749 cd $ac_popdir
750 done
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
755 cat <<\EOF
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
762 exit 0
764 exec 5>config.log
765 cat >&5 <<EOF
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52. Invocation command line was
772 $ $0 $@
776 cat <<_ASUNAME
777 ## ---------- ##
778 ## Platform. ##
779 ## ---------- ##
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
798 PATH = $PATH
800 _ASUNAME
801 } >&5
803 cat >&5 <<EOF
804 ## ------------ ##
805 ## Core tests. ##
806 ## ------------ ##
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
813 ac_configure_args=
814 ac_sep=
815 for ac_arg
817 case $ac_arg in
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
825 ac_sep=" " ;;
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
827 ac_sep=" " ;;
828 esac
829 # Get rid of the leading space.
830 done
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
835 trap 'exit_status=$?
836 # Save into config.log some information that might help in debugging.
837 echo >&5
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
841 echo >&5
842 # The following way of writing the cache mishandles newlines in values,
844 (set) 2>&1 |
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
846 *ac_space=\ *)
847 sed -n \
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
852 sed -n \
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855 esac;
856 } >&5
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
859 echo >&5
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
863 echo >&5
864 cat conftest.log >&5
866 (echo; echo) >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
871 exit $exit_status
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
875 done
876 ac_signal=0
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 echo >confdefs.h
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
888 else
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
897 . "$ac_site_file"
899 done
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
907 case $cache_file in
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 *) . ./$cache_file;;
910 esac
912 else
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
915 >$cache_file
918 # Check that the precious variables saved in the cache have kept the same
919 # value.
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
928 set,)
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
932 ,set)
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
936 ,);;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
945 ac_cache_corrupted=:
946 fi;;
947 esac
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
951 case $ac_new_val in
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
958 esac
960 done
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
969 ac_ext=c
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
976 *c*,-n*) ECHO_N= ECHO_C='
977 ' ECHO_T=' ' ;;
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
980 esac
981 echo "#! $SHELL" >conftest.sh
982 echo "exit 0" >>conftest.sh
983 chmod +x conftest.sh
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
985 (PATH=".;."; conftest.sh) 2>&5
986 ac_status=$?
987 echo "$as_me:987: \$? = $ac_status" >&5
988 (exit $ac_status); }; then
989 ac_path_separator=';'
990 else
991 ac_path_separator=:
993 PATH_SEPARATOR="$ac_path_separator"
994 rm -f conftest.sh
996 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
998 test "$program_prefix" != NONE &&
999 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1000 # Use a double $ so make ignores it.
1001 test "$program_suffix" != NONE &&
1002 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1003 # Double any \ or $. echo might interpret backslashes.
1004 # By default was `s,x,x', remove it if useless.
1005 cat <<\_ACEOF >conftest.sed
1006 s/[\\$]/&&/g;s/;s,x,x,$//
1007 _ACEOF
1008 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1009 rm conftest.sed
1011 lispdir='${datadir}/emacs/${version}/lisp'
1012 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1013 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1014 lisppath='${locallisppath}:${lispdir}'
1015 etcdir='${datadir}/emacs/${version}/etc'
1016 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1017 docdir='${datadir}/emacs/${version}/etc'
1018 gamedir='${localstatedir}/games/emacs'
1020 gameuser=games
1022 # Check whether --with-gcc or --without-gcc was given.
1023 if test "${with_gcc+set}" = set; then
1024 withval="$with_gcc"
1028 # Check whether --with-pop or --without-pop was given.
1029 if test "${with_pop+set}" = set; then
1030 withval="$with_pop"
1031 if test "$withval" = yes; then
1032 cat >>confdefs.h <<\EOF
1033 #define MAIL_USE_POP 1
1036 else :
1038 else
1039 cat >>confdefs.h <<\EOF
1040 #define MAIL_USE_POP 1
1045 # Check whether --with-kerberos or --without-kerberos was given.
1046 if test "${with_kerberos+set}" = set; then
1047 withval="$with_kerberos"
1048 cat >>confdefs.h <<\EOF
1049 #define KERBEROS 1
1054 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1055 if test "${with_kerberos5+set}" = set; then
1056 withval="$with_kerberos5"
1057 if test "${with_kerberos5+set}" = set; then
1058 if test "${with_kerberos+set}" != set; then
1059 with_kerberos=yes
1060 cat >>confdefs.h <<\EOF
1061 #define KERBEROS 1
1067 cat >>confdefs.h <<\EOF
1068 #define KERBEROS5 1
1073 # Check whether --with-hesiod or --without-hesiod was given.
1074 if test "${with_hesiod+set}" = set; then
1075 withval="$with_hesiod"
1077 cat >>confdefs.h <<\EOF
1078 #define HESIOD 1
1083 # Check whether --with-sound or --without-sound was given.
1084 if test "${with_sound+set}" = set; then
1085 withval="$with_sound"
1089 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1090 if test "${with_x_toolkit+set}" = set; then
1091 withval="$with_x_toolkit"
1092 case "${withval}" in
1093 y | ye | yes ) val=athena ;;
1094 n | no ) val=no ;;
1095 l | lu | luc | luci | lucid ) val=lucid ;;
1096 a | at | ath | athe | athen | athena ) val=athena ;;
1097 m | mo | mot | moti | motif ) val=motif ;;
1099 { { echo "$as_me:1099: error: \`--with-x-toolkit=$withval' is invalid\;
1100 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1101 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1102 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1103 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1104 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1105 { (exit 1); exit 1; }; }
1107 esac
1108 with_x_toolkit=$val
1112 # Check whether --with-xpm or --without-xpm was given.
1113 if test "${with_xpm+set}" = set; then
1114 withval="$with_xpm"
1118 # Check whether --with-jpeg or --without-jpeg was given.
1119 if test "${with_jpeg+set}" = set; then
1120 withval="$with_jpeg"
1124 # Check whether --with-tiff or --without-tiff was given.
1125 if test "${with_tiff+set}" = set; then
1126 withval="$with_tiff"
1130 # Check whether --with-gif or --without-gif was given.
1131 if test "${with_gif+set}" = set; then
1132 withval="$with_gif"
1136 # Check whether --with-png or --without-png was given.
1137 if test "${with_png+set}" = set; then
1138 withval="$with_png"
1142 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1143 if test "${with_toolkit_scroll_bars+set}" = set; then
1144 withval="$with_toolkit_scroll_bars"
1148 # Check whether --with-xim or --without-xim was given.
1149 if test "${with_xim+set}" = set; then
1150 withval="$with_xim"
1154 # Check whether --with-carbon or --without-carbon was given.
1155 if test "${with_carbon+set}" = set; then
1156 withval="$with_carbon"
1160 #### Make srcdir absolute, if it isn't already. It's important to
1161 #### avoid running the path through pwd unnecessarily, since pwd can
1162 #### give you automounter prefixes, which can go away. We do all this
1163 #### so Emacs can find its files when run uninstalled.
1164 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1165 unset CDPATH
1166 case "${srcdir}" in
1167 /* ) ;;
1169 ## We may be able to use the $PWD environment variable to make this
1170 ## absolute. But sometimes PWD is inaccurate.
1171 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1172 ## but that tested only for a well-formed and valid PWD,
1173 ## it did not object when PWD was well-formed and valid but just wrong.
1174 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1175 then
1176 srcdir="$PWD"
1177 else
1178 srcdir="`(cd ${srcdir}; pwd)`"
1181 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1182 esac
1184 #### Check if the source directory already has a configured system in it.
1185 if test `pwd` != `(cd ${srcdir} && pwd)` \
1186 && test -f "${srcdir}/src/config.h" ; then
1187 { echo "$as_me:1187: WARNING: The directory tree \`${srcdir}' is being used
1188 as a build directory right now; it has been configured in its own
1189 right. To configure in another directory as well, you MUST
1190 use GNU make. If you do not have GNU make, then you must
1191 now do \`make distclean' in ${srcdir},
1192 and then run $0 again." >&5
1193 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1194 as a build directory right now; it has been configured in its own
1195 right. To configure in another directory as well, you MUST
1196 use GNU make. If you do not have GNU make, then you must
1197 now do \`make distclean' in ${srcdir},
1198 and then run $0 again." >&2;}
1200 extrasub='/^VPATH[ ]*=/c\
1201 vpath %.c $(srcdir)\
1202 vpath %.h $(srcdir)\
1203 vpath %.y $(srcdir)\
1204 vpath %.l $(srcdir)\
1205 vpath %.s $(srcdir)\
1206 vpath %.in $(srcdir)\
1207 vpath %.texi $(srcdir)'
1210 #### Given the configuration name, set machfile and opsysfile to the
1211 #### names of the m/*.h and s/*.h files we should use.
1213 ### Canonicalize the configuration name.
1215 ac_aux_dir=
1216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1217 if test -f $ac_dir/install-sh; then
1218 ac_aux_dir=$ac_dir
1219 ac_install_sh="$ac_aux_dir/install-sh -c"
1220 break
1221 elif test -f $ac_dir/install.sh; then
1222 ac_aux_dir=$ac_dir
1223 ac_install_sh="$ac_aux_dir/install.sh -c"
1224 break
1225 elif test -f $ac_dir/shtool; then
1226 ac_aux_dir=$ac_dir
1227 ac_install_sh="$ac_aux_dir/shtool install -c"
1228 break
1230 done
1231 if test -z "$ac_aux_dir"; then
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1234 { (exit 1); exit 1; }; }
1236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240 # Make sure we can run config.sub.
1241 $ac_config_sub sun4 >/dev/null 2>&1 ||
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5
1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1244 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: checking build system type" >&5
1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1248 if test "${ac_cv_build+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 else
1251 ac_cv_build_alias=$build_alias
1252 test -z "$ac_cv_build_alias" &&
1253 ac_cv_build_alias=`$ac_config_guess`
1254 test -z "$ac_cv_build_alias" &&
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5
1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1257 { (exit 1); exit 1; }; }
1258 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_build" >&5
1265 echo "${ECHO_T}$ac_cv_build" >&6
1266 build=$ac_cv_build
1267 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$as_me:1271: checking host system type" >&5
1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1273 if test "${ac_cv_host+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 else
1276 ac_cv_host_alias=$host_alias
1277 test -z "$ac_cv_host_alias" &&
1278 ac_cv_host_alias=$ac_cv_build_alias
1279 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_host" >&5
1286 echo "${ECHO_T}$ac_cv_host" >&6
1287 host=$ac_cv_host
1288 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 canonical=$host
1293 configuration=${host_alias-$host}
1295 ### If you add support for a new configuration, add code to this
1296 ### switch statement to recognize your configuration name and select
1297 ### the appropriate operating system and machine description files.
1299 ### You would hope that you could choose an m/*.h file pretty much
1300 ### based on the machine portion of the configuration name, and an s-
1301 ### file based on the operating system portion. However, it turns out
1302 ### that each m/*.h file is pretty manufacturer-specific - for
1303 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1304 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1305 ### machines. So we basically have to have a special case for each
1306 ### configuration name.
1308 ### As far as handling version numbers on operating systems is
1309 ### concerned, make sure things will fail in a fixable way. If
1310 ### /etc/MACHINES doesn't say anything about version numbers, be
1311 ### prepared to handle anything reasonably. If version numbers
1312 ### matter, be sure /etc/MACHINES says something about it.
1314 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1315 ### "System V Release 4"; he writes, "The old convention encouraged
1316 ### confusion between `system' and `release' levels'."
1318 machine='' opsys='' unported=no
1319 case "${canonical}" in
1321 ## FreeBSD ports
1322 *-*-freebsd* )
1323 opsys=freebsd
1324 case "${canonical}" in
1325 alpha*-*-freebsd*) machine=alpha ;;
1326 i[3456]86-*-freebsd*) machine=intel386 ;;
1327 esac
1330 ## NetBSD ports
1331 *-*-netbsd* )
1332 opsys=netbsd
1333 case "${canonical}" in
1334 alpha*-*-netbsd*) machine=alpha ;;
1335 i[3456]86-*-netbsd*) machine=intel386 ;;
1336 m68k-*-netbsd*)
1337 # This is somewhat bogus.
1338 machine=hp9000s300 ;;
1339 powerpc-apple-netbsd*) machine=macppc ;;
1340 mips-*-netbsd*) machine=pmax ;;
1341 mipsel-*-netbsd*) machine=pmax ;;
1342 mipseb-*-netbsd*) machine=pmax ;;
1343 ns32k-*-netbsd*) machine=ns32000 ;;
1344 powerpc-*-netbsd*) machine=macppc ;;
1345 sparc*-*-netbsd*) machine=sparc ;;
1346 vax-*-netbsd*) machine=vax ;;
1347 arm-*-netbsd*) machine=arm ;;
1348 esac
1351 ## OpenBSD ports
1352 *-*-openbsd* )
1353 opsys=openbsd
1354 case "${canonical}" in
1355 alpha*-*-openbsd*) machine=alpha ;;
1356 i386-*-openbsd*) machine=intel386 ;;
1357 m68k-*-openbsd*) machine=hp9000s300 ;;
1358 mipsel-*-openbsd*) machine=pmax ;;
1359 ns32k-*-openbsd*) machine=ns32000 ;;
1360 sparc-*-openbsd*) machine=sparc ;;
1361 vax-*-openbsd*) machine=vax ;;
1362 esac
1365 ## Acorn RISCiX:
1366 arm-acorn-riscix1.1* )
1367 machine=acorn opsys=riscix1-1
1369 arm-acorn-riscix1.2* | arm-acorn-riscix )
1370 ## This name is riscix12 instead of riscix1.2
1371 ## to avoid a file name conflict on MSDOS.
1372 machine=acorn opsys=riscix12
1375 ## BSDI ports
1376 *-*-bsdi* )
1377 opsys=bsdi
1378 case "${canonical}" in
1379 i[345]86-*-bsdi*) machine=intel386 ;;
1380 sparc-*-bsdi*) machine=sparc ;;
1381 powerpc-*-bsdi*) machine=macppc ;;
1382 esac
1383 case "${canonical}" in
1384 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1385 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1386 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1387 *-*-bsdi3* ) opsys=bsdos3 ;;
1388 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1389 esac
1392 ## Alliant machines
1393 ## Strictly speaking, we need the version of the alliant operating
1394 ## system to choose the right machine file, but currently the
1395 ## configuration name doesn't tell us enough to choose the right
1396 ## one; we need to give alliants their own operating system name to
1397 ## do this right. When someone cares, they can help us.
1398 fx80-alliant-* )
1399 machine=alliant4 opsys=bsd4-2
1401 i860-alliant-* )
1402 machine=alliant-2800 opsys=bsd4-3
1405 ## Alpha (DEC) machines.
1406 alpha*-dec-osf* )
1407 machine=alpha opsys=osf1
1408 # This is needed to find X11R6.1 libraries for certain tests.
1409 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1410 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1411 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1412 # due to non-traditional preprocessing with the current compiler
1413 # defaults. OSF 4 can also have that compiler version, and there
1414 # seems always to have been a usable /usr/bin/cpp.
1415 NON_GNU_CPP=/usr/bin/cpp
1416 case "${canonical}" in
1417 alpha*-dec-osf[5-9]*)
1418 opsys=osf5-0 ;;
1419 esac
1422 alpha*-*-linux-gnu* )
1423 machine=alpha opsys=gnu-linux
1426 arm*-*-linux-gnu* )
1427 machine=arm opsys=gnu-linux
1430 ppc-*-linux | \
1431 powerpc-*-linux* )
1432 machine=macppc opsys=gnu-linux
1435 ## Altos 3068
1436 m68*-altos-sysv* )
1437 machine=altos opsys=usg5-2
1440 ## Amdahl UTS
1441 580-amdahl-sysv* )
1442 machine=amdahl opsys=usg5-2-2
1445 ## Apollo, Domain/OS
1446 m68*-apollo-* )
1447 machine=apollo opsys=bsd4-3
1450 ## AT&T 3b2, 3b5, 3b15, 3b20
1451 we32k-att-sysv* )
1452 machine=att3b opsys=usg5-2-2
1455 ## AT&T 3b1 - The Mighty Unix PC!
1456 m68*-att-sysv* )
1457 machine=7300 opsys=usg5-2-2
1460 ## Bull dpx20
1461 rs6000-bull-bosx* )
1462 machine=ibmrs6000 opsys=aix3-2
1465 ## Bull dpx2
1466 m68*-bull-sysv3* )
1467 machine=dpx2 opsys=usg5-3
1470 ## Bull sps7
1471 m68*-bull-sysv2* )
1472 machine=sps7 opsys=usg5-2
1475 ## CCI 5/32, 6/32 -- see "Tahoe".
1477 ## Celerity
1478 ## I don't know what configuration name to use for this; config.sub
1479 ## doesn't seem to know anything about it. Hey, Celerity users, get
1480 ## in touch with us!
1481 celerity-celerity-bsd* )
1482 machine=celerity opsys=bsd4-2
1485 ## Clipper
1486 ## What operating systems does this chip run that Emacs has been
1487 ## tested on?
1488 clipper-* )
1489 machine=clipper
1490 ## We'll use the catch-all code at the bottom to guess the
1491 ## operating system.
1494 ## Compaq Nonstop
1495 mips-compaq-nonstopux* )
1496 machine=nonstopux opsys=nonstopux
1499 ## Convex
1500 *-convex-bsd* | *-convex-convexos* )
1501 machine=convex opsys=bsd4-3
1502 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1503 NON_GNU_CPP="cc -E -P"
1506 ## Cubix QBx/386
1507 i[3456]86-cubix-sysv* )
1508 machine=intel386 opsys=usg5-3
1511 ## Cydra 5
1512 cydra*-cydrome-sysv* )
1513 machine=cydra5 opsys=usg5-3
1516 ## Data General AViiON Machines
1517 ## DG changed naming conventions with the release of 5.4.4.10, they
1518 ## dropped the initial 5.4 but left the intervening R. Because of the
1519 ## R this shouldn't conflict with older versions of the OS (which I
1520 ## think were named like dgux4.*). In addition, DG new AViiONs series
1521 ## uses either Motorola M88k or Intel Pentium CPUs.
1522 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1523 machine=aviion opsys=dgux4
1525 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1526 ## This name is dgux5-4-3 instead of dgux5-4r3
1527 ## to avoid a file name conflict on MSDOS.
1528 machine=aviion opsys=dgux5-4-3
1530 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1531 machine=aviion opsys=dgux5-4r2
1533 m88k-dg-dgux* )
1534 machine=aviion opsys=dgux
1537 ## Data General AViiON Intel (x86) Machines
1538 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1539 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1540 i[345]86-dg-dguxR4* )
1541 machine=aviion-intel opsys=dgux4
1544 ## DECstations
1545 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1546 machine=pmax opsys=bsd4-2
1548 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1549 machine=pmax opsys=bsd4-3
1551 mips-dec-ultrix* )
1552 machine=pmax opsys=ultrix4-3
1554 mips-dec-osf* )
1555 machine=pmax opsys=osf1
1557 mips-dec-mach_bsd4.3* )
1558 machine=pmax opsys=mach-bsd4-3
1561 ## Motorola Delta machines
1562 m68k-motorola-sysv* | m68000-motorola-sysv* )
1563 machine=delta opsys=usg5-3
1564 if test -z "`type gnucc | grep 'not found'`"
1565 then
1566 if test -s /etc/167config
1567 then CC="gnucc -m68040"
1568 else CC="gnucc -m68881"
1570 else
1571 if test -z "`type gcc | grep 'not found'`"
1572 then CC=gcc
1573 else CC=cc
1577 m88k-motorola-sysv4* )
1578 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1579 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1580 # I hope there are not other 4.0 versions for this machine
1581 # which really need usg5-4 instead.
1582 machine=delta88k opsys=usg5-4-2
1584 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1585 machine=delta88k opsys=usg5-3
1588 ## Dual machines
1589 m68*-dual-sysv* )
1590 machine=dual opsys=usg5-2
1592 m68*-dual-uniplus* )
1593 machine=dual opsys=unipl5-2
1596 ## Elxsi 6400
1597 elxsi-elxsi-sysv* )
1598 machine=elxsi opsys=usg5-2
1601 ## Encore machines
1602 ns16k-encore-bsd* )
1603 machine=ns16000 opsys=umax
1606 ## The GEC 63 - apparently, this port isn't really finished yet.
1607 # I'm sure we finished off the last of the machines, though. -- fx
1609 ## Gould Power Node and NP1
1610 pn-gould-bsd4.2* )
1611 machine=gould opsys=bsd4-2
1613 pn-gould-bsd4.3* )
1614 machine=gould opsys=bsd4-3
1616 np1-gould-bsd* )
1617 machine=gould-np1 opsys=bsd4-3
1620 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1621 ## as far as Emacs is concerned).
1622 m88k-harris-cxux* )
1623 # Build needs to be different on 7.0 and later releases
1624 case "`uname -r`" in
1625 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1626 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1627 esac
1628 NON_GNU_CPP="/lib/cpp"
1630 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1631 m68k-harris-cxux* )
1632 machine=nh3000 opsys=cxux
1634 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1635 powerpc-harris-powerunix )
1636 machine=nh6000 opsys=powerunix
1637 NON_GNU_CPP="cc -Xo -E -P"
1639 ## SR2001/SR2201 running HI-UX/MPP
1640 hppa1.1-hitachi-hiuxmpp* )
1641 machine=sr2k opsys=hiuxmpp
1643 hppa1.1-hitachi-hiuxwe2* )
1644 machine=sr2k opsys=hiuxwe2
1646 ## Honeywell XPS100
1647 xps*-honeywell-sysv* )
1648 machine=xps100 opsys=usg5-2
1651 ## HP 9000 series 200 or 300
1652 m68*-hp-bsd* )
1653 machine=hp9000s300 opsys=bsd4-3
1655 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1656 m68*-hp-hpux* )
1657 case "`uname -r`" in
1658 ## Someone's system reports A.B8.05 for this.
1659 ## I wonder what other possibilities there are.
1660 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1661 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1662 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1663 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1664 *) machine=hp9000s300 opsys=hpux ;;
1665 esac
1668 ## HP 9000 series 700 and 800, running HP/UX
1669 hppa*-hp-hpux7* )
1670 machine=hp800 opsys=hpux
1672 hppa*-hp-hpux8* )
1673 machine=hp800 opsys=hpux8
1675 hppa*-hp-hpux9shr* )
1676 machine=hp800 opsys=hpux9shr
1678 hppa*-hp-hpux9* )
1679 machine=hp800 opsys=hpux9
1681 hppa*-hp-hpux10* )
1682 machine=hp800 opsys=hpux10
1684 hppa*-hp-hpux1[1-9]* )
1685 machine=hp800 opsys=hpux11
1688 hppa*-*-linux-gnu* )
1689 machine=hp800 opsys=gnu-linux
1692 ## HP 9000 series 700 and 800, running HP/UX
1693 hppa*-hp-hpux* )
1694 ## Cross-compilation? Nah!
1695 case "`uname -r`" in
1696 ## Someone's system reports A.B8.05 for this.
1697 ## I wonder what other possibilities there are.
1698 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1699 *.08.* ) machine=hp800 opsys=hpux8 ;;
1700 *.09.* ) machine=hp800 opsys=hpux9 ;;
1701 *) machine=hp800 opsys=hpux10 ;;
1702 esac
1704 hppa*-*-nextstep* )
1705 machine=hp800 opsys=nextstep
1708 ## Orion machines
1709 orion-orion-bsd* )
1710 machine=orion opsys=bsd4-2
1712 clipper-orion-bsd* )
1713 machine=orion105 opsys=bsd4-2
1716 ## IBM machines
1717 i[3456]86-ibm-aix1.1* )
1718 machine=ibmps2-aix opsys=usg5-2-2
1720 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1721 machine=ibmps2-aix opsys=usg5-3
1723 i370-ibm-aix*)
1724 machine=ibm370aix opsys=usg5-3
1726 s390-*-linux-gnu)
1727 machine=ibms390 opsys=gnu-linux
1729 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1730 machine=ibmrs6000 opsys=aix3-1
1732 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1733 machine=ibmrs6000 opsys=aix3-2-5
1735 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1736 machine=ibmrs6000 opsys=aix4-1
1738 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1739 machine=ibmrs6000 opsys=aix4-2
1741 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1742 machine=ibmrs6000 opsys=aix4-2
1744 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1745 machine=ibmrs6000 opsys=aix4
1747 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1748 machine=ibmrs6000 opsys=aix4-1
1750 rs6000-ibm-aix* | powerpc-ibm-aix* )
1751 machine=ibmrs6000 opsys=aix3-2
1753 romp-ibm-bsd4.3* )
1754 machine=ibmrt opsys=bsd4-3
1756 romp-ibm-bsd4.2* )
1757 machine=ibmrt opsys=bsd4-2
1759 romp-ibm-aos4.3* )
1760 machine=ibmrt opsys=bsd4-3
1762 romp-ibm-aos4.2* )
1763 machine=ibmrt opsys=bsd4-2
1765 romp-ibm-aos* )
1766 machine=ibmrt opsys=bsd4-3
1768 romp-ibm-bsd* )
1769 machine=ibmrt opsys=bsd4-3
1771 romp-ibm-aix* )
1772 machine=ibmrt-aix opsys=usg5-2-2
1775 ## Integrated Solutions `Optimum V'
1776 m68*-isi-bsd4.2* )
1777 machine=isi-ov opsys=bsd4-2
1779 m68*-isi-bsd4.3* )
1780 machine=isi-ov opsys=bsd4-3
1783 ## Intel 386 machines where we do care about the manufacturer
1784 i[3456]86-intsys-sysv* )
1785 machine=is386 opsys=usg5-2-2
1788 ## Prime EXL
1789 i[3456]86-prime-sysv* )
1790 machine=i386 opsys=usg5-3
1793 ## Sequent Symmetry running Dynix
1794 i[3456]86-sequent-bsd* )
1795 machine=symmetry opsys=bsd4-3
1798 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1799 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1800 machine=sequent-ptx opsys=ptx4
1801 NON_GNU_CPP=/lib/cpp
1804 ## Sequent Symmetry running DYNIX/ptx
1805 ## Use the old cpp rather than the newer ANSI one.
1806 i[3456]86-sequent-ptx* )
1807 machine=sequent-ptx opsys=ptx
1808 NON_GNU_CPP="/lib/cpp"
1811 ## ncr machine running svr4.3.
1812 i[3456]86-ncr-sysv4.3 )
1813 machine=ncr386 opsys=usg5-4-3
1816 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1817 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1818 i[3456]86-ncr-sysv* )
1819 machine=ncr386 opsys=usg5-4-2
1822 ## Intel Paragon OSF/1
1823 i860-intel-osf1* )
1824 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1827 ## Intel 860
1828 i860-*-sysv4* )
1829 machine=i860 opsys=usg5-4
1830 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1831 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1834 ## Macintosh PowerPC
1835 powerpc*-*-linux-gnu* )
1836 machine=macppc opsys=gnu-linux
1839 ## Masscomp machines
1840 m68*-masscomp-rtu* )
1841 machine=masscomp opsys=rtu
1844 ## Megatest machines
1845 m68*-megatest-bsd* )
1846 machine=mega68 opsys=bsd4-2
1849 ## Workstations sold by MIPS
1850 ## This is not necessarily all workstations using the MIPS processor -
1851 ## Irises are produced by SGI, and DECstations by DEC.
1853 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1854 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1855 ## it gives for choosing between the alternatives seems to be "Use
1856 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1857 ## the BSD world." I'll assume that these are instructions for
1858 ## handling two odd situations, and that every other situation
1859 ## should use mips.h and usg5-2-2, they being listed first.
1860 mips-mips-usg* )
1861 machine=mips4
1862 ## Fall through to the general code at the bottom to decide on the OS.
1864 mips-mips-riscos4* )
1865 machine=mips4 opsys=bsd4-3
1866 NON_GNU_CC="cc -systype bsd43"
1867 NON_GNU_CPP="cc -systype bsd43 -E"
1869 mips-mips-riscos5* )
1870 machine=mips4 opsys=riscos5
1871 NON_GNU_CC="cc -systype bsd43"
1872 NON_GNU_CPP="cc -systype bsd43 -E"
1874 mips-mips-bsd* )
1875 machine=mips opsys=bsd4-3
1877 mips-mips-* )
1878 machine=mips opsys=usg5-2-2
1881 ## NeXT
1882 m68*-next-* | m68k-*-nextstep* )
1883 machine=m68k opsys=nextstep
1886 ## The complete machine from National Semiconductor
1887 ns32k-ns-genix* )
1888 machine=ns32000 opsys=usg5-2
1891 ## NCR machines
1892 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1893 machine=tower32 opsys=usg5-2-2
1895 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1896 machine=tower32v3 opsys=usg5-3
1899 ## NEC EWS4800
1900 mips-nec-sysv4*)
1901 machine=ews4800 opsys=ux4800
1904 ## Nixdorf Targon 31
1905 m68*-nixdorf-sysv* )
1906 machine=targon31 opsys=usg5-2-2
1909 ## Nu (TI or LMI)
1910 m68*-nu-sysv* )
1911 machine=nu opsys=usg5-2
1914 ## Plexus
1915 m68*-plexus-sysv* )
1916 machine=plexus opsys=usg5-2
1919 ## PowerPC reference platform
1920 powerpcle-*-solaris2.5* )
1921 machine=prep
1922 opsys=sol2-5
1925 ## PowerPC reference platform
1926 powerpcle-*-solaris2* )
1927 machine=prep
1928 opsys=sol2-6
1931 ## Pyramid machines
1932 ## I don't really have any idea what sort of processor the Pyramid has,
1933 ## so I'm assuming it is its own architecture.
1934 pyramid-pyramid-bsd* )
1935 machine=pyramid opsys=bsd4-2
1938 ## Sequent Balance
1939 ns32k-sequent-bsd4.2* )
1940 machine=sequent opsys=bsd4-2
1942 ns32k-sequent-bsd4.3* )
1943 machine=sequent opsys=bsd4-3
1946 ## Siemens Nixdorf
1947 mips-siemens-sysv* | mips-sni-sysv*)
1948 machine=mips-siemens opsys=usg5-4
1949 NON_GNU_CC=/usr/ccs/bin/cc
1950 NON_GNU_CPP=/usr/ccs/lib/cpp
1953 ## Silicon Graphics machines
1954 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1955 m68*-sgi-iris3.5* )
1956 machine=irist opsys=iris3-5
1958 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1959 machine=irist opsys=iris3-6
1961 ## Iris 4D
1962 mips-sgi-irix3* )
1963 machine=iris4d opsys=irix3-3
1965 mips-sgi-irix4* )
1966 machine=iris4d opsys=irix4-0
1968 mips-sgi-irix6.5 )
1969 machine=iris4d opsys=irix6-5
1970 # Without defining _LANGUAGE_C, things get masked out in the headers
1971 # so that, for instance, grepping for `free' in stdlib.h fails and
1972 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1973 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1974 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1976 mips-sgi-irix6* )
1977 machine=iris4d opsys=irix6-0
1978 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1979 # but presumably it does no harm.
1980 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1981 # -32 probably isn't necessary in later v.6s -- anyone know which?
1982 NON_GCC_TEST_OPTIONS=-32
1984 mips-sgi-irix5.[01]* )
1985 machine=iris4d opsys=irix5-0
1987 mips-sgi-irix5* | mips-sgi-irix* )
1988 machine=iris4d opsys=irix5-2
1991 ## SONY machines
1992 m68*-sony-bsd4.2* )
1993 machine=news opsys=bsd4-2
1995 m68*-sony-bsd4.3* )
1996 machine=news opsys=bsd4-3
1998 m68*-sony-newsos3* | m68*-sony-news3*)
1999 machine=news opsys=bsd4-3
2001 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2002 machine=news-risc opsys=bsd4-3
2004 mips-sony-newsos6* )
2005 machine=news-r6 opsys=newsos6
2007 mips-sony-news* )
2008 machine=news-risc opsys=newsos5
2011 ## Stride
2012 m68*-stride-sysv* )
2013 machine=stride opsys=usg5-2
2016 ## Suns
2017 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2018 machine=sparc opsys=gnu-linux
2021 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2022 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2023 | rs6000-*-solaris2*)
2024 case "${canonical}" in
2025 m68*-sunos1* ) machine=sun1 ;;
2026 m68*-sunos2* ) machine=sun2 ;;
2027 m68* ) machine=sun3 ;;
2028 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2029 i[3456]86-*-* ) machine=intel386 ;;
2030 powerpcle* ) machine=powerpcle ;;
2031 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2032 sparc* ) machine=sparc ;;
2033 * ) unported=yes ;;
2034 esac
2035 case "${canonical}" in
2036 ## The Sun386 didn't get past 4.0.
2037 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2038 *-sunos4.0* ) opsys=sunos4-0 ;;
2039 *-sunos4.1.[3-9]*noshare )
2040 ## This name is sunos413 instead of sunos4-1-3
2041 ## to avoid a file name conflict on MSDOS.
2042 opsys=sunos413
2043 NON_GNU_CPP=/usr/lib/cpp
2044 NON_GCC_TEST_OPTIONS=-Bstatic
2045 GCC_TEST_OPTIONS=-static
2047 *-sunos4.1.[3-9]* | *-sunos4shr*)
2048 opsys=sunos4shr
2049 NON_GNU_CPP=/usr/lib/cpp
2051 *-sunos4* | *-sunos )
2052 opsys=sunos4-1
2053 NON_GCC_TEST_OPTIONS=-Bstatic
2054 GCC_TEST_OPTIONS=-static
2056 *-sunos5.3* | *-solaris2.3* )
2057 opsys=sol2-3
2058 NON_GNU_CPP=/usr/ccs/lib/cpp
2060 *-sunos5.4* | *-solaris2.4* )
2061 opsys=sol2-4
2062 NON_GNU_CPP=/usr/ccs/lib/cpp
2063 RANLIB="ar -ts"
2065 *-sunos5.5* | *-solaris2.5* )
2066 opsys=sol2-5
2067 NON_GNU_CPP=/usr/ccs/lib/cpp
2068 RANLIB="ar -ts"
2070 *-sunos5.6* | *-solaris2.6* )
2071 opsys=sol2-6
2072 NON_GNU_CPP=/usr/ccs/lib/cpp
2073 RANLIB="ar -ts"
2075 *-sunos5* | *-solaris* )
2076 opsys=sol2-6
2077 NON_GNU_CPP=/usr/ccs/lib/cpp
2079 * ) opsys=bsd4-2 ;;
2080 esac
2081 ## Watch out for a compiler that we know will not work.
2082 case "${canonical}" in
2083 *-solaris* | *-sunos5* )
2084 if [ "x$CC" = x/usr/ucb/cc ]; then
2085 ## /usr/ucb/cc doesn't work;
2086 ## we should find some other compiler that does work.
2087 unset CC
2090 *) ;;
2091 esac
2093 sparc-*-nextstep* )
2094 machine=sparc opsys=nextstep
2097 ## Tadpole 68k
2098 m68*-tadpole-sysv* )
2099 machine=tad68k opsys=usg5-3
2102 ## Tahoe machines
2103 tahoe-tahoe-bsd4.2* )
2104 machine=tahoe opsys=bsd4-2
2106 tahoe-tahoe-bsd4.3* )
2107 machine=tahoe opsys=bsd4-3
2110 ## Tandem Integrity S2
2111 mips-tandem-sysv* )
2112 machine=tandem-s2 opsys=usg5-3
2115 ## Tektronix XD88
2116 m88k-tektronix-sysv3* )
2117 machine=tekxd88 opsys=usg5-3
2120 ## Tektronix 16000 box (6130?)
2121 ns16k-tektronix-bsd* )
2122 machine=ns16000 opsys=bsd4-2
2124 ## Tektronix 4300
2125 ## src/m/tek4300.h hints that this is a m68k machine.
2126 m68*-tektronix-bsd* )
2127 machine=tek4300 opsys=bsd4-3
2130 ## Titan P2 or P3
2131 ## We seem to have lost the machine-description file titan.h!
2132 titan-titan-sysv* )
2133 machine=titan opsys=usg5-3
2136 ## Ustation E30 (SS5E)
2137 m68*-unisys-uniplus* )
2138 machine=ustation opsystem=unipl5-2
2141 ## Vaxen.
2142 vax-dec-* )
2143 machine=vax
2144 case "${canonical}" in
2145 *-bsd4.1* ) opsys=bsd4-1 ;;
2146 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2147 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2148 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2149 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2150 *-vms* ) opsys=vms ;;
2151 * ) unported=yes
2152 esac
2155 ## Whitechapel MG1
2156 ns16k-whitechapel-* )
2157 machine=mg1
2158 ## We don't know what sort of OS runs on these; we'll let the
2159 ## operating system guessing code below try.
2162 ## Wicat
2163 m68*-wicat-sysv* )
2164 machine=wicat opsys=usg5-2
2167 ## IA-64
2168 ia64*-*-linux* )
2169 machine=ia64 opsys=gnu-linux
2172 ## Intel 386 machines where we don't care about the manufacturer
2173 i[3456]86-*-* )
2174 machine=intel386
2175 case "${canonical}" in
2176 *-lynxos* ) opsys=lynxos ;;
2177 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2178 *-isc2.2* ) opsys=isc2-2 ;;
2179 *-isc4.0* ) opsys=isc4-0 ;;
2180 *-isc4.* ) opsys=isc4-1
2181 GCC_TEST_OPTIONS=-posix
2182 NON_GCC_TEST_OPTIONS=-Xp
2184 *-isc* ) opsys=isc3-0 ;;
2185 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2186 *-esix* ) opsys=esix ;;
2187 *-xenix* ) opsys=xenix ;;
2188 *-linux-gnu* ) opsys=gnu-linux ;;
2189 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2190 *-sco3.2v5* ) opsys=sco5
2191 NON_GNU_CPP=/lib/cpp
2192 # Prevent -belf from being passed to $CPP.
2193 # /lib/cpp does not accept it.
2194 OVERRIDE_CPPFLAGS=" "
2196 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2197 *-386bsd* ) opsys=386bsd ;;
2198 *-nextstep* ) opsys=nextstep ;;
2199 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2200 esac
2203 ## m68k Linux-based GNU system
2204 m68k-*-linux-gnu* )
2205 machine=m68k opsys=gnu-linux
2208 ## Mips Linux-based GNU system
2209 mips-*-linux-gnu* )
2210 machine=mips opsys=gnu-linux
2213 ## UXP/DS
2214 sparc-fujitsu-sysv4* )
2215 machine=sparc opsys=uxpds
2216 NON_GNU_CPP=/usr/ccs/lib/cpp
2217 RANLIB="ar -ts"
2220 ## UXP/V
2221 f301-fujitsu-uxpv4.1)
2222 machine=f301 opsys=uxpv
2225 ## Darwin / Mac OS X
2226 powerpc-apple-darwin* )
2227 machine=powermac opsys=darwin
2228 # Define CPP as follows to make autoconf work correctly.
2229 CPP="cc -E -traditional-cpp"
2232 ## AMD x86-64 Linux-based GNU system
2233 x86_64-*-linux-gnu* )
2234 machine=amdx86-64 opsys=gnu-linux
2238 unported=yes
2240 esac
2242 ### If the code above didn't choose an operating system, just choose
2243 ### an operating system based on the configuration name. You really
2244 ### only want to use this when you have no idea what the right
2245 ### operating system is; if you know what operating systems a machine
2246 ### runs, it's cleaner to make it explicit in the case statement
2247 ### above.
2248 if test x"${opsys}" = x; then
2249 case "${canonical}" in
2250 *-gnu* ) opsys=gnu ;;
2251 *-bsd4.[01] ) opsys=bsd4-1 ;;
2252 *-bsd4.2 ) opsys=bsd4-2 ;;
2253 *-bsd4.3 ) opsys=bsd4-3 ;;
2254 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2255 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2256 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2257 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2258 *-sysv4.2uw* ) opsys=unixware ;;
2259 *-sysv4.1* | *-sysvr4.1* )
2260 NON_GNU_CPP=/usr/lib/cpp
2261 opsys=usg5-4 ;;
2262 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2263 if [ x$NON_GNU_CPP = x ]; then
2264 if [ -f /usr/ccs/lib/cpp ]; then
2265 NON_GNU_CPP=/usr/ccs/lib/cpp
2266 else
2267 NON_GNU_CPP=/lib/cpp
2270 opsys=usg5-4-2 ;;
2271 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2273 unported=yes
2275 esac
2278 if test $unported = yes; then
2279 { { echo "$as_me:2279: error: Emacs hasn't been ported to \`${canonical}' systems.
2280 Check \`etc/MACHINES' for recognized configuration names." >&5
2281 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2282 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2283 { (exit 1); exit 1; }; }
2286 machfile="m/${machine}.h"
2287 opsysfile="s/${opsys}.h"
2289 #### Choose a compiler.
2290 test -n "$CC" && cc_specified=yes
2292 # Save the value of CFLAGS that the user specified.
2293 SPECIFIED_CFLAGS="$CFLAGS"
2295 case ${with_gcc} in
2296 "yes" ) CC="gcc" GCC=yes ;;
2297 "no" ) : ${CC=cc} ;;
2299 esac
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308 echo "$as_me:2308: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 ac_save_IFS=$IFS; IFS=$ac_path_separator
2317 ac_dummy="$PATH"
2318 for ac_dir in $ac_dummy; do
2319 IFS=$ac_save_IFS
2320 test -z "$ac_dir" && ac_dir=.
2321 $as_executable_p "$ac_dir/$ac_word" || continue
2322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2323 echo "$as_me:2323: found $ac_dir/$ac_word" >&5
2324 break
2325 done
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 echo "$as_me:2331: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6
2333 else
2334 echo "$as_me:2334: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2339 if test -z "$ac_cv_prog_CC"; then
2340 ac_ct_CC=$CC
2341 # Extract the first word of "gcc", so it can be a program name with args.
2342 set dummy gcc; ac_word=$2
2343 echo "$as_me:2343: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350 else
2351 ac_save_IFS=$IFS; IFS=$ac_path_separator
2352 ac_dummy="$PATH"
2353 for ac_dir in $ac_dummy; do
2354 IFS=$ac_save_IFS
2355 test -z "$ac_dir" && ac_dir=.
2356 $as_executable_p "$ac_dir/$ac_word" || continue
2357 ac_cv_prog_ac_ct_CC="gcc"
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5
2359 break
2360 done
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 echo "$as_me:2366: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6
2368 else
2369 echo "$as_me:2369: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 CC=$ac_ct_CC
2374 else
2375 CC="$ac_cv_prog_CC"
2378 if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}cc; ac_word=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 ac_dummy="$PATH"
2392 for ac_dir in $ac_dummy; do
2393 IFS=$ac_save_IFS
2394 test -z "$ac_dir" && ac_dir=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396 ac_cv_prog_CC="${ac_tool_prefix}cc"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2398 break
2399 done
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405 echo "$as_me:2405: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6
2407 else
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 if test -z "$ac_cv_prog_CC"; then
2414 ac_ct_CC=$CC
2415 # Extract the first word of "cc", so it can be a program name with args.
2416 set dummy cc; ac_word=$2
2417 echo "$as_me:2417: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$ac_ct_CC"; then
2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2424 else
2425 ac_save_IFS=$IFS; IFS=$ac_path_separator
2426 ac_dummy="$PATH"
2427 for ac_dir in $ac_dummy; do
2428 IFS=$ac_save_IFS
2429 test -z "$ac_dir" && ac_dir=.
2430 $as_executable_p "$ac_dir/$ac_word" || continue
2431 ac_cv_prog_ac_ct_CC="cc"
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2433 break
2434 done
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 echo "$as_me:2440: result: $ac_ct_CC" >&5
2441 echo "${ECHO_T}$ac_ct_CC" >&6
2442 else
2443 echo "$as_me:2443: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2447 CC=$ac_ct_CC
2448 else
2449 CC="$ac_cv_prog_CC"
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 echo "$as_me:2456: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 ac_prog_rejected=no
2465 ac_save_IFS=$IFS; IFS=$ac_path_separator
2466 ac_dummy="$PATH"
2467 for ac_dir in $ac_dummy; do
2468 IFS=$ac_save_IFS
2469 test -z "$ac_dir" && ac_dir=.
2470 $as_executable_p "$ac_dir/$ac_word" || continue
2471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2472 ac_prog_rejected=yes
2473 continue
2475 ac_cv_prog_CC="cc"
2476 echo "$as_me:2476: found $ac_dir/$ac_word" >&5
2477 break
2478 done
2480 if test $ac_prog_rejected = yes; then
2481 # We found a bogon in the path, so make sure we never use it.
2482 set dummy $ac_cv_prog_CC
2483 shift
2484 if test $# != 0; then
2485 # We chose a different compiler from the bogus one.
2486 # However, it has the same basename, so the bogon will be chosen
2487 # first if we set CC to just the basename; use the full file name.
2488 shift
2489 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2490 shift
2491 ac_cv_prog_CC="$@"
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498 echo "$as_me:2498: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6
2500 else
2501 echo "$as_me:2501: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2508 for ac_prog in cl
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:2512: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 ac_save_IFS=$IFS; IFS=$ac_path_separator
2521 ac_dummy="$PATH"
2522 for ac_dir in $ac_dummy; do
2523 IFS=$ac_save_IFS
2524 test -z "$ac_dir" && ac_dir=.
2525 $as_executable_p "$ac_dir/$ac_word" || continue
2526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2527 echo "$as_me:2527: found $ac_dir/$ac_word" >&5
2528 break
2529 done
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 echo "$as_me:2535: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6
2537 else
2538 echo "$as_me:2538: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2542 test -n "$CC" && break
2543 done
2545 if test -z "$CC"; then
2546 ac_ct_CC=$CC
2547 for ac_prog in cl
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 echo "$as_me:2551: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 ac_save_IFS=$IFS; IFS=$ac_path_separator
2560 ac_dummy="$PATH"
2561 for ac_dir in $ac_dummy; do
2562 IFS=$ac_save_IFS
2563 test -z "$ac_dir" && ac_dir=.
2564 $as_executable_p "$ac_dir/$ac_word" || continue
2565 ac_cv_prog_ac_ct_CC="$ac_prog"
2566 echo "$as_me:2566: found $ac_dir/$ac_word" >&5
2567 break
2568 done
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 echo "$as_me:2574: result: $ac_ct_CC" >&5
2575 echo "${ECHO_T}$ac_ct_CC" >&6
2576 else
2577 echo "$as_me:2577: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2581 test -n "$ac_ct_CC" && break
2582 done
2584 CC=$ac_ct_CC
2589 test -z "$CC" && { { echo "$as_me:2589: error: no acceptable cc found in \$PATH" >&5
2590 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2591 { (exit 1); exit 1; }; }
2593 # Provide some information about the compiler.
2594 echo "$as_me:2594:" \
2595 "checking for C compiler version" >&5
2596 ac_compiler=`set X $ac_compile; echo $2`
2597 { (eval echo "$as_me:2597: \"$ac_compiler --version </dev/null >&5\"") >&5
2598 (eval $ac_compiler --version </dev/null >&5) 2>&5
2599 ac_status=$?
2600 echo "$as_me:2600: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602 { (eval echo "$as_me:2602: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev/null >&5) 2>&5
2604 ac_status=$?
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:2607: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:2610: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2618 main ()
2622 return 0;
2624 _ACEOF
2625 ac_clean_files_save=$ac_clean_files
2626 ac_clean_files="$ac_clean_files a.out a.exe"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2629 # of exeext.
2630 echo "$as_me:2630: checking for C compiler default output" >&5
2631 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2633 if { (eval echo "$as_me:2633: \"$ac_link_default\"") >&5
2634 (eval $ac_link_default) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # Find the output, starting from the most likely. This scheme is
2639 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2640 # resort.
2641 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2642 ls a.out conftest 2>/dev/null;
2643 ls a.* conftest.* 2>/dev/null`; do
2644 case $ac_file in
2645 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2646 a.out ) # We found the default executable, but exeext='' is most
2647 # certainly right.
2648 break;;
2649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2651 export ac_cv_exeext
2652 break;;
2653 * ) break;;
2654 esac
2655 done
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 { { echo "$as_me:2659: error: C compiler cannot create executables" >&5
2660 echo "$as_me: error: C compiler cannot create executables" >&2;}
2661 { (exit 77); exit 77; }; }
2664 ac_exeext=$ac_cv_exeext
2665 echo "$as_me:2665: result: $ac_file" >&5
2666 echo "${ECHO_T}$ac_file" >&6
2668 # Check the compiler produces executables we can run. If not, either
2669 # the compiler is broken, or we cross compile.
2670 echo "$as_me:2670: checking whether the C compiler works" >&5
2671 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2672 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673 # If not cross compiling, check that we can run a simple program.
2674 if test "$cross_compiling" != yes; then
2675 if { ac_try='./$ac_file'
2676 { (eval echo "$as_me:2676: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:2679: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 cross_compiling=no
2682 else
2683 if test "$cross_compiling" = maybe; then
2684 cross_compiling=yes
2685 else
2686 { { echo "$as_me:2686: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'." >&5
2688 echo "$as_me: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'." >&2;}
2690 { (exit 1); exit 1; }; }
2694 echo "$as_me:2694: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2697 rm -f a.out a.exe conftest$ac_cv_exeext
2698 ac_clean_files=$ac_clean_files_save
2699 # Check the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 echo "$as_me:2701: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2703 echo "$as_me:2703: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6
2706 echo "$as_me:2706: checking for executable suffix" >&5
2707 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2708 if { (eval echo "$as_me:2708: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>&5
2710 ac_status=$?
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2716 # `rm'.
2717 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2718 case $ac_file in
2719 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 export ac_cv_exeext
2722 break;;
2723 * ) break;;
2724 esac
2725 done
2726 else
2727 { { echo "$as_me:2727: error: cannot compute EXEEXT: cannot compile and link" >&5
2728 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2729 { (exit 1); exit 1; }; }
2732 rm -f conftest$ac_cv_exeext
2733 echo "$as_me:2733: result: $ac_cv_exeext" >&5
2734 echo "${ECHO_T}$ac_cv_exeext" >&6
2736 rm -f conftest.$ac_ext
2737 EXEEXT=$ac_cv_exeext
2738 ac_exeext=$EXEEXT
2739 echo "$as_me:2739: checking for object suffix" >&5
2740 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2741 if test "${ac_cv_objext+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.o conftest.obj
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2759 ac_status=$?
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2766 break;;
2767 esac
2768 done
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2772 { { echo "$as_me:2772: error: cannot compute OBJEXT: cannot compile" >&5
2773 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2774 { (exit 1); exit 1; }; }
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2779 echo "$as_me:2779: result: $ac_cv_objext" >&5
2780 echo "${ECHO_T}$ac_cv_objext" >&6
2781 OBJEXT=$ac_cv_objext
2782 ac_objext=$OBJEXT
2783 echo "$as_me:2783: checking whether we are using the GNU C compiler" >&5
2784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2793 main ()
2795 #ifndef __GNUC__
2796 choke me
2797 #endif
2800 return 0;
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:2804: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2806 ac_status=$?
2807 echo "$as_me:2807: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:2810: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_compiler_gnu=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 ac_compiler_gnu=no
2821 rm -f conftest.$ac_objext conftest.$ac_ext
2822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2825 echo "$as_me:2825: result: $ac_cv_c_compiler_gnu" >&5
2826 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2827 GCC=`test $ac_compiler_gnu = yes && echo yes`
2828 ac_test_CFLAGS=${CFLAGS+set}
2829 ac_save_CFLAGS=$CFLAGS
2830 CFLAGS="-g"
2831 echo "$as_me:2831: checking whether $CC accepts -g" >&5
2832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_g+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2851 ac_status=$?
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_prog_cc_g=yes
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2864 ac_cv_prog_cc_g=no
2866 rm -f conftest.$ac_objext conftest.$ac_ext
2868 echo "$as_me:2868: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2874 CFLAGS="-g -O2"
2875 else
2876 CFLAGS="-g"
2878 else
2879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2885 # Some people use a C++ compiler to compile C. Since we use `exit',
2886 # in C++ we need to declare it. In case someone uses the same compiler
2887 # for both compiling C and C++ we need to have the C++ compiler decide
2888 # the declaration of exit, since it's the most demanding environment.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #ifndef __cplusplus
2891 choke me
2892 #endif
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2897 ac_status=$?
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration in \
2908 '#include <stdlib.h>' \
2909 'extern "C" void std::exit (int) throw (); using std::exit;' \
2910 'extern "C" void std::exit (int); using std::exit;' \
2911 'extern "C" void exit (int) throw ();' \
2912 'extern "C" void exit (int);' \
2913 'void exit (int);'
2915 cat >conftest.$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2918 #include <stdlib.h>
2919 $ac_declaration
2921 main ()
2923 exit (42);
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2931 ac_status=$?
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 continue
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2947 cat >conftest.$ac_ext <<_ACEOF
2948 #line 2948 "configure"
2949 #include "confdefs.h"
2950 $ac_declaration
2952 main ()
2954 exit (42);
2956 return 0;
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2962 ac_status=$?
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 break
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 done
2978 rm -f conftest*
2979 if test -n "$ac_declaration"; then
2980 echo '#ifdef __cplusplus' >>confdefs.h
2981 echo $ac_declaration >>confdefs.h
2982 echo '#endif' >>confdefs.h
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
2998 CPP=
3001 #### Some systems specify a CPP to use unless we are using GCC.
3002 #### Now that we know whether we are using GCC, we can decide whether
3003 #### to use that one.
3004 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3005 then
3006 CPP="$NON_GNU_CPP"
3009 #### Some systems specify a CC to use unless we are using GCC.
3010 #### Now that we know whether we are using GCC, we can decide whether
3011 #### to use that one.
3012 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3013 test x$cc_specified != xyes
3014 then
3015 CC="$NON_GNU_CC"
3018 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3019 then
3020 CC="$CC $GCC_TEST_OPTIONS"
3023 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3024 then
3025 CC="$CC $NON_GCC_TEST_OPTIONS"
3028 #### Some other nice autoconf tests. If you add a test here which
3029 #### should make an entry in src/config.h, don't forget to add an
3030 #### #undef clause to src/config.h.in for autoconf to modify.
3032 echo "$as_me:3032: checking whether ln -s works" >&5
3033 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3034 LN_S=$as_ln_s
3035 if test "$LN_S" = "ln -s"; then
3036 echo "$as_me:3036: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6
3038 else
3039 echo "$as_me:3039: result: no, using $LN_S" >&5
3040 echo "${ECHO_T}no, using $LN_S" >&6
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:3048: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3052 CPP=
3054 if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 # Double quotes because CPP needs to be expanded
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3061 ac_preproc_ok=false
3062 for ac_c_preproc_warn_flag in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line 3069 "configure"
3070 #include "confdefs.h"
3071 #include <assert.h>
3072 Syntax error
3073 _ACEOF
3074 if { (eval echo "$as_me:3074: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076 ac_status=$?
3077 egrep -v '^ *\+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev/null; then
3082 if test -s conftest.err; then
3083 ac_cpp_err=$ac_c_preproc_warn_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3096 continue
3098 rm -f conftest.err conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line 3103 "configure"
3104 #include "confdefs.h"
3105 #include <ac_nonexistent.h>
3106 _ACEOF
3107 if { (eval echo "$as_me:3107: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
3110 egrep -v '^ *\+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 else
3118 ac_cpp_err=
3120 else
3121 ac_cpp_err=yes
3123 if test -z "$ac_cpp_err"; then
3124 # Broken: success on invalid input.
3125 continue
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 # Passes both tests.
3130 ac_preproc_ok=:
3131 break
3133 rm -f conftest.err conftest.$ac_ext
3135 done
3136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3137 rm -f conftest.err conftest.$ac_ext
3138 if $ac_preproc_ok; then
3139 break
3142 done
3143 ac_cv_prog_CPP=$CPP
3146 CPP=$ac_cv_prog_CPP
3147 else
3148 ac_cv_prog_CPP=$CPP
3150 echo "$as_me:3150: result: $CPP" >&5
3151 echo "${ECHO_T}$CPP" >&6
3152 ac_preproc_ok=false
3153 for ac_c_preproc_warn_flag in '' yes
3155 # Use a header file that comes with gcc, so configuring glibc
3156 # with a fresh cross-compiler works.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3160 #line 3160 "configure"
3161 #include "confdefs.h"
3162 #include <assert.h>
3163 Syntax error
3164 _ACEOF
3165 if { (eval echo "$as_me:3165: \"$ac_cpp conftest.$ac_ext\"") >&5
3166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167 ac_status=$?
3168 egrep -v '^ *\+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:3171: \$? = $ac_status" >&5
3172 (exit $ac_status); } >/dev/null; then
3173 if test -s conftest.err; then
3174 ac_cpp_err=$ac_c_preproc_warn_flag
3175 else
3176 ac_cpp_err=
3178 else
3179 ac_cpp_err=yes
3181 if test -z "$ac_cpp_err"; then
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 # Broken: fails on valid input.
3187 continue
3189 rm -f conftest.err conftest.$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line 3194 "configure"
3195 #include "confdefs.h"
3196 #include <ac_nonexistent.h>
3197 _ACEOF
3198 if { (eval echo "$as_me:3198: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200 ac_status=$?
3201 egrep -v '^ *\+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3208 else
3209 ac_cpp_err=
3211 else
3212 ac_cpp_err=yes
3214 if test -z "$ac_cpp_err"; then
3215 # Broken: success on invalid input.
3216 continue
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 # Passes both tests.
3221 ac_preproc_ok=:
3222 break
3224 rm -f conftest.err conftest.$ac_ext
3226 done
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228 rm -f conftest.err conftest.$ac_ext
3229 if $ac_preproc_ok; then
3231 else
3232 { { echo "$as_me:3232: error: C preprocessor \"$CPP\" fails sanity check" >&5
3233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3234 { (exit 1); exit 1; }; }
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 # Find a good install program. We prefer a C program (faster),
3244 # so one script is as good as another. But avoid the broken or
3245 # incompatible versions:
3246 # SysV /etc/install, /usr/sbin/install
3247 # SunOS /usr/etc/install
3248 # IRIX /sbin/install
3249 # AIX /bin/install
3250 # AmigaOS /C/install, which installs bootblocks on floppy discs
3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 echo "$as_me:3255: checking for a BSD compatible install" >&5
3256 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3257 if test -z "$INSTALL"; then
3258 if test "${ac_cv_path_install+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 ac_save_IFS=$IFS; IFS=$ac_path_separator
3262 for ac_dir in $PATH; do
3263 IFS=$ac_save_IFS
3264 # Account for people who put trailing slashes in PATH elements.
3265 case $ac_dir/ in
3266 / | ./ | .// | /cC/* \
3267 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3268 | /usr/ucb/* ) ;;
3270 # OSF1 and SCO ODT 3.0 have their own names for install.
3271 # Don't use installbsd from OSF since it installs stuff as root
3272 # by default.
3273 for ac_prog in ginstall scoinst install; do
3274 if $as_executable_p "$ac_dir/$ac_prog"; then
3275 if test $ac_prog = install &&
3276 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3277 # AIX install. It has an incompatible calling convention.
3279 elif test $ac_prog = install &&
3280 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3281 # program-specific install script used by HP pwplus--don't use.
3283 else
3284 ac_cv_path_install="$ac_dir/$ac_prog -c"
3285 break 2
3288 done
3290 esac
3291 done
3294 if test "${ac_cv_path_install+set}" = set; then
3295 INSTALL=$ac_cv_path_install
3296 else
3297 # As a last resort, use the slow shell script. We don't cache a
3298 # path for INSTALL within a source directory, because that will
3299 # break other packages using the cache if that directory is
3300 # removed, or if the path is relative.
3301 INSTALL=$ac_install_sh
3304 echo "$as_me:3304: result: $INSTALL" >&5
3305 echo "${ECHO_T}$INSTALL" >&6
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 for ac_prog in 'bison -y' byacc
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo "$as_me:3319: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_YACC+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$YACC"; then
3325 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3326 else
3327 ac_save_IFS=$IFS; IFS=$ac_path_separator
3328 ac_dummy="$PATH"
3329 for ac_dir in $ac_dummy; do
3330 IFS=$ac_save_IFS
3331 test -z "$ac_dir" && ac_dir=.
3332 $as_executable_p "$ac_dir/$ac_word" || continue
3333 ac_cv_prog_YACC="$ac_prog"
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5
3335 break
3336 done
3340 YACC=$ac_cv_prog_YACC
3341 if test -n "$YACC"; then
3342 echo "$as_me:3342: result: $YACC" >&5
3343 echo "${ECHO_T}$YACC" >&6
3344 else
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$YACC" && break
3350 done
3351 test -n "$YACC" || YACC="yacc"
3353 if test "x$RANLIB" = x; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:3357: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364 else
3365 ac_save_IFS=$IFS; IFS=$ac_path_separator
3366 ac_dummy="$PATH"
3367 for ac_dir in $ac_dummy; do
3368 IFS=$ac_save_IFS
3369 test -z "$ac_dir" && ac_dir=.
3370 $as_executable_p "$ac_dir/$ac_word" || continue
3371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5
3373 break
3374 done
3378 RANLIB=$ac_cv_prog_RANLIB
3379 if test -n "$RANLIB"; then
3380 echo "$as_me:3380: result: $RANLIB" >&5
3381 echo "${ECHO_T}$RANLIB" >&6
3382 else
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 else
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3401 ac_dummy="$PATH"
3402 for ac_dir in $ac_dummy; do
3403 IFS=$ac_save_IFS
3404 test -z "$ac_dir" && ac_dir=.
3405 $as_executable_p "$ac_dir/$ac_word" || continue
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3408 break
3409 done
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3415 if test -n "$ac_ct_RANLIB"; then
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5
3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3418 else
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 RANLIB=$ac_ct_RANLIB
3424 else
3425 RANLIB="$ac_cv_prog_RANLIB"
3430 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3431 then
3432 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3435 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3436 then
3437 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3440 echo "$as_me:3440: checking for AIX" >&5
3441 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3443 #line 3443 "configure"
3444 #include "confdefs.h"
3445 #ifdef _AIX
3447 #endif
3449 _ACEOF
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "yes" >/dev/null 2>&1; then
3452 echo "$as_me:3452: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6
3454 cat >>confdefs.h <<\EOF
3455 #define _ALL_SOURCE 1
3458 else
3459 echo "$as_me:3459: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3462 rm -f conftest*
3464 #### Extract some information from the operating system and machine files.
3466 { echo "$as_me:3466: checking the machine- and system-dependent files to find out
3467 - which libraries the lib-src programs will want, and
3468 - whether the GNU malloc routines are usable..." >&5
3469 echo "$as_me: checking the machine- and system-dependent files to find out
3470 - which libraries the lib-src programs will want, and
3471 - whether the GNU malloc routines are usable..." >&6;}
3473 ### First figure out CFLAGS (which we use for running the compiler here)
3474 ### and REAL_CFLAGS (which we use for real compilation).
3475 ### The two are the same except on a few systems, where they are made
3476 ### different to work around various lossages. For example,
3477 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3478 ### as implying static linking.
3480 ### If the CFLAGS env var is specified, we use that value
3481 ### instead of the default.
3483 ### It's not important that this name contain the PID; you can't run
3484 ### two configures in the same directory and have anything work
3485 ### anyway.
3486 tempcname="conftest.c"
3488 echo '
3489 #include "'${srcdir}'/src/'${opsysfile}'"
3490 #include "'${srcdir}'/src/'${machfile}'"
3491 #ifndef LIBS_MACHINE
3492 #define LIBS_MACHINE
3493 #endif
3494 #ifndef LIBS_SYSTEM
3495 #define LIBS_SYSTEM
3496 #endif
3497 #ifndef C_SWITCH_SYSTEM
3498 #define C_SWITCH_SYSTEM
3499 #endif
3500 #ifndef C_SWITCH_MACHINE
3501 #define C_SWITCH_MACHINE
3502 #endif
3503 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3504 configure___ c_switch_system=C_SWITCH_SYSTEM
3505 configure___ c_switch_machine=C_SWITCH_MACHINE
3507 #ifndef LIB_X11_LIB
3508 #define LIB_X11_LIB -lX11
3509 #endif
3511 #ifndef LIBX11_MACHINE
3512 #define LIBX11_MACHINE
3513 #endif
3515 #ifndef LIBX11_SYSTEM
3516 #define LIBX11_SYSTEM
3517 #endif
3518 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3520 #ifdef UNEXEC
3521 configure___ unexec=UNEXEC
3522 #else
3523 configure___ unexec=unexec.o
3524 #endif
3526 #ifdef SYSTEM_MALLOC
3527 configure___ system_malloc=yes
3528 #else
3529 configure___ system_malloc=no
3530 #endif
3532 #ifdef USE_MMAP_FOR_BUFFERS
3533 configure___ use_mmap_for_buffers=yes
3534 #else
3535 configure___ use_mmap_for_buffers=no
3536 #endif
3538 #ifndef C_DEBUG_SWITCH
3539 #define C_DEBUG_SWITCH -g
3540 #endif
3542 #ifndef C_OPTIMIZE_SWITCH
3543 #ifdef __GNUC__
3544 #define C_OPTIMIZE_SWITCH -O2
3545 #else
3546 #define C_OPTIMIZE_SWITCH -O
3547 #endif
3548 #endif
3550 #ifndef LD_SWITCH_MACHINE
3551 #define LD_SWITCH_MACHINE
3552 #endif
3554 #ifndef LD_SWITCH_SYSTEM
3555 #define LD_SWITCH_SYSTEM
3556 #endif
3558 #ifndef LD_SWITCH_X_SITE_AUX
3559 #define LD_SWITCH_X_SITE_AUX
3560 #endif
3562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3565 #ifdef THIS_IS_CONFIGURE
3567 /* Get the CFLAGS for tests in configure. */
3568 #ifdef __GNUC__
3569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3570 #else
3571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3572 #endif
3574 #else /* not THIS_IS_CONFIGURE */
3576 /* Get the CFLAGS for real compilation. */
3577 #ifdef __GNUC__
3578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3579 #else
3580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3581 #endif
3583 #endif /* not THIS_IS_CONFIGURE */
3584 ' > ${tempcname}
3586 # The value of CPP is a quoted variable reference, so we need to do this
3587 # to get its actual value...
3588 CPP=`eval "echo $CPP"`
3589 eval `${CPP} -Isrc ${tempcname} \
3590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3591 if test "x$SPECIFIED_CFLAGS" = x; then
3592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3594 else
3595 REAL_CFLAGS="$CFLAGS"
3597 rm ${tempcname}
3599 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3601 ### Make sure subsequent tests use flags consistent with the build flags.
3603 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3604 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3605 else
3606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3609 # Check whether --enable-largefile or --disable-largefile was given.
3610 if test "${enable_largefile+set}" = set; then
3611 enableval="$enable_largefile"
3614 if test "$enable_largefile" != no; then
3616 echo "$as_me:3616: checking for special C compiler options needed for large files" >&5
3617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3618 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 ac_cv_sys_largefile_CC=no
3622 if test "$GCC" != yes; then
3623 ac_save_CC=$CC
3624 while :; do
3625 # IRIX 6.2 and later do not support large files by default,
3626 # so use the C compiler's -n32 option if that helps.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3630 #include <sys/types.h>
3631 /* Check that off_t can represent 2**63 - 1 correctly.
3632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3633 since some C++ compilers masquerading as C compilers
3634 incorrectly reject 9223372036854775807. */
3635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3637 && LARGE_OFF_T % 2147483647 == 1)
3638 ? 1 : -1];
3640 main ()
3644 return 0;
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:3648: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3650 ac_status=$?
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 break
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 rm -f conftest.$ac_objext
3665 CC="$CC -n32"
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3669 ac_status=$?
3670 echo "$as_me:3670: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:3676: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_sys_largefile_CC=' -n32'; break
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 rm -f conftest.$ac_objext
3684 break
3685 done
3686 CC=$ac_save_CC
3687 rm -f conftest.$ac_ext
3690 echo "$as_me:3690: result: $ac_cv_sys_largefile_CC" >&5
3691 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3692 if test "$ac_cv_sys_largefile_CC" != no; then
3693 CC=$CC$ac_cv_sys_largefile_CC
3696 echo "$as_me:3696: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3697 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3698 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 while :; do
3702 ac_cv_sys_file_offset_bits=no
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line 3704 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3707 /* Check that off_t can represent 2**63 - 1 correctly.
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3709 since some C++ compilers masquerading as C compilers
3710 incorrectly reject 9223372036854775807. */
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3713 && LARGE_OFF_T % 2147483647 == 1)
3714 ? 1 : -1];
3716 main ()
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:3727: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:3733: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 break
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3744 #define _FILE_OFFSET_BITS 64
3745 #include <sys/types.h>
3746 /* Check that off_t can represent 2**63 - 1 correctly.
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3748 since some C++ compilers masquerading as C compilers
3749 incorrectly reject 9223372036854775807. */
3750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3752 && LARGE_OFF_T % 2147483647 == 1)
3753 ? 1 : -1];
3755 main ()
3759 return 0;
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3765 ac_status=$?
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_sys_file_offset_bits=64; break
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 rm -f conftest.$ac_objext conftest.$ac_ext
3780 break
3781 done
3783 echo "$as_me:3783: result: $ac_cv_sys_file_offset_bits" >&5
3784 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3785 if test "$ac_cv_sys_file_offset_bits" != no; then
3787 cat >>confdefs.h <<EOF
3788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3792 rm -f conftest*
3793 echo "$as_me:3793: checking for _LARGE_FILES value needed for large files" >&5
3794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3795 if test "${ac_cv_sys_large_files+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 while :; do
3799 ac_cv_sys_large_files=no
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line 3801 "configure"
3802 #include "confdefs.h"
3803 #include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3811 ? 1 : -1];
3813 main ()
3817 return 0;
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:3821: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>&5
3823 ac_status=$?
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:3827: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:3830: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 break
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 rm -f conftest.$ac_objext conftest.$ac_ext
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line 3839 "configure"
3840 #include "confdefs.h"
3841 #define _LARGE_FILES 1
3842 #include <sys/types.h>
3843 /* Check that off_t can represent 2**63 - 1 correctly.
3844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3845 since some C++ compilers masquerading as C compilers
3846 incorrectly reject 9223372036854775807. */
3847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3849 && LARGE_OFF_T % 2147483647 == 1)
3850 ? 1 : -1];
3852 main ()
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:3860: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3862 ac_status=$?
3863 echo "$as_me:3863: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -s conftest.$ac_objext'
3866 { (eval echo "$as_me:3866: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:3869: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sys_large_files=1; break
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3876 rm -f conftest.$ac_objext conftest.$ac_ext
3877 break
3878 done
3880 echo "$as_me:3880: result: $ac_cv_sys_large_files" >&5
3881 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3882 if test "$ac_cv_sys_large_files" != no; then
3884 cat >>confdefs.h <<EOF
3885 #define _LARGE_FILES $ac_cv_sys_large_files
3889 rm -f conftest*
3892 if test "${with_sound}" != "no"; then
3893 # Sound support for GNU/Linux and the free BSDs.
3895 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898 echo "$as_me:3898: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line 3904 "configure"
3905 #include "confdefs.h"
3906 #include <$ac_header>
3907 _ACEOF
3908 if { (eval echo "$as_me:3908: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910 ac_status=$?
3911 egrep -v '^ *\+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:3914: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 else
3919 ac_cpp_err=
3921 else
3922 ac_cpp_err=yes
3924 if test -z "$ac_cpp_err"; then
3925 eval "$as_ac_Header=yes"
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 eval "$as_ac_Header=no"
3931 rm -f conftest.err conftest.$ac_ext
3933 echo "$as_me:3933: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936 cat >>confdefs.h <<EOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3941 done
3943 # Emulation library used on NetBSD.
3944 echo "$as_me:3944: checking for _oss_ioctl in -lossaudio" >&5
3945 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_check_lib_save_LIBS=$LIBS
3950 LIBS="-lossaudio $LIBS"
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line 3952 "configure"
3953 #include "confdefs.h"
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 #ifdef __cplusplus
3957 extern "C"
3958 #endif
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char _oss_ioctl ();
3963 main ()
3965 _oss_ioctl ();
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (eval echo "$as_me:3971: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3973 ac_status=$?
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest$ac_exeext'
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:3980: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_lib_ossaudio__oss_ioctl=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 ac_cv_lib_ossaudio__oss_ioctl=no
3988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3991 echo "$as_me:3991: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3992 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3993 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3994 LIBSOUND=-lossaudio
3995 else
3996 LIBSOUND=
4001 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4002 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4003 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 echo "$as_me:4006: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 cat >conftest.$ac_ext <<_ACEOF
4012 #line 4012 "configure"
4013 #include "confdefs.h"
4014 #include <$ac_header>
4015 _ACEOF
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 ac_status=$?
4019 egrep -v '^ *\+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null; then
4024 if test -s conftest.err; then
4025 ac_cpp_err=$ac_c_preproc_warn_flag
4026 else
4027 ac_cpp_err=
4029 else
4030 ac_cpp_err=yes
4032 if test -z "$ac_cpp_err"; then
4033 eval "$as_ac_Header=yes"
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 eval "$as_ac_Header=no"
4039 rm -f conftest.err conftest.$ac_ext
4041 echo "$as_me:4041: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<EOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4049 done
4051 echo "$as_me:4051: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line 4057 "configure"
4058 #include "confdefs.h"
4059 #include <stdlib.h>
4060 #include <stdarg.h>
4061 #include <string.h>
4062 #include <float.h>
4064 _ACEOF
4065 if { (eval echo "$as_me:4065: \"$ac_cpp conftest.$ac_ext\"") >&5
4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4067 ac_status=$?
4068 egrep -v '^ *\+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null; then
4073 if test -s conftest.err; then
4074 ac_cpp_err=$ac_c_preproc_warn_flag
4075 else
4076 ac_cpp_err=
4078 else
4079 ac_cpp_err=yes
4081 if test -z "$ac_cpp_err"; then
4082 ac_cv_header_stdc=yes
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 ac_cv_header_stdc=no
4088 rm -f conftest.err conftest.$ac_ext
4090 if test $ac_cv_header_stdc = yes; then
4091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line 4093 "configure"
4094 #include "confdefs.h"
4095 #include <string.h>
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "memchr" >/dev/null 2>&1; then
4101 else
4102 ac_cv_header_stdc=no
4104 rm -f conftest*
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 #line 4111 "configure"
4112 #include "confdefs.h"
4113 #include <stdlib.h>
4115 _ACEOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "free" >/dev/null 2>&1; then
4119 else
4120 ac_cv_header_stdc=no
4122 rm -f conftest*
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4134 #include <ctype.h>
4135 #if ((' ' & 0x0FF) == 0x020)
4136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4138 #else
4139 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4140 || ('j' <= (c) && (c) <= 'r') \
4141 || ('s' <= (c) && (c) <= 'z'))
4142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4143 #endif
4145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4147 main ()
4149 int i;
4150 for (i = 0; i < 256; i++)
4151 if (XOR (islower (i), ISLOWER (i))
4152 || toupper (i) != TOUPPER (i))
4153 exit(2);
4154 exit (0);
4156 _ACEOF
4157 rm -f conftest$ac_exeext
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4163 { (eval echo "$as_me:4163: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:4166: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4169 else
4170 echo "$as_me: program exited with status $ac_status" >&5
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 ac_cv_header_stdc=no
4175 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4179 echo "$as_me:4179: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4181 if test $ac_cv_header_stdc = yes; then
4183 cat >>confdefs.h <<\EOF
4184 #define STDC_HEADERS 1
4189 echo "$as_me:4189: checking whether time.h and sys/time.h may both be included" >&5
4190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4191 if test "${ac_cv_header_time+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 #line 4195 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4198 #include <sys/time.h>
4199 #include <time.h>
4202 main ()
4204 if ((struct tm *) 0)
4205 return 0;
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4213 ac_status=$?
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 ac_cv_header_time=yes
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 ac_cv_header_time=no
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:4230: result: $ac_cv_header_time" >&5
4231 echo "${ECHO_T}$ac_cv_header_time" >&6
4232 if test $ac_cv_header_time = yes; then
4234 cat >>confdefs.h <<\EOF
4235 #define TIME_WITH_SYS_TIME 1
4240 echo "$as_me:4240: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4241 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4242 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 cat >conftest.$ac_ext <<_ACEOF
4246 #line 4246 "configure"
4247 #include "confdefs.h"
4248 #include <sys/types.h>
4249 #include <signal.h>
4250 /* NetBSD declares sys_siglist in unistd.h. */
4251 #if HAVE_UNISTD_H
4252 # include <unistd.h>
4253 #endif
4256 main ()
4258 char *msg = *(sys_siglist + 1);
4260 return 0;
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4266 ac_status=$?
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_decl_sys_siglist=yes
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_decl_sys_siglist=no
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4283 echo "$as_me:4283: result: $ac_cv_decl_sys_siglist" >&5
4284 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4285 if test $ac_cv_decl_sys_siglist = yes; then
4287 cat >>confdefs.h <<\EOF
4288 #define SYS_SIGLIST_DECLARED 1
4293 echo "$as_me:4293: checking for sys/wait.h that is POSIX.1 compatible" >&5
4294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 cat >conftest.$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #include <sys/types.h>
4302 #include <sys/wait.h>
4303 #ifndef WEXITSTATUS
4304 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4305 #endif
4306 #ifndef WIFEXITED
4307 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4308 #endif
4311 main ()
4313 int s;
4314 wait (&s);
4315 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4317 return 0;
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:4321: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>&5
4323 ac_status=$?
4324 echo "$as_me:4324: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:4327: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_header_sys_wait_h=yes
4333 else
4334 echo "$as_me: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 ac_cv_header_sys_wait_h=no
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:4340: result: $ac_cv_header_sys_wait_h" >&5
4341 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4342 if test $ac_cv_header_sys_wait_h = yes; then
4344 cat >>confdefs.h <<\EOF
4345 #define HAVE_SYS_WAIT_H 1
4350 echo "$as_me:4350: checking for struct utimbuf" >&5
4351 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4352 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 cat >conftest.$ac_ext <<_ACEOF
4356 #line 4356 "configure"
4357 #include "confdefs.h"
4358 #ifdef TIME_WITH_SYS_TIME
4359 #include <sys/time.h>
4360 #include <time.h>
4361 #else
4362 #ifdef HAVE_SYS_TIME_H
4363 #include <sys/time.h>
4364 #else
4365 #include <time.h>
4366 #endif
4367 #endif
4368 #ifdef HAVE_UTIME_H
4369 #include <utime.h>
4370 #endif
4372 main ()
4374 static struct utimbuf x; x.actime = x.modtime;
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:4380: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4382 ac_status=$?
4383 echo "$as_me:4383: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:4386: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 emacs_cv_struct_utimbuf=yes
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 emacs_cv_struct_utimbuf=no
4397 rm -f conftest.$ac_objext conftest.$ac_ext
4399 echo "$as_me:4399: result: $emacs_cv_struct_utimbuf" >&5
4400 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4401 if test $emacs_cv_struct_utimbuf = yes; then
4403 cat >>confdefs.h <<\EOF
4404 #define HAVE_STRUCT_UTIMBUF 1
4409 echo "$as_me:4409: checking return type of signal handlers" >&5
4410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4411 if test "${ac_cv_type_signal+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line 4415 "configure"
4416 #include "confdefs.h"
4417 #include <sys/types.h>
4418 #include <signal.h>
4419 #ifdef signal
4420 # undef signal
4421 #endif
4422 #ifdef __cplusplus
4423 extern "C" void (*signal (int, void (*)(int)))(int);
4424 #else
4425 void (*signal ()) ();
4426 #endif
4429 main ()
4431 int i;
4433 return 0;
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:4437: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:4443: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_type_signal=void
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 ac_cv_type_signal=int
4454 rm -f conftest.$ac_objext conftest.$ac_ext
4456 echo "$as_me:4456: result: $ac_cv_type_signal" >&5
4457 echo "${ECHO_T}$ac_cv_type_signal" >&6
4459 cat >>confdefs.h <<EOF
4460 #define RETSIGTYPE $ac_cv_type_signal
4463 echo "$as_me:4463: checking for speed_t" >&5
4464 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4465 if test "${emacs_cv_speed_t+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 #line 4469 "configure"
4470 #include "confdefs.h"
4471 #include <termios.h>
4473 main ()
4475 speed_t x = 1;
4477 return 0;
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:4481: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4483 ac_status=$?
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:4487: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:4490: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 emacs_cv_speed_t=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 emacs_cv_speed_t=no
4498 rm -f conftest.$ac_objext conftest.$ac_ext
4500 echo "$as_me:4500: result: $emacs_cv_speed_t" >&5
4501 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4502 if test $emacs_cv_speed_t = yes; then
4504 cat >>confdefs.h <<\EOF
4505 #define HAVE_SPEED_T 1
4510 echo "$as_me:4510: checking for struct timeval" >&5
4511 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4512 if test "${emacs_cv_struct_timeval+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line 4516 "configure"
4517 #include "confdefs.h"
4518 #ifdef TIME_WITH_SYS_TIME
4519 #include <sys/time.h>
4520 #include <time.h>
4521 #else
4522 #ifdef HAVE_SYS_TIME_H
4523 #include <sys/time.h>
4524 #else
4525 #include <time.h>
4526 #endif
4527 #endif
4529 main ()
4531 static struct timeval x; x.tv_sec = x.tv_usec;
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:4537: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>&5
4539 ac_status=$?
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:4543: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:4546: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 emacs_cv_struct_timeval=yes
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 emacs_cv_struct_timeval=no
4554 rm -f conftest.$ac_objext conftest.$ac_ext
4556 echo "$as_me:4556: result: $emacs_cv_struct_timeval" >&5
4557 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4558 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4559 if test $emacs_cv_struct_timeval = yes; then
4561 cat >>confdefs.h <<\EOF
4562 #define HAVE_TIMEVAL 1
4567 echo "$as_me:4567: checking for struct exception" >&5
4568 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4569 if test "${emacs_cv_struct_exception+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line 4573 "configure"
4574 #include "confdefs.h"
4575 #include <math.h>
4577 main ()
4579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4581 return 0;
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4587 ac_status=$?
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 emacs_cv_struct_exception=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 emacs_cv_struct_exception=no
4602 rm -f conftest.$ac_objext conftest.$ac_ext
4604 echo "$as_me:4604: result: $emacs_cv_struct_exception" >&5
4605 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4606 HAVE_EXCEPTION=$emacs_cv_struct_exception
4607 if test $emacs_cv_struct_exception != yes; then
4609 cat >>confdefs.h <<\EOF
4610 #define NO_MATHERR 1
4615 echo "$as_me:4615: checking whether struct tm is in sys/time.h or time.h" >&5
4616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4617 if test "${ac_cv_struct_tm+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line 4621 "configure"
4622 #include "confdefs.h"
4623 #include <sys/types.h>
4624 #include <time.h>
4627 main ()
4629 struct tm *tp; tp->tm_sec;
4631 return 0;
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:4635: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>&5
4637 ac_status=$?
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_struct_tm=time.h
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 ac_cv_struct_tm=sys/time.h
4652 rm -f conftest.$ac_objext conftest.$ac_ext
4654 echo "$as_me:4654: result: $ac_cv_struct_tm" >&5
4655 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4656 if test $ac_cv_struct_tm = sys/time.h; then
4658 cat >>confdefs.h <<\EOF
4659 #define TM_IN_SYS_TIME 1
4664 echo "$as_me:4664: checking for struct tm.tm_zone" >&5
4665 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4666 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line 4670 "configure"
4671 #include "confdefs.h"
4672 #include <sys/types.h>
4673 #include <$ac_cv_struct_tm>
4676 main ()
4678 static struct tm ac_aggr;
4679 if (ac_aggr.tm_zone)
4680 return 0;
4682 return 0;
4684 _ACEOF
4685 rm -f conftest.$ac_objext
4686 if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4688 ac_status=$?
4689 echo "$as_me:4689: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:4695: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_member_struct_tm_tm_zone=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 ac_cv_member_struct_tm_tm_zone=no
4703 rm -f conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:4705: result: $ac_cv_member_struct_tm_tm_zone" >&5
4706 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4707 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4709 cat >>confdefs.h <<EOF
4710 #define HAVE_STRUCT_TM_TM_ZONE 1
4715 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4717 cat >>confdefs.h <<\EOF
4718 #define HAVE_TM_ZONE 1
4721 else
4722 echo "$as_me:4722: checking for tzname" >&5
4723 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4724 if test "${ac_cv_var_tzname+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line 4728 "configure"
4729 #include "confdefs.h"
4730 #include <time.h>
4731 #ifndef tzname /* For SGI. */
4732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4733 #endif
4736 main ()
4738 atoi(*tzname);
4740 return 0;
4742 _ACEOF
4743 rm -f conftest.$ac_objext conftest$ac_exeext
4744 if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4746 ac_status=$?
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:4750: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:4753: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_var_tzname=yes
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_var_tzname=no
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4763 echo "$as_me:4763: result: $ac_cv_var_tzname" >&5
4764 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4765 if test $ac_cv_var_tzname = yes; then
4767 cat >>confdefs.h <<\EOF
4768 #define HAVE_TZNAME 1
4774 echo "$as_me:4774: checking for struct tm.tm_gmtoff" >&5
4775 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4776 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4782 #include <time.h>
4785 main ()
4787 static struct tm ac_aggr;
4788 if (ac_aggr.tm_gmtoff)
4789 return 0;
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:4795: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4797 ac_status=$?
4798 echo "$as_me:4798: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:4801: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_member_struct_tm_tm_gmtoff=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_member_struct_tm_tm_gmtoff=no
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4814 echo "$as_me:4814: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4818 cat >>confdefs.h <<\EOF
4819 #define HAVE_TM_GMTOFF 1
4824 echo "$as_me:4824: checking for $CC option to accept ANSI C" >&5
4825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 ac_cv_prog_cc_stdc=no
4830 ac_save_CC=$CC
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4845 return p[i];
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4856 int test (int i, double x);
4857 struct s1 {int (*f) (int a);};
4858 struct s2 {int (*f) (double a);};
4859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4860 int argc;
4861 char **argv;
4863 main ()
4865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4867 return 0;
4869 _ACEOF
4870 # Don't try gcc -ansi; that turns off useful extensions and
4871 # breaks some systems' header files.
4872 # AIX -qlanglvl=ansi
4873 # Ultrix and OSF/1 -std1
4874 # HP-UX 10.20 and later -Ae
4875 # HP-UX older versions -Aa -D_HPUX_SOURCE
4876 # SVR4 -Xc -D__EXTENSIONS__
4877 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 CC="$ac_save_CC $ac_arg"
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4883 ac_status=$?
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_prog_cc_stdc=$ac_arg
4893 break
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 rm -f conftest.$ac_objext
4899 done
4900 rm -f conftest.$ac_ext conftest.$ac_objext
4901 CC=$ac_save_CC
4905 case "x$ac_cv_prog_cc_stdc" in
4906 x|xno)
4907 echo "$as_me:4907: result: none needed" >&5
4908 echo "${ECHO_T}none needed" >&6 ;;
4910 echo "$as_me:4910: result: $ac_cv_prog_cc_stdc" >&5
4911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4912 CC="$CC $ac_cv_prog_cc_stdc" ;;
4913 esac
4915 echo "$as_me:4915: checking for function prototypes" >&5
4916 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4917 if test "$ac_cv_prog_cc_stdc" != no; then
4918 echo "$as_me:4918: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4921 cat >>confdefs.h <<\EOF
4922 #define PROTOTYPES 1
4925 else
4926 echo "$as_me:4926: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 echo "$as_me:4930: checking for working volatile" >&5
4931 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4932 if test "${ac_cv_c_volatile+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4940 main ()
4943 volatile int x;
4944 int * volatile y;
4946 return 0;
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:4950: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4952 ac_status=$?
4953 echo "$as_me:4953: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:4956: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:4959: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_c_volatile=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 ac_cv_c_volatile=no
4967 rm -f conftest.$ac_objext conftest.$ac_ext
4969 echo "$as_me:4969: result: $ac_cv_c_volatile" >&5
4970 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4971 if test $ac_cv_c_volatile = no; then
4973 cat >>confdefs.h <<\EOF
4974 #define volatile
4979 echo "$as_me:4979: checking for an ANSI C-conforming const" >&5
4980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4981 if test "${ac_cv_c_const+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 cat >conftest.$ac_ext <<_ACEOF
4985 #line 4985 "configure"
4986 #include "confdefs.h"
4989 main ()
4991 /* FIXME: Include the comments suggested by Paul. */
4992 #ifndef __cplusplus
4993 /* Ultrix mips cc rejects this. */
4994 typedef int charset[2];
4995 const charset x;
4996 /* SunOS 4.1.1 cc rejects this. */
4997 char const *const *ccp;
4998 char **p;
4999 /* NEC SVR4.0.2 mips cc rejects this. */
5000 struct point {int x, y;};
5001 static struct point const zero = {0,0};
5002 /* AIX XL C 1.02.0.0 rejects this.
5003 It does not let you subtract one const X* pointer from another in
5004 an arm of an if-expression whose if-part is not a constant
5005 expression */
5006 const char *g = "string";
5007 ccp = &g + (g ? g-g : 0);
5008 /* HPUX 7.0 cc rejects these. */
5009 ++ccp;
5010 p = (char**) ccp;
5011 ccp = (char const *const *) p;
5012 { /* SCO 3.2v4 cc rejects this. */
5013 char *t;
5014 char const *s = 0 ? (char *) 0 : (char const *) 0;
5016 *t++ = 0;
5018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5019 int x[] = {25, 17};
5020 const int *foo = &x[0];
5021 ++foo;
5023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5024 typedef const int *iptr;
5025 iptr p = 0;
5026 ++p;
5028 { /* AIX XL C 1.02.0.0 rejects this saying
5029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5030 struct s { int j; const int *ap[3]; };
5031 struct s *b; b->j = 5;
5033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5034 const int foo = 10;
5036 #endif
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5045 ac_status=$?
5046 echo "$as_me:5046: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_c_const=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 ac_cv_c_const=no
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:5062: result: $ac_cv_c_const" >&5
5063 echo "${ECHO_T}$ac_cv_c_const" >&6
5064 if test $ac_cv_c_const = no; then
5066 cat >>confdefs.h <<\EOF
5067 #define const
5072 echo "$as_me:5072: checking for void * support" >&5
5073 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5074 if test "${emacs_cv_void_star+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line 5078 "configure"
5079 #include "confdefs.h"
5082 main ()
5084 void * foo;
5086 return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:5090: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5092 ac_status=$?
5093 echo "$as_me:5093: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:5096: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:5099: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 emacs_cv_void_star=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 emacs_cv_void_star=no
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:5109: result: $emacs_cv_void_star" >&5
5110 echo "${ECHO_T}$emacs_cv_void_star" >&6
5111 if test $emacs_cv_void_star = yes; then
5112 cat >>confdefs.h <<\EOF
5113 #define POINTER_TYPE void
5116 else
5117 cat >>confdefs.h <<\EOF
5118 #define POINTER_TYPE char
5123 echo "$as_me:5123: checking whether ${MAKE-make} sets \${MAKE}" >&5
5124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.make <<\EOF
5130 all:
5131 @echo 'ac_maketemp="${MAKE}"'
5133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5135 if test -n "$ac_maketemp"; then
5136 eval ac_cv_prog_make_${ac_make}_set=yes
5137 else
5138 eval ac_cv_prog_make_${ac_make}_set=no
5140 rm -f conftest.make
5142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5143 echo "$as_me:5143: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5145 SET_MAKE=
5146 else
5147 echo "$as_me:5147: result: no" >&5
5148 echo "${ECHO_T}no" >&6
5149 SET_MAKE="MAKE=${MAKE-make}"
5152 echo "$as_me:5152: checking for long file names" >&5
5153 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5154 if test "${ac_cv_sys_long_file_names+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 ac_cv_sys_long_file_names=yes
5158 # Test for long file names in all the places we know might matter:
5159 # . the current directory, where building will happen
5160 # $prefix/lib where we will be installing things
5161 # $exec_prefix/lib likewise
5162 # eval it to expand exec_prefix.
5163 # $TMPDIR if set, where it might want to write temporary files
5164 # if $TMPDIR is not set:
5165 # /tmp where it might want to write temporary files
5166 # /var/tmp likewise
5167 # /usr/tmp likewise
5168 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5169 ac_tmpdirs=$TMPDIR
5170 else
5171 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5173 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5174 test -d $ac_dir || continue
5175 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5176 ac_xdir=$ac_dir/cf$$
5177 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5178 ac_tf1=$ac_xdir/conftest9012345
5179 ac_tf2=$ac_xdir/conftest9012346
5180 (echo 1 >$ac_tf1) 2>/dev/null
5181 (echo 2 >$ac_tf2) 2>/dev/null
5182 ac_val=`cat $ac_tf1 2>/dev/null`
5183 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5184 ac_cv_sys_long_file_names=no
5185 rm -rf $ac_xdir 2>/dev/null
5186 break
5188 rm -rf $ac_xdir 2>/dev/null
5189 done
5191 echo "$as_me:5191: result: $ac_cv_sys_long_file_names" >&5
5192 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5193 if test $ac_cv_sys_long_file_names = yes; then
5195 cat >>confdefs.h <<\EOF
5196 #define HAVE_LONG_FILE_NAMES 1
5201 #### Choose a window system.
5203 echo "$as_me:5203: checking for X" >&5
5204 echo $ECHO_N "checking for X... $ECHO_C" >&6
5206 # Check whether --with-x or --without-x was given.
5207 if test "${with_x+set}" = set; then
5208 withval="$with_x"
5211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5212 if test "x$with_x" = xno; then
5213 # The user explicitly disabled X.
5214 have_x=disabled
5215 else
5216 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5217 # Both variables are already set.
5218 have_x=yes
5219 else
5220 if test "${ac_cv_have_x+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 # One or both of the vars are not set, and there is no cached value.
5224 ac_x_includes=no ac_x_libraries=no
5225 rm -fr conftest.dir
5226 if mkdir conftest.dir; then
5227 cd conftest.dir
5228 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5229 cat >Imakefile <<'EOF'
5230 acfindx:
5231 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5233 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5235 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5237 for ac_extension in a so sl; do
5238 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5239 test -f $ac_im_libdir/libX11.$ac_extension; then
5240 ac_im_usrlibdir=$ac_im_libdir; break
5242 done
5243 # Screen out bogus values from the imake configuration. They are
5244 # bogus both because they are the default anyway, and because
5245 # using them would break gcc on systems where it needs fixed includes.
5246 case $ac_im_incroot in
5247 /usr/include) ;;
5248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5249 esac
5250 case $ac_im_usrlibdir in
5251 /usr/lib | /lib) ;;
5252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5253 esac
5255 cd ..
5256 rm -fr conftest.dir
5259 # Standard set of common directories for X headers.
5260 # Check X11 before X11Rn because it is often a symlink to the current release.
5261 ac_x_header_dirs='
5262 /usr/X11/include
5263 /usr/X11R6/include
5264 /usr/X11R5/include
5265 /usr/X11R4/include
5267 /usr/include/X11
5268 /usr/include/X11R6
5269 /usr/include/X11R5
5270 /usr/include/X11R4
5272 /usr/local/X11/include
5273 /usr/local/X11R6/include
5274 /usr/local/X11R5/include
5275 /usr/local/X11R4/include
5277 /usr/local/include/X11
5278 /usr/local/include/X11R6
5279 /usr/local/include/X11R5
5280 /usr/local/include/X11R4
5282 /usr/X386/include
5283 /usr/x386/include
5284 /usr/XFree86/include/X11
5286 /usr/include
5287 /usr/local/include
5288 /usr/unsupported/include
5289 /usr/athena/include
5290 /usr/local/x11r5/include
5291 /usr/lpp/Xamples/include
5293 /usr/openwin/include
5294 /usr/openwin/share/include'
5296 if test "$ac_x_includes" = no; then
5297 # Guess where to find include files, by looking for Intrinsic.h.
5298 # First, try using that file with no special directory specified.
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line 5300 "configure"
5301 #include "confdefs.h"
5302 #include <X11/Intrinsic.h>
5303 _ACEOF
5304 if { (eval echo "$as_me:5304: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306 ac_status=$?
5307 egrep -v '^ *\+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:5310: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 else
5315 ac_cpp_err=
5317 else
5318 ac_cpp_err=yes
5320 if test -z "$ac_cpp_err"; then
5321 # We can compile using X headers with no special include directory.
5322 ac_x_includes=
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 for ac_dir in $ac_x_header_dirs; do
5327 if test -r "$ac_dir/X11/Intrinsic.h"; then
5328 ac_x_includes=$ac_dir
5329 break
5331 done
5333 rm -f conftest.err conftest.$ac_ext
5334 fi # $ac_x_includes = no
5336 if test "$ac_x_libraries" = no; then
5337 # Check for the libraries.
5338 # See if we find them without any special options.
5339 # Don't add to $LIBS permanently.
5340 ac_save_LIBS=$LIBS
5341 LIBS="-lXt $LIBS"
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 #include <X11/Intrinsic.h>
5347 main ()
5349 XtMalloc (0)
5351 return 0;
5353 _ACEOF
5354 rm -f conftest.$ac_objext conftest$ac_exeext
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5357 ac_status=$?
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -s conftest$ac_exeext'
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 LIBS=$ac_save_LIBS
5367 # We can link X programs with no special library path.
5368 ac_x_libraries=
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 LIBS=$ac_save_LIBS
5373 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5375 # Don't even attempt the hair of trying to link an X program!
5376 for ac_extension in a so sl; do
5377 if test -r $ac_dir/libXt.$ac_extension; then
5378 ac_x_libraries=$ac_dir
5379 break 2
5381 done
5382 done
5384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5385 fi # $ac_x_libraries = no
5387 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5388 # Didn't find X anywhere. Cache the known absence of X.
5389 ac_cv_have_x="have_x=no"
5390 else
5391 # Record where we found X for the cache.
5392 ac_cv_have_x="have_x=yes \
5393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5398 eval "$ac_cv_have_x"
5399 fi # $with_x != no
5401 if test "$have_x" != yes; then
5402 echo "$as_me:5402: result: $have_x" >&5
5403 echo "${ECHO_T}$have_x" >&6
5404 no_x=yes
5405 else
5406 # If each of the values was on the command line, it overrides each guess.
5407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5409 # Update the cache value to reflect the command line values.
5410 ac_cv_have_x="have_x=yes \
5411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5412 echo "$as_me:5412: result: libraries $x_libraries, headers $x_includes" >&5
5413 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5416 if test "$no_x" = yes; then
5417 window_system=none
5418 else
5419 window_system=x11
5422 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5423 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5424 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5425 x_default_search_path=""
5426 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5427 x_search_path="\
5428 ${x_library}/X11/%L/%T/%N%C%S:\
5429 ${x_library}/X11/%l/%T/%N%C%S:\
5430 ${x_library}/X11/%T/%N%C%S:\
5431 ${x_library}/X11/%L/%T/%N%S:\
5432 ${x_library}/X11/%l/%T/%N%S:\
5433 ${x_library}/X11/%T/%N%S"
5434 if test x"${x_default_search_path}" = x; then
5435 x_default_search_path=${x_search_path}
5436 else
5437 x_default_search_path="${x_search_path}:${x_default_search_path}"
5439 done
5441 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5442 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5445 if test x"${x_includes}" = x; then
5446 bitmapdir=/usr/include/X11/bitmaps
5447 else
5448 # accumulate include directories that have X11 bitmap subdirectories
5449 bmd_acc="dummyval"
5450 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5451 if test -d "${bmd}/X11/bitmaps"; then
5452 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5454 if test -d "${bmd}/bitmaps"; then
5455 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5457 done
5458 if test ${bmd_acc} != "dummyval"; then
5459 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5463 case "${window_system}" in
5464 x11 )
5465 HAVE_X_WINDOWS=yes
5466 HAVE_X11=yes
5467 case "${with_x_toolkit}" in
5468 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5469 motif ) USE_X_TOOLKIT=MOTIF ;;
5470 no ) USE_X_TOOLKIT=none ;;
5471 * ) USE_X_TOOLKIT=maybe ;;
5472 esac
5474 none )
5475 HAVE_X_WINDOWS=no
5476 HAVE_X11=no
5477 USE_X_TOOLKIT=none
5479 esac
5481 ### If we're using X11, we should use the X menu package.
5482 HAVE_MENUS=no
5483 case ${HAVE_X11} in
5484 yes ) HAVE_MENUS=yes ;;
5485 esac
5487 if test "${opsys}" = "hpux9"; then
5488 case "${x_libraries}" in
5489 *X11R4* )
5490 opsysfile="s/hpux9-x11r4.h"
5492 esac
5495 if test "${opsys}" = "hpux9shr"; then
5496 case "${x_libraries}" in
5497 *X11R4* )
5498 opsysfile="s/hpux9shxr4.h"
5500 esac
5503 ### Compute the unexec source name from the object name.
5504 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5506 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5507 # Assume not, until told otherwise.
5508 GNU_MALLOC=yes
5509 doug_lea_malloc=yes
5510 echo "$as_me:5510: checking for malloc_get_state" >&5
5511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5512 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5518 /* System header to define __stub macros and hopefully few prototypes,
5519 which can conflict with char malloc_get_state (); below. */
5520 #include <assert.h>
5521 /* Override any gcc2 internal prototype to avoid an error. */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5527 char malloc_get_state ();
5528 char (*f) ();
5531 main ()
5533 /* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5537 choke me
5538 #else
5539 f = malloc_get_state;
5540 #endif
5543 return 0;
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (eval echo "$as_me:5547: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:5553: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:5556: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_func_malloc_get_state=yes
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5562 ac_cv_func_malloc_get_state=no
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 echo "$as_me:5566: result: $ac_cv_func_malloc_get_state" >&5
5567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5568 if test $ac_cv_func_malloc_get_state = yes; then
5570 else
5571 doug_lea_malloc=no
5574 echo "$as_me:5574: checking for malloc_set_state" >&5
5575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 /* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char malloc_set_state (); below. */
5584 #include <assert.h>
5585 /* Override any gcc2 internal prototype to avoid an error. */
5586 #ifdef __cplusplus
5587 extern "C"
5588 #endif
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5591 char malloc_set_state ();
5592 char (*f) ();
5595 main ()
5597 /* The GNU C library defines this for functions which it implements
5598 to always fail with ENOSYS. Some functions are actually named
5599 something starting with __ and the normal name is an alias. */
5600 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5601 choke me
5602 #else
5603 f = malloc_set_state;
5604 #endif
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_func_malloc_set_state=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 ac_cv_func_malloc_set_state=no
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 echo "$as_me:5630: result: $ac_cv_func_malloc_set_state" >&5
5631 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5632 if test $ac_cv_func_malloc_set_state = yes; then
5634 else
5635 doug_lea_malloc=no
5638 echo "$as_me:5638: checking whether __after_morecore_hook exists" >&5
5639 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5640 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line 5644 "configure"
5645 #include "confdefs.h"
5646 extern void (* __after_morecore_hook)();
5648 main ()
5650 __after_morecore_hook = 0
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5658 ac_status=$?
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:5662: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 emacs_cv_var___after_morecore_hook=yes
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 emacs_cv_var___after_morecore_hook=no
5673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 echo "$as_me:5675: result: $emacs_cv_var___after_morecore_hook" >&5
5676 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5677 if test $emacs_cv_var___after_morecore_hook = no; then
5678 doug_lea_malloc=no
5680 if test "${system_malloc}" = "yes"; then
5681 GNU_MALLOC=no
5682 GNU_MALLOC_reason="
5683 (The GNU allocators don't work with this system configuration.)"
5685 if test "$doug_lea_malloc" = "yes" ; then
5686 if test "$GNU_MALLOC" = yes ; then
5687 GNU_MALLOC_reason="
5688 (Using Doug Lea's new malloc from the GNU C Library.)"
5691 cat >>confdefs.h <<\EOF
5692 #define DOUG_LEA_MALLOC 1
5697 if test x"${REL_ALLOC}" = x; then
5698 REL_ALLOC=${GNU_MALLOC}
5701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5704 inttypes.h stdint.h unistd.h
5706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707 echo "$as_me:5707: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 cat >conftest.$ac_ext <<_ACEOF
5713 #line 5713 "configure"
5714 #include "confdefs.h"
5715 $ac_includes_default
5716 #include <$ac_header>
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:5719: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:5725: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:5728: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 eval "$as_ac_Header=yes"
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 eval "$as_ac_Header=no"
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5738 echo "$as_me:5738: result: `eval echo '${'$as_ac_Header'}'`" >&5
5739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5741 cat >>confdefs.h <<EOF
5742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746 done
5748 for ac_header in stdlib.h unistd.h
5750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5751 echo "$as_me:5751: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line 5757 "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5760 _ACEOF
5761 if { (eval echo "$as_me:5761: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763 ac_status=$?
5764 egrep -v '^ *\+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
5771 else
5772 ac_cpp_err=
5774 else
5775 ac_cpp_err=yes
5777 if test -z "$ac_cpp_err"; then
5778 eval "$as_ac_Header=yes"
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 eval "$as_ac_Header=no"
5784 rm -f conftest.err conftest.$ac_ext
5786 echo "$as_me:5786: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<EOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 done
5796 for ac_func in getpagesize
5798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5799 echo "$as_me:5799: checking for $ac_func" >&5
5800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5801 if eval "test \"\${$as_ac_var+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line 5805 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func (); below. */
5809 #include <assert.h>
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 #ifdef __cplusplus
5812 extern "C"
5813 #endif
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5816 char $ac_func ();
5817 char (*f) ();
5820 main ()
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5826 choke me
5827 #else
5828 f = $ac_func;
5829 #endif
5832 return 0;
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:5836: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5838 ac_status=$?
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:5842: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:5845: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 eval "$as_ac_var=yes"
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5851 eval "$as_ac_var=no"
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5855 echo "$as_me:5855: result: `eval echo '${'$as_ac_var'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5857 if test `eval echo '${'$as_ac_var'}'` = yes; then
5858 cat >>confdefs.h <<EOF
5859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5863 done
5865 echo "$as_me:5865: checking for working mmap" >&5
5866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 if test "$cross_compiling" = yes; then
5871 ac_cv_func_mmap_fixed_mapped=no
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line 5874 "configure"
5875 #include "confdefs.h"
5876 $ac_includes_default
5877 /* Thanks to Mike Haertel and Jim Avera for this test.
5878 Here is a matrix of mmap possibilities:
5879 mmap private not fixed
5880 mmap private fixed at somewhere currently unmapped
5881 mmap private fixed at somewhere already mapped
5882 mmap shared not fixed
5883 mmap shared fixed at somewhere currently unmapped
5884 mmap shared fixed at somewhere already mapped
5885 For private mappings, we should verify that changes cannot be read()
5886 back from the file, nor mmap's back from the file at a different
5887 address. (There have been systems where private was not correctly
5888 implemented like the infamous i386 svr4.0, and systems where the
5889 VM page cache was not coherent with the file system buffer cache
5890 like early versions of FreeBSD and possibly contemporary NetBSD.)
5891 For shared mappings, we should conversely verify that changes get
5892 propogated back to all the places they're supposed to be.
5894 Grep wants private fixed already mapped.
5895 The main things grep needs to know about mmap are:
5896 * does it exist and is it safe to write into the mmap'd area
5897 * how to use it (BSD variants) */
5899 #include <fcntl.h>
5900 #include <sys/mman.h>
5902 #if !STDC_HEADERS && !HAVE_STDLIB_H
5903 char *malloc ();
5904 #endif
5906 /* This mess was copied from the GNU getpagesize.h. */
5907 #if !HAVE_GETPAGESIZE
5908 /* Assume that all systems that can run configure have sys/param.h. */
5909 # if !HAVE_SYS_PARAM_H
5910 # define HAVE_SYS_PARAM_H 1
5911 # endif
5913 # ifdef _SC_PAGESIZE
5914 # define getpagesize() sysconf(_SC_PAGESIZE)
5915 # else /* no _SC_PAGESIZE */
5916 # if HAVE_SYS_PARAM_H
5917 # include <sys/param.h>
5918 # ifdef EXEC_PAGESIZE
5919 # define getpagesize() EXEC_PAGESIZE
5920 # else /* no EXEC_PAGESIZE */
5921 # ifdef NBPG
5922 # define getpagesize() NBPG * CLSIZE
5923 # ifndef CLSIZE
5924 # define CLSIZE 1
5925 # endif /* no CLSIZE */
5926 # else /* no NBPG */
5927 # ifdef NBPC
5928 # define getpagesize() NBPC
5929 # else /* no NBPC */
5930 # ifdef PAGESIZE
5931 # define getpagesize() PAGESIZE
5932 # endif /* PAGESIZE */
5933 # endif /* no NBPC */
5934 # endif /* no NBPG */
5935 # endif /* no EXEC_PAGESIZE */
5936 # else /* no HAVE_SYS_PARAM_H */
5937 # define getpagesize() 8192 /* punt totally */
5938 # endif /* no HAVE_SYS_PARAM_H */
5939 # endif /* no _SC_PAGESIZE */
5941 #endif /* no HAVE_GETPAGESIZE */
5944 main ()
5946 char *data, *data2, *data3;
5947 int i, pagesize;
5948 int fd;
5950 pagesize = getpagesize ();
5952 /* First, make a file with some known garbage in it. */
5953 data = (char *) malloc (pagesize);
5954 if (!data)
5955 exit (1);
5956 for (i = 0; i < pagesize; ++i)
5957 *(data + i) = rand ();
5958 umask (0);
5959 fd = creat ("conftest.mmap", 0600);
5960 if (fd < 0)
5961 exit (1);
5962 if (write (fd, data, pagesize) != pagesize)
5963 exit (1);
5964 close (fd);
5966 /* Next, try to mmap the file at a fixed address which already has
5967 something else allocated at it. If we can, also make sure that
5968 we see the same garbage. */
5969 fd = open ("conftest.mmap", O_RDWR);
5970 if (fd < 0)
5971 exit (1);
5972 data2 = (char *) malloc (2 * pagesize);
5973 if (!data2)
5974 exit (1);
5975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5978 exit (1);
5979 for (i = 0; i < pagesize; ++i)
5980 if (*(data + i) != *(data2 + i))
5981 exit (1);
5983 /* Finally, make sure that changes to the mapped area do not
5984 percolate back to the file as seen by read(). (This is a bug on
5985 some variants of i386 svr4.0.) */
5986 for (i = 0; i < pagesize; ++i)
5987 *(data2 + i) = *(data2 + i) + 1;
5988 data3 = (char *) malloc (pagesize);
5989 if (!data3)
5990 exit (1);
5991 if (read (fd, data3, pagesize) != pagesize)
5992 exit (1);
5993 for (i = 0; i < pagesize; ++i)
5994 if (*(data + i) != *(data3 + i))
5995 exit (1);
5996 close (fd);
5997 exit (0);
5999 _ACEOF
6000 rm -f conftest$ac_exeext
6001 if { (eval echo "$as_me:6001: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6003 ac_status=$?
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006 { (eval echo "$as_me:6006: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_func_mmap_fixed_mapped=yes
6012 else
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 ac_cv_func_mmap_fixed_mapped=no
6018 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:6021: result: $ac_cv_func_mmap_fixed_mapped" >&5
6022 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6025 cat >>confdefs.h <<\EOF
6026 #define HAVE_MMAP 1
6030 rm -f conftest.mmap
6032 if test $use_mmap_for_buffers = yes; then
6033 REL_ALLOC=no
6036 LIBS="$libsrc_libs $LIBS"
6038 echo "$as_me:6038: checking for dnet_ntoa in -ldnet" >&5
6039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 ac_check_lib_save_LIBS=$LIBS
6044 LIBS="-ldnet $LIBS"
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line 6046 "configure"
6047 #include "confdefs.h"
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 #ifdef __cplusplus
6051 extern "C"
6052 #endif
6053 /* We use char because int might match the return type of a gcc2
6054 builtin and then its argument prototype would still apply. */
6055 char dnet_ntoa ();
6057 main ()
6059 dnet_ntoa ();
6061 return 0;
6063 _ACEOF
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (eval echo "$as_me:6065: \"$ac_link\"") >&5
6066 (eval $ac_link) 2>&5
6067 ac_status=$?
6068 echo "$as_me:6068: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:6071: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:6074: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_lib_dnet_dnet_ntoa=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 ac_cv_lib_dnet_dnet_ntoa=no
6082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6083 LIBS=$ac_check_lib_save_LIBS
6085 echo "$as_me:6085: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6088 cat >>confdefs.h <<EOF
6089 #define HAVE_LIBDNET 1
6092 LIBS="-ldnet $LIBS"
6096 echo "$as_me:6096: checking for main in -lXbsd" >&5
6097 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6098 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lXbsd $LIBS"
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line 6104 "configure"
6105 #include "confdefs.h"
6108 main ()
6110 main ();
6112 return 0;
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:6116: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6118 ac_status=$?
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_lib_Xbsd_main=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 ac_cv_lib_Xbsd_main=no
6133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6136 echo "$as_me:6136: result: $ac_cv_lib_Xbsd_main" >&5
6137 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6138 if test $ac_cv_lib_Xbsd_main = yes; then
6139 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6142 echo "$as_me:6142: checking for cma_open in -lpthreads" >&5
6143 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6144 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 ac_check_lib_save_LIBS=$LIBS
6148 LIBS="-lpthreads $LIBS"
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line 6150 "configure"
6151 #include "confdefs.h"
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char cma_open ();
6161 main ()
6163 cma_open ();
6165 return 0;
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:6169: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6171 ac_status=$?
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:6175: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:6178: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_pthreads_cma_open=yes
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 ac_cv_lib_pthreads_cma_open=no
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6189 echo "$as_me:6189: result: $ac_cv_lib_pthreads_cma_open" >&5
6190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6191 if test $ac_cv_lib_pthreads_cma_open = yes; then
6192 cat >>confdefs.h <<EOF
6193 #define HAVE_LIBPTHREADS 1
6196 LIBS="-lpthreads $LIBS"
6200 echo "$as_me:6200: checking for XFree86 in /usr/X386" >&5
6201 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6202 if test -d /usr/X386/include; then
6203 HAVE_XFREE386=yes
6204 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6205 else
6206 HAVE_XFREE386=no
6208 echo "$as_me:6208: result: $HAVE_XFREE386" >&5
6209 echo "${ECHO_T}$HAVE_XFREE386" >&6
6211 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
6212 # used for the tests that follow. We set them back to REAL_CFLAGS and
6213 # REAL_CPPFLAGS later on.
6215 REAL_CPPFLAGS="$CPPFLAGS"
6217 if test "${HAVE_X11}" = "yes"; then
6218 DEFS="$C_SWITCH_X_SITE $DEFS"
6219 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6220 LIBS="$LIBX $LIBS"
6221 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6222 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6224 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6225 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6226 # but it's more convenient here to set LD_RUN_PATH
6227 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6228 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6229 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6230 export LD_RUN_PATH
6233 if test "${opsys}" = "gnu-linux"; then
6234 echo "$as_me:6234: checking whether X on GNU/Linux needs -b to link" >&5
6235 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 #line 6237 "configure"
6238 #include "confdefs.h"
6241 main ()
6243 XOpenDisplay ("foo");
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:6249: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>&5
6251 ac_status=$?
6252 echo "$as_me:6252: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:6255: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:6258: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 xlinux_first_failure=no
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 xlinux_first_failure=yes
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 if test "${xlinux_first_failure}" = "yes"; then
6268 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6269 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6270 OLD_CPPFLAGS="$CPPFLAGS"
6271 OLD_LIBS="$LIBS"
6272 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6273 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6274 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6275 LIBS="$LIBS -b i486-linuxaout"
6276 cat >conftest.$ac_ext <<_ACEOF
6277 #line 6277 "configure"
6278 #include "confdefs.h"
6281 main ()
6283 XOpenDisplay ("foo");
6285 return 0;
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:6289: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>&5
6291 ac_status=$?
6292 echo "$as_me:6292: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:6295: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:6298: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 xlinux_second_failure=no
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 xlinux_second_failure=yes
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307 if test "${xlinux_second_failure}" = "yes"; then
6308 # If we get the same failure with -b, there is no use adding -b.
6309 # So take it out. This plays safe.
6310 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6311 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6312 CPPFLAGS="$OLD_CPPFLAGS"
6313 LIBS="$OLD_LIBS"
6314 echo "$as_me:6314: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6316 else
6317 echo "$as_me:6317: result: yes" >&5
6318 echo "${ECHO_T}yes" >&6
6320 else
6321 echo "$as_me:6321: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6326 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6327 # header files included from there.
6328 echo "$as_me:6328: checking for Xkb" >&5
6329 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line 6331 "configure"
6332 #include "confdefs.h"
6333 #include <X11/Xlib.h>
6334 #include <X11/XKBlib.h>
6336 main ()
6338 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6340 return 0;
6342 _ACEOF
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (eval echo "$as_me:6344: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6346 ac_status=$?
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:6350: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:6353: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 emacs_xkb=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6359 emacs_xkb=no
6361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6362 echo "$as_me:6362: result: $emacs_xkb" >&5
6363 echo "${ECHO_T}$emacs_xkb" >&6
6364 if test $emacs_xkb = yes; then
6366 cat >>confdefs.h <<\EOF
6367 #define HAVE_XKBGETKEYBOARD 1
6372 for ac_func in XrmSetDatabase XScreenResourceString \
6373 XScreenNumberOfScreen XSetWMProtocols
6375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6376 echo "$as_me:6376: checking for $ac_func" >&5
6377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_var+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 cat >conftest.$ac_ext <<_ACEOF
6382 #line 6382 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below. */
6386 #include <assert.h>
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 #ifdef __cplusplus
6389 extern "C"
6390 #endif
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6393 char $ac_func ();
6394 char (*f) ();
6397 main ()
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403 choke me
6404 #else
6405 f = $ac_func;
6406 #endif
6409 return 0;
6411 _ACEOF
6412 rm -f conftest.$ac_objext conftest$ac_exeext
6413 if { (eval echo "$as_me:6413: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>&5
6415 ac_status=$?
6416 echo "$as_me:6416: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (eval echo "$as_me:6419: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 eval "$as_ac_var=yes"
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 eval "$as_ac_var=no"
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432 echo "$as_me:6432: result: `eval echo '${'$as_ac_var'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6434 if test `eval echo '${'$as_ac_var'}'` = yes; then
6435 cat >>confdefs.h <<EOF
6436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6440 done
6444 if test "${window_system}" = "x11"; then
6445 echo "$as_me:6445: checking X11 version 6" >&5
6446 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6447 if test "${emacs_cv_x11_version_6+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 #line 6451 "configure"
6452 #include "confdefs.h"
6453 #include <X11/Xlib.h>
6455 main ()
6457 #if XlibSpecificationRelease < 6
6458 fail;
6459 #endif
6462 return 0;
6464 _ACEOF
6465 rm -f conftest.$ac_objext conftest$ac_exeext
6466 if { (eval echo "$as_me:6466: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>&5
6468 ac_status=$?
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -s conftest$ac_exeext'
6472 { (eval echo "$as_me:6472: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:6475: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 emacs_cv_x11_version_6=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6481 emacs_cv_x11_version_6=no
6483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6486 if test $emacs_cv_x11_version_6 = yes; then
6487 echo "$as_me:6487: result: 6 or newer" >&5
6488 echo "${ECHO_T}6 or newer" >&6
6490 cat >>confdefs.h <<\EOF
6491 #define HAVE_X11R6 1
6494 else
6495 echo "$as_me:6495: result: before 6" >&5
6496 echo "${ECHO_T}before 6" >&6
6500 if test "${window_system}" = "x11"; then
6501 echo "$as_me:6501: checking X11 version 5" >&5
6502 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6503 if test "${emacs_cv_x11_version_5+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line 6507 "configure"
6508 #include "confdefs.h"
6509 #include <X11/Xlib.h>
6511 main ()
6513 #if XlibSpecificationRelease < 5
6514 fail;
6515 #endif
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:6522: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>&5
6524 ac_status=$?
6525 echo "$as_me:6525: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:6528: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 emacs_cv_x11_version_5=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 emacs_cv_x11_version_5=no
6539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6542 if test $emacs_cv_x11_version_5 = yes; then
6543 echo "$as_me:6543: result: 5 or newer" >&5
6544 echo "${ECHO_T}5 or newer" >&6
6545 HAVE_X11R5=yes
6547 cat >>confdefs.h <<\EOF
6548 #define HAVE_X11R5 1
6551 else
6552 HAVE_X11R5=no
6553 echo "$as_me:6553: result: before 5" >&5
6554 echo "${ECHO_T}before 5" >&6
6558 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6559 if test x"${HAVE_X11R5}" = xyes; then
6560 echo "$as_me:6560: checking X11 version 5 with Xaw" >&5
6561 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6562 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 cat >conftest.$ac_ext <<_ACEOF
6566 #line 6566 "configure"
6567 #include "confdefs.h"
6569 #include <X11/Intrinsic.h>
6570 #include <X11/Xaw/Simple.h>
6572 main ()
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:6580: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:6586: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:6589: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 emacs_cv_x11_version_5_with_xaw=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 emacs_cv_x11_version_5_with_xaw=no
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6600 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6601 echo "$as_me:6601: result: 5 or newer, with Xaw; use toolkit by default" >&5
6602 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6603 USE_X_TOOLKIT=LUCID
6604 else
6605 echo "$as_me:6605: result: before 5 or no Xaw; do not use toolkit by default" >&5
6606 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6607 USE_X_TOOLKIT=none
6609 else
6610 USE_X_TOOLKIT=none
6614 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6616 if test "${USE_X_TOOLKIT}" != "none"; then
6617 echo "$as_me:6617: checking X11 toolkit version" >&5
6618 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6619 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line 6623 "configure"
6624 #include "confdefs.h"
6625 #include <X11/Intrinsic.h>
6627 main ()
6629 #if XtSpecificationRelease < 6
6630 fail;
6631 #endif
6634 return 0;
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (eval echo "$as_me:6638: \"$ac_link\"") >&5
6639 (eval $ac_link) 2>&5
6640 ac_status=$?
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -s conftest$ac_exeext'
6644 { (eval echo "$as_me:6644: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 emacs_cv_x11_toolkit_version_6=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 cat conftest.$ac_ext >&5
6653 emacs_cv_x11_toolkit_version_6=no
6655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6658 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6659 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6660 echo "$as_me:6660: result: 6 or newer" >&5
6661 echo "${ECHO_T}6 or newer" >&6
6663 cat >>confdefs.h <<\EOF
6664 #define HAVE_X11XTR6 1
6667 else
6668 echo "$as_me:6668: result: before 6" >&5
6669 echo "${ECHO_T}before 6" >&6
6672 OLDLIBS="$LIBS"
6673 if test x$HAVE_X11XTR6 = xyes; then
6674 LIBS="-lXt -lSM -lICE $LIBS"
6675 else
6676 LIBS="-lXt $LIBS"
6679 echo "$as_me:6679: checking for XmuConvertStandardSelection in -lXmu" >&5
6680 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6681 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 ac_check_lib_save_LIBS=$LIBS
6685 LIBS="-lXmu $LIBS"
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line 6687 "configure"
6688 #include "confdefs.h"
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 #ifdef __cplusplus
6692 extern "C"
6693 #endif
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6696 char XmuConvertStandardSelection ();
6698 main ()
6700 XmuConvertStandardSelection ();
6702 return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:6706: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>&5
6708 ac_status=$?
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:6712: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_check_lib_save_LIBS
6726 echo "$as_me:6726: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6729 cat >>confdefs.h <<EOF
6730 #define HAVE_LIBXMU 1
6733 LIBS="-lXmu $LIBS"
6737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6741 if test "${HAVE_X11}" = "yes"; then
6742 if test "${USE_X_TOOLKIT}" != "none"; then
6744 echo "$as_me:6744: checking for XShapeQueryExtension in -lXext" >&5
6745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 ac_check_lib_save_LIBS=$LIBS
6750 LIBS="-lXext $LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line 6752 "configure"
6753 #include "confdefs.h"
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 #ifdef __cplusplus
6757 extern "C"
6758 #endif
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6761 char XShapeQueryExtension ();
6763 main ()
6765 XShapeQueryExtension ();
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (eval echo "$as_me:6771: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:6777: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_lib_Xext_XShapeQueryExtension=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_cv_lib_Xext_XShapeQueryExtension=no
6788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6789 LIBS=$ac_check_lib_save_LIBS
6791 echo "$as_me:6791: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6792 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6793 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6794 cat >>confdefs.h <<EOF
6795 #define HAVE_LIBXEXT 1
6798 LIBS="-lXext $LIBS"
6805 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6806 echo "$as_me:6806: checking for LessTif where some systems put it" >&5
6807 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
6808 if test "${emacs_cv_lesstif+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 # We put this in CFLAGS temporarily to precede other -I options
6812 # that might be in CFLAGS temporarily.
6813 # We put this in CPPFLAGS where it precedes the other -I options.
6814 OLD_CPPFLAGS=$CPPFLAGS
6815 OLD_CFLAGS=$CFLAGS
6816 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
6817 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line 6819 "configure"
6820 #include "confdefs.h"
6821 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
6823 main ()
6825 int x = 5;
6827 return 0;
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:6831: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:6837: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:6840: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 emacs_cv_lesstif=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 emacs_cv_lesstif=no
6848 rm -f conftest.$ac_objext conftest.$ac_ext
6850 echo "$as_me:6850: result: $emacs_cv_lesstif" >&5
6851 echo "${ECHO_T}$emacs_cv_lesstif" >&6
6852 if test $emacs_cv_lesstif = yes; then
6853 # Make sure this -I option remains in CPPFLAGS after it is set
6854 # back to REAL_CPPFLAGS.
6855 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
6856 # have those other -I options anyway. Ultimately, having this
6857 # directory ultimately in CPPFLAGS will be enough.
6858 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
6859 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
6860 else
6861 CFLAGS=$OLD_CFLAGS
6862 CPPFLAGS=$OLD_CPPFLAGS
6864 echo "$as_me:6864: checking for Motif version 2.1" >&5
6865 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6866 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line 6870 "configure"
6871 #include "confdefs.h"
6872 #include <Xm/Xm.h>
6874 main ()
6876 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6877 int x = 5;
6878 #else
6879 Motif version prior to 2.1.
6880 #endif
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (eval echo "$as_me:6886: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 echo "$as_me:6889: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:6892: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:6895: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 emacs_cv_motif_version_2_1=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 emacs_cv_motif_version_2_1=no
6903 rm -f conftest.$ac_objext conftest.$ac_ext
6905 echo "$as_me:6905: result: $emacs_cv_motif_version_2_1" >&5
6906 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6907 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6908 if test $emacs_cv_motif_version_2_1 = yes; then
6909 HAVE_LIBXP=no
6911 cat >>confdefs.h <<\EOF
6912 #define HAVE_MOTIF_2_1 1
6915 echo "$as_me:6915: checking for XpCreateContext in -lXp" >&5
6916 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6917 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 ac_check_lib_save_LIBS=$LIBS
6921 LIBS="-lXp $LIBS"
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line 6923 "configure"
6924 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char XpCreateContext ();
6934 main ()
6936 XpCreateContext ();
6938 return 0;
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:6942: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6944 ac_status=$?
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:6948: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_lib_Xp_XpCreateContext=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6957 ac_cv_lib_Xp_XpCreateContext=no
6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6960 LIBS=$ac_check_lib_save_LIBS
6962 echo "$as_me:6962: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6963 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6964 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6965 HAVE_LIBXP=yes
6968 if test ${HAVE_LIBXP} = yes; then
6970 cat >>confdefs.h <<\EOF
6971 #define HAVE_LIBXP 1
6978 ### Is -lXaw3d available?
6979 HAVE_XAW3D=no
6980 if test "${HAVE_X11}" = "yes"; then
6981 if test "${USE_X_TOOLKIT}" != "none"; then
6982 echo "$as_me:6982: checking for X11/Xaw3d/Scrollbar.h" >&5
6983 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6984 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 #line 6988 "configure"
6989 #include "confdefs.h"
6990 #include <X11/Xaw3d/Scrollbar.h>
6991 _ACEOF
6992 if { (eval echo "$as_me:6992: \"$ac_cpp conftest.$ac_ext\"") >&5
6993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6994 ac_status=$?
6995 egrep -v '^ *\+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit $ac_status); } >/dev/null; then
7000 if test -s conftest.err; then
7001 ac_cpp_err=$ac_c_preproc_warn_flag
7002 else
7003 ac_cpp_err=
7005 else
7006 ac_cpp_err=yes
7008 if test -z "$ac_cpp_err"; then
7009 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
7015 rm -f conftest.err conftest.$ac_ext
7017 echo "$as_me:7017: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7018 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7019 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7020 echo "$as_me:7020: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7021 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7022 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lXaw3d $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line 7028 "configure"
7029 #include "confdefs.h"
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 #ifdef __cplusplus
7033 extern "C"
7034 #endif
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char XawScrollbarSetThumb ();
7039 main ()
7041 XawScrollbarSetThumb ();
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext conftest$ac_exeext
7047 if { (eval echo "$as_me:7047: \"$ac_link\"") >&5
7048 (eval $ac_link) 2>&5
7049 ac_status=$?
7050 echo "$as_me:7050: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:7053: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:7056: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7062 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_check_lib_save_LIBS
7067 echo "$as_me:7067: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7068 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7069 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7070 HAVE_XAW3D=yes
7075 if test "${HAVE_XAW3D}" = "yes"; then
7077 cat >>confdefs.h <<\EOF
7078 #define HAVE_XAW3D 1
7085 USE_TOOLKIT_SCROLL_BARS=no
7086 if test "${with_toolkit_scroll_bars}" != "no"; then
7087 if test "${USE_X_TOOLKIT}" != "none"; then
7088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7089 cat >>confdefs.h <<\EOF
7090 #define USE_TOOLKIT_SCROLL_BARS 1
7093 HAVE_XAW3D=no
7094 USE_TOOLKIT_SCROLL_BARS=yes
7095 elif test "${HAVE_XAW3D}" = "yes"; then
7096 cat >>confdefs.h <<\EOF
7097 #define USE_TOOLKIT_SCROLL_BARS 1
7100 USE_TOOLKIT_SCROLL_BARS=yes
7105 if test "${with_xim}" != "no"; then
7107 cat >>confdefs.h <<\EOF
7108 #define USE_XIM 1
7113 ### Use -lXpm if available, unless `--with-xpm=no'.
7114 HAVE_XPM=no
7115 if test "${HAVE_X11}" = "yes"; then
7116 if test "${with_xpm}" != "no"; then
7117 echo "$as_me:7117: checking for X11/xpm.h" >&5
7118 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7119 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line 7123 "configure"
7124 #include "confdefs.h"
7125 #include <X11/xpm.h>
7126 _ACEOF
7127 if { (eval echo "$as_me:7127: \"$ac_cpp conftest.$ac_ext\"") >&5
7128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 ac_status=$?
7130 egrep -v '^ *\+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 echo "$as_me:7133: \$? = $ac_status" >&5
7134 (exit $ac_status); } >/dev/null; then
7135 if test -s conftest.err; then
7136 ac_cpp_err=$ac_c_preproc_warn_flag
7137 else
7138 ac_cpp_err=
7140 else
7141 ac_cpp_err=yes
7143 if test -z "$ac_cpp_err"; then
7144 ac_cv_header_X11_xpm_h=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_cv_header_X11_xpm_h=no
7150 rm -f conftest.err conftest.$ac_ext
7152 echo "$as_me:7152: result: $ac_cv_header_X11_xpm_h" >&5
7153 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7154 if test $ac_cv_header_X11_xpm_h = yes; then
7155 echo "$as_me:7155: checking for XpmReadFileToPixmap in -lXpm" >&5
7156 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7157 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lXpm -lX11 $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line 7163 "configure"
7164 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error. */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char XpmReadFileToPixmap ();
7174 main ()
7176 XpmReadFileToPixmap ();
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:7182: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>&5
7184 ac_status=$?
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:7188: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7197 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7200 LIBS=$ac_check_lib_save_LIBS
7202 echo "$as_me:7202: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7203 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7204 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7205 HAVE_XPM=yes
7210 if test "${HAVE_XPM}" = "yes"; then
7211 echo "$as_me:7211: checking for XpmReturnAllocPixels preprocessor define" >&5
7212 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7214 #line 7214 "configure"
7215 #include "confdefs.h"
7216 #include "X11/xpm.h"
7217 #ifndef XpmReturnAllocPixels
7218 no_return_alloc_pixels
7219 #endif
7221 _ACEOF
7222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7223 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7224 HAVE_XPM=no
7225 else
7226 HAVE_XPM=yes
7228 rm -f conftest*
7230 if test "${HAVE_XPM}" = "yes"; then
7231 echo "$as_me:7231: result: yes" >&5
7232 echo "${ECHO_T}yes" >&6
7233 else
7234 echo "$as_me:7234: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7240 if test "${HAVE_XPM}" = "yes"; then
7242 cat >>confdefs.h <<\EOF
7243 #define HAVE_XPM 1
7249 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7250 HAVE_JPEG=no
7251 if test "${HAVE_X11}" = "yes"; then
7252 if test "${with_jpeg}" != "no"; then
7253 echo "$as_me:7253: checking for jerror.h" >&5
7254 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7255 if test "${ac_cv_header_jerror_h+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 #line 7259 "configure"
7260 #include "confdefs.h"
7261 #include <jerror.h>
7262 _ACEOF
7263 if { (eval echo "$as_me:7263: \"$ac_cpp conftest.$ac_ext\"") >&5
7264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7265 ac_status=$?
7266 egrep -v '^ *\+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:7269: \$? = $ac_status" >&5
7270 (exit $ac_status); } >/dev/null; then
7271 if test -s conftest.err; then
7272 ac_cpp_err=$ac_c_preproc_warn_flag
7273 else
7274 ac_cpp_err=
7276 else
7277 ac_cpp_err=yes
7279 if test -z "$ac_cpp_err"; then
7280 ac_cv_header_jerror_h=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 ac_cv_header_jerror_h=no
7286 rm -f conftest.err conftest.$ac_ext
7288 echo "$as_me:7288: result: $ac_cv_header_jerror_h" >&5
7289 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7290 if test $ac_cv_header_jerror_h = yes; then
7291 echo "$as_me:7291: checking for jpeg_destroy_compress in -ljpeg" >&5
7292 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7293 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 ac_check_lib_save_LIBS=$LIBS
7297 LIBS="-ljpeg $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line 7299 "configure"
7300 #include "confdefs.h"
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 #ifdef __cplusplus
7304 extern "C"
7305 #endif
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7308 char jpeg_destroy_compress ();
7310 main ()
7312 jpeg_destroy_compress ();
7314 return 0;
7316 _ACEOF
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (eval echo "$as_me:7318: \"$ac_link\"") >&5
7319 (eval $ac_link) 2>&5
7320 ac_status=$?
7321 echo "$as_me:7321: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -s conftest$ac_exeext'
7324 { (eval echo "$as_me:7324: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7333 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7336 LIBS=$ac_check_lib_save_LIBS
7338 echo "$as_me:7338: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7339 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7340 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7341 HAVE_JPEG=yes
7348 if test "${HAVE_JPEG}" = "yes"; then
7349 cat >>confdefs.h <<\EOF
7350 #define HAVE_JPEG 1
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7356 #include <jpeglib.h>
7357 version=JPEG_LIB_VERSION
7359 _ACEOF
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7362 cat >>confdefs.h <<\EOF
7363 #define HAVE_JPEG 1
7366 else
7367 { echo "$as_me:7367: WARNING: libjpeg found, but not version 6b or later" >&5
7368 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7369 HAVE_JPEG=no
7371 rm -f conftest*
7376 ### Use -lpng if available, unless `--with-png=no'.
7377 HAVE_PNG=no
7378 if test "${HAVE_X11}" = "yes"; then
7379 if test "${with_png}" != "no"; then
7380 echo "$as_me:7380: checking for png.h" >&5
7381 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7382 if test "${ac_cv_header_png_h+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 #line 7386 "configure"
7387 #include "confdefs.h"
7388 #include <png.h>
7389 _ACEOF
7390 if { (eval echo "$as_me:7390: \"$ac_cpp conftest.$ac_ext\"") >&5
7391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392 ac_status=$?
7393 egrep -v '^ *\+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); } >/dev/null; then
7398 if test -s conftest.err; then
7399 ac_cpp_err=$ac_c_preproc_warn_flag
7400 else
7401 ac_cpp_err=
7403 else
7404 ac_cpp_err=yes
7406 if test -z "$ac_cpp_err"; then
7407 ac_cv_header_png_h=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 ac_cv_header_png_h=no
7413 rm -f conftest.err conftest.$ac_ext
7415 echo "$as_me:7415: result: $ac_cv_header_png_h" >&5
7416 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7417 if test $ac_cv_header_png_h = yes; then
7418 echo "$as_me:7418: checking for png_get_channels in -lpng" >&5
7419 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7420 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 ac_check_lib_save_LIBS=$LIBS
7424 LIBS="-lpng -lz -lm $LIBS"
7425 cat >conftest.$ac_ext <<_ACEOF
7426 #line 7426 "configure"
7427 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7435 char png_get_channels ();
7437 main ()
7439 png_get_channels ();
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:7445: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7447 ac_status=$?
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_png_png_get_channels=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 ac_cv_lib_png_png_get_channels=no
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7465 echo "$as_me:7465: result: $ac_cv_lib_png_png_get_channels" >&5
7466 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7467 if test $ac_cv_lib_png_png_get_channels = yes; then
7468 HAVE_PNG=yes
7475 if test "${HAVE_PNG}" = "yes"; then
7477 cat >>confdefs.h <<\EOF
7478 #define HAVE_PNG 1
7484 ### Use -ltiff if available, unless `--with-tiff=no'.
7485 HAVE_TIFF=no
7486 if test "${HAVE_X11}" = "yes"; then
7487 if test "${with_tiff}" != "no"; then
7488 echo "$as_me:7488: checking for tiffio.h" >&5
7489 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7490 if test "${ac_cv_header_tiffio_h+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line 7494 "configure"
7495 #include "confdefs.h"
7496 #include <tiffio.h>
7497 _ACEOF
7498 if { (eval echo "$as_me:7498: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500 ac_status=$?
7501 egrep -v '^ *\+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); } >/dev/null; then
7506 if test -s conftest.err; then
7507 ac_cpp_err=$ac_c_preproc_warn_flag
7508 else
7509 ac_cpp_err=
7511 else
7512 ac_cpp_err=yes
7514 if test -z "$ac_cpp_err"; then
7515 ac_cv_header_tiffio_h=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 ac_cv_header_tiffio_h=no
7521 rm -f conftest.err conftest.$ac_ext
7523 echo "$as_me:7523: result: $ac_cv_header_tiffio_h" >&5
7524 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7525 if test $ac_cv_header_tiffio_h = yes; then
7526 tifflibs="-lz -lm"
7527 # At least one tiff package requires the jpeg library.
7528 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7529 echo "$as_me:7529: checking for TIFFGetVersion in -ltiff" >&5
7530 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7531 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 ac_check_lib_save_LIBS=$LIBS
7535 LIBS="-ltiff $tifflibs $LIBS"
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line 7537 "configure"
7538 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 /* We use char because int might match the return type of a gcc2
7545 builtin and then its argument prototype would still apply. */
7546 char TIFFGetVersion ();
7548 main ()
7550 TIFFGetVersion ();
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:7556: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7558 ac_status=$?
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:7562: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:7565: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_lib_tiff_TIFFGetVersion=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7571 ac_cv_lib_tiff_TIFFGetVersion=no
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7576 echo "$as_me:7576: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7579 HAVE_TIFF=yes
7586 if test "${HAVE_TIFF}" = "yes"; then
7588 cat >>confdefs.h <<\EOF
7589 #define HAVE_TIFF 1
7595 ### Use -lgif if available, unless `--with-gif=no'.
7596 HAVE_GIF=no
7597 if test "${HAVE_X11}" = "yes"; then
7598 if test "${with_gif}" != "no"; then
7599 echo "$as_me:7599: checking for gif_lib.h" >&5
7600 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7601 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line 7605 "configure"
7606 #include "confdefs.h"
7607 #include <gif_lib.h>
7608 _ACEOF
7609 if { (eval echo "$as_me:7609: \"$ac_cpp conftest.$ac_ext\"") >&5
7610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7611 ac_status=$?
7612 egrep -v '^ *\+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:7615: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev/null; then
7617 if test -s conftest.err; then
7618 ac_cpp_err=$ac_c_preproc_warn_flag
7619 else
7620 ac_cpp_err=
7622 else
7623 ac_cpp_err=yes
7625 if test -z "$ac_cpp_err"; then
7626 ac_cv_header_gif_lib_h=yes
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 ac_cv_header_gif_lib_h=no
7632 rm -f conftest.err conftest.$ac_ext
7634 echo "$as_me:7634: result: $ac_cv_header_gif_lib_h" >&5
7635 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7636 if test $ac_cv_header_gif_lib_h = yes; then
7637 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7638 # Earlier versions can crash Emacs.
7639 echo "$as_me:7639: checking for EGifPutExtensionLast in -lungif" >&5
7640 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7641 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lungif $LIBS"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char EGifPutExtensionLast ();
7658 main ()
7660 EGifPutExtensionLast ();
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7668 ac_status=$?
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 ac_cv_lib_ungif_EGifPutExtensionLast=no
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 echo "$as_me:7686: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7687 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7688 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7689 HAVE_GIF=yes
7696 if test "${HAVE_GIF}" = "yes"; then
7698 cat >>confdefs.h <<\EOF
7699 #define HAVE_GIF 1
7705 ### Use Mac OS X Carbon API to implement GUI.
7706 HAVE_CARBON=no
7707 if test "${with_carbon}" != "no"; then
7708 echo "$as_me:7708: checking for Carbon/Carbon.h" >&5
7709 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7710 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line 7714 "configure"
7715 #include "confdefs.h"
7716 #include <Carbon/Carbon.h>
7717 _ACEOF
7718 if { (eval echo "$as_me:7718: \"$ac_cpp conftest.$ac_ext\"") >&5
7719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7720 ac_status=$?
7721 egrep -v '^ *\+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); } >/dev/null; then
7726 if test -s conftest.err; then
7727 ac_cpp_err=$ac_c_preproc_warn_flag
7728 else
7729 ac_cpp_err=
7731 else
7732 ac_cpp_err=yes
7734 if test -z "$ac_cpp_err"; then
7735 ac_cv_header_Carbon_Carbon_h=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 ac_cv_header_Carbon_Carbon_h=no
7741 rm -f conftest.err conftest.$ac_ext
7743 echo "$as_me:7743: result: $ac_cv_header_Carbon_Carbon_h" >&5
7744 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7745 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7746 HAVE_CARBON=yes
7751 if test "${HAVE_CARBON}" = "yes"; then
7753 cat >>confdefs.h <<\EOF
7754 #define HAVE_CARBON 1
7759 ### Use session management (-lSM -lICE) if available
7760 HAVE_X_SM=no
7761 if test "${HAVE_X11}" = "yes"; then
7762 echo "$as_me:7762: checking for X11/SM/SMlib.h" >&5
7763 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7764 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line 7768 "configure"
7769 #include "confdefs.h"
7770 #include <X11/SM/SMlib.h>
7771 _ACEOF
7772 if { (eval echo "$as_me:7772: \"$ac_cpp conftest.$ac_ext\"") >&5
7773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7774 ac_status=$?
7775 egrep -v '^ *\+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:7778: \$? = $ac_status" >&5
7779 (exit $ac_status); } >/dev/null; then
7780 if test -s conftest.err; then
7781 ac_cpp_err=$ac_c_preproc_warn_flag
7782 else
7783 ac_cpp_err=
7785 else
7786 ac_cpp_err=yes
7788 if test -z "$ac_cpp_err"; then
7789 ac_cv_header_X11_SM_SMlib_h=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 ac_cv_header_X11_SM_SMlib_h=no
7795 rm -f conftest.err conftest.$ac_ext
7797 echo "$as_me:7797: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7798 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7799 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7800 echo "$as_me:7800: checking for SmcOpenConnection in -lSM" >&5
7801 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7802 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lSM $LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line 7808 "configure"
7809 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char SmcOpenConnection ();
7819 main ()
7821 SmcOpenConnection ();
7823 return 0;
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:7827: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>&5
7829 ac_status=$?
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:7833: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_SM_SmcOpenConnection=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7842 ac_cv_lib_SM_SmcOpenConnection=no
7844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845 LIBS=$ac_check_lib_save_LIBS
7847 echo "$as_me:7847: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7848 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7849 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7850 HAVE_X_SM=yes
7851 else
7852 -lICE
7857 if test "${HAVE_X_SM}" = "yes"; then
7859 cat >>confdefs.h <<\EOF
7860 #define HAVE_X_SM 1
7863 case "$LIBS" in
7864 *-lSM*) ;;
7865 *) LIBS="-lSM -lICE $LIBS" ;;
7866 esac
7870 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7871 echo "$as_me:7871: checking whether netdb declares h_errno" >&5
7872 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7873 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line 7877 "configure"
7878 #include "confdefs.h"
7879 #include <netdb.h>
7881 main ()
7883 return h_errno;
7885 return 0;
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7891 ac_status=$?
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 emacs_cv_netdb_declares_h_errno=yes
7901 else
7902 echo "$as_me: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 emacs_cv_netdb_declares_h_errno=no
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 echo "$as_me:7908: result: $emacs_cv_netdb_declares_h_errno" >&5
7909 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7910 if test $emacs_cv_netdb_declares_h_errno = yes; then
7912 cat >>confdefs.h <<\EOF
7913 #define HAVE_H_ERRNO 1
7918 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7919 # for constant arguments. Useless!
7920 echo "$as_me:7920: checking for working alloca.h" >&5
7921 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7922 if test "${ac_cv_working_alloca_h+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line 7926 "configure"
7927 #include "confdefs.h"
7928 #include <alloca.h>
7930 main ()
7932 char *p = (char *) alloca (2 * sizeof (int));
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:7938: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>&5
7940 ac_status=$?
7941 echo "$as_me:7941: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:7944: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:7947: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_working_alloca_h=yes
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7953 ac_cv_working_alloca_h=no
7955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7957 echo "$as_me:7957: result: $ac_cv_working_alloca_h" >&5
7958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7959 if test $ac_cv_working_alloca_h = yes; then
7961 cat >>confdefs.h <<\EOF
7962 #define HAVE_ALLOCA_H 1
7967 echo "$as_me:7967: checking for alloca" >&5
7968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7969 if test "${ac_cv_func_alloca_works+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 cat >conftest.$ac_ext <<_ACEOF
7973 #line 7973 "configure"
7974 #include "confdefs.h"
7975 #ifdef __GNUC__
7976 # define alloca __builtin_alloca
7977 #else
7978 # ifdef _MSC_VER
7979 # include <malloc.h>
7980 # define alloca _alloca
7981 # else
7982 # if HAVE_ALLOCA_H
7983 # include <alloca.h>
7984 # else
7985 # ifdef _AIX
7986 #pragma alloca
7987 # else
7988 # ifndef alloca /* predefined by HP cc +Olibcalls */
7989 char *alloca ();
7990 # endif
7991 # endif
7992 # endif
7993 # endif
7994 #endif
7997 main ()
7999 char *p = (char *) alloca (1);
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:8005: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8007 ac_status=$?
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:8011: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:8014: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_func_alloca_works=yes
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 ac_cv_func_alloca_works=no
8022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024 echo "$as_me:8024: result: $ac_cv_func_alloca_works" >&5
8025 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8027 if test $ac_cv_func_alloca_works = yes; then
8029 cat >>confdefs.h <<\EOF
8030 #define HAVE_ALLOCA 1
8033 else
8034 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8035 # that cause trouble. Some versions do not even contain alloca or
8036 # contain a buggy version. If you still want to use their alloca,
8037 # use ar to extract alloca.o from them instead of compiling alloca.c.
8039 ALLOCA=alloca.$ac_objext
8041 cat >>confdefs.h <<\EOF
8042 #define C_ALLOCA 1
8045 echo "$as_me:8045: checking whether \`alloca.c' needs Cray hooks" >&5
8046 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8047 if test "${ac_cv_os_cray+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line 8051 "configure"
8052 #include "confdefs.h"
8053 #if defined(CRAY) && ! defined(CRAY2)
8054 webecray
8055 #else
8056 wenotbecray
8057 #endif
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 egrep "webecray" >/dev/null 2>&1; then
8062 ac_cv_os_cray=yes
8063 else
8064 ac_cv_os_cray=no
8066 rm -f conftest*
8069 echo "$as_me:8069: result: $ac_cv_os_cray" >&5
8070 echo "${ECHO_T}$ac_cv_os_cray" >&6
8071 if test $ac_cv_os_cray = yes; then
8072 for ac_func in _getb67 GETB67 getb67; do
8073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8074 echo "$as_me:8074: checking for $ac_func" >&5
8075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_var+set}\" = set"; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 cat >conftest.$ac_ext <<_ACEOF
8080 #line 8080 "configure"
8081 #include "confdefs.h"
8082 /* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char $ac_func (); below. */
8084 #include <assert.h>
8085 /* Override any gcc2 internal prototype to avoid an error. */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091 char $ac_func ();
8092 char (*f) ();
8095 main ()
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101 choke me
8102 #else
8103 f = $ac_func;
8104 #endif
8107 return 0;
8109 _ACEOF
8110 rm -f conftest.$ac_objext conftest$ac_exeext
8111 if { (eval echo "$as_me:8111: \"$ac_link\"") >&5
8112 (eval $ac_link) 2>&5
8113 ac_status=$?
8114 echo "$as_me:8114: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -s conftest$ac_exeext'
8117 { (eval echo "$as_me:8117: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_var=yes"
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8126 eval "$as_ac_var=no"
8128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8130 echo "$as_me:8130: result: `eval echo '${'$as_ac_var'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8132 if test `eval echo '${'$as_ac_var'}'` = yes; then
8134 cat >>confdefs.h <<EOF
8135 #define CRAY_STACKSEG_END $ac_func
8138 break
8141 done
8144 echo "$as_me:8144: checking stack direction for C alloca" >&5
8145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8146 if test "${ac_cv_c_stack_direction+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 if test "$cross_compiling" = yes; then
8150 ac_cv_c_stack_direction=0
8151 else
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line 8153 "configure"
8154 #include "confdefs.h"
8156 find_stack_direction ()
8158 static char *addr = 0;
8159 auto char dummy;
8160 if (addr == 0)
8162 addr = &dummy;
8163 return find_stack_direction ();
8165 else
8166 return (&dummy > addr) ? 1 : -1;
8170 main ()
8172 exit (find_stack_direction () < 0);
8174 _ACEOF
8175 rm -f conftest$ac_exeext
8176 if { (eval echo "$as_me:8176: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>&5
8178 ac_status=$?
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8181 { (eval echo "$as_me:8181: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_c_stack_direction=1
8187 else
8188 echo "$as_me: program exited with status $ac_status" >&5
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 ac_cv_c_stack_direction=-1
8193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8196 echo "$as_me:8196: result: $ac_cv_c_stack_direction" >&5
8197 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8199 cat >>confdefs.h <<EOF
8200 #define STACK_DIRECTION $ac_cv_c_stack_direction
8205 # fmod, logb, and frexp are found in -lm on most systems.
8206 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8208 echo "$as_me:8208: checking for sqrt in -lm" >&5
8209 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8210 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 ac_check_lib_save_LIBS=$LIBS
8214 LIBS="-lm $LIBS"
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8219 /* Override any gcc2 internal prototype to avoid an error. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8225 char sqrt ();
8227 main ()
8229 sqrt ();
8231 return 0;
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:8235: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:8241: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:8244: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_lib_m_sqrt=yes
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 ac_cv_lib_m_sqrt=no
8252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 echo "$as_me:8255: result: $ac_cv_lib_m_sqrt" >&5
8256 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8257 if test $ac_cv_lib_m_sqrt = yes; then
8258 cat >>confdefs.h <<EOF
8259 #define HAVE_LIBM 1
8262 LIBS="-lm $LIBS"
8266 # Check for mail-locking functions in a "mail" library
8268 echo "$as_me:8268: checking for maillock in -lmail" >&5
8269 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8270 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 ac_check_lib_save_LIBS=$LIBS
8274 LIBS="-lmail $LIBS"
8275 cat >conftest.$ac_ext <<_ACEOF
8276 #line 8276 "configure"
8277 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8285 char maillock ();
8287 main ()
8289 maillock ();
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:8295: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 echo "$as_me:8298: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:8301: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:8304: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_lib_mail_maillock=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 ac_cv_lib_mail_maillock=no
8312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 echo "$as_me:8315: result: $ac_cv_lib_mail_maillock" >&5
8316 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8317 if test $ac_cv_lib_mail_maillock = yes; then
8318 cat >>confdefs.h <<EOF
8319 #define HAVE_LIBMAIL 1
8322 LIBS="-lmail $LIBS"
8326 echo "$as_me:8326: checking for maillock in -llockfile" >&5
8327 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8328 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-llockfile $LIBS"
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line 8334 "configure"
8335 #include "confdefs.h"
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8343 char maillock ();
8345 main ()
8347 maillock ();
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:8353: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8355 ac_status=$?
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:8359: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_lockfile_maillock=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8368 ac_cv_lib_lockfile_maillock=no
8370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8371 LIBS=$ac_check_lib_save_LIBS
8373 echo "$as_me:8373: result: $ac_cv_lib_lockfile_maillock" >&5
8374 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8375 if test $ac_cv_lib_lockfile_maillock = yes; then
8376 cat >>confdefs.h <<EOF
8377 #define HAVE_LIBLOCKFILE 1
8380 LIBS="-llockfile $LIBS"
8384 # If we have the shared liblockfile, assume we must use it for mail
8385 # locking (e.g. Debian). If we couldn't link against liblockfile
8386 # (no liblockfile.a installed), ensure that we don't need to.
8387 if test "$ac_cv_lib_lockfile_maillock" = no; then
8388 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8389 set dummy liblockfile.so; ac_word=$2
8390 echo "$as_me:8390: checking for $ac_word" >&5
8391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8392 if test "${ac_cv_prog_liblockfile+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 if test -n "$liblockfile"; then
8396 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8397 else
8398 ac_save_IFS=$IFS; IFS=$ac_path_separator
8399 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8400 for ac_dir in $ac_dummy; do
8401 IFS=$ac_save_IFS
8402 test -z "$ac_dir" && ac_dir=.
8403 $as_executable_p "$ac_dir/$ac_word" || continue
8404 ac_cv_prog_liblockfile="yes"
8405 echo "$as_me:8405: found $ac_dir/$ac_word" >&5
8406 break
8407 done
8409 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8412 liblockfile=$ac_cv_prog_liblockfile
8413 if test -n "$liblockfile"; then
8414 echo "$as_me:8414: result: $liblockfile" >&5
8415 echo "${ECHO_T}$liblockfile" >&6
8416 else
8417 echo "$as_me:8417: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8421 if test $ac_cv_prog_liblockfile = yes; then
8422 { { echo "$as_me:8422: error: Shared liblockfile found but can't link against it.
8423 This probably means that movemail could lose mail.
8424 There may be a \`development' package to install containing liblockfile." >&5
8425 echo "$as_me: error: Shared liblockfile found but can't link against it.
8426 This probably means that movemail could lose mail.
8427 There may be a \`development' package to install containing liblockfile." >&2;}
8428 { (exit 1); exit 1; }; }
8429 else
8430 cat >>confdefs.h <<\EOF
8431 #define LIBMAIL -llockfile
8435 else :
8438 for ac_func in touchlock
8440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8441 echo "$as_me:8441: checking for $ac_func" >&5
8442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8443 if eval "test \"\${$as_ac_var+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446 cat >conftest.$ac_ext <<_ACEOF
8447 #line 8447 "configure"
8448 #include "confdefs.h"
8449 /* System header to define __stub macros and hopefully few prototypes,
8450 which can conflict with char $ac_func (); below. */
8451 #include <assert.h>
8452 /* Override any gcc2 internal prototype to avoid an error. */
8453 #ifdef __cplusplus
8454 extern "C"
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8458 char $ac_func ();
8459 char (*f) ();
8462 main ()
8464 /* The GNU C library defines this for functions which it implements
8465 to always fail with ENOSYS. Some functions are actually named
8466 something starting with __ and the normal name is an alias. */
8467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8468 choke me
8469 #else
8470 f = $ac_func;
8471 #endif
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:8478: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8480 ac_status=$?
8481 echo "$as_me:8481: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:8484: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:8487: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 eval "$as_ac_var=yes"
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8493 eval "$as_ac_var=no"
8495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8497 echo "$as_me:8497: result: `eval echo '${'$as_ac_var'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8499 if test `eval echo '${'$as_ac_var'}'` = yes; then
8500 cat >>confdefs.h <<EOF
8501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8505 done
8507 for ac_header in maillock.h
8509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8510 echo "$as_me:8510: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8518 #include <$ac_header>
8519 _ACEOF
8520 if { (eval echo "$as_me:8520: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522 ac_status=$?
8523 egrep -v '^ *\+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:8526: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 else
8531 ac_cpp_err=
8533 else
8534 ac_cpp_err=yes
8536 if test -z "$ac_cpp_err"; then
8537 eval "$as_ac_Header=yes"
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 eval "$as_ac_Header=no"
8543 rm -f conftest.err conftest.$ac_ext
8545 echo "$as_me:8545: result: `eval echo '${'$as_ac_Header'}'`" >&5
8546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8548 cat >>confdefs.h <<EOF
8549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8553 done
8555 for ac_func in gethostname getdomainname dup2 \
8556 rename closedir mkdir rmdir sysinfo \
8557 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8558 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8559 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8560 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8561 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8562 gai_strerror mkstemp getline getdelim
8564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8565 echo "$as_me:8565: checking for $ac_func" >&5
8566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8567 if eval "test \"\${$as_ac_var+set}\" = set"; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line 8571 "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char $ac_func (); below. */
8575 #include <assert.h>
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char $ac_func ();
8583 char (*f) ();
8586 main ()
8588 /* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592 choke me
8593 #else
8594 f = $ac_func;
8595 #endif
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:8602: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8604 ac_status=$?
8605 echo "$as_me:8605: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:8608: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 eval "$as_ac_var=yes"
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 eval "$as_ac_var=no"
8619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 echo "$as_me:8621: result: `eval echo '${'$as_ac_var'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8623 if test `eval echo '${'$as_ac_var'}'` = yes; then
8624 cat >>confdefs.h <<EOF
8625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8629 done
8631 for ac_header in sys/un.h
8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 echo "$as_me:8634: checking for $ac_header" >&5
8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line 8640 "configure"
8641 #include "confdefs.h"
8642 #include <$ac_header>
8643 _ACEOF
8644 if { (eval echo "$as_me:8644: \"$ac_cpp conftest.$ac_ext\"") >&5
8645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8646 ac_status=$?
8647 egrep -v '^ *\+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 (exit $ac_status); } >/dev/null; then
8652 if test -s conftest.err; then
8653 ac_cpp_err=$ac_c_preproc_warn_flag
8654 else
8655 ac_cpp_err=
8657 else
8658 ac_cpp_err=yes
8660 if test -z "$ac_cpp_err"; then
8661 eval "$as_ac_Header=yes"
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 eval "$as_ac_Header=no"
8667 rm -f conftest.err conftest.$ac_ext
8669 echo "$as_me:8669: result: `eval echo '${'$as_ac_Header'}'`" >&5
8670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672 cat >>confdefs.h <<EOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8677 done
8679 for ac_header in sys/time.h unistd.h
8681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 echo "$as_me:8682: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690 #include <$ac_header>
8691 _ACEOF
8692 if { (eval echo "$as_me:8692: \"$ac_cpp conftest.$ac_ext\"") >&5
8693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8694 ac_status=$?
8695 egrep -v '^ *\+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:8698: \$? = $ac_status" >&5
8699 (exit $ac_status); } >/dev/null; then
8700 if test -s conftest.err; then
8701 ac_cpp_err=$ac_c_preproc_warn_flag
8702 else
8703 ac_cpp_err=
8705 else
8706 ac_cpp_err=yes
8708 if test -z "$ac_cpp_err"; then
8709 eval "$as_ac_Header=yes"
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 eval "$as_ac_Header=no"
8715 rm -f conftest.err conftest.$ac_ext
8717 echo "$as_me:8717: result: `eval echo '${'$as_ac_Header'}'`" >&5
8718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720 cat >>confdefs.h <<EOF
8721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8725 done
8727 for ac_func in alarm
8729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8730 echo "$as_me:8730: checking for $ac_func" >&5
8731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8732 if eval "test \"\${$as_ac_var+set}\" = set"; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line 8736 "configure"
8737 #include "confdefs.h"
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func (); below. */
8740 #include <assert.h>
8741 /* Override any gcc2 internal prototype to avoid an error. */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char $ac_func ();
8748 char (*f) ();
8751 main ()
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8757 choke me
8758 #else
8759 f = $ac_func;
8760 #endif
8763 return 0;
8765 _ACEOF
8766 rm -f conftest.$ac_objext conftest$ac_exeext
8767 if { (eval echo "$as_me:8767: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>&5
8769 ac_status=$?
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:8773: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:8776: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 eval "$as_ac_var=yes"
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8782 eval "$as_ac_var=no"
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8786 echo "$as_me:8786: result: `eval echo '${'$as_ac_var'}'`" >&5
8787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8788 if test `eval echo '${'$as_ac_var'}'` = yes; then
8789 cat >>confdefs.h <<EOF
8790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 done
8796 echo "$as_me:8796: checking for working mktime" >&5
8797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8798 if test "${ac_cv_func_working_mktime+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 if test "$cross_compiling" = yes; then
8802 ac_cv_func_working_mktime=no
8803 else
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line 8805 "configure"
8806 #include "confdefs.h"
8807 /* Test program from Paul Eggert and Tony Leneis. */
8808 #if TIME_WITH_SYS_TIME
8809 # include <sys/time.h>
8810 # include <time.h>
8811 #else
8812 # if HAVE_SYS_TIME_H
8813 # include <sys/time.h>
8814 # else
8815 # include <time.h>
8816 # endif
8817 #endif
8819 #if HAVE_UNISTD_H
8820 # include <unistd.h>
8821 #endif
8823 #if !HAVE_ALARM
8824 # define alarm(X) /* empty */
8825 #endif
8827 /* Work around redefinition to rpl_putenv by other config tests. */
8828 #undef putenv
8830 static time_t time_t_max;
8832 /* Values we'll use to set the TZ environment variable. */
8833 static const char *const tz_strings[] = {
8834 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8835 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8839 /* Fail if mktime fails to convert a date in the spring-forward gap.
8840 Based on a problem report from Andreas Jaeger. */
8841 static void
8842 spring_forward_gap ()
8844 /* glibc (up to about 1998-10-07) failed this test. */
8845 struct tm tm;
8847 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8848 instead of "TZ=America/Vancouver" in order to detect the bug even
8849 on systems that don't support the Olson extension, or don't have the
8850 full zoneinfo tables installed. */
8851 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8853 tm.tm_year = 98;
8854 tm.tm_mon = 3;
8855 tm.tm_mday = 5;
8856 tm.tm_hour = 2;
8857 tm.tm_min = 0;
8858 tm.tm_sec = 0;
8859 tm.tm_isdst = -1;
8860 if (mktime (&tm) == (time_t)-1)
8861 exit (1);
8864 static void
8865 mktime_test (now)
8866 time_t now;
8868 struct tm *lt;
8869 if ((lt = localtime (&now)) && mktime (lt) != now)
8870 exit (1);
8871 now = time_t_max - now;
8872 if ((lt = localtime (&now)) && mktime (lt) != now)
8873 exit (1);
8876 static void
8877 irix_6_4_bug ()
8879 /* Based on code from Ariel Faigon. */
8880 struct tm tm;
8881 tm.tm_year = 96;
8882 tm.tm_mon = 3;
8883 tm.tm_mday = 0;
8884 tm.tm_hour = 0;
8885 tm.tm_min = 0;
8886 tm.tm_sec = 0;
8887 tm.tm_isdst = -1;
8888 mktime (&tm);
8889 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8890 exit (1);
8893 static void
8894 bigtime_test (j)
8895 int j;
8897 struct tm tm;
8898 time_t now;
8899 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8900 now = mktime (&tm);
8901 if (now != (time_t) -1)
8903 struct tm *lt = localtime (&now);
8904 if (! (lt
8905 && lt->tm_year == tm.tm_year
8906 && lt->tm_mon == tm.tm_mon
8907 && lt->tm_mday == tm.tm_mday
8908 && lt->tm_hour == tm.tm_hour
8909 && lt->tm_min == tm.tm_min
8910 && lt->tm_sec == tm.tm_sec
8911 && lt->tm_yday == tm.tm_yday
8912 && lt->tm_wday == tm.tm_wday
8913 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8914 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8915 exit (1);
8920 main ()
8922 time_t t, delta;
8923 int i, j;
8925 /* This test makes some buggy mktime implementations loop.
8926 Give up after 60 seconds; a mktime slower than that
8927 isn't worth using anyway. */
8928 alarm (60);
8930 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8931 continue;
8932 time_t_max--;
8933 delta = time_t_max / 997; /* a suitable prime number */
8934 for (i = 0; i < N_STRINGS; i++)
8936 if (tz_strings[i])
8937 putenv (tz_strings[i]);
8939 for (t = 0; t <= time_t_max - delta; t += delta)
8940 mktime_test (t);
8941 mktime_test ((time_t) 60 * 60);
8942 mktime_test ((time_t) 60 * 60 * 24);
8944 for (j = 1; 0 < j; j *= 2)
8945 bigtime_test (j);
8946 bigtime_test (j - 1);
8948 irix_6_4_bug ();
8949 spring_forward_gap ();
8950 exit (0);
8952 _ACEOF
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:8954: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8956 ac_status=$?
8957 echo "$as_me:8957: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959 { (eval echo "$as_me:8959: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:8962: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_func_working_mktime=yes
8965 else
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_cv_func_working_mktime=no
8971 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8974 echo "$as_me:8974: result: $ac_cv_func_working_mktime" >&5
8975 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8976 if test $ac_cv_func_working_mktime = no; then
8977 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8980 if test "$ac_cv_func_working_mktime" = no; then
8982 cat >>confdefs.h <<\EOF
8983 #define BROKEN_MKTIME 1
8988 ac_have_func=no # yes means we've found a way to get the load average.
8990 ac_save_LIBS=$LIBS
8992 # Check for getloadavg, but be sure not to touch the cache variable.
8993 (echo "$as_me:8993: checking for getloadavg" >&5
8994 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8995 if test "${ac_cv_func_getloadavg+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 cat >conftest.$ac_ext <<_ACEOF
8999 #line 8999 "configure"
9000 #include "confdefs.h"
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char getloadavg (); below. */
9003 #include <assert.h>
9004 /* Override any gcc2 internal prototype to avoid an error. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9010 char getloadavg ();
9011 char (*f) ();
9014 main ()
9016 /* The GNU C library defines this for functions which it implements
9017 to always fail with ENOSYS. Some functions are actually named
9018 something starting with __ and the normal name is an alias. */
9019 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9020 choke me
9021 #else
9022 f = getloadavg;
9023 #endif
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (eval echo "$as_me:9030: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>&5
9032 ac_status=$?
9033 echo "$as_me:9033: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -s conftest$ac_exeext'
9036 { (eval echo "$as_me:9036: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:9039: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_func_getloadavg=yes
9042 else
9043 echo "$as_me: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9045 ac_cv_func_getloadavg=no
9047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9049 echo "$as_me:9049: result: $ac_cv_func_getloadavg" >&5
9050 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9051 if test $ac_cv_func_getloadavg = yes; then
9052 exit 0
9053 else
9054 exit 1
9056 ) && ac_have_func=yes
9058 # On HPUX9, an unprivileged user can get load averages through this function.
9060 for ac_func in pstat_getdynamic
9062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9063 echo "$as_me:9063: checking for $ac_func" >&5
9064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_var+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 cat >conftest.$ac_ext <<_ACEOF
9069 #line 9069 "configure"
9070 #include "confdefs.h"
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below. */
9073 #include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9080 char $ac_func ();
9081 char (*f) ();
9084 main ()
9086 /* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9090 choke me
9091 #else
9092 f = $ac_func;
9093 #endif
9096 return 0;
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (eval echo "$as_me:9100: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>&5
9102 ac_status=$?
9103 echo "$as_me:9103: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:9106: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 eval "$as_ac_var=yes"
9112 else
9113 echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9115 eval "$as_ac_var=no"
9117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9119 echo "$as_me:9119: result: `eval echo '${'$as_ac_var'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9121 if test `eval echo '${'$as_ac_var'}'` = yes; then
9122 cat >>confdefs.h <<EOF
9123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9127 done
9129 # Solaris has libkstat which does not require root.
9131 echo "$as_me:9131: checking for kstat_open in -lkstat" >&5
9132 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9133 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-lkstat $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9142 /* Override any gcc2 internal prototype to avoid an error. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char kstat_open ();
9150 main ()
9152 kstat_open ();
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:9158: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>&5
9160 ac_status=$?
9161 echo "$as_me:9161: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:9164: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_kstat_kstat_open=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9173 ac_cv_lib_kstat_kstat_open=no
9175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9178 echo "$as_me:9178: result: $ac_cv_lib_kstat_kstat_open" >&5
9179 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9180 if test $ac_cv_lib_kstat_kstat_open = yes; then
9181 cat >>confdefs.h <<EOF
9182 #define HAVE_LIBKSTAT 1
9185 LIBS="-lkstat $LIBS"
9189 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9191 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9192 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9193 # to get the right answer into the cache.
9194 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9195 if test $ac_have_func = no; then
9196 echo "$as_me:9196: checking for elf_begin in -lelf" >&5
9197 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9198 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-lelf $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9204 #line 9204 "configure"
9205 #include "confdefs.h"
9207 /* Override any gcc2 internal prototype to avoid an error. */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9213 char elf_begin ();
9215 main ()
9217 elf_begin ();
9219 return 0;
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:9223: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>&5
9225 ac_status=$?
9226 echo "$as_me:9226: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -s conftest$ac_exeext'
9229 { (eval echo "$as_me:9229: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:9232: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_cv_lib_elf_elf_begin=yes
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 ac_cv_lib_elf_elf_begin=no
9240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9243 echo "$as_me:9243: result: $ac_cv_lib_elf_elf_begin" >&5
9244 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9245 if test $ac_cv_lib_elf_elf_begin = yes; then
9246 LIBS="-lelf $LIBS"
9250 if test $ac_have_func = no; then
9251 echo "$as_me:9251: checking for kvm_open in -lkvm" >&5
9252 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9253 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 ac_check_lib_save_LIBS=$LIBS
9257 LIBS="-lkvm $LIBS"
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9268 char kvm_open ();
9270 main ()
9272 kvm_open ();
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:9278: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>&5
9280 ac_status=$?
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:9284: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:9287: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_lib_kvm_kvm_open=yes
9290 else
9291 echo "$as_me: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9293 ac_cv_lib_kvm_kvm_open=no
9295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_lib_save_LIBS
9298 echo "$as_me:9298: result: $ac_cv_lib_kvm_kvm_open" >&5
9299 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9300 if test $ac_cv_lib_kvm_kvm_open = yes; then
9301 LIBS="-lkvm $LIBS"
9304 # Check for the 4.4BSD definition of getloadavg.
9305 echo "$as_me:9305: checking for getloadavg in -lutil" >&5
9306 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9307 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lutil $LIBS"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9322 char getloadavg ();
9324 main ()
9326 getloadavg ();
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (eval echo "$as_me:9332: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>&5
9334 ac_status=$?
9335 echo "$as_me:9335: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:9338: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:9341: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_lib_util_getloadavg=yes
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 ac_cv_lib_util_getloadavg=no
9349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9352 echo "$as_me:9352: result: $ac_cv_lib_util_getloadavg" >&5
9353 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9354 if test $ac_cv_lib_util_getloadavg = yes; then
9355 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9360 if test $ac_have_func = no; then
9361 # There is a commonly available library for RS/6000 AIX.
9362 # Since it is not a standard part of AIX, it might be installed locally.
9363 ac_getloadavg_LIBS=$LIBS
9364 LIBS="-L/usr/local/lib $LIBS"
9365 echo "$as_me:9365: checking for getloadavg in -lgetloadavg" >&5
9366 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9367 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 ac_check_lib_save_LIBS=$LIBS
9371 LIBS="-lgetloadavg $LIBS"
9372 cat >conftest.$ac_ext <<_ACEOF
9373 #line 9373 "configure"
9374 #include "confdefs.h"
9376 /* Override any gcc2 internal prototype to avoid an error. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9382 char getloadavg ();
9384 main ()
9386 getloadavg ();
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:9392: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9394 ac_status=$?
9395 echo "$as_me:9395: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:9398: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_getloadavg_getloadavg=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 ac_cv_lib_getloadavg_getloadavg=no
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 echo "$as_me:9412: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9413 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9414 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9415 LIBS="-lgetloadavg $LIBS"
9416 else
9417 LIBS=$ac_getloadavg_LIBS
9422 # Make sure it is really in the library, if we think we found it,
9423 # otherwise set up the replacement function.
9425 for ac_func in getloadavg
9427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9428 echo "$as_me:9428: checking for $ac_func" >&5
9429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_var+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 cat >conftest.$ac_ext <<_ACEOF
9434 #line 9434 "configure"
9435 #include "confdefs.h"
9436 /* System header to define __stub macros and hopefully few prototypes,
9437 which can conflict with char $ac_func (); below. */
9438 #include <assert.h>
9439 /* Override any gcc2 internal prototype to avoid an error. */
9440 #ifdef __cplusplus
9441 extern "C"
9442 #endif
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char $ac_func ();
9446 char (*f) ();
9449 main ()
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9455 choke me
9456 #else
9457 f = $ac_func;
9458 #endif
9461 return 0;
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:9465: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9467 ac_status=$?
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:9471: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:9474: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 eval "$as_ac_var=yes"
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 eval "$as_ac_var=no"
9482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9484 echo "$as_me:9484: result: `eval echo '${'$as_ac_var'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9486 if test `eval echo '${'$as_ac_var'}'` = yes; then
9487 cat >>confdefs.h <<EOF
9488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9491 else
9492 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9494 cat >>confdefs.h <<\EOF
9495 #define C_GETLOADAVG 1
9498 # Figure out what our getloadavg.c needs.
9499 ac_have_func=no
9500 echo "$as_me:9500: checking for sys/dg_sys_info.h" >&5
9501 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9502 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 cat >conftest.$ac_ext <<_ACEOF
9506 #line 9506 "configure"
9507 #include "confdefs.h"
9508 #include <sys/dg_sys_info.h>
9509 _ACEOF
9510 if { (eval echo "$as_me:9510: \"$ac_cpp conftest.$ac_ext\"") >&5
9511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9512 ac_status=$?
9513 egrep -v '^ *\+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 (exit $ac_status); } >/dev/null; then
9518 if test -s conftest.err; then
9519 ac_cpp_err=$ac_c_preproc_warn_flag
9520 else
9521 ac_cpp_err=
9523 else
9524 ac_cpp_err=yes
9526 if test -z "$ac_cpp_err"; then
9527 ac_cv_header_sys_dg_sys_info_h=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 ac_cv_header_sys_dg_sys_info_h=no
9533 rm -f conftest.err conftest.$ac_ext
9535 echo "$as_me:9535: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9537 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9538 ac_have_func=yes
9540 cat >>confdefs.h <<\EOF
9541 #define DGUX 1
9544 echo "$as_me:9544: checking for dg_sys_info in -ldgc" >&5
9545 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9546 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-ldgc $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9555 /* Override any gcc2 internal prototype to avoid an error. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char dg_sys_info ();
9563 main ()
9565 dg_sys_info ();
9567 return 0;
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:9571: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9573 ac_status=$?
9574 echo "$as_me:9574: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:9577: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_dgc_dg_sys_info=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9586 ac_cv_lib_dgc_dg_sys_info=no
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9591 echo "$as_me:9591: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9592 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9593 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9594 cat >>confdefs.h <<EOF
9595 #define HAVE_LIBDGC 1
9598 LIBS="-ldgc $LIBS"
9604 echo "$as_me:9604: checking for locale.h" >&5
9605 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_locale_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line 9610 "configure"
9611 #include "confdefs.h"
9612 #include <locale.h>
9613 _ACEOF
9614 if { (eval echo "$as_me:9614: \"$ac_cpp conftest.$ac_ext\"") >&5
9615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9616 ac_status=$?
9617 egrep -v '^ *\+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:9620: \$? = $ac_status" >&5
9621 (exit $ac_status); } >/dev/null; then
9622 if test -s conftest.err; then
9623 ac_cpp_err=$ac_c_preproc_warn_flag
9624 else
9625 ac_cpp_err=
9627 else
9628 ac_cpp_err=yes
9630 if test -z "$ac_cpp_err"; then
9631 ac_cv_header_locale_h=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_header_locale_h=no
9637 rm -f conftest.err conftest.$ac_ext
9639 echo "$as_me:9639: result: $ac_cv_header_locale_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9642 for ac_func in setlocale
9644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9645 echo "$as_me:9645: checking for $ac_func" >&5
9646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9647 if eval "test \"\${$as_ac_var+set}\" = set"; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char $ac_func (); below. */
9655 #include <assert.h>
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662 char $ac_func ();
9663 char (*f) ();
9666 main ()
9668 /* The GNU C library defines this for functions which it implements
9669 to always fail with ENOSYS. Some functions are actually named
9670 something starting with __ and the normal name is an alias. */
9671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9672 choke me
9673 #else
9674 f = $ac_func;
9675 #endif
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (eval echo "$as_me:9682: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>&5
9684 ac_status=$?
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:9688: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 eval "$as_ac_var=no"
9699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9701 echo "$as_me:9701: result: `eval echo '${'$as_ac_var'}'`" >&5
9702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9703 if test `eval echo '${'$as_ac_var'}'` = yes; then
9704 cat >>confdefs.h <<EOF
9705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9709 done
9711 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9712 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9713 # Irix 4.0.5F has the header but not the library.
9714 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9715 ac_have_func=yes
9717 cat >>confdefs.h <<\EOF
9718 #define SVR4 1
9723 if test $ac_have_func = no; then
9724 echo "$as_me:9724: checking for inq_stats/cpustats.h" >&5
9725 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9726 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line 9730 "configure"
9731 #include "confdefs.h"
9732 #include <inq_stats/cpustats.h>
9733 _ACEOF
9734 if { (eval echo "$as_me:9734: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736 ac_status=$?
9737 egrep -v '^ *\+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 else
9745 ac_cpp_err=
9747 else
9748 ac_cpp_err=yes
9750 if test -z "$ac_cpp_err"; then
9751 ac_cv_header_inq_stats_cpustats_h=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 ac_cv_header_inq_stats_cpustats_h=no
9757 rm -f conftest.err conftest.$ac_ext
9759 echo "$as_me:9759: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9760 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9761 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9762 ac_have_func=yes
9764 cat >>confdefs.h <<\EOF
9765 #define UMAX 1
9768 cat >>confdefs.h <<\EOF
9769 #define UMAX4_3 1
9776 if test $ac_have_func = no; then
9777 echo "$as_me:9777: checking for sys/cpustats.h" >&5
9778 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9779 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 #line 9783 "configure"
9784 #include "confdefs.h"
9785 #include <sys/cpustats.h>
9786 _ACEOF
9787 if { (eval echo "$as_me:9787: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789 ac_status=$?
9790 egrep -v '^ *\+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:9793: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9797 else
9798 ac_cpp_err=
9800 else
9801 ac_cpp_err=yes
9803 if test -z "$ac_cpp_err"; then
9804 ac_cv_header_sys_cpustats_h=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 ac_cv_header_sys_cpustats_h=no
9810 rm -f conftest.err conftest.$ac_ext
9812 echo "$as_me:9812: result: $ac_cv_header_sys_cpustats_h" >&5
9813 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9814 if test $ac_cv_header_sys_cpustats_h = yes; then
9815 ac_have_func=yes; cat >>confdefs.h <<\EOF
9816 #define UMAX 1
9823 if test $ac_have_func = no; then
9825 for ac_header in mach/mach.h
9827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9828 echo "$as_me:9828: checking for $ac_header" >&5
9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 cat >conftest.$ac_ext <<_ACEOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9836 #include <$ac_header>
9837 _ACEOF
9838 if { (eval echo "$as_me:9838: \"$ac_cpp conftest.$ac_ext\"") >&5
9839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9840 ac_status=$?
9841 egrep -v '^ *\+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:9844: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null; then
9846 if test -s conftest.err; then
9847 ac_cpp_err=$ac_c_preproc_warn_flag
9848 else
9849 ac_cpp_err=
9851 else
9852 ac_cpp_err=yes
9854 if test -z "$ac_cpp_err"; then
9855 eval "$as_ac_Header=yes"
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 eval "$as_ac_Header=no"
9861 rm -f conftest.err conftest.$ac_ext
9863 echo "$as_me:9863: result: `eval echo '${'$as_ac_Header'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866 cat >>confdefs.h <<EOF
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 done
9875 for ac_header in nlist.h
9877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 echo "$as_me:9878: checking for $ac_header" >&5
9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 cat >conftest.$ac_ext <<_ACEOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886 #include <$ac_header>
9887 _ACEOF
9888 if { (eval echo "$as_me:9888: \"$ac_cpp conftest.$ac_ext\"") >&5
9889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9890 ac_status=$?
9891 egrep -v '^ *\+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null; then
9896 if test -s conftest.err; then
9897 ac_cpp_err=$ac_c_preproc_warn_flag
9898 else
9899 ac_cpp_err=
9901 else
9902 ac_cpp_err=yes
9904 if test -z "$ac_cpp_err"; then
9905 eval "$as_ac_Header=yes"
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 eval "$as_ac_Header=no"
9911 rm -f conftest.err conftest.$ac_ext
9913 echo "$as_me:9913: result: `eval echo '${'$as_ac_Header'}'`" >&5
9914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9916 cat >>confdefs.h <<EOF
9917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 echo "$as_me:9919: checking for struct nlist.n_un.n_name" >&5
9920 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9921 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line 9925 "configure"
9926 #include "confdefs.h"
9927 #include <nlist.h>
9930 main ()
9932 static struct nlist ac_aggr;
9933 if (ac_aggr.n_un.n_name)
9934 return 0;
9936 return 0;
9938 _ACEOF
9939 rm -f conftest.$ac_objext
9940 if { (eval echo "$as_me:9940: \"$ac_compile\"") >&5
9941 (eval $ac_compile) 2>&5
9942 ac_status=$?
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -s conftest.$ac_objext'
9946 { (eval echo "$as_me:9946: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:9949: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_member_struct_nlist_n_un_n_name=yes
9952 else
9953 echo "$as_me: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9955 ac_cv_member_struct_nlist_n_un_n_name=no
9957 rm -f conftest.$ac_objext conftest.$ac_ext
9959 echo "$as_me:9959: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9960 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9961 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9963 cat >>confdefs.h <<EOF
9964 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9967 cat >>confdefs.h <<\EOF
9968 #define NLIST_NAME_UNION 1
9974 done
9977 done
9979 # Some definitions of getloadavg require that the program be installed setgid.
9980 echo "$as_me:9980: checking whether getloadavg requires setgid" >&5
9981 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9982 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 cat >conftest.$ac_ext <<_ACEOF
9986 #line 9986 "configure"
9987 #include "confdefs.h"
9988 #include "$srcdir/getloadavg.c"
9989 #ifdef LDAV_PRIVILEGED
9990 Yowza Am I SETGID yet
9991 #endif
9992 _ACEOF
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9995 ac_cv_func_getloadavg_setgid=yes
9996 else
9997 ac_cv_func_getloadavg_setgid=no
9999 rm -f conftest*
10002 echo "$as_me:10002: result: $ac_cv_func_getloadavg_setgid" >&5
10003 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
10004 if test $ac_cv_func_getloadavg_setgid = yes; then
10005 NEED_SETGID=true
10007 cat >>confdefs.h <<\EOF
10008 #define GETLOADAVG_PRIVILEGED 1
10011 else
10012 NEED_SETGID=false
10015 if test $ac_cv_func_getloadavg_setgid = yes; then
10016 echo "$as_me:10016: checking group of /dev/kmem" >&5
10017 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
10018 if test "${ac_cv_group_kmem+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
10022 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10023 # If we got an error (system does not support symlinks), try without -L.
10024 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10025 ac_cv_group_kmem=`echo $ac_ls_output \
10026 | sed -ne 's/[ ][ ]*/ /g;
10027 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
10028 / /s/.* //;p;'`
10031 echo "$as_me:10031: result: $ac_cv_group_kmem" >&5
10032 echo "${ECHO_T}$ac_cv_group_kmem" >&6
10033 KMEM_GROUP=$ac_cv_group_kmem
10035 if test "x$ac_save_LIBS" = x; then
10036 GETLOADAVG_LIBS=$LIBS
10037 else
10038 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
10040 LIBS=$ac_save_LIBS
10042 echo "$as_me:10042: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10043 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10044 if test "${ac_cv_sys_largefile_source+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047 while :; do
10048 ac_cv_sys_largefile_source=no
10049 cat >conftest.$ac_ext <<_ACEOF
10050 #line 10050 "configure"
10051 #include "confdefs.h"
10052 #include <stdio.h>
10054 main ()
10056 return !fseeko;
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:10062: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10064 ac_status=$?
10065 echo "$as_me:10065: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:10068: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:10071: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 break
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10079 cat >conftest.$ac_ext <<_ACEOF
10080 #line 10080 "configure"
10081 #include "confdefs.h"
10082 #define _LARGEFILE_SOURCE 1
10083 #include <stdio.h>
10085 main ()
10087 return !fseeko;
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (eval echo "$as_me:10093: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>&5
10095 ac_status=$?
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest.$ac_objext'
10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_sys_largefile_source=1; break
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 rm -f conftest.$ac_objext conftest.$ac_ext
10110 break
10111 done
10113 echo "$as_me:10113: result: $ac_cv_sys_largefile_source" >&5
10114 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10115 if test "$ac_cv_sys_largefile_source" != no; then
10117 cat >>confdefs.h <<EOF
10118 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10122 rm -f conftest*
10124 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10125 # in glibc 2.1.3, but that breaks too many other things.
10126 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10127 echo "$as_me:10127: checking for fseeko" >&5
10128 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10129 if test "${ac_cv_func_fseeko+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line 10133 "configure"
10134 #include "confdefs.h"
10135 #include <stdio.h>
10137 main ()
10139 return fseeko && fseeko (stdin, 0, 0);
10141 return 0;
10143 _ACEOF
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10147 ac_status=$?
10148 echo "$as_me:10148: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:10151: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_func_fseeko=yes
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 ac_cv_func_fseeko=no
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10164 echo "$as_me:10164: result: $ac_cv_func_fseeko" >&5
10165 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10166 if test $ac_cv_func_fseeko = yes; then
10168 cat >>confdefs.h <<\EOF
10169 #define HAVE_FSEEKO 1
10174 # UNIX98 PTYs.
10176 for ac_func in grantpt
10178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 echo "$as_me:10179: checking for $ac_func" >&5
10180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10181 if eval "test \"\${$as_ac_var+set}\" = set"; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 cat >conftest.$ac_ext <<_ACEOF
10185 #line 10185 "configure"
10186 #include "confdefs.h"
10187 /* System header to define __stub macros and hopefully few prototypes,
10188 which can conflict with char $ac_func (); below. */
10189 #include <assert.h>
10190 /* Override any gcc2 internal prototype to avoid an error. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10196 char $ac_func ();
10197 char (*f) ();
10200 main ()
10202 /* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10206 choke me
10207 #else
10208 f = $ac_func;
10209 #endif
10212 return 0;
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:10216: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>&5
10218 ac_status=$?
10219 echo "$as_me:10219: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -s conftest$ac_exeext'
10222 { (eval echo "$as_me:10222: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:10225: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 eval "$as_ac_var=yes"
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 eval "$as_ac_var=no"
10233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10235 echo "$as_me:10235: result: `eval echo '${'$as_ac_var'}'`" >&5
10236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<EOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10243 done
10245 # PTY-related GNU extensions.
10247 for ac_func in getpt
10249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10250 echo "$as_me:10250: checking for $ac_func" >&5
10251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10252 if eval "test \"\${$as_ac_var+set}\" = set"; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line 10256 "configure"
10257 #include "confdefs.h"
10258 /* System header to define __stub macros and hopefully few prototypes,
10259 which can conflict with char $ac_func (); below. */
10260 #include <assert.h>
10261 /* Override any gcc2 internal prototype to avoid an error. */
10262 #ifdef __cplusplus
10263 extern "C"
10264 #endif
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267 char $ac_func ();
10268 char (*f) ();
10271 main ()
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10277 choke me
10278 #else
10279 f = $ac_func;
10280 #endif
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:10287: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10289 ac_status=$?
10290 echo "$as_me:10290: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:10293: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:10296: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 eval "$as_ac_var=yes"
10299 else
10300 echo "$as_me: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 eval "$as_ac_var=no"
10304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10306 echo "$as_me:10306: result: `eval echo '${'$as_ac_var'}'`" >&5
10307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then
10309 cat >>confdefs.h <<EOF
10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10314 done
10316 # Check this now, so that we will NOT find the above functions in ncurses.
10317 # That is because we have not set up to link ncurses in lib-src.
10318 # It's better to believe a function is not available
10319 # than to expect to find it in ncurses.
10321 echo "$as_me:10321: checking for tparm in -lncurses" >&5
10322 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10323 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lncurses $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338 char tparm ();
10340 main ()
10342 tparm ();
10344 return 0;
10346 _ACEOF
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:10348: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10350 ac_status=$?
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_lib_ncurses_tparm=yes
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 ac_cv_lib_ncurses_tparm=no
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_lib_save_LIBS
10368 echo "$as_me:10368: result: $ac_cv_lib_ncurses_tparm" >&5
10369 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10370 if test $ac_cv_lib_ncurses_tparm = yes; then
10371 cat >>confdefs.h <<EOF
10372 #define HAVE_LIBNCURSES 1
10375 LIBS="-lncurses $LIBS"
10379 # Do we need the Hesiod library to provide the support routines?
10380 if test "$with_hesiod" = yes ; then
10381 # Don't set $LIBS here -- see comments above.
10382 resolv=no
10383 echo "$as_me:10383: checking for res_send" >&5
10384 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10385 if test "${ac_cv_func_res_send+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line 10389 "configure"
10390 #include "confdefs.h"
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char res_send (); below. */
10393 #include <assert.h>
10394 /* Override any gcc2 internal prototype to avoid an error. */
10395 #ifdef __cplusplus
10396 extern "C"
10397 #endif
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10400 char res_send ();
10401 char (*f) ();
10404 main ()
10406 /* The GNU C library defines this for functions which it implements
10407 to always fail with ENOSYS. Some functions are actually named
10408 something starting with __ and the normal name is an alias. */
10409 #if defined (__stub_res_send) || defined (__stub___res_send)
10410 choke me
10411 #else
10412 f = res_send;
10413 #endif
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (eval echo "$as_me:10420: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>&5
10422 ac_status=$?
10423 echo "$as_me:10423: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (eval echo "$as_me:10426: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:10429: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_cv_func_res_send=yes
10432 else
10433 echo "$as_me: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 ac_cv_func_res_send=no
10437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10439 echo "$as_me:10439: result: $ac_cv_func_res_send" >&5
10440 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10441 if test $ac_cv_func_res_send = yes; then
10443 else
10444 echo "$as_me:10444: checking for __res_send" >&5
10445 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10446 if test "${ac_cv_func___res_send+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449 cat >conftest.$ac_ext <<_ACEOF
10450 #line 10450 "configure"
10451 #include "confdefs.h"
10452 /* System header to define __stub macros and hopefully few prototypes,
10453 which can conflict with char __res_send (); below. */
10454 #include <assert.h>
10455 /* Override any gcc2 internal prototype to avoid an error. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 /* We use char because int might match the return type of a gcc2
10460 builtin and then its argument prototype would still apply. */
10461 char __res_send ();
10462 char (*f) ();
10465 main ()
10467 /* The GNU C library defines this for functions which it implements
10468 to always fail with ENOSYS. Some functions are actually named
10469 something starting with __ and the normal name is an alias. */
10470 #if defined (__stub___res_send) || defined (__stub_____res_send)
10471 choke me
10472 #else
10473 f = __res_send;
10474 #endif
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:10481: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>&5
10483 ac_status=$?
10484 echo "$as_me:10484: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:10487: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_func___res_send=yes
10493 else
10494 echo "$as_me: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 ac_cv_func___res_send=no
10498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10500 echo "$as_me:10500: result: $ac_cv_func___res_send" >&5
10501 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10502 if test $ac_cv_func___res_send = yes; then
10504 else
10505 echo "$as_me:10505: checking for res_send in -lresolv" >&5
10506 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10507 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 ac_check_lib_save_LIBS=$LIBS
10511 LIBS="-lresolv $LIBS"
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line 10513 "configure"
10514 #include "confdefs.h"
10516 /* Override any gcc2 internal prototype to avoid an error. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 /* We use char because int might match the return type of a gcc2
10521 builtin and then its argument prototype would still apply. */
10522 char res_send ();
10524 main ()
10526 res_send ();
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (eval echo "$as_me:10532: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>&5
10534 ac_status=$?
10535 echo "$as_me:10535: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:10538: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:10541: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_lib_resolv_res_send=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 ac_cv_lib_resolv_res_send=no
10549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10552 echo "$as_me:10552: result: $ac_cv_lib_resolv_res_send" >&5
10553 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10554 if test $ac_cv_lib_resolv_res_send = yes; then
10555 resolv=yes
10556 else
10557 echo "$as_me:10557: checking for __res_send in -lresolv" >&5
10558 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10559 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-lresolv $LIBS"
10564 cat >conftest.$ac_ext <<_ACEOF
10565 #line 10565 "configure"
10566 #include "confdefs.h"
10568 /* Override any gcc2 internal prototype to avoid an error. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 /* We use char because int might match the return type of a gcc2
10573 builtin and then its argument prototype would still apply. */
10574 char __res_send ();
10576 main ()
10578 __res_send ();
10580 return 0;
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:10584: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>&5
10586 ac_status=$?
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:10590: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:10593: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_lib_resolv___res_send=yes
10596 else
10597 echo "$as_me: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 ac_cv_lib_resolv___res_send=no
10601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 echo "$as_me:10604: result: $ac_cv_lib_resolv___res_send" >&5
10605 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10606 if test $ac_cv_lib_resolv___res_send = yes; then
10607 resolv=yes
10616 if test "$resolv" = yes ; then
10617 RESOLVLIB=-lresolv
10619 cat >>confdefs.h <<\EOF
10620 #define HAVE_LIBRESOLV 1
10623 else
10624 RESOLVLIB=
10626 echo "$as_me:10626: checking for hes_getmailhost" >&5
10627 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10628 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 cat >conftest.$ac_ext <<_ACEOF
10632 #line 10632 "configure"
10633 #include "confdefs.h"
10634 /* System header to define __stub macros and hopefully few prototypes,
10635 which can conflict with char hes_getmailhost (); below. */
10636 #include <assert.h>
10637 /* Override any gcc2 internal prototype to avoid an error. */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10643 char hes_getmailhost ();
10644 char (*f) ();
10647 main ()
10649 /* The GNU C library defines this for functions which it implements
10650 to always fail with ENOSYS. Some functions are actually named
10651 something starting with __ and the normal name is an alias. */
10652 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10653 choke me
10654 #else
10655 f = hes_getmailhost;
10656 #endif
10659 return 0;
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:10663: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10665 ac_status=$?
10666 echo "$as_me:10666: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:10669: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:10672: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_func_hes_getmailhost=yes
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 ac_cv_func_hes_getmailhost=no
10680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10682 echo "$as_me:10682: result: $ac_cv_func_hes_getmailhost" >&5
10683 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10684 if test $ac_cv_func_hes_getmailhost = yes; then
10686 else
10687 echo "$as_me:10687: checking for hes_getmailhost in -lhesiod" >&5
10688 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10689 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lhesiod $RESOLVLIB $LIBS"
10694 cat >conftest.$ac_ext <<_ACEOF
10695 #line 10695 "configure"
10696 #include "confdefs.h"
10698 /* Override any gcc2 internal prototype to avoid an error. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 /* We use char because int might match the return type of a gcc2
10703 builtin and then its argument prototype would still apply. */
10704 char hes_getmailhost ();
10706 main ()
10708 hes_getmailhost ();
10710 return 0;
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (eval echo "$as_me:10714: \"$ac_link\"") >&5
10715 (eval $ac_link) 2>&5
10716 ac_status=$?
10717 echo "$as_me:10717: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -s conftest$ac_exeext'
10720 { (eval echo "$as_me:10720: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:10723: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_lib_hesiod_hes_getmailhost=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10729 ac_cv_lib_hesiod_hes_getmailhost=no
10731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 echo "$as_me:10734: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10738 cat >>confdefs.h <<\EOF
10739 #define HAVE_LIBHESIOD 1
10742 else
10750 # These tell us which Kerberos-related libraries to use.
10751 if test "${with_kerberos+set}" = set; then
10753 echo "$as_me:10753: checking for com_err in -lcom_err" >&5
10754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lcom_err $LIBS"
10760 cat >conftest.$ac_ext <<_ACEOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char com_err ();
10772 main ()
10774 com_err ();
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:10780: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>&5
10782 ac_status=$?
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_lib_com_err_com_err=yes
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10795 ac_cv_lib_com_err_com_err=no
10797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 echo "$as_me:10800: result: $ac_cv_lib_com_err_com_err" >&5
10801 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10802 if test $ac_cv_lib_com_err_com_err = yes; then
10803 cat >>confdefs.h <<EOF
10804 #define HAVE_LIBCOM_ERR 1
10807 LIBS="-lcom_err $LIBS"
10811 echo "$as_me:10811: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10812 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10813 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-lk5crypto $LIBS"
10818 cat >conftest.$ac_ext <<_ACEOF
10819 #line 10819 "configure"
10820 #include "confdefs.h"
10822 /* Override any gcc2 internal prototype to avoid an error. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char mit_des_cbc_encrypt ();
10830 main ()
10832 mit_des_cbc_encrypt ();
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:10838: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10840 ac_status=$?
10841 echo "$as_me:10841: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:10844: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:10847: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10853 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 echo "$as_me:10858: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10859 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10860 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10861 cat >>confdefs.h <<EOF
10862 #define HAVE_LIBK5CRYPTO 1
10865 LIBS="-lk5crypto $LIBS"
10869 echo "$as_me:10869: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10870 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10871 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lcrypto $LIBS"
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line 10877 "configure"
10878 #include "confdefs.h"
10880 /* Override any gcc2 internal prototype to avoid an error. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char mit_des_cbc_encrypt ();
10888 main ()
10890 mit_des_cbc_encrypt ();
10892 return 0;
10894 _ACEOF
10895 rm -f conftest.$ac_objext conftest$ac_exeext
10896 if { (eval echo "$as_me:10896: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>&5
10898 ac_status=$?
10899 echo "$as_me:10899: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest$ac_exeext'
10902 { (eval echo "$as_me:10902: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10916 echo "$as_me:10916: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10917 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10918 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10919 cat >>confdefs.h <<EOF
10920 #define HAVE_LIBCRYPTO 1
10923 LIBS="-lcrypto $LIBS"
10927 echo "$as_me:10927: checking for krb5_init_context in -lkrb5" >&5
10928 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10929 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-lkrb5 $LIBS"
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 /* We use char because int might match the return type of a gcc2
10943 builtin and then its argument prototype would still apply. */
10944 char krb5_init_context ();
10946 main ()
10948 krb5_init_context ();
10950 return 0;
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (eval echo "$as_me:10954: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>&5
10956 ac_status=$?
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:10960: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:10963: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_lib_krb5_krb5_init_context=yes
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10969 ac_cv_lib_krb5_krb5_init_context=no
10971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 echo "$as_me:10974: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10975 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10976 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10977 cat >>confdefs.h <<EOF
10978 #define HAVE_LIBKRB5 1
10981 LIBS="-lkrb5 $LIBS"
10985 if test "${with_kerberos5+set}" != set; then
10987 echo "$as_me:10987: checking for des_cbc_encrypt in -ldes425" >&5
10988 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10989 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldes425 $LIBS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 #line 10995 "configure"
10996 #include "confdefs.h"
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 #ifdef __cplusplus
11000 extern "C"
11001 #endif
11002 /* We use char because int might match the return type of a gcc2
11003 builtin and then its argument prototype would still apply. */
11004 char des_cbc_encrypt ();
11006 main ()
11008 des_cbc_encrypt ();
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:11014: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>&5
11016 ac_status=$?
11017 echo "$as_me:11017: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:11020: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:11023: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_des425_des_cbc_encrypt=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 ac_cv_lib_des425_des_cbc_encrypt=no
11031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11034 echo "$as_me:11034: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
11035 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
11036 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
11037 cat >>confdefs.h <<EOF
11038 #define HAVE_LIBDES425 1
11041 LIBS="-ldes425 $LIBS"
11043 else
11045 echo "$as_me:11045: checking for des_cbc_encrypt in -ldes" >&5
11046 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11047 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 ac_check_lib_save_LIBS=$LIBS
11051 LIBS="-ldes $LIBS"
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line 11053 "configure"
11054 #include "confdefs.h"
11056 /* Override any gcc2 internal prototype to avoid an error. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 /* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062 char des_cbc_encrypt ();
11064 main ()
11066 des_cbc_encrypt ();
11068 return 0;
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (eval echo "$as_me:11072: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>&5
11074 ac_status=$?
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:11078: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:11081: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_lib_des_des_cbc_encrypt=yes
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 ac_cv_lib_des_des_cbc_encrypt=no
11089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 echo "$as_me:11092: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11095 cat >>confdefs.h <<EOF
11096 #define HAVE_LIBDES 1
11099 LIBS="-ldes $LIBS"
11105 echo "$as_me:11105: checking for krb_get_cred in -lkrb4" >&5
11106 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11107 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lkrb4 $LIBS"
11112 cat >conftest.$ac_ext <<_ACEOF
11113 #line 11113 "configure"
11114 #include "confdefs.h"
11116 /* Override any gcc2 internal prototype to avoid an error. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 /* We use char because int might match the return type of a gcc2
11121 builtin and then its argument prototype would still apply. */
11122 char krb_get_cred ();
11124 main ()
11126 krb_get_cred ();
11128 return 0;
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11134 ac_status=$?
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_lib_krb4_krb_get_cred=yes
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 ac_cv_lib_krb4_krb_get_cred=no
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11152 echo "$as_me:11152: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11153 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11154 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11155 cat >>confdefs.h <<EOF
11156 #define HAVE_LIBKRB4 1
11159 LIBS="-lkrb4 $LIBS"
11161 else
11163 echo "$as_me:11163: checking for krb_get_cred in -lkrb" >&5
11164 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11165 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lkrb $LIBS"
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11174 /* Override any gcc2 internal prototype to avoid an error. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 /* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11180 char krb_get_cred ();
11182 main ()
11184 krb_get_cred ();
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:11190: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 echo "$as_me:11193: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -s conftest$ac_exeext'
11196 { (eval echo "$as_me:11196: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_lib_krb_krb_get_cred=yes
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 ac_cv_lib_krb_krb_get_cred=no
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11210 echo "$as_me:11210: result: $ac_cv_lib_krb_krb_get_cred" >&5
11211 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11212 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11213 cat >>confdefs.h <<EOF
11214 #define HAVE_LIBKRB 1
11217 LIBS="-lkrb $LIBS"
11225 if test "${with_kerberos5+set}" = set; then
11227 for ac_header in krb5.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:11230: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 #include <$ac_header>
11239 _ACEOF
11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11242 ac_status=$?
11243 egrep -v '^ *\+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev/null; then
11248 if test -s conftest.err; then
11249 ac_cpp_err=$ac_c_preproc_warn_flag
11250 else
11251 ac_cpp_err=
11253 else
11254 ac_cpp_err=yes
11256 if test -z "$ac_cpp_err"; then
11257 eval "$as_ac_Header=yes"
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 eval "$as_ac_Header=no"
11263 rm -f conftest.err conftest.$ac_ext
11265 echo "$as_me:11265: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268 cat >>confdefs.h <<EOF
11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11273 done
11275 else
11277 for ac_header in des.h
11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 echo "$as_me:11280: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11288 #include <$ac_header>
11289 _ACEOF
11290 if { (eval echo "$as_me:11290: \"$ac_cpp conftest.$ac_ext\"") >&5
11291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11292 ac_status=$?
11293 egrep -v '^ *\+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:11296: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null; then
11298 if test -s conftest.err; then
11299 ac_cpp_err=$ac_c_preproc_warn_flag
11300 else
11301 ac_cpp_err=
11303 else
11304 ac_cpp_err=yes
11306 if test -z "$ac_cpp_err"; then
11307 eval "$as_ac_Header=yes"
11308 else
11309 echo "$as_me: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 eval "$as_ac_Header=no"
11313 rm -f conftest.err conftest.$ac_ext
11315 echo "$as_me:11315: result: `eval echo '${'$as_ac_Header'}'`" >&5
11316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11318 cat >>confdefs.h <<EOF
11319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 else
11324 for ac_header in kerberosIV/des.h
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 echo "$as_me:11327: checking for $ac_header" >&5
11328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line 11333 "configure"
11334 #include "confdefs.h"
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (eval echo "$as_me:11337: \"$ac_cpp conftest.$ac_ext\"") >&5
11338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11339 ac_status=$?
11340 egrep -v '^ *\+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev/null; then
11345 if test -s conftest.err; then
11346 ac_cpp_err=$ac_c_preproc_warn_flag
11347 else
11348 ac_cpp_err=
11350 else
11351 ac_cpp_err=yes
11353 if test -z "$ac_cpp_err"; then
11354 eval "$as_ac_Header=yes"
11355 else
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 eval "$as_ac_Header=no"
11360 rm -f conftest.err conftest.$ac_ext
11362 echo "$as_me:11362: result: `eval echo '${'$as_ac_Header'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<EOF
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 else
11371 for ac_header in kerberos/des.h
11373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 echo "$as_me:11374: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 cat >conftest.$ac_ext <<_ACEOF
11380 #line 11380 "configure"
11381 #include "confdefs.h"
11382 #include <$ac_header>
11383 _ACEOF
11384 if { (eval echo "$as_me:11384: \"$ac_cpp conftest.$ac_ext\"") >&5
11385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11386 ac_status=$?
11387 egrep -v '^ *\+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:11390: \$? = $ac_status" >&5
11391 (exit $ac_status); } >/dev/null; then
11392 if test -s conftest.err; then
11393 ac_cpp_err=$ac_c_preproc_warn_flag
11394 else
11395 ac_cpp_err=
11397 else
11398 ac_cpp_err=yes
11400 if test -z "$ac_cpp_err"; then
11401 eval "$as_ac_Header=yes"
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11405 eval "$as_ac_Header=no"
11407 rm -f conftest.err conftest.$ac_ext
11409 echo "$as_me:11409: result: `eval echo '${'$as_ac_Header'}'`" >&5
11410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11412 cat >>confdefs.h <<EOF
11413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 done
11420 done
11423 done
11425 for ac_header in krb.h
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 echo "$as_me:11428: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line 11434 "configure"
11435 #include "confdefs.h"
11436 #include <$ac_header>
11437 _ACEOF
11438 if { (eval echo "$as_me:11438: \"$ac_cpp conftest.$ac_ext\"") >&5
11439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11440 ac_status=$?
11441 egrep -v '^ *\+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:11444: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null; then
11446 if test -s conftest.err; then
11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 else
11449 ac_cpp_err=
11451 else
11452 ac_cpp_err=yes
11454 if test -z "$ac_cpp_err"; then
11455 eval "$as_ac_Header=yes"
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 eval "$as_ac_Header=no"
11461 rm -f conftest.err conftest.$ac_ext
11463 echo "$as_me:11463: result: `eval echo '${'$as_ac_Header'}'`" >&5
11464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11466 cat >>confdefs.h <<EOF
11467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470 else
11472 for ac_header in kerberosIV/krb.h
11474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 echo "$as_me:11475: checking for $ac_header" >&5
11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 cat >conftest.$ac_ext <<_ACEOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11483 #include <$ac_header>
11484 _ACEOF
11485 if { (eval echo "$as_me:11485: \"$ac_cpp conftest.$ac_ext\"") >&5
11486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11487 ac_status=$?
11488 egrep -v '^ *\+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:11491: \$? = $ac_status" >&5
11492 (exit $ac_status); } >/dev/null; then
11493 if test -s conftest.err; then
11494 ac_cpp_err=$ac_c_preproc_warn_flag
11495 else
11496 ac_cpp_err=
11498 else
11499 ac_cpp_err=yes
11501 if test -z "$ac_cpp_err"; then
11502 eval "$as_ac_Header=yes"
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11506 eval "$as_ac_Header=no"
11508 rm -f conftest.err conftest.$ac_ext
11510 echo "$as_me:11510: result: `eval echo '${'$as_ac_Header'}'`" >&5
11511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11513 cat >>confdefs.h <<EOF
11514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 else
11519 for ac_header in kerberos/krb.h
11521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11522 echo "$as_me:11522: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line 11528 "configure"
11529 #include "confdefs.h"
11530 #include <$ac_header>
11531 _ACEOF
11532 if { (eval echo "$as_me:11532: \"$ac_cpp conftest.$ac_ext\"") >&5
11533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11534 ac_status=$?
11535 egrep -v '^ *\+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit $ac_status); } >/dev/null; then
11540 if test -s conftest.err; then
11541 ac_cpp_err=$ac_c_preproc_warn_flag
11542 else
11543 ac_cpp_err=
11545 else
11546 ac_cpp_err=yes
11548 if test -z "$ac_cpp_err"; then
11549 eval "$as_ac_Header=yes"
11550 else
11551 echo "$as_me: failed program was:" >&5
11552 cat conftest.$ac_ext >&5
11553 eval "$as_ac_Header=no"
11555 rm -f conftest.err conftest.$ac_ext
11557 echo "$as_me:11557: result: `eval echo '${'$as_ac_Header'}'`" >&5
11558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h <<EOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 done
11568 done
11571 done
11575 for ac_header in com_err.h
11577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11578 echo "$as_me:11578: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line 11584 "configure"
11585 #include "confdefs.h"
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (eval echo "$as_me:11588: \"$ac_cpp conftest.$ac_ext\"") >&5
11589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11590 ac_status=$?
11591 egrep -v '^ *\+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:11594: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev/null; then
11596 if test -s conftest.err; then
11597 ac_cpp_err=$ac_c_preproc_warn_flag
11598 else
11599 ac_cpp_err=
11601 else
11602 ac_cpp_err=yes
11604 if test -z "$ac_cpp_err"; then
11605 eval "$as_ac_Header=yes"
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 eval "$as_ac_Header=no"
11611 rm -f conftest.err conftest.$ac_ext
11613 echo "$as_me:11613: result: `eval echo '${'$as_ac_Header'}'`" >&5
11614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h <<EOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11621 done
11625 # Solaris requires -lintl if you want strerror (which calls dgettext)
11626 # to return localized messages.
11628 echo "$as_me:11628: checking for dgettext in -lintl" >&5
11629 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11630 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lintl $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char dgettext ();
11647 main ()
11649 dgettext ();
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (eval echo "$as_me:11655: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 echo "$as_me:11658: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:11661: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:11664: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_lib_intl_dgettext=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 ac_cv_lib_intl_dgettext=no
11672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11675 echo "$as_me:11675: result: $ac_cv_lib_intl_dgettext" >&5
11676 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11677 if test $ac_cv_lib_intl_dgettext = yes; then
11678 cat >>confdefs.h <<EOF
11679 #define HAVE_LIBINTL 1
11682 LIBS="-lintl $LIBS"
11686 echo "$as_me:11686: checking whether localtime caches TZ" >&5
11687 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11688 if test "${emacs_cv_localtime_cache+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691 if test x$ac_cv_func_tzset = xyes; then
11692 if test "$cross_compiling" = yes; then
11693 # If we have tzset, assume the worst when cross-compiling.
11694 emacs_cv_localtime_cache=yes
11695 else
11696 cat >conftest.$ac_ext <<_ACEOF
11697 #line 11697 "configure"
11698 #include "confdefs.h"
11699 #include <time.h>
11700 extern char **environ;
11701 unset_TZ ()
11703 char **from, **to;
11704 for (to = from = environ; (*to = *from); from++)
11705 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11706 to++;
11708 char TZ_GMT0[] = "TZ=GMT0";
11709 char TZ_PST8[] = "TZ=PST8";
11710 main()
11712 time_t now = time ((time_t *) 0);
11713 int hour_GMT0, hour_unset;
11714 if (putenv (TZ_GMT0) != 0)
11715 exit (1);
11716 hour_GMT0 = localtime (&now)->tm_hour;
11717 unset_TZ ();
11718 hour_unset = localtime (&now)->tm_hour;
11719 if (putenv (TZ_PST8) != 0)
11720 exit (1);
11721 if (localtime (&now)->tm_hour == hour_GMT0)
11722 exit (1);
11723 unset_TZ ();
11724 if (localtime (&now)->tm_hour != hour_unset)
11725 exit (1);
11726 exit (0);
11728 _ACEOF
11729 rm -f conftest$ac_exeext
11730 if { (eval echo "$as_me:11730: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>&5
11732 ac_status=$?
11733 echo "$as_me:11733: \$? = $ac_status" >&5
11734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11735 { (eval echo "$as_me:11735: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:11738: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 emacs_cv_localtime_cache=no
11741 else
11742 echo "$as_me: program exited with status $ac_status" >&5
11743 echo "$as_me: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 emacs_cv_localtime_cache=yes
11747 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11749 else
11750 # If we lack tzset, report that localtime does not cache TZ,
11751 # since we can't invalidate the cache if we don't have tzset.
11752 emacs_cv_localtime_cache=no
11755 echo "$as_me:11755: result: $emacs_cv_localtime_cache" >&5
11756 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11757 if test $emacs_cv_localtime_cache = yes; then
11759 cat >>confdefs.h <<\EOF
11760 #define LOCALTIME_CACHE 1
11765 if test "x$HAVE_TIMEVAL" = xyes; then
11767 for ac_func in gettimeofday
11769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770 echo "$as_me:11770: checking for $ac_func" >&5
11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11772 if eval "test \"\${$as_ac_var+set}\" = set"; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 cat >conftest.$ac_ext <<_ACEOF
11776 #line 11776 "configure"
11777 #include "confdefs.h"
11778 /* System header to define __stub macros and hopefully few prototypes,
11779 which can conflict with char $ac_func (); below. */
11780 #include <assert.h>
11781 /* Override any gcc2 internal prototype to avoid an error. */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787 char $ac_func ();
11788 char (*f) ();
11791 main ()
11793 /* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11797 choke me
11798 #else
11799 f = $ac_func;
11800 #endif
11803 return 0;
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:11807: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>&5
11809 ac_status=$?
11810 echo "$as_me:11810: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:11813: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 eval "$as_ac_var=no"
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826 echo "$as_me:11826: result: `eval echo '${'$as_ac_var'}'`" >&5
11827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11828 if test `eval echo '${'$as_ac_var'}'` = yes; then
11829 cat >>confdefs.h <<EOF
11830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11834 done
11836 if test $ac_cv_func_gettimeofday = yes; then
11837 echo "$as_me:11837: checking whether gettimeofday can accept two arguments" >&5
11838 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11839 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 cat >conftest.$ac_ext <<_ACEOF
11843 #line 11843 "configure"
11844 #include "confdefs.h"
11846 #ifdef TIME_WITH_SYS_TIME
11847 #include <sys/time.h>
11848 #include <time.h>
11849 #else
11850 #ifdef HAVE_SYS_TIME_H
11851 #include <sys/time.h>
11852 #else
11853 #include <time.h>
11854 #endif
11855 #endif
11857 main ()
11859 struct timeval time;
11860 gettimeofday (&time, 0);
11862 return 0;
11864 _ACEOF
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:11866: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>&5
11868 ac_status=$?
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:11872: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 emacs_cv_gettimeofday_two_arguments=yes
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 emacs_cv_gettimeofday_two_arguments=no
11883 rm -f conftest.$ac_objext conftest.$ac_ext
11885 echo "$as_me:11885: result: $emacs_cv_gettimeofday_two_arguments" >&5
11886 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11887 if test $emacs_cv_gettimeofday_two_arguments = no; then
11889 cat >>confdefs.h <<\EOF
11890 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11897 if test "$ac_cv_func_gettimeofday" = yes; then
11898 echo "$as_me:11898: checking for struct timezone" >&5
11899 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11900 if test "${emacs_cv_struct_timezone+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 cat >conftest.$ac_ext <<_ACEOF
11904 #line 11904 "configure"
11905 #include "confdefs.h"
11906 #include <sys/time.h>
11908 main ()
11910 struct timezone tz;
11912 return 0;
11914 _ACEOF
11915 rm -f conftest.$ac_objext
11916 if { (eval echo "$as_me:11916: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11918 ac_status=$?
11919 echo "$as_me:11919: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -s conftest.$ac_objext'
11922 { (eval echo "$as_me:11922: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:11925: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 if test "$cross_compiling" = yes; then
11928 emacs_cv_struct_timezone=yes
11929 else
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line 11931 "configure"
11932 #include "confdefs.h"
11934 #ifdef TIME_WITH_SYS_TIME
11935 #include <sys/time.h>
11936 #include <time.h>
11937 #else
11938 #ifdef HAVE_SYS_TIME_H
11939 #include <sys/time.h>
11940 #else
11941 #include <time.h>
11942 #endif
11943 #endif
11944 main () {
11945 struct timeval time;
11946 struct timezone dummy;
11947 exit (gettimeofday (&time, &dummy));
11949 _ACEOF
11950 rm -f conftest$ac_exeext
11951 if { (eval echo "$as_me:11951: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>&5
11953 ac_status=$?
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11956 { (eval echo "$as_me:11956: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:11959: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 emacs_cv_struct_timezone=yes
11962 else
11963 echo "$as_me: program exited with status $ac_status" >&5
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 emacs_cv_struct_timezone=no
11968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 emacs_cv_struct_timezone=no
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11977 echo "$as_me:11977: result: $emacs_cv_struct_timezone" >&5
11978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11981 ok_so_far=yes
11982 echo "$as_me:11982: checking for socket" >&5
11983 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11984 if test "${ac_cv_func_socket+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char socket (); below. */
11992 #include <assert.h>
11993 /* Override any gcc2 internal prototype to avoid an error. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999 char socket ();
12000 char (*f) ();
12003 main ()
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_socket) || defined (__stub___socket)
12009 choke me
12010 #else
12011 f = socket;
12012 #endif
12015 return 0;
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:12019: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>&5
12021 ac_status=$?
12022 echo "$as_me:12022: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:12025: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:12028: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_func_socket=yes
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 ac_cv_func_socket=no
12036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12038 echo "$as_me:12038: result: $ac_cv_func_socket" >&5
12039 echo "${ECHO_T}$ac_cv_func_socket" >&6
12040 if test $ac_cv_func_socket = yes; then
12042 else
12043 ok_so_far=no
12046 if test $ok_so_far = yes; then
12047 echo "$as_me:12047: checking for netinet/in.h" >&5
12048 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12049 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line 12053 "configure"
12054 #include "confdefs.h"
12055 #include <netinet/in.h>
12056 _ACEOF
12057 if { (eval echo "$as_me:12057: \"$ac_cpp conftest.$ac_ext\"") >&5
12058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12059 ac_status=$?
12060 egrep -v '^ *\+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:12063: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
12067 else
12068 ac_cpp_err=
12070 else
12071 ac_cpp_err=yes
12073 if test -z "$ac_cpp_err"; then
12074 ac_cv_header_netinet_in_h=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 ac_cv_header_netinet_in_h=no
12080 rm -f conftest.err conftest.$ac_ext
12082 echo "$as_me:12082: result: $ac_cv_header_netinet_in_h" >&5
12083 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12084 if test $ac_cv_header_netinet_in_h = yes; then
12086 else
12087 ok_so_far=no
12091 if test $ok_so_far = yes; then
12092 echo "$as_me:12092: checking for arpa/inet.h" >&5
12093 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12094 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line 12098 "configure"
12099 #include "confdefs.h"
12100 #include <arpa/inet.h>
12101 _ACEOF
12102 if { (eval echo "$as_me:12102: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 egrep -v '^ *\+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:12108: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
12112 else
12113 ac_cpp_err=
12115 else
12116 ac_cpp_err=yes
12118 if test -z "$ac_cpp_err"; then
12119 ac_cv_header_arpa_inet_h=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12123 ac_cv_header_arpa_inet_h=no
12125 rm -f conftest.err conftest.$ac_ext
12127 echo "$as_me:12127: result: $ac_cv_header_arpa_inet_h" >&5
12128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12129 if test $ac_cv_header_arpa_inet_h = yes; then
12131 else
12132 ok_so_far=no
12136 if test $ok_so_far = yes; then
12138 cat >>confdefs.h <<\EOF
12139 #define HAVE_INET_SOCKETS 1
12144 if test -f /usr/lpp/X11/bin/smt.exp; then
12146 cat >>confdefs.h <<\EOF
12147 #define HAVE_AIX_SMT_EXP 1
12152 echo "$as_me:12152: checking whether system supports dynamic ptys" >&5
12153 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12154 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12155 echo "$as_me:12155: result: yes" >&5
12156 echo "${ECHO_T}yes" >&6
12158 cat >>confdefs.h <<\EOF
12159 #define HAVE_DEV_PTMX 1
12162 else
12163 echo "$as_me:12163: result: no" >&5
12164 echo "${ECHO_T}no" >&6
12167 echo "$as_me:12167: checking for pid_t" >&5
12168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12169 if test "${ac_cv_type_pid_t+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 $ac_includes_default
12177 main ()
12179 if ((pid_t *) 0)
12180 return 0;
12181 if (sizeof (pid_t))
12182 return 0;
12184 return 0;
12186 _ACEOF
12187 rm -f conftest.$ac_objext
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12190 ac_status=$?
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_type_pid_t=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12203 ac_cv_type_pid_t=no
12205 rm -f conftest.$ac_objext conftest.$ac_ext
12207 echo "$as_me:12207: result: $ac_cv_type_pid_t" >&5
12208 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12209 if test $ac_cv_type_pid_t = yes; then
12211 else
12213 cat >>confdefs.h <<EOF
12214 #define pid_t int
12219 for ac_header in unistd.h vfork.h
12221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 echo "$as_me:12222: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 cat >conftest.$ac_ext <<_ACEOF
12228 #line 12228 "configure"
12229 #include "confdefs.h"
12230 #include <$ac_header>
12231 _ACEOF
12232 if { (eval echo "$as_me:12232: \"$ac_cpp conftest.$ac_ext\"") >&5
12233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12234 ac_status=$?
12235 egrep -v '^ *\+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:12238: \$? = $ac_status" >&5
12239 (exit $ac_status); } >/dev/null; then
12240 if test -s conftest.err; then
12241 ac_cpp_err=$ac_c_preproc_warn_flag
12242 else
12243 ac_cpp_err=
12245 else
12246 ac_cpp_err=yes
12248 if test -z "$ac_cpp_err"; then
12249 eval "$as_ac_Header=yes"
12250 else
12251 echo "$as_me: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 eval "$as_ac_Header=no"
12255 rm -f conftest.err conftest.$ac_ext
12257 echo "$as_me:12257: result: `eval echo '${'$as_ac_Header'}'`" >&5
12258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12260 cat >>confdefs.h <<EOF
12261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12265 done
12267 for ac_func in fork vfork
12269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12270 echo "$as_me:12270: checking for $ac_func" >&5
12271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12272 if eval "test \"\${$as_ac_var+set}\" = set"; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 cat >conftest.$ac_ext <<_ACEOF
12276 #line 12276 "configure"
12277 #include "confdefs.h"
12278 /* System header to define __stub macros and hopefully few prototypes,
12279 which can conflict with char $ac_func (); below. */
12280 #include <assert.h>
12281 /* Override any gcc2 internal prototype to avoid an error. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char $ac_func ();
12288 char (*f) ();
12291 main ()
12293 /* The GNU C library defines this for functions which it implements
12294 to always fail with ENOSYS. Some functions are actually named
12295 something starting with __ and the normal name is an alias. */
12296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12297 choke me
12298 #else
12299 f = $ac_func;
12300 #endif
12303 return 0;
12305 _ACEOF
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:12307: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12309 ac_status=$?
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 eval "$as_ac_var=yes"
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 cat conftest.$ac_ext >&5
12322 eval "$as_ac_var=no"
12324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12326 echo "$as_me:12326: result: `eval echo '${'$as_ac_var'}'`" >&5
12327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12328 if test `eval echo '${'$as_ac_var'}'` = yes; then
12329 cat >>confdefs.h <<EOF
12330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12334 done
12336 ac_cv_func_fork_works=$ac_cv_func_fork
12337 if test "x$ac_cv_func_fork" = xyes; then
12338 echo "$as_me:12338: checking for working fork" >&5
12339 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12340 if test "${ac_cv_func_fork_works+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 if test "$cross_compiling" = yes; then
12344 ac_cv_func_fork_works=cross
12345 else
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* By Rüdiger Kuhlmann. */
12348 #include <sys/types.h>
12349 #if HAVE_UNISTD_H
12350 # include <unistd.h>
12351 #endif
12352 /* Some systems only have a dummy stub for fork() */
12353 int main ()
12355 if (fork() < 0)
12356 exit (1);
12357 exit (0);
12359 _ACEOF
12360 rm -f conftest$ac_exeext
12361 if { (eval echo "$as_me:12361: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>&5
12363 ac_status=$?
12364 echo "$as_me:12364: \$? = $ac_status" >&5
12365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366 { (eval echo "$as_me:12366: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:12369: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_func_fork_works=yes
12372 else
12373 echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 cat conftest.$ac_ext >&5
12376 ac_cv_func_fork_works=no
12378 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:12381: result: $ac_cv_func_fork_works" >&5
12382 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12385 if test "x$ac_cv_func_fork_works" = xcross; then
12386 case $host in
12387 *-*-amigaos* | *-*-msdosdjgpp*)
12388 # Override, as these systems have only a dummy fork() stub
12389 ac_cv_func_fork_works=no
12392 ac_cv_func_fork_works=yes
12394 esac
12395 { echo "$as_me:12395: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12396 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12398 ac_cv_func_vfork_works=$ac_cv_func_vfork
12399 if test "x$ac_cv_func_vfork" = xyes; then
12400 echo "$as_me:12400: checking for working vfork" >&5
12401 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12402 if test "${ac_cv_func_vfork_works+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 if test "$cross_compiling" = yes; then
12406 ac_cv_func_vfork_works=cross
12407 else
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line 12409 "configure"
12410 #include "confdefs.h"
12411 /* Thanks to Paul Eggert for this test. */
12412 #include <stdio.h>
12413 #include <sys/types.h>
12414 #include <sys/stat.h>
12415 #if HAVE_UNISTD_H
12416 # include <unistd.h>
12417 #endif
12418 #if HAVE_VFORK_H
12419 # include <vfork.h>
12420 #endif
12421 /* On some sparc systems, changes by the child to local and incoming
12422 argument registers are propagated back to the parent. The compiler
12423 is told about this with #include <vfork.h>, but some compilers
12424 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12425 static variable whose address is put into a register that is
12426 clobbered by the vfork. */
12427 static
12428 #ifdef __cplusplus
12429 sparc_address_test (int arg)
12430 # else
12431 sparc_address_test (arg) int arg;
12432 #endif
12434 static pid_t child;
12435 if (!child) {
12436 child = vfork ();
12437 if (child < 0) {
12438 perror ("vfork");
12439 _exit(2);
12441 if (!child) {
12442 arg = getpid();
12443 write(-1, "", 0);
12444 _exit (arg);
12450 main ()
12452 pid_t parent = getpid ();
12453 pid_t child;
12455 sparc_address_test ();
12457 child = vfork ();
12459 if (child == 0) {
12460 /* Here is another test for sparc vfork register problems. This
12461 test uses lots of local variables, at least as many local
12462 variables as main has allocated so far including compiler
12463 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12464 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12465 reuse the register of parent for one of the local variables,
12466 since it will think that parent can't possibly be used any more
12467 in this routine. Assigning to the local variable will thus
12468 munge parent in the parent process. */
12469 pid_t
12470 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12471 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12472 /* Convince the compiler that p..p7 are live; otherwise, it might
12473 use the same hardware register for all 8 local variables. */
12474 if (p != p1 || p != p2 || p != p3 || p != p4
12475 || p != p5 || p != p6 || p != p7)
12476 _exit(1);
12478 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12479 from child file descriptors. If the child closes a descriptor
12480 before it execs or exits, this munges the parent's descriptor
12481 as well. Test for this by closing stdout in the child. */
12482 _exit(close(fileno(stdout)) != 0);
12483 } else {
12484 int status;
12485 struct stat st;
12487 while (wait(&status) != child)
12489 exit(
12490 /* Was there some problem with vforking? */
12491 child < 0
12493 /* Did the child fail? (This shouldn't happen.) */
12494 || status
12496 /* Did the vfork/compiler bug occur? */
12497 || parent != getpid()
12499 /* Did the file descriptor bug occur? */
12500 || fstat(fileno(stdout), &st) != 0
12504 _ACEOF
12505 rm -f conftest$ac_exeext
12506 if { (eval echo "$as_me:12506: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>&5
12508 ac_status=$?
12509 echo "$as_me:12509: \$? = $ac_status" >&5
12510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12511 { (eval echo "$as_me:12511: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_func_vfork_works=yes
12517 else
12518 echo "$as_me: program exited with status $ac_status" >&5
12519 echo "$as_me: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12521 ac_cv_func_vfork_works=no
12523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12526 echo "$as_me:12526: result: $ac_cv_func_vfork_works" >&5
12527 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12530 if test "x$ac_cv_func_fork_works" = xcross; then
12531 ac_cv_func_vfork_works=ac_cv_func_vfork
12532 { echo "$as_me:12532: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12533 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12536 if test "x$ac_cv_func_vfork_works" = xyes; then
12538 cat >>confdefs.h <<\EOF
12539 #define HAVE_WORKING_VFORK 1
12542 else
12544 cat >>confdefs.h <<\EOF
12545 #define vfork fork
12549 if test "x$ac_cv_func_fork_works" = xyes; then
12551 cat >>confdefs.h <<\EOF
12552 #define HAVE_WORKING_FORK 1
12557 # Fixme: This should be replaced when we have autoconf 2.14.
12558 echo "$as_me:12558: checking for size_t" >&5
12559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12560 if test "${ac_cv_type_size_t+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line 12564 "configure"
12565 #include "confdefs.h"
12566 $ac_includes_default
12568 main ()
12570 if ((size_t *) 0)
12571 return 0;
12572 if (sizeof (size_t))
12573 return 0;
12575 return 0;
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:12579: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12581 ac_status=$?
12582 echo "$as_me:12582: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:12585: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:12588: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_type_size_t=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 ac_cv_type_size_t=no
12596 rm -f conftest.$ac_objext conftest.$ac_ext
12598 echo "$as_me:12598: result: $ac_cv_type_size_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12600 if test $ac_cv_type_size_t = yes; then
12602 else
12604 cat >>confdefs.h <<EOF
12605 #define size_t unsigned
12610 # Set up the CFLAGS for real compilation, so we can substitute it.
12611 CFLAGS="$REAL_CFLAGS"
12612 CPPFLAGS="$REAL_CPPFLAGS"
12614 #### Find out which version of Emacs this is.
12615 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12616 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12617 if test x"${version}" = x; then
12618 { { echo "$as_me:12618: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12619 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12620 { (exit 1); exit 1; }; }
12623 ### Specify what sort of things we'll be editing into Makefile and config.h.
12624 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12626 cat >>confdefs.h <<EOF
12627 #define EMACS_CONFIGURATION "${canonical}"
12630 cat >>confdefs.h <<EOF
12631 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12634 cat >>confdefs.h <<EOF
12635 #define config_machfile "${machfile}"
12638 cat >>confdefs.h <<EOF
12639 #define config_opsysfile "${opsysfile}"
12642 cat >>confdefs.h <<EOF
12643 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12646 cat >>confdefs.h <<EOF
12647 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12650 cat >>confdefs.h <<EOF
12651 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12654 cat >>confdefs.h <<EOF
12655 #define UNEXEC_SRC ${UNEXEC_SRC}
12658 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12660 cat >>confdefs.h <<\EOF
12661 #define HAVE_X_WINDOWS 1
12665 if test "${USE_X_TOOLKIT}" != "none" ; then
12667 cat >>confdefs.h <<\EOF
12668 #define USE_X_TOOLKIT 1
12672 if test "${HAVE_X11}" = "yes" ; then
12674 cat >>confdefs.h <<\EOF
12675 #define HAVE_X11 1
12679 if test "${HAVE_XFREE386}" = "yes" ; then
12681 cat >>confdefs.h <<\EOF
12682 #define HAVE_XFREE386 1
12686 if test "${HAVE_MENUS}" = "yes" ; then
12688 cat >>confdefs.h <<\EOF
12689 #define HAVE_MENUS 1
12693 if test "${GNU_MALLOC}" = "yes" ; then
12695 cat >>confdefs.h <<\EOF
12696 #define GNU_MALLOC 1
12700 if test "${REL_ALLOC}" = "yes" ; then
12702 cat >>confdefs.h <<\EOF
12703 #define REL_ALLOC 1
12708 for ac_header in nlist.h
12710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12711 echo "$as_me:12711: checking for $ac_header" >&5
12712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 cat >conftest.$ac_ext <<_ACEOF
12717 #line 12717 "configure"
12718 #include "confdefs.h"
12719 #include <$ac_header>
12720 _ACEOF
12721 if { (eval echo "$as_me:12721: \"$ac_cpp conftest.$ac_ext\"") >&5
12722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12723 ac_status=$?
12724 egrep -v '^ *\+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); } >/dev/null; then
12729 if test -s conftest.err; then
12730 ac_cpp_err=$ac_c_preproc_warn_flag
12731 else
12732 ac_cpp_err=
12734 else
12735 ac_cpp_err=yes
12737 if test -z "$ac_cpp_err"; then
12738 eval "$as_ac_Header=yes"
12739 else
12740 echo "$as_me: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 eval "$as_ac_Header=no"
12744 rm -f conftest.err conftest.$ac_ext
12746 echo "$as_me:12746: result: `eval echo '${'$as_ac_Header'}'`" >&5
12747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12749 cat >>confdefs.h <<EOF
12750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12753 cat >>confdefs.h <<\EOF
12754 #define NLIST_STRUCT 1
12758 done
12760 #### Report on what we decided to do.
12761 echo "
12762 Configured for \`${canonical}'.
12764 Where should the build process find the source code? ${srcdir}
12765 What operating system and machine description files should Emacs use?
12766 \`${opsysfile}' and \`${machfile}'
12767 What compiler should emacs be built with? ${CC} ${CFLAGS}
12768 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12769 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12770 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12771 What window system should Emacs use? ${window_system}
12772 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12774 if test -n "${x_includes}"; then
12775 echo " Where do we find X Windows header files? ${x_includes}"
12776 else
12777 echo " Where do we find X Windows header files? Standard dirs"
12779 if test -n "${x_libraries}"; then
12780 echo " Where do we find X Windows libraries? ${x_libraries}"
12781 else
12782 echo " Where do we find X Windows libraries? Standard dirs"
12785 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12786 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12787 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12788 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12789 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12790 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12791 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12792 echo
12794 # Remove any trailing slashes in these variables.
12795 test "${prefix}" != NONE &&
12796 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12797 test "${exec_prefix}" != NONE &&
12798 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12800 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12801 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12802 ## from Makefile.c can correctly provide the arg `-traditional' to the
12803 ## C preprocessor.
12805 cat >conftest.$ac_ext <<_ACEOF
12806 #line 12806 "configure"
12807 #include "confdefs.h"
12808 yes..yes
12809 _ACEOF
12810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12811 egrep "yes..yes" >/dev/null 2>&1; then
12812 CPP_NEED_TRADITIONAL=no
12813 else
12814 CPP_NEED_TRADITIONAL=yes
12816 rm -f conftest*
12818 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"
12819 ac_config_commands="$ac_config_commands default"
12820 cat >confcache <<\_ACEOF
12821 # This file is a shell script that caches the results of configure
12822 # tests run on this system so they can be shared between configure
12823 # scripts and configure runs, see configure's option --config-cache.
12824 # It is not useful on other systems. If it contains results you don't
12825 # want to keep, you may remove or edit it.
12827 # config.status only pays attention to the cache file if you give it
12828 # the --recheck option to rerun configure.
12830 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12832 # following values.
12834 _ACEOF
12836 # The following way of writing the cache mishandles newlines in values,
12837 # but we know of no workaround that is simple, portable, and efficient.
12838 # So, don't put newlines in cache variables' values.
12839 # Ultrix sh set writes to stderr and can't be redirected directly,
12840 # and sets the high bit in the cache file unless we assign to the vars.
12842 (set) 2>&1 |
12843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12844 *ac_space=\ *)
12845 # `set' does not quote correctly, so add quotes (double-quote
12846 # substitution turns \\\\ into \\, and sed turns \\ into \).
12847 sed -n \
12848 "s/'/'\\\\''/g;
12849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12852 # `set' quotes correctly as required by POSIX, so do not add quotes.
12853 sed -n \
12854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12856 esac;
12858 sed '
12859 t clear
12860 : clear
12861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12862 t end
12863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12864 : end' >>confcache
12865 if cmp -s $cache_file confcache; then :; else
12866 if test -w $cache_file; then
12867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12868 cat confcache >$cache_file
12869 else
12870 echo "not updating unwritable cache $cache_file"
12873 rm -f confcache
12875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12876 # Let make expand exec_prefix.
12877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12881 # trailing colons and then remove the whole line if VPATH becomes empty
12882 # (actually we leave an empty line to preserve line numbers).
12883 if test "x$srcdir" = x.; then
12884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12885 s/:*\$(srcdir):*/:/;
12886 s/:*\${srcdir}:*/:/;
12887 s/:*@srcdir@:*/:/;
12888 s/^\([^=]*=[ ]*\):*/\1/;
12889 s/:*$//;
12890 s/^[^=]*=[ ]*$//;
12894 DEFS=-DHAVE_CONFIG_H
12896 : ${CONFIG_STATUS=./config.status}
12897 ac_clean_files_save=$ac_clean_files
12898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12899 { echo "$as_me:12899: creating $CONFIG_STATUS" >&5
12900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12901 cat >$CONFIG_STATUS <<_ACEOF
12902 #! $SHELL
12903 # Generated automatically by configure.
12904 # Run this file to recreate the current configuration.
12905 # Compiler output produced by configure, useful for debugging
12906 # configure, is in config.log if it exists.
12908 debug=false
12909 SHELL=\${CONFIG_SHELL-$SHELL}
12910 ac_cs_invocation="\$0 \$@"
12912 _ACEOF
12914 cat >>$CONFIG_STATUS <<\_ACEOF
12915 # Be Bourne compatible
12916 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12917 emulate sh
12918 NULLCMD=:
12919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12920 set -o posix
12923 # Name of the executable.
12924 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12926 if expr a : '\(a\)' >/dev/null 2>&1; then
12927 as_expr=expr
12928 else
12929 as_expr=false
12932 rm -f conf$$ conf$$.exe conf$$.file
12933 echo >conf$$.file
12934 if ln -s conf$$.file conf$$ 2>/dev/null; then
12935 # We could just check for DJGPP; but this test a) works b) is more generic
12936 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12937 if test -f conf$$.exe; then
12938 # Don't use ln at all; we don't have any links
12939 as_ln_s='cp -p'
12940 else
12941 as_ln_s='ln -s'
12943 elif ln conf$$.file conf$$ 2>/dev/null; then
12944 as_ln_s=ln
12945 else
12946 as_ln_s='cp -p'
12948 rm -f conf$$ conf$$.exe conf$$.file
12950 as_executable_p="test -f"
12952 # Support unset when possible.
12953 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12954 as_unset=unset
12955 else
12956 as_unset=false
12959 # NLS nuisances.
12960 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12961 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12962 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12963 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12964 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12965 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12966 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12967 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12969 # IFS
12970 # We need space, tab and new line, in precisely that order.
12971 as_nl='
12973 IFS=" $as_nl"
12975 # CDPATH.
12976 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12978 exec 6>&1
12980 _ACEOF
12982 # Files that config.status was made for.
12983 if test -n "$ac_config_files"; then
12984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12987 if test -n "$ac_config_headers"; then
12988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12991 if test -n "$ac_config_links"; then
12992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12995 if test -n "$ac_config_commands"; then
12996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12999 cat >>$CONFIG_STATUS <<\EOF
13001 ac_cs_usage="\
13002 \`$as_me' instantiates files from templates according to the
13003 current configuration.
13005 Usage: $0 [OPTIONS] [FILE]...
13007 -h, --help print this help, then exit
13008 -V, --version print version number, then exit
13009 -d, --debug don't remove temporary files
13010 --recheck update $as_me by reconfiguring in the same conditions
13011 --file=FILE[:TEMPLATE]
13012 instantiate the configuration file FILE
13013 --header=FILE[:TEMPLATE]
13014 instantiate the configuration header FILE
13016 Configuration files:
13017 $config_files
13019 Configuration headers:
13020 $config_headers
13022 Configuration commands:
13023 $config_commands
13025 Report bugs to <bug-autoconf@gnu.org>."
13028 cat >>$CONFIG_STATUS <<EOF
13029 ac_cs_version="\\
13030 config.status
13031 configured by $0, generated by GNU Autoconf 2.52,
13032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13035 Free Software Foundation, Inc.
13036 This config.status script is free software; the Free Software Foundation
13037 gives unlimited permission to copy, distribute and modify it."
13038 srcdir=$srcdir
13039 INSTALL="$INSTALL"
13042 cat >>$CONFIG_STATUS <<\EOF
13043 # If no file are specified by the user, then we need to provide default
13044 # value. By we need to know if files were specified by the user.
13045 ac_need_defaults=:
13046 while test $# != 0
13048 case $1 in
13049 --*=*)
13050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13052 shift
13053 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13054 shift
13056 -*);;
13057 *) # This is not an option, so the user has probably given explicit
13058 # arguments.
13059 ac_need_defaults=false;;
13060 esac
13062 case $1 in
13063 # Handling of the options.
13065 cat >>$CONFIG_STATUS <<EOF
13066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13067 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13068 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13070 cat >>$CONFIG_STATUS <<\EOF
13071 --version | --vers* | -V )
13072 echo "$ac_cs_version"; exit 0 ;;
13073 --he | --h)
13074 # Conflict between --help and --header
13075 { { echo "$as_me:13075: error: ambiguous option: $1
13076 Try \`$0 --help' for more information." >&5
13077 echo "$as_me: error: ambiguous option: $1
13078 Try \`$0 --help' for more information." >&2;}
13079 { (exit 1); exit 1; }; };;
13080 --help | --hel | -h )
13081 echo "$ac_cs_usage"; exit 0 ;;
13082 --debug | --d* | -d )
13083 debug=: ;;
13084 --file | --fil | --fi | --f )
13085 shift
13086 CONFIG_FILES="$CONFIG_FILES $1"
13087 ac_need_defaults=false;;
13088 --header | --heade | --head | --hea )
13089 shift
13090 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13091 ac_need_defaults=false;;
13093 # This is an error.
13094 -*) { { echo "$as_me:13094: error: unrecognized option: $1
13095 Try \`$0 --help' for more information." >&5
13096 echo "$as_me: error: unrecognized option: $1
13097 Try \`$0 --help' for more information." >&2;}
13098 { (exit 1); exit 1; }; } ;;
13100 *) ac_config_targets="$ac_config_targets $1" ;;
13102 esac
13103 shift
13104 done
13106 exec 5>>config.log
13107 cat >&5 << _ACEOF
13109 ## ----------------------- ##
13110 ## Running config.status. ##
13111 ## ----------------------- ##
13113 This file was extended by $as_me 2.52, executed with
13114 CONFIG_FILES = $CONFIG_FILES
13115 CONFIG_HEADERS = $CONFIG_HEADERS
13116 CONFIG_LINKS = $CONFIG_LINKS
13117 CONFIG_COMMANDS = $CONFIG_COMMANDS
13118 > $ac_cs_invocation
13119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13121 _ACEOF
13124 cat >>$CONFIG_STATUS <<EOF
13126 # INIT-COMMANDS section.
13129 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13133 cat >>$CONFIG_STATUS <<\EOF
13134 for ac_config_target in $ac_config_targets
13136 case "$ac_config_target" in
13137 # Handling of arguments.
13138 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13139 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13140 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
13141 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13142 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
13143 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13144 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
13145 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
13146 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
13147 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
13148 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13149 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13150 *) { { echo "$as_me:13150: error: invalid argument: $ac_config_target" >&5
13151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13152 { (exit 1); exit 1; }; };;
13153 esac
13154 done
13156 # If the user did not use the arguments to specify the items to instantiate,
13157 # then the envvar interface is used. Set only those that are not.
13158 # We use the long form for the default assignment because of an extremely
13159 # bizarre bug on SunOS 4.1.3.
13160 if $ac_need_defaults; then
13161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13166 # Create a temporary directory, and hook for its removal unless debugging.
13167 $debug ||
13169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13170 trap '{ (exit 1); exit 1; }' 1 2 13 15
13173 # Create a (secure) tmp directory for tmp files.
13174 : ${TMPDIR=/tmp}
13176 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13177 test -n "$tmp" && test -d "$tmp"
13178 } ||
13180 tmp=$TMPDIR/cs$$-$RANDOM
13181 (umask 077 && mkdir $tmp)
13182 } ||
13184 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13185 { (exit 1); exit 1; }
13190 cat >>$CONFIG_STATUS <<EOF
13193 # CONFIG_FILES section.
13196 # No need to generate the scripts if there are no CONFIG_FILES.
13197 # This happens for instance when ./config.status config.h
13198 if test -n "\$CONFIG_FILES"; then
13199 # Protect against being on the right side of a sed subst in config.status.
13200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13202 s,@SHELL@,$SHELL,;t t
13203 s,@exec_prefix@,$exec_prefix,;t t
13204 s,@prefix@,$prefix,;t t
13205 s,@program_transform_name@,$program_transform_name,;t t
13206 s,@bindir@,$bindir,;t t
13207 s,@sbindir@,$sbindir,;t t
13208 s,@libexecdir@,$libexecdir,;t t
13209 s,@datadir@,$datadir,;t t
13210 s,@sysconfdir@,$sysconfdir,;t t
13211 s,@sharedstatedir@,$sharedstatedir,;t t
13212 s,@localstatedir@,$localstatedir,;t t
13213 s,@libdir@,$libdir,;t t
13214 s,@includedir@,$includedir,;t t
13215 s,@oldincludedir@,$oldincludedir,;t t
13216 s,@infodir@,$infodir,;t t
13217 s,@mandir@,$mandir,;t t
13218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13223 s,@build_alias@,$build_alias,;t t
13224 s,@host_alias@,$host_alias,;t t
13225 s,@target_alias@,$target_alias,;t t
13226 s,@ECHO_C@,$ECHO_C,;t t
13227 s,@ECHO_N@,$ECHO_N,;t t
13228 s,@ECHO_T@,$ECHO_T,;t t
13229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13230 s,@DEFS@,$DEFS,;t t
13231 s,@LIBS@,$LIBS,;t t
13232 s,@build@,$build,;t t
13233 s,@build_cpu@,$build_cpu,;t t
13234 s,@build_vendor@,$build_vendor,;t t
13235 s,@build_os@,$build_os,;t t
13236 s,@host@,$host,;t t
13237 s,@host_cpu@,$host_cpu,;t t
13238 s,@host_vendor@,$host_vendor,;t t
13239 s,@host_os@,$host_os,;t t
13240 s,@CC@,$CC,;t t
13241 s,@CFLAGS@,$CFLAGS,;t t
13242 s,@LDFLAGS@,$LDFLAGS,;t t
13243 s,@CPPFLAGS@,$CPPFLAGS,;t t
13244 s,@ac_ct_CC@,$ac_ct_CC,;t t
13245 s,@EXEEXT@,$EXEEXT,;t t
13246 s,@OBJEXT@,$OBJEXT,;t t
13247 s,@LN_S@,$LN_S,;t t
13248 s,@CPP@,$CPP,;t t
13249 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13250 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13251 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13252 s,@YACC@,$YACC,;t t
13253 s,@RANLIB@,$RANLIB,;t t
13254 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13255 s,@LIBSOUND@,$LIBSOUND,;t t
13256 s,@SET_MAKE@,$SET_MAKE,;t t
13257 s,@ALLOCA@,$ALLOCA,;t t
13258 s,@liblockfile@,$liblockfile,;t t
13259 s,@LIBOBJS@,$LIBOBJS,;t t
13260 s,@NEED_SETGID@,$NEED_SETGID,;t t
13261 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13262 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13263 s,@version@,$version,;t t
13264 s,@configuration@,$configuration,;t t
13265 s,@canonical@,$canonical,;t t
13266 s,@srcdir@,$srcdir,;t t
13267 s,@lispdir@,$lispdir,;t t
13268 s,@locallisppath@,$locallisppath,;t t
13269 s,@lisppath@,$lisppath,;t t
13270 s,@x_default_search_path@,$x_default_search_path,;t t
13271 s,@etcdir@,$etcdir,;t t
13272 s,@archlibdir@,$archlibdir,;t t
13273 s,@docdir@,$docdir,;t t
13274 s,@bitmapdir@,$bitmapdir,;t t
13275 s,@gamedir@,$gamedir,;t t
13276 s,@gameuser@,$gameuser,;t t
13277 s,@c_switch_system@,$c_switch_system,;t t
13278 s,@c_switch_machine@,$c_switch_machine,;t t
13279 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13280 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13281 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13282 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13283 s,@machfile@,$machfile,;t t
13284 s,@opsysfile@,$opsysfile,;t t
13285 CEOF
13289 cat >>$CONFIG_STATUS <<\EOF
13290 # Split the substitutions into bite-sized pieces for seds with
13291 # small command number limits, like on Digital OSF/1 and HP-UX.
13292 ac_max_sed_lines=48
13293 ac_sed_frag=1 # Number of current file.
13294 ac_beg=1 # First line for current file.
13295 ac_end=$ac_max_sed_lines # Line after last line for current file.
13296 ac_more_lines=:
13297 ac_sed_cmds=
13298 while $ac_more_lines; do
13299 if test $ac_beg -gt 1; then
13300 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13301 else
13302 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13304 if test ! -s $tmp/subs.frag; then
13305 ac_more_lines=false
13306 else
13307 # The purpose of the label and of the branching condition is to
13308 # speed up the sed processing (if there are no `@' at all, there
13309 # is no need to browse any of the substitutions).
13310 # These are the two extra sed commands mentioned above.
13311 (echo ':t
13312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13313 if test -z "$ac_sed_cmds"; then
13314 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13315 else
13316 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13318 ac_sed_frag=`expr $ac_sed_frag + 1`
13319 ac_beg=$ac_end
13320 ac_end=`expr $ac_end + $ac_max_sed_lines`
13322 done
13323 if test -z "$ac_sed_cmds"; then
13324 ac_sed_cmds=cat
13326 fi # test -n "$CONFIG_FILES"
13329 cat >>$CONFIG_STATUS <<\EOF
13330 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13332 case $ac_file in
13333 - | *:- | *:-:* ) # input from stdin
13334 cat >$tmp/stdin
13335 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13337 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13339 * ) ac_file_in=$ac_file.in ;;
13340 esac
13342 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13343 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13344 X"$ac_file" : 'X\(//\)[^/]' \| \
13345 X"$ac_file" : 'X\(//\)$' \| \
13346 X"$ac_file" : 'X\(/\)' \| \
13347 . : '\(.\)' 2>/dev/null ||
13348 echo X"$ac_file" |
13349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13351 /^X\(\/\/\)$/{ s//\1/; q; }
13352 /^X\(\/\).*/{ s//\1/; q; }
13353 s/.*/./; q'`
13354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13355 { case "$ac_dir" in
13356 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13357 *) as_incr_dir=.;;
13358 esac
13359 as_dummy="$ac_dir"
13360 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13361 case $as_mkdir_dir in
13362 # Skip DOS drivespec
13363 ?:) as_incr_dir=$as_mkdir_dir ;;
13365 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13366 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13368 esac
13369 done; }
13371 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13372 # A "../" for each directory in $ac_dir_suffix.
13373 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13374 else
13375 ac_dir_suffix= ac_dots=
13378 case $srcdir in
13379 .) ac_srcdir=.
13380 if test -z "$ac_dots"; then
13381 ac_top_srcdir=.
13382 else
13383 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13384 fi ;;
13385 [\\/]* | ?:[\\/]* )
13386 ac_srcdir=$srcdir$ac_dir_suffix;
13387 ac_top_srcdir=$srcdir ;;
13388 *) # Relative path.
13389 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13390 ac_top_srcdir=$ac_dots$srcdir ;;
13391 esac
13393 case $INSTALL in
13394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13395 *) ac_INSTALL=$ac_dots$INSTALL ;;
13396 esac
13398 if test x"$ac_file" != x-; then
13399 { echo "$as_me:13399: creating $ac_file" >&5
13400 echo "$as_me: creating $ac_file" >&6;}
13401 rm -f "$ac_file"
13403 # Let's still pretend it is `configure' which instantiates (i.e., don't
13404 # use $as_me), people would be surprised to read:
13405 # /* config.h. Generated automatically by config.status. */
13406 configure_input="Generated automatically from `echo $ac_file_in |
13407 sed 's,.*/,,'` by configure."
13409 # First look for the input files in the build tree, otherwise in the
13410 # src tree.
13411 ac_file_inputs=`IFS=:
13412 for f in $ac_file_in; do
13413 case $f in
13414 -) echo $tmp/stdin ;;
13415 [\\/$]*)
13416 # Absolute (can't be DOS-style, as IFS=:)
13417 test -f "$f" || { { echo "$as_me:13417: error: cannot find input file: $f" >&5
13418 echo "$as_me: error: cannot find input file: $f" >&2;}
13419 { (exit 1); exit 1; }; }
13420 echo $f;;
13421 *) # Relative
13422 if test -f "$f"; then
13423 # Build tree
13424 echo $f
13425 elif test -f "$srcdir/$f"; then
13426 # Source tree
13427 echo $srcdir/$f
13428 else
13429 # /dev/null tree
13430 { { echo "$as_me:13430: error: cannot find input file: $f" >&5
13431 echo "$as_me: error: cannot find input file: $f" >&2;}
13432 { (exit 1); exit 1; }; }
13433 fi;;
13434 esac
13435 done` || { (exit 1); exit 1; }
13437 cat >>$CONFIG_STATUS <<EOF
13438 sed "$ac_vpsub
13439 $extrasub
13441 cat >>$CONFIG_STATUS <<\EOF
13443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13444 s,@configure_input@,$configure_input,;t t
13445 s,@srcdir@,$ac_srcdir,;t t
13446 s,@top_srcdir@,$ac_top_srcdir,;t t
13447 s,@INSTALL@,$ac_INSTALL,;t t
13448 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13449 rm -f $tmp/stdin
13450 if test x"$ac_file" != x-; then
13451 mv $tmp/out $ac_file
13452 else
13453 cat $tmp/out
13454 rm -f $tmp/out
13457 done
13459 cat >>$CONFIG_STATUS <<\EOF
13462 # CONFIG_HEADER section.
13465 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13466 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13468 # ac_d sets the value in "#define NAME VALUE" lines.
13469 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13470 ac_dB='[ ].*$,\1#\2'
13471 ac_dC=' '
13472 ac_dD=',;t'
13473 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13474 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13475 ac_uB='$,\1#\2define\3'
13476 ac_uC=' '
13477 ac_uD=',;t'
13479 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13481 case $ac_file in
13482 - | *:- | *:-:* ) # input from stdin
13483 cat >$tmp/stdin
13484 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13486 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13488 * ) ac_file_in=$ac_file.in ;;
13489 esac
13491 test x"$ac_file" != x- && { echo "$as_me:13491: creating $ac_file" >&5
13492 echo "$as_me: creating $ac_file" >&6;}
13494 # First look for the input files in the build tree, otherwise in the
13495 # src tree.
13496 ac_file_inputs=`IFS=:
13497 for f in $ac_file_in; do
13498 case $f in
13499 -) echo $tmp/stdin ;;
13500 [\\/$]*)
13501 # Absolute (can't be DOS-style, as IFS=:)
13502 test -f "$f" || { { echo "$as_me:13502: error: cannot find input file: $f" >&5
13503 echo "$as_me: error: cannot find input file: $f" >&2;}
13504 { (exit 1); exit 1; }; }
13505 echo $f;;
13506 *) # Relative
13507 if test -f "$f"; then
13508 # Build tree
13509 echo $f
13510 elif test -f "$srcdir/$f"; then
13511 # Source tree
13512 echo $srcdir/$f
13513 else
13514 # /dev/null tree
13515 { { echo "$as_me:13515: error: cannot find input file: $f" >&5
13516 echo "$as_me: error: cannot find input file: $f" >&2;}
13517 { (exit 1); exit 1; }; }
13518 fi;;
13519 esac
13520 done` || { (exit 1); exit 1; }
13521 # Remove the trailing spaces.
13522 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13526 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13527 # `conftest.undefs', that substitutes the proper values into
13528 # config.h.in to produce config.h. The first handles `#define'
13529 # templates, and the second `#undef' templates.
13530 # And first: Protect against being on the right side of a sed subst in
13531 # config.status. Protect against being in an unquoted here document
13532 # in config.status.
13533 rm -f conftest.defines conftest.undefs
13534 # Using a here document instead of a string reduces the quoting nightmare.
13535 # Putting comments in sed scripts is not portable.
13537 # `end' is used to avoid that the second main sed command (meant for
13538 # 0-ary CPP macros) applies to n-ary macro definitions.
13539 # See the Autoconf documentation for `clear'.
13540 cat >confdef2sed.sed <<\EOF
13541 s/[\\&,]/\\&/g
13542 s,[\\$`],\\&,g
13543 t clear
13544 : clear
13545 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13546 t end
13547 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13548 : end
13550 # If some macros were called several times there might be several times
13551 # the same #defines, which is useless. Nevertheless, we may not want to
13552 # sort them, since we want the *last* AC-DEFINE to be honored.
13553 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13554 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13555 rm -f confdef2sed.sed
13557 # This sed command replaces #undef with comments. This is necessary, for
13558 # example, in the case of _POSIX_SOURCE, which is predefined and required
13559 # on some systems where configure will not decide to define it.
13560 cat >>conftest.undefs <<\EOF
13561 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13564 # Break up conftest.defines because some shells have a limit on the size
13565 # of here documents, and old seds have small limits too (100 cmds).
13566 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13567 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13568 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13569 echo ' :' >>$CONFIG_STATUS
13570 rm -f conftest.tail
13571 while grep . conftest.defines >/dev/null
13573 # Write a limited-size here document to $tmp/defines.sed.
13574 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13575 # Speed up: don't consider the non `#define' lines.
13576 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13577 # Work around the forget-to-reset-the-flag bug.
13578 echo 't clr' >>$CONFIG_STATUS
13579 echo ': clr' >>$CONFIG_STATUS
13580 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13581 echo 'CEOF
13582 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13583 rm -f $tmp/in
13584 mv $tmp/out $tmp/in
13585 ' >>$CONFIG_STATUS
13586 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13587 rm -f conftest.defines
13588 mv conftest.tail conftest.defines
13589 done
13590 rm -f conftest.defines
13591 echo ' fi # egrep' >>$CONFIG_STATUS
13592 echo >>$CONFIG_STATUS
13594 # Break up conftest.undefs because some shells have a limit on the size
13595 # of here documents, and old seds have small limits too (100 cmds).
13596 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13597 rm -f conftest.tail
13598 while grep . conftest.undefs >/dev/null
13600 # Write a limited-size here document to $tmp/undefs.sed.
13601 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13602 # Speed up: don't consider the non `#undef'
13603 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13604 # Work around the forget-to-reset-the-flag bug.
13605 echo 't clr' >>$CONFIG_STATUS
13606 echo ': clr' >>$CONFIG_STATUS
13607 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13608 echo 'CEOF
13609 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13610 rm -f $tmp/in
13611 mv $tmp/out $tmp/in
13612 ' >>$CONFIG_STATUS
13613 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13614 rm -f conftest.undefs
13615 mv conftest.tail conftest.undefs
13616 done
13617 rm -f conftest.undefs
13619 cat >>$CONFIG_STATUS <<\EOF
13620 # Let's still pretend it is `configure' which instantiates (i.e., don't
13621 # use $as_me), people would be surprised to read:
13622 # /* config.h. Generated automatically by config.status. */
13623 if test x"$ac_file" = x-; then
13624 echo "/* Generated automatically by configure. */" >$tmp/config.h
13625 else
13626 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13628 cat $tmp/in >>$tmp/config.h
13629 rm -f $tmp/in
13630 if test x"$ac_file" != x-; then
13631 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13632 { echo "$as_me:13632: $ac_file is unchanged" >&5
13633 echo "$as_me: $ac_file is unchanged" >&6;}
13634 else
13635 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636 X"$ac_file" : 'X\(//\)[^/]' \| \
13637 X"$ac_file" : 'X\(//\)$' \| \
13638 X"$ac_file" : 'X\(/\)' \| \
13639 . : '\(.\)' 2>/dev/null ||
13640 echo X"$ac_file" |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13643 /^X\(\/\/\)$/{ s//\1/; q; }
13644 /^X\(\/\).*/{ s//\1/; q; }
13645 s/.*/./; q'`
13646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13647 { case "$ac_dir" in
13648 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13649 *) as_incr_dir=.;;
13650 esac
13651 as_dummy="$ac_dir"
13652 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13653 case $as_mkdir_dir in
13654 # Skip DOS drivespec
13655 ?:) as_incr_dir=$as_mkdir_dir ;;
13657 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13658 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13660 esac
13661 done; }
13664 rm -f $ac_file
13665 mv $tmp/config.h $ac_file
13667 else
13668 cat $tmp/config.h
13669 rm -f $tmp/config.h
13671 done
13673 cat >>$CONFIG_STATUS <<\EOF
13676 # CONFIG_COMMANDS section.
13678 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13682 case $ac_dest in
13683 default )
13685 ### Make the necessary directories, if they don't exist.
13686 for dir in etc lisp ; do
13687 test -d ${dir} || mkdir ${dir}
13688 done
13690 # Build src/Makefile from ${srcdir}/src/Makefile.c
13691 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13692 # This must be done after src/config.h is built, since we rely on that file.
13694 # Now get this: Some word that is part of the ${srcdir} directory name
13695 # or the ${configuration} value might, just might, happen to be an
13696 # identifier like `sun4' or `i386' or something, and be predefined by
13697 # the C preprocessor to some helpful value like 1, or maybe the empty
13698 # string. Needless to say consequent macro substitutions are less
13699 # than conducive to the makefile finding the correct directory.
13700 undefs="`echo $top_srcdir $configuration $canonical |
13701 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13702 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13705 echo creating src/epaths.h
13706 ${MAKE-make} epaths-force
13708 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13709 # `..' to `. .' unless invoked with -traditional
13711 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13712 CPPFLAGS="$CPPFLAGS -traditional"
13715 echo creating lib-src/Makefile
13716 ( cd lib-src
13717 rm -f junk.c junk1.c junk2.c
13718 sed -e '/start of cpp stuff/q' \
13719 < Makefile.c > junk1.c
13720 sed -e '1,/start of cpp stuff/d'\
13721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13722 < Makefile.c > junk.c
13723 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13725 cat junk1.c junk2.c > Makefile.new
13726 rm -f junk.c junk1.c junk2.c
13727 chmod 444 Makefile.new
13728 mv -f Makefile.new Makefile
13731 echo creating src/Makefile
13732 ( cd src
13733 rm -f junk.c junk1.c junk2.c
13734 sed -e '/start of cpp stuff/q' \
13735 < Makefile.c > junk1.c
13736 sed -e '1,/start of cpp stuff/d'\
13737 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13738 < Makefile.c > junk.c
13739 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13740 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13741 cat junk1.c junk2.c > Makefile.new
13742 rm -f junk.c junk1.c junk2.c
13743 chmod 444 Makefile.new
13744 mv -f Makefile.new Makefile
13747 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13748 echo creating src/.gdbinit
13749 echo source $srcdir/src/.gdbinit > src/.gdbinit
13752 # This is how we know whether to re-run configure in certain cases.
13753 touch src/config.stamp
13756 esac
13757 done
13760 cat >>$CONFIG_STATUS <<\EOF
13762 { (exit 0); exit 0; }
13764 chmod +x $CONFIG_STATUS
13765 ac_clean_files=$ac_clean_files_save
13767 # configure is writing to config.log, and then calls config.status.
13768 # config.status does its own redirection, appending to config.log.
13769 # Unfortunately, on DOS this fails, as config.log is still kept open
13770 # by configure, so config.status won't be able to write to it; its
13771 # output is simply discarded. So we exec the FD to /dev/null,
13772 # effectively closing config.log, so it can be properly (re)opened and
13773 # appended to by config.status. When coming back to configure, we
13774 # need to make the FD available again.
13775 if test "$no_create" != yes; then
13776 ac_cs_success=:
13777 exec 5>/dev/null
13778 $SHELL $CONFIG_STATUS || ac_cs_success=false
13779 exec 5>>config.log
13780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13781 # would make configure fail if this is the last instruction.
13782 $ac_cs_success || { (exit 1); exit 1; }