(solitaire-mode-map): Use command remapping instead of
[emacs.git] / configure
blobdd8964a2ef9f395edd4ec5be4644ef1041c2640b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 # absolute.
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933 cd $ac_dir
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
936 echo
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
939 echo
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
943 echo
944 $ac_configure --help
945 else
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 cd $ac_popdir
949 done
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
954 cat <<\_ACEOF
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961 exit 0
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.57. Invocation command line was
971 $ $0 $@
973 _ACEOF
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 _ASUNAME
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1002 IFS=$as_save_IFS
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1005 done
1007 } >&5
1009 cat >&5 <<_ACEOF
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1016 _ACEOF
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Strip out --silent because we don't want to record it for future runs.
1022 # Also quote any args containing shell meta-characters.
1023 # Make two passes to allow for proper duplicate-argument suppression.
1024 ac_configure_args=
1025 ac_configure_args0=
1026 ac_configure_args1=
1027 ac_sep=
1028 ac_must_keep_next=false
1029 for ac_pass in 1 2
1031 for ac_arg
1033 case $ac_arg in
1034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 continue ;;
1038 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 esac
1041 case $ac_pass in
1042 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1044 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045 if test $ac_must_keep_next = true; then
1046 ac_must_keep_next=false # Got value, back to normal.
1047 else
1048 case $ac_arg in
1049 *=* | --config-cache | -C | -disable-* | --disable-* \
1050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052 | -with-* | --with-* | -without-* | --without-* | --x)
1053 case "$ac_configure_args0 " in
1054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 esac
1057 -* ) ac_must_keep_next=true ;;
1058 esac
1060 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1062 ac_sep=" "
1064 esac
1065 done
1066 done
1067 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1070 # When interrupted or exit'd, cleanup temporary files, and complete
1071 # config.log. We remove comments because anyway the quotes in there
1072 # would cause problems or look ugly.
1073 # WARNING: Be sure not to use single quotes in there, as some shells,
1074 # such as our DU 5.0 friend, will then `close' the trap.
1075 trap 'exit_status=$?
1076 # Save into config.log some information that might help in debugging.
1078 echo
1080 cat <<\_ASBOX
1081 ## ---------------- ##
1082 ## Cache variables. ##
1083 ## ---------------- ##
1084 _ASBOX
1085 echo
1086 # The following way of writing the cache mishandles newlines in values,
1088 (set) 2>&1 |
1089 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 *ac_space=\ *)
1091 sed -n \
1092 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096 sed -n \
1097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1099 esac;
1101 echo
1103 cat <<\_ASBOX
1104 ## ----------------- ##
1105 ## Output variables. ##
1106 ## ----------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_vars
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1116 if test -n "$ac_subst_files"; then
1117 cat <<\_ASBOX
1118 ## ------------- ##
1119 ## Output files. ##
1120 ## ------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_files
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1131 if test -s confdefs.h; then
1132 cat <<\_ASBOX
1133 ## ----------- ##
1134 ## confdefs.h. ##
1135 ## ----------- ##
1136 _ASBOX
1137 echo
1138 sed "/^$/d" confdefs.h | sort
1139 echo
1141 test "$ac_signal" != 0 &&
1142 echo "$as_me: caught signal $ac_signal"
1143 echo "$as_me: exit $exit_status"
1144 } >&5
1145 rm -f core core.* *.core &&
1146 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 exit $exit_status
1149 for ac_signal in 1 2 13 15; do
1150 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 done
1152 ac_signal=0
1154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1155 rm -rf conftest* confdefs.h
1156 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 echo >confdefs.h
1159 # Predefined preprocessor variables.
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 _ACEOF
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 _ACEOF
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 _ACEOF
1186 # Let the site file select an alternate cache file if it wants to.
1187 # Prefer explicitly selected file to automatically selected ones.
1188 if test -z "$CONFIG_SITE"; then
1189 if test "x$prefix" != xNONE; then
1190 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191 else
1192 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195 for ac_site_file in $CONFIG_SITE; do
1196 if test -r "$ac_site_file"; then
1197 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198 echo "$as_me: loading site script $ac_site_file" >&6;}
1199 sed 's/^/| /' "$ac_site_file" >&5
1200 . "$ac_site_file"
1202 done
1204 if test -r "$cache_file"; then
1205 # Some versions of bash will fail to source /dev/null (special
1206 # files actually), so we avoid doing that.
1207 if test -f "$cache_file"; then
1208 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209 echo "$as_me: loading cache $cache_file" >&6;}
1210 case $cache_file in
1211 [\\/]* | ?:[\\/]* ) . $cache_file;;
1212 *) . ./$cache_file;;
1213 esac
1215 else
1216 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217 echo "$as_me: creating cache $cache_file" >&6;}
1218 >$cache_file
1221 # Check that the precious variables saved in the cache have kept the same
1222 # value.
1223 ac_cache_corrupted=false
1224 for ac_var in `(set) 2>&1 |
1225 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227 eval ac_new_set=\$ac_env_${ac_var}_set
1228 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229 eval ac_new_val="\$ac_env_${ac_var}_value"
1230 case $ac_old_set,$ac_new_set in
1231 set,)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,set)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,);;
1241 if test "x$ac_old_val" != "x$ac_new_val"; then
1242 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1245 echo "$as_me: former value: $ac_old_val" >&2;}
1246 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1247 echo "$as_me: current value: $ac_new_val" >&2;}
1248 ac_cache_corrupted=:
1249 fi;;
1250 esac
1251 # Pass precious variables to config.status.
1252 if test "$ac_new_set" = set; then
1253 case $ac_new_val in
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 *) ac_arg=$ac_var=$ac_new_val ;;
1257 esac
1258 case " $ac_configure_args " in
1259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1260 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 esac
1263 done
1264 if $ac_cache_corrupted; then
1265 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269 { (exit 1); exit 1; }; }
1272 ac_ext=c
1273 ac_cpp='$CPP $CPPFLAGS'
1274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1299 test "$program_prefix" != NONE &&
1300 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1301 # Use a double $ so make ignores it.
1302 test "$program_suffix" != NONE &&
1303 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1304 # Double any \ or $. echo might interpret backslashes.
1305 # By default was `s,x,x', remove it if useless.
1306 cat <<\_ACEOF >conftest.sed
1307 s/[\\$]/&&/g;s/;s,x,x,$//
1308 _ACEOF
1309 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1310 rm conftest.sed
1313 lispdir='${datadir}/emacs/${version}/lisp'
1314 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1315 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1316 lisppath='${locallisppath}:${lispdir}'
1317 etcdir='${datadir}/emacs/${version}/etc'
1318 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1319 docdir='${datadir}/emacs/${version}/etc'
1320 gamedir='${localstatedir}/games/emacs'
1322 gameuser=games
1325 # Check whether --with-gcc or --without-gcc was given.
1326 if test "${with_gcc+set}" = set; then
1327 withval="$with_gcc"
1331 # Check whether --with-pop or --without-pop was given.
1332 if test "${with_pop+set}" = set; then
1333 withval="$with_pop"
1334 if test "$withval" = yes; then
1335 cat >>confdefs.h <<\_ACEOF
1336 #define MAIL_USE_POP 1
1337 _ACEOF
1339 else :
1341 else
1342 cat >>confdefs.h <<\_ACEOF
1343 #define MAIL_USE_POP 1
1344 _ACEOF
1349 # Check whether --with-kerberos or --without-kerberos was given.
1350 if test "${with_kerberos+set}" = set; then
1351 withval="$with_kerberos"
1352 cat >>confdefs.h <<\_ACEOF
1353 #define KERBEROS 1
1354 _ACEOF
1359 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1360 if test "${with_kerberos5+set}" = set; then
1361 withval="$with_kerberos5"
1362 if test "${with_kerberos5+set}" = set; then
1363 if test "${with_kerberos+set}" != set; then
1364 with_kerberos=yes
1365 cat >>confdefs.h <<\_ACEOF
1366 #define KERBEROS 1
1367 _ACEOF
1372 cat >>confdefs.h <<\_ACEOF
1373 #define KERBEROS5 1
1374 _ACEOF
1378 # Check whether --with-hesiod or --without-hesiod was given.
1379 if test "${with_hesiod+set}" = set; then
1380 withval="$with_hesiod"
1382 cat >>confdefs.h <<\_ACEOF
1383 #define HESIOD 1
1384 _ACEOF
1389 # Check whether --with-sound or --without-sound was given.
1390 if test "${with_sound+set}" = set; then
1391 withval="$with_sound"
1396 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1397 if test "${with_x_toolkit+set}" = set; then
1398 withval="$with_x_toolkit"
1399 case "${withval}" in
1400 y | ye | yes ) val=athena ;;
1401 n | no ) val=no ;;
1402 l | lu | luc | luci | lucid ) val=lucid ;;
1403 a | at | ath | athe | athen | athena ) val=athena ;;
1404 m | mo | mot | moti | motif ) val=motif ;;
1406 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1407 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1408 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1409 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1410 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1411 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1412 { (exit 1); exit 1; }; }
1414 esac
1415 with_x_toolkit=$val
1419 # Check whether --with-xpm or --without-xpm was given.
1420 if test "${with_xpm+set}" = set; then
1421 withval="$with_xpm"
1425 # Check whether --with-jpeg or --without-jpeg was given.
1426 if test "${with_jpeg+set}" = set; then
1427 withval="$with_jpeg"
1431 # Check whether --with-tiff or --without-tiff was given.
1432 if test "${with_tiff+set}" = set; then
1433 withval="$with_tiff"
1437 # Check whether --with-gif or --without-gif was given.
1438 if test "${with_gif+set}" = set; then
1439 withval="$with_gif"
1443 # Check whether --with-png or --without-png was given.
1444 if test "${with_png+set}" = set; then
1445 withval="$with_png"
1449 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1450 if test "${with_toolkit_scroll_bars+set}" = set; then
1451 withval="$with_toolkit_scroll_bars"
1455 # Check whether --with-xim or --without-xim was given.
1456 if test "${with_xim+set}" = set; then
1457 withval="$with_xim"
1461 # Check whether --with-carbon or --without-carbon was given.
1462 if test "${with_carbon+set}" = set; then
1463 withval="$with_carbon"
1466 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1467 if test "${enable_carbon_app+set}" = set; then
1468 enableval="$enable_carbon_app"
1469 carbon_appdir_x=${enableval}
1472 #### Make srcdir absolute, if it isn't already. It's important to
1473 #### avoid running the path through pwd unnecessarily, since pwd can
1474 #### give you automounter prefixes, which can go away. We do all this
1475 #### so Emacs can find its files when run uninstalled.
1476 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1477 unset CDPATH
1478 case "${srcdir}" in
1479 /* ) ;;
1481 ## We may be able to use the $PWD environment variable to make this
1482 ## absolute. But sometimes PWD is inaccurate.
1483 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1484 ## but that tested only for a well-formed and valid PWD,
1485 ## it did not object when PWD was well-formed and valid but just wrong.
1486 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1487 then
1488 srcdir="$PWD"
1489 else
1490 srcdir="`(cd ${srcdir}; pwd)`"
1493 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1494 esac
1496 #### Check if the source directory already has a configured system in it.
1497 if test `pwd` != `(cd ${srcdir} && pwd)` \
1498 && test -f "${srcdir}/src/config.h" ; then
1499 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1500 as a build directory right now; it has been configured in its own
1501 right. To configure in another directory as well, you MUST
1502 use GNU make. If you do not have GNU make, then you must
1503 now do \`make distclean' in ${srcdir},
1504 and then run $0 again." >&5
1505 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1506 as a build directory right now; it has been configured in its own
1507 right. To configure in another directory as well, you MUST
1508 use GNU make. If you do not have GNU make, then you must
1509 now do \`make distclean' in ${srcdir},
1510 and then run $0 again." >&2;}
1512 extrasub='/^VPATH[ ]*=/c\
1513 vpath %.c $(srcdir)\
1514 vpath %.h $(srcdir)\
1515 vpath %.y $(srcdir)\
1516 vpath %.l $(srcdir)\
1517 vpath %.s $(srcdir)\
1518 vpath %.in $(srcdir)\
1519 vpath %.texi $(srcdir)'
1522 #### Given the configuration name, set machfile and opsysfile to the
1523 #### names of the m/*.h and s/*.h files we should use.
1525 ### Canonicalize the configuration name.
1527 ac_aux_dir=
1528 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529 if test -f $ac_dir/install-sh; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/install-sh -c"
1532 break
1533 elif test -f $ac_dir/install.sh; then
1534 ac_aux_dir=$ac_dir
1535 ac_install_sh="$ac_aux_dir/install.sh -c"
1536 break
1537 elif test -f $ac_dir/shtool; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/shtool install -c"
1540 break
1542 done
1543 if test -z "$ac_aux_dir"; then
1544 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546 { (exit 1); exit 1; }; }
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606 canonical=$host
1607 configuration=${host_alias-$host}
1611 ### If you add support for a new configuration, add code to this
1612 ### switch statement to recognize your configuration name and select
1613 ### the appropriate operating system and machine description files.
1615 ### You would hope that you could choose an m/*.h file pretty much
1616 ### based on the machine portion of the configuration name, and an s-
1617 ### file based on the operating system portion. However, it turns out
1618 ### that each m/*.h file is pretty manufacturer-specific - for
1619 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1620 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1621 ### machines. So we basically have to have a special case for each
1622 ### configuration name.
1624 ### As far as handling version numbers on operating systems is
1625 ### concerned, make sure things will fail in a fixable way. If
1626 ### /etc/MACHINES doesn't say anything about version numbers, be
1627 ### prepared to handle anything reasonably. If version numbers
1628 ### matter, be sure /etc/MACHINES says something about it.
1630 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1631 ### "System V Release 4"; he writes, "The old convention encouraged
1632 ### confusion between `system' and `release' levels'."
1634 machine='' opsys='' unported=no
1635 case "${canonical}" in
1637 ## FreeBSD ports
1638 *-*-freebsd* )
1639 opsys=freebsd
1640 case "${canonical}" in
1641 alpha*-*-freebsd*) machine=alpha ;;
1642 i[3456]86-*-freebsd*) machine=intel386 ;;
1643 esac
1646 ## NetBSD ports
1647 *-*-netbsd* )
1648 opsys=netbsd
1649 case "${canonical}" in
1650 alpha*-*-netbsd*) machine=alpha ;;
1651 i[3456]86-*-netbsd*) machine=intel386 ;;
1652 m68k-*-netbsd*)
1653 # This is somewhat bogus.
1654 machine=hp9000s300 ;;
1655 powerpc-apple-netbsd*) machine=macppc ;;
1656 mips-*-netbsd*) machine=pmax ;;
1657 mipsel-*-netbsd*) machine=pmax ;;
1658 mipseb-*-netbsd*) machine=pmax ;;
1659 ns32k-*-netbsd*) machine=ns32000 ;;
1660 powerpc-*-netbsd*) machine=macppc ;;
1661 sparc*-*-netbsd*) machine=sparc ;;
1662 vax-*-netbsd*) machine=vax ;;
1663 arm-*-netbsd*) machine=arm ;;
1664 esac
1667 ## OpenBSD ports
1668 *-*-openbsd* )
1669 opsys=openbsd
1670 case "${canonical}" in
1671 alpha*-*-openbsd*) machine=alpha ;;
1672 i386-*-openbsd*) machine=intel386 ;;
1673 m68k-*-openbsd*) machine=hp9000s300 ;;
1674 mipsel-*-openbsd*) machine=pmax ;;
1675 ns32k-*-openbsd*) machine=ns32000 ;;
1676 sparc-*-openbsd*) machine=sparc ;;
1677 vax-*-openbsd*) machine=vax ;;
1678 esac
1681 ## Acorn RISCiX:
1682 arm-acorn-riscix1.1* )
1683 machine=acorn opsys=riscix1-1
1685 arm-acorn-riscix1.2* | arm-acorn-riscix )
1686 ## This name is riscix12 instead of riscix1.2
1687 ## to avoid a file name conflict on MSDOS.
1688 machine=acorn opsys=riscix12
1691 ## BSDI ports
1692 *-*-bsdi* )
1693 opsys=bsdi
1694 case "${canonical}" in
1695 i[345]86-*-bsdi*) machine=intel386 ;;
1696 sparc-*-bsdi*) machine=sparc ;;
1697 powerpc-*-bsdi*) machine=macppc ;;
1698 esac
1699 case "${canonical}" in
1700 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1701 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1702 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1703 *-*-bsdi3* ) opsys=bsdos3 ;;
1704 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1705 esac
1708 ## Alliant machines
1709 ## Strictly speaking, we need the version of the alliant operating
1710 ## system to choose the right machine file, but currently the
1711 ## configuration name doesn't tell us enough to choose the right
1712 ## one; we need to give alliants their own operating system name to
1713 ## do this right. When someone cares, they can help us.
1714 fx80-alliant-* )
1715 machine=alliant4 opsys=bsd4-2
1717 i860-alliant-* )
1718 machine=alliant-2800 opsys=bsd4-3
1721 ## Alpha (DEC) machines.
1722 alpha*-dec-osf* )
1723 machine=alpha opsys=osf1
1724 # This is needed to find X11R6.1 libraries for certain tests.
1725 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1726 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1727 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1728 # due to non-traditional preprocessing with the current compiler
1729 # defaults. OSF 4 can also have that compiler version, and there
1730 # seems always to have been a usable /usr/bin/cpp.
1731 NON_GNU_CPP=/usr/bin/cpp
1732 case "${canonical}" in
1733 alpha*-dec-osf[5-9]*)
1734 opsys=osf5-0 ;;
1735 esac
1738 alpha*-*-linux-gnu* )
1739 machine=alpha opsys=gnu-linux
1742 arm*-*-linux-gnu* )
1743 machine=arm opsys=gnu-linux
1746 ppc-*-linux | \
1747 powerpc-*-linux* )
1748 machine=macppc opsys=gnu-linux
1751 ## Altos 3068
1752 m68*-altos-sysv* )
1753 machine=altos opsys=usg5-2
1756 ## Amdahl UTS
1757 580-amdahl-sysv* )
1758 machine=amdahl opsys=usg5-2-2
1761 ## Apollo, Domain/OS
1762 m68*-apollo-* )
1763 machine=apollo opsys=bsd4-3
1766 ## AT&T 3b2, 3b5, 3b15, 3b20
1767 we32k-att-sysv* )
1768 machine=att3b opsys=usg5-2-2
1771 ## AT&T 3b1 - The Mighty Unix PC!
1772 m68*-att-sysv* )
1773 machine=7300 opsys=usg5-2-2
1776 ## Bull dpx20
1777 rs6000-bull-bosx* )
1778 machine=ibmrs6000 opsys=aix3-2
1781 ## Bull dpx2
1782 m68*-bull-sysv3* )
1783 machine=dpx2 opsys=usg5-3
1786 ## Bull sps7
1787 m68*-bull-sysv2* )
1788 machine=sps7 opsys=usg5-2
1791 ## CCI 5/32, 6/32 -- see "Tahoe".
1793 ## Celerity
1794 ## I don't know what configuration name to use for this; config.sub
1795 ## doesn't seem to know anything about it. Hey, Celerity users, get
1796 ## in touch with us!
1797 celerity-celerity-bsd* )
1798 machine=celerity opsys=bsd4-2
1801 ## Clipper
1802 ## What operating systems does this chip run that Emacs has been
1803 ## tested on?
1804 clipper-* )
1805 machine=clipper
1806 ## We'll use the catch-all code at the bottom to guess the
1807 ## operating system.
1810 ## Compaq Nonstop
1811 mips-compaq-nonstopux* )
1812 machine=nonstopux opsys=nonstopux
1815 ## Convex
1816 *-convex-bsd* | *-convex-convexos* )
1817 machine=convex opsys=bsd4-3
1818 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1819 NON_GNU_CPP="cc -E -P"
1822 ## Cubix QBx/386
1823 i[3456]86-cubix-sysv* )
1824 machine=intel386 opsys=usg5-3
1827 ## Cydra 5
1828 cydra*-cydrome-sysv* )
1829 machine=cydra5 opsys=usg5-3
1832 ## Data General AViiON Machines
1833 ## DG changed naming conventions with the release of 5.4.4.10, they
1834 ## dropped the initial 5.4 but left the intervening R. Because of the
1835 ## R this shouldn't conflict with older versions of the OS (which I
1836 ## think were named like dgux4.*). In addition, DG new AViiONs series
1837 ## uses either Motorola M88k or Intel Pentium CPUs.
1838 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1839 machine=aviion opsys=dgux4
1841 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1842 ## This name is dgux5-4-3 instead of dgux5-4r3
1843 ## to avoid a file name conflict on MSDOS.
1844 machine=aviion opsys=dgux5-4-3
1846 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1847 machine=aviion opsys=dgux5-4r2
1849 m88k-dg-dgux* )
1850 machine=aviion opsys=dgux
1853 ## Data General AViiON Intel (x86) Machines
1854 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1855 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1856 i[345]86-dg-dguxR4* )
1857 machine=aviion-intel opsys=dgux4
1860 ## DECstations
1861 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1862 machine=pmax opsys=bsd4-2
1864 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1865 machine=pmax opsys=bsd4-3
1867 mips-dec-ultrix* )
1868 machine=pmax opsys=ultrix4-3
1870 mips-dec-osf* )
1871 machine=pmax opsys=osf1
1873 mips-dec-mach_bsd4.3* )
1874 machine=pmax opsys=mach-bsd4-3
1877 ## Motorola Delta machines
1878 m68k-motorola-sysv* | m68000-motorola-sysv* )
1879 machine=delta opsys=usg5-3
1880 if test -z "`type gnucc | grep 'not found'`"
1881 then
1882 if test -s /etc/167config
1883 then CC="gnucc -m68040"
1884 else CC="gnucc -m68881"
1886 else
1887 if test -z "`type gcc | grep 'not found'`"
1888 then CC=gcc
1889 else CC=cc
1893 m88k-motorola-sysv4* )
1894 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1895 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1896 # I hope there are not other 4.0 versions for this machine
1897 # which really need usg5-4 instead.
1898 machine=delta88k opsys=usg5-4-2
1900 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1901 machine=delta88k opsys=usg5-3
1904 ## Dual machines
1905 m68*-dual-sysv* )
1906 machine=dual opsys=usg5-2
1908 m68*-dual-uniplus* )
1909 machine=dual opsys=unipl5-2
1912 ## Elxsi 6400
1913 elxsi-elxsi-sysv* )
1914 machine=elxsi opsys=usg5-2
1917 ## Encore machines
1918 ns16k-encore-bsd* )
1919 machine=ns16000 opsys=umax
1922 ## The GEC 63 - apparently, this port isn't really finished yet.
1923 # I'm sure we finished off the last of the machines, though. -- fx
1925 ## Gould Power Node and NP1
1926 pn-gould-bsd4.2* )
1927 machine=gould opsys=bsd4-2
1929 pn-gould-bsd4.3* )
1930 machine=gould opsys=bsd4-3
1932 np1-gould-bsd* )
1933 machine=gould-np1 opsys=bsd4-3
1936 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1937 ## as far as Emacs is concerned).
1938 m88k-harris-cxux* )
1939 # Build needs to be different on 7.0 and later releases
1940 case "`uname -r`" in
1941 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1942 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1943 esac
1944 NON_GNU_CPP="/lib/cpp"
1946 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1947 m68k-harris-cxux* )
1948 machine=nh3000 opsys=cxux
1950 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1951 powerpc-harris-powerunix )
1952 machine=nh6000 opsys=powerunix
1953 NON_GNU_CPP="cc -Xo -E -P"
1955 ## SR2001/SR2201 running HI-UX/MPP
1956 hppa1.1-hitachi-hiuxmpp* )
1957 machine=sr2k opsys=hiuxmpp
1959 hppa1.1-hitachi-hiuxwe2* )
1960 machine=sr2k opsys=hiuxwe2
1962 ## Honeywell XPS100
1963 xps*-honeywell-sysv* )
1964 machine=xps100 opsys=usg5-2
1967 ## HP 9000 series 200 or 300
1968 m68*-hp-bsd* )
1969 machine=hp9000s300 opsys=bsd4-3
1971 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1972 m68*-hp-hpux* )
1973 case "`uname -r`" in
1974 ## Someone's system reports A.B8.05 for this.
1975 ## I wonder what other possibilities there are.
1976 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1977 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1978 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1979 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1980 *) machine=hp9000s300 opsys=hpux ;;
1981 esac
1984 ## HP 9000 series 700 and 800, running HP/UX
1985 hppa*-hp-hpux7* )
1986 machine=hp800 opsys=hpux
1988 hppa*-hp-hpux8* )
1989 machine=hp800 opsys=hpux8
1991 hppa*-hp-hpux9shr* )
1992 machine=hp800 opsys=hpux9shr
1994 hppa*-hp-hpux9* )
1995 machine=hp800 opsys=hpux9
1997 hppa*-hp-hpux10* )
1998 machine=hp800 opsys=hpux10
2000 hppa*-hp-hpux1[1-9]* )
2001 machine=hp800 opsys=hpux11
2004 hppa*-*-linux-gnu* )
2005 machine=hp800 opsys=gnu-linux
2008 ## HP 9000 series 700 and 800, running HP/UX
2009 hppa*-hp-hpux* )
2010 ## Cross-compilation? Nah!
2011 case "`uname -r`" in
2012 ## Someone's system reports A.B8.05 for this.
2013 ## I wonder what other possibilities there are.
2014 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2015 *.08.* ) machine=hp800 opsys=hpux8 ;;
2016 *.09.* ) machine=hp800 opsys=hpux9 ;;
2017 *) machine=hp800 opsys=hpux10 ;;
2018 esac
2020 hppa*-*-nextstep* )
2021 machine=hp800 opsys=nextstep
2024 ## Orion machines
2025 orion-orion-bsd* )
2026 machine=orion opsys=bsd4-2
2028 clipper-orion-bsd* )
2029 machine=orion105 opsys=bsd4-2
2032 ## IBM machines
2033 i[3456]86-ibm-aix1.1* )
2034 machine=ibmps2-aix opsys=usg5-2-2
2036 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2037 machine=ibmps2-aix opsys=usg5-3
2039 i370-ibm-aix*)
2040 machine=ibm370aix opsys=usg5-3
2042 s390-*-linux-gnu)
2043 machine=ibms390 opsys=gnu-linux
2045 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2046 machine=ibmrs6000 opsys=aix3-1
2048 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2049 machine=ibmrs6000 opsys=aix3-2-5
2051 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2052 machine=ibmrs6000 opsys=aix4-1
2054 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2055 machine=ibmrs6000 opsys=aix4-2
2057 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2058 machine=ibmrs6000 opsys=aix4-2
2060 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2061 machine=ibmrs6000 opsys=aix4
2063 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2064 machine=ibmrs6000 opsys=aix4-1
2066 rs6000-ibm-aix* | powerpc-ibm-aix* )
2067 machine=ibmrs6000 opsys=aix3-2
2069 romp-ibm-bsd4.3* )
2070 machine=ibmrt opsys=bsd4-3
2072 romp-ibm-bsd4.2* )
2073 machine=ibmrt opsys=bsd4-2
2075 romp-ibm-aos4.3* )
2076 machine=ibmrt opsys=bsd4-3
2078 romp-ibm-aos4.2* )
2079 machine=ibmrt opsys=bsd4-2
2081 romp-ibm-aos* )
2082 machine=ibmrt opsys=bsd4-3
2084 romp-ibm-bsd* )
2085 machine=ibmrt opsys=bsd4-3
2087 romp-ibm-aix* )
2088 machine=ibmrt-aix opsys=usg5-2-2
2091 ## Integrated Solutions `Optimum V'
2092 m68*-isi-bsd4.2* )
2093 machine=isi-ov opsys=bsd4-2
2095 m68*-isi-bsd4.3* )
2096 machine=isi-ov opsys=bsd4-3
2099 ## Intel 386 machines where we do care about the manufacturer
2100 i[3456]86-intsys-sysv* )
2101 machine=is386 opsys=usg5-2-2
2104 ## Prime EXL
2105 i[3456]86-prime-sysv* )
2106 machine=i386 opsys=usg5-3
2109 ## Sequent Symmetry running Dynix
2110 i[3456]86-sequent-bsd* )
2111 machine=symmetry opsys=bsd4-3
2114 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2115 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2116 machine=sequent-ptx opsys=ptx4
2117 NON_GNU_CPP=/lib/cpp
2120 ## Sequent Symmetry running DYNIX/ptx
2121 ## Use the old cpp rather than the newer ANSI one.
2122 i[3456]86-sequent-ptx* )
2123 machine=sequent-ptx opsys=ptx
2124 NON_GNU_CPP="/lib/cpp"
2127 ## ncr machine running svr4.3.
2128 i[3456]86-ncr-sysv4.3 )
2129 machine=ncr386 opsys=usg5-4-3
2132 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2133 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2134 i[3456]86-ncr-sysv* )
2135 machine=ncr386 opsys=usg5-4-2
2138 ## Intel Paragon OSF/1
2139 i860-intel-osf1* )
2140 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2143 ## Intel 860
2144 i860-*-sysv4* )
2145 machine=i860 opsys=usg5-4
2146 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2147 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2150 ## Macintosh PowerPC
2151 powerpc*-*-linux-gnu* )
2152 machine=macppc opsys=gnu-linux
2155 ## Masscomp machines
2156 m68*-masscomp-rtu* )
2157 machine=masscomp opsys=rtu
2160 ## Megatest machines
2161 m68*-megatest-bsd* )
2162 machine=mega68 opsys=bsd4-2
2165 ## Workstations sold by MIPS
2166 ## This is not necessarily all workstations using the MIPS processor -
2167 ## Irises are produced by SGI, and DECstations by DEC.
2169 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2170 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2171 ## it gives for choosing between the alternatives seems to be "Use
2172 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2173 ## the BSD world." I'll assume that these are instructions for
2174 ## handling two odd situations, and that every other situation
2175 ## should use mips.h and usg5-2-2, they being listed first.
2176 mips-mips-usg* )
2177 machine=mips4
2178 ## Fall through to the general code at the bottom to decide on the OS.
2180 mips-mips-riscos4* )
2181 machine=mips4 opsys=bsd4-3
2182 NON_GNU_CC="cc -systype bsd43"
2183 NON_GNU_CPP="cc -systype bsd43 -E"
2185 mips-mips-riscos5* )
2186 machine=mips4 opsys=riscos5
2187 NON_GNU_CC="cc -systype bsd43"
2188 NON_GNU_CPP="cc -systype bsd43 -E"
2190 mips-mips-bsd* )
2191 machine=mips opsys=bsd4-3
2193 mips-mips-* )
2194 machine=mips opsys=usg5-2-2
2197 ## NeXT
2198 m68*-next-* | m68k-*-nextstep* )
2199 machine=m68k opsys=nextstep
2202 ## The complete machine from National Semiconductor
2203 ns32k-ns-genix* )
2204 machine=ns32000 opsys=usg5-2
2207 ## NCR machines
2208 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2209 machine=tower32 opsys=usg5-2-2
2211 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2212 machine=tower32v3 opsys=usg5-3
2215 ## NEC EWS4800
2216 mips-nec-sysv4*)
2217 machine=ews4800 opsys=ux4800
2220 ## Nixdorf Targon 31
2221 m68*-nixdorf-sysv* )
2222 machine=targon31 opsys=usg5-2-2
2225 ## Nu (TI or LMI)
2226 m68*-nu-sysv* )
2227 machine=nu opsys=usg5-2
2230 ## Plexus
2231 m68*-plexus-sysv* )
2232 machine=plexus opsys=usg5-2
2235 ## Pyramid machines
2236 ## I don't really have any idea what sort of processor the Pyramid has,
2237 ## so I'm assuming it is its own architecture.
2238 pyramid-pyramid-bsd* )
2239 machine=pyramid opsys=bsd4-2
2242 ## Sequent Balance
2243 ns32k-sequent-bsd4.2* )
2244 machine=sequent opsys=bsd4-2
2246 ns32k-sequent-bsd4.3* )
2247 machine=sequent opsys=bsd4-3
2250 ## Siemens Nixdorf
2251 mips-siemens-sysv* | mips-sni-sysv*)
2252 machine=mips-siemens opsys=usg5-4
2253 NON_GNU_CC=/usr/ccs/bin/cc
2254 NON_GNU_CPP=/usr/ccs/lib/cpp
2257 ## Silicon Graphics machines
2258 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2259 m68*-sgi-iris3.5* )
2260 machine=irist opsys=iris3-5
2262 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2263 machine=irist opsys=iris3-6
2265 ## Iris 4D
2266 mips-sgi-irix3* )
2267 machine=iris4d opsys=irix3-3
2269 mips-sgi-irix4* )
2270 machine=iris4d opsys=irix4-0
2272 mips-sgi-irix6.5 )
2273 machine=iris4d opsys=irix6-5
2274 # Without defining _LANGUAGE_C, things get masked out in the headers
2275 # so that, for instance, grepping for `free' in stdlib.h fails and
2276 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2277 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2278 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2280 mips-sgi-irix6* )
2281 machine=iris4d opsys=irix6-0
2282 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2283 # but presumably it does no harm.
2284 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2285 # -32 probably isn't necessary in later v.6s -- anyone know which?
2286 NON_GCC_TEST_OPTIONS=-32
2288 mips-sgi-irix5.[01]* )
2289 machine=iris4d opsys=irix5-0
2291 mips-sgi-irix5* | mips-sgi-irix* )
2292 machine=iris4d opsys=irix5-2
2295 ## SONY machines
2296 m68*-sony-bsd4.2* )
2297 machine=news opsys=bsd4-2
2299 m68*-sony-bsd4.3* )
2300 machine=news opsys=bsd4-3
2302 m68*-sony-newsos3* | m68*-sony-news3*)
2303 machine=news opsys=bsd4-3
2305 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2306 machine=news-risc opsys=bsd4-3
2308 mips-sony-newsos6* )
2309 machine=news-r6 opsys=newsos6
2311 mips-sony-news* )
2312 machine=news-risc opsys=newsos5
2315 ## Stride
2316 m68*-stride-sysv* )
2317 machine=stride opsys=usg5-2
2320 ## Suns
2321 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2322 machine=sparc opsys=gnu-linux
2325 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2326 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2327 | rs6000-*-solaris2*)
2328 case "${canonical}" in
2329 m68*-sunos1* ) machine=sun1 ;;
2330 m68*-sunos2* ) machine=sun2 ;;
2331 m68* ) machine=sun3 ;;
2332 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2333 i[3456]86-*-* ) machine=intel386 ;;
2334 powerpcle* ) machine=powerpcle ;;
2335 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2336 sparc* ) machine=sparc ;;
2337 * ) unported=yes ;;
2338 esac
2339 case "${canonical}" in
2340 ## The Sun386 didn't get past 4.0.
2341 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2342 *-sunos4.0* ) opsys=sunos4-0 ;;
2343 *-sunos4.1.[3-9]*noshare )
2344 ## This name is sunos413 instead of sunos4-1-3
2345 ## to avoid a file name conflict on MSDOS.
2346 opsys=sunos413
2347 NON_GNU_CPP=/usr/lib/cpp
2348 NON_GCC_TEST_OPTIONS=-Bstatic
2349 GCC_TEST_OPTIONS=-static
2351 *-sunos4.1.[3-9]* | *-sunos4shr*)
2352 opsys=sunos4shr
2353 NON_GNU_CPP=/usr/lib/cpp
2355 *-sunos4* | *-sunos )
2356 opsys=sunos4-1
2357 NON_GCC_TEST_OPTIONS=-Bstatic
2358 GCC_TEST_OPTIONS=-static
2360 *-sunos5.3* | *-solaris2.3* )
2361 opsys=sol2-3
2362 NON_GNU_CPP=/usr/ccs/lib/cpp
2364 *-sunos5.4* | *-solaris2.4* )
2365 opsys=sol2-4
2366 NON_GNU_CPP=/usr/ccs/lib/cpp
2367 RANLIB="ar -ts"
2369 *-sunos5.5* | *-solaris2.5* )
2370 opsys=sol2-5
2371 NON_GNU_CPP=/usr/ccs/lib/cpp
2372 RANLIB="ar -ts"
2374 *-sunos5.6* | *-solaris2.6* )
2375 opsys=sol2-6
2376 NON_GNU_CPP=/usr/ccs/lib/cpp
2377 RANLIB="ar -ts"
2379 *-sunos5* | *-solaris* )
2380 opsys=sol2-6
2381 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 * ) opsys=bsd4-2 ;;
2384 esac
2385 ## Watch out for a compiler that we know will not work.
2386 case "${canonical}" in
2387 *-solaris* | *-sunos5* )
2388 if [ "x$CC" = x/usr/ucb/cc ]; then
2389 ## /usr/ucb/cc doesn't work;
2390 ## we should find some other compiler that does work.
2391 unset CC
2394 *) ;;
2395 esac
2397 sparc-*-nextstep* )
2398 machine=sparc opsys=nextstep
2401 ## Tadpole 68k
2402 m68*-tadpole-sysv* )
2403 machine=tad68k opsys=usg5-3
2406 ## Tahoe machines
2407 tahoe-tahoe-bsd4.2* )
2408 machine=tahoe opsys=bsd4-2
2410 tahoe-tahoe-bsd4.3* )
2411 machine=tahoe opsys=bsd4-3
2414 ## Tandem Integrity S2
2415 mips-tandem-sysv* )
2416 machine=tandem-s2 opsys=usg5-3
2419 ## Tektronix XD88
2420 m88k-tektronix-sysv3* )
2421 machine=tekxd88 opsys=usg5-3
2424 ## Tektronix 16000 box (6130?)
2425 ns16k-tektronix-bsd* )
2426 machine=ns16000 opsys=bsd4-2
2428 ## Tektronix 4300
2429 ## src/m/tek4300.h hints that this is a m68k machine.
2430 m68*-tektronix-bsd* )
2431 machine=tek4300 opsys=bsd4-3
2434 ## Titan P2 or P3
2435 ## We seem to have lost the machine-description file titan.h!
2436 titan-titan-sysv* )
2437 machine=titan opsys=usg5-3
2440 ## Ustation E30 (SS5E)
2441 m68*-unisys-uniplus* )
2442 machine=ustation opsystem=unipl5-2
2445 ## Vaxen.
2446 vax-dec-* )
2447 machine=vax
2448 case "${canonical}" in
2449 *-bsd4.1* ) opsys=bsd4-1 ;;
2450 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2451 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2452 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2453 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2454 *-vms* ) opsys=vms ;;
2455 * ) unported=yes
2456 esac
2459 ## Whitechapel MG1
2460 ns16k-whitechapel-* )
2461 machine=mg1
2462 ## We don't know what sort of OS runs on these; we'll let the
2463 ## operating system guessing code below try.
2466 ## Wicat
2467 m68*-wicat-sysv* )
2468 machine=wicat opsys=usg5-2
2471 ## IA-64
2472 ia64*-*-linux* )
2473 machine=ia64 opsys=gnu-linux
2476 ## Intel 386 machines where we don't care about the manufacturer
2477 i[3456]86-*-* )
2478 machine=intel386
2479 case "${canonical}" in
2480 *-lynxos* ) opsys=lynxos ;;
2481 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2482 *-isc2.2* ) opsys=isc2-2 ;;
2483 *-isc4.0* ) opsys=isc4-0 ;;
2484 *-isc4.* ) opsys=isc4-1
2485 GCC_TEST_OPTIONS=-posix
2486 NON_GCC_TEST_OPTIONS=-Xp
2488 *-isc* ) opsys=isc3-0 ;;
2489 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2490 *-esix* ) opsys=esix ;;
2491 *-xenix* ) opsys=xenix ;;
2492 *-linux-gnu* ) opsys=gnu-linux ;;
2493 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2494 *-sco3.2v5* ) opsys=sco5
2495 NON_GNU_CPP=/lib/cpp
2496 # Prevent -belf from being passed to $CPP.
2497 # /lib/cpp does not accept it.
2498 OVERRIDE_CPPFLAGS=" "
2500 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2501 *-386bsd* ) opsys=386bsd ;;
2502 *-nextstep* ) opsys=nextstep ;;
2503 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2504 esac
2507 ## m68k Linux-based GNU system
2508 m68k-*-linux-gnu* )
2509 machine=m68k opsys=gnu-linux
2512 ## Mips Linux-based GNU system
2513 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2514 machine=mips opsys=gnu-linux
2517 ## UXP/DS
2518 sparc-fujitsu-sysv4* )
2519 machine=sparc opsys=uxpds
2520 NON_GNU_CPP=/usr/ccs/lib/cpp
2521 RANLIB="ar -ts"
2524 ## UXP/V
2525 f301-fujitsu-uxpv4.1)
2526 machine=f301 opsys=uxpv
2529 ## Darwin / Mac OS X
2530 powerpc-apple-darwin* )
2531 machine=powermac opsys=darwin
2532 # Define CPP as follows to make autoconf work correctly.
2533 CPP="cc -E -traditional-cpp"
2536 ## AMD x86-64 Linux-based GNU system
2537 x86_64-*-linux-gnu* )
2538 machine=amdx86-64 opsys=gnu-linux
2542 unported=yes
2544 esac
2546 ### If the code above didn't choose an operating system, just choose
2547 ### an operating system based on the configuration name. You really
2548 ### only want to use this when you have no idea what the right
2549 ### operating system is; if you know what operating systems a machine
2550 ### runs, it's cleaner to make it explicit in the case statement
2551 ### above.
2552 if test x"${opsys}" = x; then
2553 case "${canonical}" in
2554 *-gnu* ) opsys=gnu ;;
2555 *-bsd4.[01] ) opsys=bsd4-1 ;;
2556 *-bsd4.2 ) opsys=bsd4-2 ;;
2557 *-bsd4.3 ) opsys=bsd4-3 ;;
2558 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2559 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2560 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2561 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2562 *-sysv4.2uw* ) opsys=unixware ;;
2563 *-sysv4.1* | *-sysvr4.1* )
2564 NON_GNU_CPP=/usr/lib/cpp
2565 opsys=usg5-4 ;;
2566 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2567 if [ x$NON_GNU_CPP = x ]; then
2568 if [ -f /usr/ccs/lib/cpp ]; then
2569 NON_GNU_CPP=/usr/ccs/lib/cpp
2570 else
2571 NON_GNU_CPP=/lib/cpp
2574 opsys=usg5-4-2 ;;
2575 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2577 unported=yes
2579 esac
2584 if test $unported = yes; then
2585 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2586 Check \`etc/MACHINES' for recognized configuration names." >&5
2587 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2588 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2589 { (exit 1); exit 1; }; }
2592 machfile="m/${machine}.h"
2593 opsysfile="s/${opsys}.h"
2596 #### Choose a compiler.
2597 test -n "$CC" && cc_specified=yes
2599 # Save the value of CFLAGS that the user specified.
2600 SPECIFIED_CFLAGS="$CFLAGS"
2602 case ${with_gcc} in
2603 "yes" ) CC="gcc" GCC=yes ;;
2604 "no" ) : ${CC=cc} ;;
2606 esac
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2649 if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
2651 # Extract the first word of "gcc", so it can be a program name with args.
2652 set dummy gcc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2686 CC=$ac_ct_CC
2687 else
2688 CC="$ac_cv_prog_CC"
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6
2723 else
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2729 if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc; ac_word=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6
2761 else
2762 echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2766 CC=$ac_ct_CC
2767 else
2768 CC="$ac_cv_prog_CC"
2772 if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2795 ac_cv_prog_CC="cc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6
2860 else
2861 echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2865 test -n "$CC" && break
2866 done
2868 if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2907 test -n "$ac_ct_CC" && break
2908 done
2910 CC=$ac_ct_CC
2916 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925 ac_compiler=`set X $ac_compile; echo $2`
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev/null >&5) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2942 cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 ac_clean_files_save=$ac_clean_files
2959 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2960 # Try to create an executable without -o first, disregard a.out.
2961 # It will help us diagnose broken compilers, and finding out an intuition
2962 # of exeext.
2963 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2964 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2965 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2966 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2967 (eval $ac_link_default) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
2971 # Find the output, starting from the most likely. This scheme is
2972 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2973 # resort.
2975 # Be careful to initialize this variable, since it used to be cached.
2976 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2977 ac_cv_exeext=
2978 # b.out is created by i960 compilers.
2979 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2981 test -f "$ac_file" || continue
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2985 conftest.$ac_ext )
2986 # This is the source file.
2988 [ab].out )
2989 # We found the default executable, but exeext='' is most
2990 # certainly right.
2991 break;;
2992 *.* )
2993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 # FIXME: I believe we export ac_cv_exeext for Libtool,
2995 # but it would be cool to find out if it's true. Does anybody
2996 # maintain Libtool? --akim.
2997 export ac_cv_exeext
2998 break;;
3000 break;;
3001 esac
3002 done
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: C compiler cannot create executables
3010 See \`config.log' for more details." >&2;}
3011 { (exit 77); exit 77; }; }
3014 ac_exeext=$ac_cv_exeext
3015 echo "$as_me:$LINENO: result: $ac_file" >&5
3016 echo "${ECHO_T}$ac_file" >&6
3018 # Check the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 cross_compiling=no
3032 else
3033 if test "$cross_compiling" = maybe; then
3034 cross_compiling=yes
3035 else
3036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3046 echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6
3049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 # Check the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6
3058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3061 (eval $ac_link) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 export ac_cv_exeext
3075 break;;
3076 * ) break;;
3077 esac
3078 done
3079 else
3080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3087 rm -f conftest$ac_cv_exeext
3088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3089 echo "${ECHO_T}$ac_cv_exeext" >&6
3091 rm -f conftest.$ac_ext
3092 EXEEXT=$ac_cv_exeext
3093 ac_exeext=$EXEEXT
3094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3096 if test "${ac_cv_objext+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.o conftest.obj
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 break;;
3126 esac
3127 done
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3142 echo "${ECHO_T}$ac_cv_objext" >&6
3143 OBJEXT=$ac_cv_objext
3144 ac_objext=$OBJEXT
3145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3159 main ()
3161 #ifndef __GNUC__
3162 choke me
3163 #endif
3166 return 0;
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_compiler_gnu=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_compiler_gnu=no
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3194 GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 CFLAGS="-g"
3198 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_prog_cc_g=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3236 ac_cv_prog_cc_g=no
3238 rm -f conftest.$ac_objext conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3246 CFLAGS="-g -O2"
3247 else
3248 CFLAGS="-g"
3250 else
3251 if test "$GCC" = yes; then
3252 CFLAGS="-O2"
3253 else
3254 CFLAGS=
3257 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3258 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3259 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 ac_cv_prog_cc_stdc=no
3263 ac_save_CC=$CC
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 #include <stdarg.h>
3272 #include <stdio.h>
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3279 char **p;
3280 int i;
3282 return p[i];
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3286 char *s;
3287 va_list v;
3288 va_start (v,p);
3289 s = g (p, va_arg (v,int));
3290 va_end (v);
3291 return s;
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297 int argc;
3298 char **argv;
3300 main ()
3302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 return 0;
3306 _ACEOF
3307 # Don't try gcc -ansi; that turns off useful extensions and
3308 # breaks some systems' header files.
3309 # AIX -qlanglvl=ansi
3310 # Ultrix and OSF/1 -std1
3311 # HP-UX 10.20 and later -Ae
3312 # HP-UX older versions -Aa -D_HPUX_SOURCE
3313 # SVR4 -Xc -D__EXTENSIONS__
3314 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_prog_cc_stdc=$ac_arg
3330 break
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3336 rm -f conftest.$ac_objext
3337 done
3338 rm -f conftest.$ac_ext conftest.$ac_objext
3339 CC=$ac_save_CC
3343 case "x$ac_cv_prog_cc_stdc" in
3344 x|xno)
3345 echo "$as_me:$LINENO: result: none needed" >&5
3346 echo "${ECHO_T}none needed" >&6 ;;
3348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3350 CC="$CC $ac_cv_prog_cc_stdc" ;;
3351 esac
3353 # Some people use a C++ compiler to compile C. Since we use `exit',
3354 # in C++ we need to declare it. In case someone uses the same compiler
3355 # for both compiling C and C++ we need to have the C++ compiler decide
3356 # the declaration of exit, since it's the most demanding environment.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 #ifndef __cplusplus
3359 choke me
3360 #endif
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 for ac_declaration in \
3376 '#include <stdlib.h>' \
3377 'extern "C" void std::exit (int) throw (); using std::exit;' \
3378 'extern "C" void std::exit (int); using std::exit;' \
3379 'extern "C" void exit (int) throw ();' \
3380 'extern "C" void exit (int);' \
3381 'void exit (int);'
3383 cat >conftest.$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <stdlib.h>
3391 $ac_declaration
3393 main ()
3395 exit (42);
3397 return 0;
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 continue
3419 rm -f conftest.$ac_objext conftest.$ac_ext
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 $ac_declaration
3429 main ()
3431 exit (42);
3433 return 0;
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 break
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3454 rm -f conftest.$ac_objext conftest.$ac_ext
3455 done
3456 rm -f conftest*
3457 if test -n "$ac_declaration"; then
3458 echo '#ifdef __cplusplus' >>confdefs.h
3459 echo $ac_declaration >>confdefs.h
3460 echo '#endif' >>confdefs.h
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f conftest.$ac_objext conftest.$ac_ext
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3478 CPP=
3481 #### Some systems specify a CPP to use unless we are using GCC.
3482 #### Now that we know whether we are using GCC, we can decide whether
3483 #### to use that one.
3484 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3485 then
3486 CPP="$NON_GNU_CPP"
3489 #### Some systems specify a CC to use unless we are using GCC.
3490 #### Now that we know whether we are using GCC, we can decide whether
3491 #### to use that one.
3492 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3493 test x$cc_specified != xyes
3494 then
3495 CC="$NON_GNU_CC"
3498 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3499 then
3500 CC="$CC $GCC_TEST_OPTIONS"
3503 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3504 then
3505 CC="$CC $NON_GCC_TEST_OPTIONS"
3508 #### Some other nice autoconf tests.
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3512 LN_S=$as_ln_s
3513 if test "$LN_S" = "ln -s"; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3530 CPP=
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 # Double quotes because CPP needs to be expanded
3537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #ifdef __STDC__
3556 # include <limits.h>
3557 #else
3558 # include <assert.h>
3559 #endif
3560 Syntax error
3561 _ACEOF
3562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 else
3573 ac_cpp_err=
3575 else
3576 ac_cpp_err=yes
3578 if test -z "$ac_cpp_err"; then
3580 else
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3585 continue
3587 rm -f conftest.err conftest.$ac_ext
3589 # OK, works on sane cases. Now check whether non-existent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 else
3611 ac_cpp_err=
3613 else
3614 ac_cpp_err=yes
3616 if test -z "$ac_cpp_err"; then
3617 # Broken: success on invalid input.
3618 continue
3619 else
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 # Passes both tests.
3624 ac_preproc_ok=:
3625 break
3627 rm -f conftest.err conftest.$ac_ext
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633 break
3636 done
3637 ac_cv_prog_CPP=$CPP
3640 CPP=$ac_cv_prog_CPP
3641 else
3642 ac_cv_prog_CPP=$CPP
3644 echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6
3646 ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #ifdef __STDC__
3663 # include <limits.h>
3664 #else
3665 # include <assert.h>
3666 #endif
3667 Syntax error
3668 _ACEOF
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null; then
3677 if test -s conftest.err; then
3678 ac_cpp_err=$ac_c_preproc_warn_flag
3679 else
3680 ac_cpp_err=
3682 else
3683 ac_cpp_err=yes
3685 if test -z "$ac_cpp_err"; then
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # Broken: fails on valid input.
3692 continue
3694 rm -f conftest.err conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether non-existent headers
3697 # can be detected and how.
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3706 _ACEOF
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null; then
3715 if test -s conftest.err; then
3716 ac_cpp_err=$ac_c_preproc_warn_flag
3717 else
3718 ac_cpp_err=
3720 else
3721 ac_cpp_err=yes
3723 if test -z "$ac_cpp_err"; then
3724 # Broken: success on invalid input.
3725 continue
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 # Passes both tests.
3731 ac_preproc_ok=:
3732 break
3734 rm -f conftest.err conftest.$ac_ext
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3741 else
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 # Find a good install program. We prefer a C program (faster),
3756 # so one script is as good as another. But avoid the broken or
3757 # incompatible versions:
3758 # SysV /etc/install, /usr/sbin/install
3759 # SunOS /usr/etc/install
3760 # IRIX /sbin/install
3761 # AIX /bin/install
3762 # AmigaOS /C/install, which installs bootblocks on floppy discs
3763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3766 # ./install, which can be erroneously created by make from ./install.sh.
3767 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3768 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3769 if test -z "$INSTALL"; then
3770 if test "${ac_cv_path_install+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 # Account for people who put trailing slashes in PATH elements.
3779 case $as_dir/ in
3780 ./ | .// | /cC/* | \
3781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3782 /usr/ucb/* ) ;;
3784 # OSF1 and SCO ODT 3.0 have their own names for install.
3785 # Don't use installbsd from OSF since it installs stuff as root
3786 # by default.
3787 for ac_prog in ginstall scoinst install; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3790 if test $ac_prog = install &&
3791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # AIX install. It has an incompatible calling convention.
3794 elif test $ac_prog = install &&
3795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796 # program-specific install script used by HP pwplus--don't use.
3798 else
3799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3800 break 3
3803 done
3804 done
3806 esac
3807 done
3811 if test "${ac_cv_path_install+set}" = set; then
3812 INSTALL=$ac_cv_path_install
3813 else
3814 # As a last resort, use the slow shell script. We don't cache a
3815 # path for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the path is relative.
3818 INSTALL=$ac_install_sh
3821 echo "$as_me:$LINENO: result: $INSTALL" >&5
3822 echo "${ECHO_T}$INSTALL" >&6
3824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825 # It thinks the first close brace ends the variable substitution.
3826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3832 if test "x$RANLIB" = x; then
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3836 echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3838 if test "${ac_cv_prog_RANLIB+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 if test -n "$RANLIB"; then
3842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3855 done
3856 done
3860 RANLIB=$ac_cv_prog_RANLIB
3861 if test -n "$RANLIB"; then
3862 echo "$as_me:$LINENO: result: $RANLIB" >&5
3863 echo "${ECHO_T}$RANLIB" >&6
3864 else
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3870 if test -z "$ac_cv_prog_RANLIB"; then
3871 ac_ct_RANLIB=$RANLIB
3872 # Extract the first word of "ranlib", so it can be a program name with args.
3873 set dummy ranlib; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test -n "$ac_ct_RANLIB"; then
3880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_ac_ct_RANLIB="ranlib"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3900 if test -n "$ac_ct_RANLIB"; then
3901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3908 RANLIB=$ac_ct_RANLIB
3909 else
3910 RANLIB="$ac_cv_prog_RANLIB"
3914 # Extract the first word of "install-info", so it can be a program name with args.
3915 set dummy install-info; ac_word=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 case $INSTALL_INFO in
3922 [\\/]* | ?:[\\/]*)
3923 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3941 esac
3943 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3945 if test -n "$INSTALL_INFO"; then
3946 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3947 echo "${ECHO_T}$INSTALL_INFO" >&6
3948 else
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 # Extract the first word of "install-info", so it can be a program name with args.
3954 set dummy install-info; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 case $INSTALL_INFO in
3961 [\\/]* | ?:[\\/]*)
3962 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in /usr/sbin
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3976 done
3977 done
3980 esac
3982 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3984 if test -n "$INSTALL_INFO"; then
3985 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3986 echo "${ECHO_T}$INSTALL_INFO" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 # Extract the first word of "install-info", so it can be a program name with args.
3993 set dummy install-info; ac_word=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 case $INSTALL_INFO in
4000 [\\/]* | ?:[\\/]*)
4001 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in /sbin
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4015 done
4016 done
4018 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4020 esac
4022 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4024 if test -n "$INSTALL_INFO"; then
4025 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4026 echo "${ECHO_T}$INSTALL_INFO" >&6
4027 else
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4034 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4035 then
4036 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4039 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4040 then
4041 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4046 echo "$as_me:$LINENO: checking for egrep" >&5
4047 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4048 if test "${ac_cv_prog_egrep+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4052 then ac_cv_prog_egrep='grep -E'
4053 else ac_cv_prog_egrep='egrep'
4056 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4057 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4058 EGREP=$ac_cv_prog_egrep
4062 echo "$as_me:$LINENO: checking for AIX" >&5
4063 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4065 #line $LINENO "configure"
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #ifdef _AIX
4073 #endif
4075 _ACEOF
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "yes" >/dev/null 2>&1; then
4078 echo "$as_me:$LINENO: result: yes" >&5
4079 echo "${ECHO_T}yes" >&6
4080 cat >>confdefs.h <<\_ACEOF
4081 #define _ALL_SOURCE 1
4082 _ACEOF
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4088 rm -f conftest*
4092 #### Extract some information from the operating system and machine files.
4094 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4095 - which libraries the lib-src programs will want, and
4096 - whether the GNU malloc routines are usable..." >&5
4097 echo "$as_me: checking the machine- and system-dependent files to find out
4098 - which libraries the lib-src programs will want, and
4099 - whether the GNU malloc routines are usable..." >&6;}
4101 ### First figure out CFLAGS (which we use for running the compiler here)
4102 ### and REAL_CFLAGS (which we use for real compilation).
4103 ### The two are the same except on a few systems, where they are made
4104 ### different to work around various lossages. For example,
4105 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4106 ### as implying static linking.
4108 ### If the CFLAGS env var is specified, we use that value
4109 ### instead of the default.
4111 ### It's not important that this name contain the PID; you can't run
4112 ### two configures in the same directory and have anything work
4113 ### anyway.
4114 tempcname="conftest.c"
4116 echo '
4117 #include "'${srcdir}'/src/'${opsysfile}'"
4118 #include "'${srcdir}'/src/'${machfile}'"
4119 #ifndef LIBS_MACHINE
4120 #define LIBS_MACHINE
4121 #endif
4122 #ifndef LIBS_SYSTEM
4123 #define LIBS_SYSTEM
4124 #endif
4125 #ifndef C_SWITCH_SYSTEM
4126 #define C_SWITCH_SYSTEM
4127 #endif
4128 #ifndef C_SWITCH_MACHINE
4129 #define C_SWITCH_MACHINE
4130 #endif
4131 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4132 configure___ c_switch_system=C_SWITCH_SYSTEM
4133 configure___ c_switch_machine=C_SWITCH_MACHINE
4135 #ifndef LIB_X11_LIB
4136 #define LIB_X11_LIB -lX11
4137 #endif
4139 #ifndef LIBX11_MACHINE
4140 #define LIBX11_MACHINE
4141 #endif
4143 #ifndef LIBX11_SYSTEM
4144 #define LIBX11_SYSTEM
4145 #endif
4146 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4148 #ifdef UNEXEC
4149 configure___ unexec=UNEXEC
4150 #else
4151 configure___ unexec=unexec.o
4152 #endif
4154 #ifdef SYSTEM_MALLOC
4155 configure___ system_malloc=yes
4156 #else
4157 configure___ system_malloc=no
4158 #endif
4160 #ifdef USE_MMAP_FOR_BUFFERS
4161 configure___ use_mmap_for_buffers=yes
4162 #else
4163 configure___ use_mmap_for_buffers=no
4164 #endif
4166 #ifndef C_DEBUG_SWITCH
4167 #define C_DEBUG_SWITCH -g
4168 #endif
4170 #ifndef C_OPTIMIZE_SWITCH
4171 #ifdef __GNUC__
4172 #define C_OPTIMIZE_SWITCH -O2
4173 #else
4174 #define C_OPTIMIZE_SWITCH -O
4175 #endif
4176 #endif
4178 #ifndef LD_SWITCH_MACHINE
4179 #define LD_SWITCH_MACHINE
4180 #endif
4182 #ifndef LD_SWITCH_SYSTEM
4183 #define LD_SWITCH_SYSTEM
4184 #endif
4186 #ifndef LD_SWITCH_X_SITE_AUX
4187 #define LD_SWITCH_X_SITE_AUX
4188 #endif
4190 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4191 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4193 #ifdef THIS_IS_CONFIGURE
4195 /* Get the CFLAGS for tests in configure. */
4196 #ifdef __GNUC__
4197 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4198 #else
4199 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4200 #endif
4202 #else /* not THIS_IS_CONFIGURE */
4204 /* Get the CFLAGS for real compilation. */
4205 #ifdef __GNUC__
4206 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4207 #else
4208 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4209 #endif
4211 #endif /* not THIS_IS_CONFIGURE */
4212 ' > ${tempcname}
4214 # The value of CPP is a quoted variable reference, so we need to do this
4215 # to get its actual value...
4216 CPP=`eval "echo $CPP"`
4217 eval `${CPP} -Isrc ${tempcname} \
4218 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4219 if test "x$SPECIFIED_CFLAGS" = x; then
4220 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4221 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4222 else
4223 REAL_CFLAGS="$CFLAGS"
4225 rm ${tempcname}
4227 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4229 ### Make sure subsequent tests use flags consistent with the build flags.
4231 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4232 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4233 else
4234 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4240 cat >>confdefs.h <<\_ACEOF
4241 #define _GNU_SOURCE 1
4242 _ACEOF
4246 # Check whether --enable-largefile or --disable-largefile was given.
4247 if test "${enable_largefile+set}" = set; then
4248 enableval="$enable_largefile"
4251 if test "$enable_largefile" != no; then
4253 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4254 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4255 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 ac_cv_sys_largefile_CC=no
4259 if test "$GCC" != yes; then
4260 ac_save_CC=$CC
4261 while :; do
4262 # IRIX 6.2 and later do not support large files by default,
4263 # so use the C compiler's -n32 option if that helps.
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #include <sys/types.h>
4272 /* Check that off_t can represent 2**63 - 1 correctly.
4273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4274 since some C++ compilers masquerading as C compilers
4275 incorrectly reject 9223372036854775807. */
4276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4278 && LARGE_OFF_T % 2147483647 == 1)
4279 ? 1 : -1];
4281 main ()
4285 return 0;
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 break
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4306 rm -f conftest.$ac_objext
4307 CC="$CC -n32"
4308 rm -f conftest.$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_sys_largefile_CC=' -n32'; break
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f conftest.$ac_objext
4327 break
4328 done
4329 CC=$ac_save_CC
4330 rm -f conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4334 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4335 if test "$ac_cv_sys_largefile_CC" != no; then
4336 CC=$CC$ac_cv_sys_largefile_CC
4339 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4340 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4341 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 while :; do
4345 ac_cv_sys_file_offset_bits=no
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <sys/types.h>
4354 /* Check that off_t can represent 2**63 - 1 correctly.
4355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4356 since some C++ compilers masquerading as C compilers
4357 incorrectly reject 9223372036854775807. */
4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4360 && LARGE_OFF_T % 2147483647 == 1)
4361 ? 1 : -1];
4363 main ()
4367 return 0;
4369 _ACEOF
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 break
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4388 rm -f conftest.$ac_objext conftest.$ac_ext
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #define _FILE_OFFSET_BITS 64
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4405 ? 1 : -1];
4407 main ()
4411 return 0;
4413 _ACEOF
4414 rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_sys_file_offset_bits=64; break
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4432 rm -f conftest.$ac_objext conftest.$ac_ext
4433 break
4434 done
4436 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4437 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4438 if test "$ac_cv_sys_file_offset_bits" != no; then
4440 cat >>confdefs.h <<_ACEOF
4441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4442 _ACEOF
4445 rm -f conftest*
4446 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4448 if test "${ac_cv_sys_large_files+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 while :; do
4452 ac_cv_sys_large_files=no
4453 cat >conftest.$ac_ext <<_ACEOF
4454 #line $LINENO "configure"
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4468 ? 1 : -1];
4470 main ()
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 break
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4495 rm -f conftest.$ac_objext conftest.$ac_ext
4496 cat >conftest.$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #define _LARGE_FILES 1
4504 #include <sys/types.h>
4505 /* Check that off_t can represent 2**63 - 1 correctly.
4506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4507 since some C++ compilers masquerading as C compilers
4508 incorrectly reject 9223372036854775807. */
4509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4511 && LARGE_OFF_T % 2147483647 == 1)
4512 ? 1 : -1];
4514 main ()
4518 return 0;
4520 _ACEOF
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_sys_large_files=1; break
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4539 rm -f conftest.$ac_objext conftest.$ac_ext
4540 break
4541 done
4543 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4544 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4545 if test "$ac_cv_sys_large_files" != no; then
4547 cat >>confdefs.h <<_ACEOF
4548 #define _LARGE_FILES $ac_cv_sys_large_files
4549 _ACEOF
4552 rm -f conftest*
4556 if test "${with_sound}" != "no"; then
4557 # Sound support for GNU/Linux and the free BSDs.
4558 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4559 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4560 if test "${ac_cv_header_stdc+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 cat >conftest.$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <stdlib.h>
4571 #include <stdarg.h>
4572 #include <string.h>
4573 #include <float.h>
4576 main ()
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_header_stdc=yes
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_cv_header_stdc=no
4602 rm -f conftest.$ac_objext conftest.$ac_ext
4604 if test $ac_cv_header_stdc = yes; then
4605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606 cat >conftest.$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #include <string.h>
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev/null 2>&1; then
4619 else
4620 ac_cv_header_stdc=no
4622 rm -f conftest*
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <stdlib.h>
4637 _ACEOF
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 $EGREP "free" >/dev/null 2>&1; then
4641 else
4642 ac_cv_header_stdc=no
4644 rm -f conftest*
4648 if test $ac_cv_header_stdc = yes; then
4649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4650 if test "$cross_compiling" = yes; then
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 #include <ctype.h>
4661 #if ((' ' & 0x0FF) == 0x020)
4662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4664 #else
4665 # define ISLOWER(c) \
4666 (('a' <= (c) && (c) <= 'i') \
4667 || ('j' <= (c) && (c) <= 'r') \
4668 || ('s' <= (c) && (c) <= 'z'))
4669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4670 #endif
4672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 main ()
4676 int i;
4677 for (i = 0; i < 256; i++)
4678 if (XOR (islower (i), ISLOWER (i))
4679 || toupper (i) != TOUPPER (i))
4680 exit(2);
4681 exit (0);
4683 _ACEOF
4684 rm -f conftest$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686 (eval $ac_link) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4696 else
4697 echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ( exit $ac_status )
4702 ac_cv_header_stdc=no
4704 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4709 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4710 if test $ac_cv_header_stdc = yes; then
4712 cat >>confdefs.h <<\_ACEOF
4713 #define STDC_HEADERS 1
4714 _ACEOF
4718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4729 inttypes.h stdint.h unistd.h
4731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4746 #include <$ac_header>
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 eval "$as_ac_Header=yes"
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 eval "$as_ac_Header=no"
4767 rm -f conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 _ACEOF
4778 done
4784 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 else
4796 # Is the header compilable?
4797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799 cat >conftest.$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4807 #include <$ac_header>
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <$ac_header>
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 else
4855 ac_cpp_err=
4857 else
4858 ac_cpp_err=yes
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc in
4874 yes:no )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4880 cat <<\_ASBOX
4881 ## ------------------------------------ ##
4882 ## Report this to bug-autoconf@gnu.org. ##
4883 ## ------------------------------------ ##
4884 _ASBOX
4886 sed "s/^/$as_me: WARNING: /" >&2
4888 no:yes )
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4896 cat <<\_ASBOX
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4900 _ASBOX
4902 sed "s/^/$as_me: WARNING: /" >&2
4904 esac
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 eval "$as_ac_Header=$ac_header_preproc"
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917 cat >>confdefs.h <<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4923 done
4925 # Emulation library used on NetBSD.
4926 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4927 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4928 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 ac_check_lib_save_LIBS=$LIBS
4932 LIBS="-lossaudio $LIBS"
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 /* Override any gcc2 internal prototype to avoid an error. */
4942 #ifdef __cplusplus
4943 extern "C"
4944 #endif
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4947 char _oss_ioctl ();
4949 main ()
4951 _oss_ioctl ();
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_lib_ossaudio__oss_ioctl=yes
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 ac_cv_lib_ossaudio__oss_ioctl=no
4975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4976 LIBS=$ac_check_lib_save_LIBS
4978 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4979 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4980 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4981 LIBSOUND=-lossaudio
4982 else
4983 LIBSOUND=
5011 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5012 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5013 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5014 sys/param.h sys/vlimit.h sys/resource.h
5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5018 echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5025 else
5026 # Is the header compilable?
5027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5037 #include <$ac_header>
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_header_compiler=yes
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 ac_header_compiler=no
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5060 echo "${ECHO_T}$ac_header_compiler" >&6
5062 # Is the header present?
5063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <$ac_header>
5073 _ACEOF
5074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev/null; then
5082 if test -s conftest.err; then
5083 ac_cpp_err=$ac_c_preproc_warn_flag
5084 else
5085 ac_cpp_err=
5087 else
5088 ac_cpp_err=yes
5090 if test -z "$ac_cpp_err"; then
5091 ac_header_preproc=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_header_preproc=no
5098 rm -f conftest.err conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5100 echo "${ECHO_T}$ac_header_preproc" >&6
5102 # So? What about this header?
5103 case $ac_header_compiler:$ac_header_preproc in
5104 yes:no )
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5110 cat <<\_ASBOX
5111 ## ------------------------------------ ##
5112 ## Report this to bug-autoconf@gnu.org. ##
5113 ## ------------------------------------ ##
5114 _ASBOX
5116 sed "s/^/$as_me: WARNING: /" >&2
5118 no:yes )
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126 cat <<\_ASBOX
5127 ## ------------------------------------ ##
5128 ## Report this to bug-autoconf@gnu.org. ##
5129 ## ------------------------------------ ##
5130 _ASBOX
5132 sed "s/^/$as_me: WARNING: /" >&2
5134 esac
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 eval "$as_ac_Header=$ac_header_preproc"
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149 _ACEOF
5153 done
5156 for ac_header in term.h
5158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159 echo "$as_me:$LINENO: checking for $ac_header" >&5
5160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <$ac_header>
5172 _ACEOF
5173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_c_preproc_warn_flag
5183 else
5184 ac_cpp_err=
5186 else
5187 ac_cpp_err=yes
5189 if test -z "$ac_cpp_err"; then
5190 eval "$as_ac_Header=yes"
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 eval "$as_ac_Header=no"
5197 rm -f conftest.err conftest.$ac_ext
5199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5202 cat >>confdefs.h <<_ACEOF
5203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 _ACEOF
5208 done
5210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5212 if test "${ac_cv_header_stdc+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <stdlib.h>
5223 #include <stdarg.h>
5224 #include <string.h>
5225 #include <float.h>
5228 main ()
5232 return 0;
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_header_stdc=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_cv_header_stdc=no
5254 rm -f conftest.$ac_objext conftest.$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 /* confdefs.h. */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 #include <string.h>
5267 _ACEOF
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 $EGREP "memchr" >/dev/null 2>&1; then
5271 else
5272 ac_cv_header_stdc=no
5274 rm -f conftest*
5278 if test $ac_cv_header_stdc = yes; then
5279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5280 cat >conftest.$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "free" >/dev/null 2>&1; then
5293 else
5294 ac_cv_header_stdc=no
5296 rm -f conftest*
5300 if test $ac_cv_header_stdc = yes; then
5301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302 if test "$cross_compiling" = yes; then
5304 else
5305 cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 /* confdefs.h. */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 #include <ctype.h>
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 #else
5317 # define ISLOWER(c) \
5318 (('a' <= (c) && (c) <= 'i') \
5319 || ('j' <= (c) && (c) <= 'r') \
5320 || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322 #endif
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 main ()
5328 int i;
5329 for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i))
5331 || toupper (i) != TOUPPER (i))
5332 exit(2);
5333 exit (0);
5335 _ACEOF
5336 rm -f conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5348 else
5349 echo "$as_me: program exited with status $ac_status" >&5
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ( exit $ac_status )
5354 ac_cv_header_stdc=no
5356 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5362 if test $ac_cv_header_stdc = yes; then
5364 cat >>confdefs.h <<\_ACEOF
5365 #define STDC_HEADERS 1
5366 _ACEOF
5370 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5371 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5372 if test "${ac_cv_header_time+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 cat >conftest.$ac_ext <<_ACEOF
5376 #line $LINENO "configure"
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <sys/types.h>
5383 #include <sys/time.h>
5384 #include <time.h>
5387 main ()
5389 if ((struct tm *) 0)
5390 return 0;
5392 return 0;
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest.$ac_objext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_header_time=yes
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_header_time=no
5414 rm -f conftest.$ac_objext conftest.$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5417 echo "${ECHO_T}$ac_cv_header_time" >&6
5418 if test $ac_cv_header_time = yes; then
5420 cat >>confdefs.h <<\_ACEOF
5421 #define TIME_WITH_SYS_TIME 1
5422 _ACEOF
5426 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5427 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5428 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 main ()
5442 #ifndef sys_siglist
5443 char *p = (char *) sys_siglist;
5444 #endif
5447 return 0;
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_have_decl_sys_siglist=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_have_decl_sys_siglist=no
5469 rm -f conftest.$ac_objext conftest.$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5472 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5473 if test $ac_cv_have_decl_sys_siglist = yes; then
5475 cat >>confdefs.h <<_ACEOF
5476 #define HAVE_DECL_SYS_SIGLIST 1
5477 _ACEOF
5480 else
5481 cat >>confdefs.h <<_ACEOF
5482 #define HAVE_DECL_SYS_SIGLIST 0
5483 _ACEOF
5489 if test $ac_cv_have_decl_sys_siglist != yes; then
5490 # For Tru64, at least:
5491 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5492 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5493 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5505 main ()
5507 #ifndef __sys_siglist
5508 char *p = (char *) __sys_siglist;
5509 #endif
5512 return 0;
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_have_decl___sys_siglist=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_cv_have_decl___sys_siglist=no
5534 rm -f conftest.$ac_objext conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5537 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5538 if test $ac_cv_have_decl___sys_siglist = yes; then
5540 cat >>confdefs.h <<_ACEOF
5541 #define HAVE_DECL___SYS_SIGLIST 1
5542 _ACEOF
5545 else
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_DECL___SYS_SIGLIST 0
5548 _ACEOF
5554 if test $ac_cv_have_decl___sys_siglist = yes; then
5556 cat >>confdefs.h <<\_ACEOF
5557 #define sys_siglist __sys_siglist
5558 _ACEOF
5562 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5563 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5564 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 #include <sys/wait.h>
5576 #ifndef WEXITSTATUS
5577 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5578 #endif
5579 #ifndef WIFEXITED
5580 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5581 #endif
5584 main ()
5586 int s;
5587 wait (&s);
5588 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5590 return 0;
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_sys_wait_h=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_header_sys_wait_h=no
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5615 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5616 if test $ac_cv_header_sys_wait_h = yes; then
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_SYS_WAIT_H 1
5620 _ACEOF
5625 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5626 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5627 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #ifdef TIME_WITH_SYS_TIME
5638 #include <sys/time.h>
5639 #include <time.h>
5640 #else
5641 #ifdef HAVE_SYS_TIME_H
5642 #include <sys/time.h>
5643 #else
5644 #include <time.h>
5645 #endif
5646 #endif
5647 #ifdef HAVE_UTIME_H
5648 #include <utime.h>
5649 #endif
5651 main ()
5653 static struct utimbuf x; x.actime = x.modtime;
5655 return 0;
5657 _ACEOF
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 emacs_cv_struct_utimbuf=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 emacs_cv_struct_utimbuf=no
5677 rm -f conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5680 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5681 if test $emacs_cv_struct_utimbuf = yes; then
5683 cat >>confdefs.h <<\_ACEOF
5684 #define HAVE_STRUCT_UTIMBUF 1
5685 _ACEOF
5689 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5690 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5691 if test "${ac_cv_type_signal+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 #include <signal.h>
5703 #ifdef signal
5704 # undef signal
5705 #endif
5706 #ifdef __cplusplus
5707 extern "C" void (*signal (int, void (*)(int)))(int);
5708 #else
5709 void (*signal ()) ();
5710 #endif
5713 main ()
5715 int i;
5717 return 0;
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_type_signal=void
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_type_signal=int
5739 rm -f conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5742 echo "${ECHO_T}$ac_cv_type_signal" >&6
5744 cat >>confdefs.h <<_ACEOF
5745 #define RETSIGTYPE $ac_cv_type_signal
5746 _ACEOF
5750 echo "$as_me:$LINENO: checking for speed_t" >&5
5751 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5752 if test "${emacs_cv_speed_t+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <termios.h>
5764 main ()
5766 speed_t x = 1;
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 emacs_cv_speed_t=yes
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 emacs_cv_speed_t=no
5790 rm -f conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5793 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5794 if test $emacs_cv_speed_t = yes; then
5796 cat >>confdefs.h <<\_ACEOF
5797 #define HAVE_SPEED_T 1
5798 _ACEOF
5802 echo "$as_me:$LINENO: checking for struct timeval" >&5
5803 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5804 if test "${emacs_cv_struct_timeval+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef TIME_WITH_SYS_TIME
5815 #include <sys/time.h>
5816 #include <time.h>
5817 #else
5818 #ifdef HAVE_SYS_TIME_H
5819 #include <sys/time.h>
5820 #else
5821 #include <time.h>
5822 #endif
5823 #endif
5825 main ()
5827 static struct timeval x; x.tv_sec = x.tv_usec;
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 emacs_cv_struct_timeval=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 emacs_cv_struct_timeval=no
5851 rm -f conftest.$ac_objext conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5854 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5855 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5856 if test $emacs_cv_struct_timeval = yes; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define HAVE_TIMEVAL 1
5860 _ACEOF
5864 echo "$as_me:$LINENO: checking for struct exception" >&5
5865 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5866 if test "${emacs_cv_struct_exception+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 #line $LINENO "configure"
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <math.h>
5878 main ()
5880 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5882 return 0;
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 emacs_cv_struct_exception=yes
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 emacs_cv_struct_exception=no
5904 rm -f conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5907 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5908 HAVE_EXCEPTION=$emacs_cv_struct_exception
5909 if test $emacs_cv_struct_exception != yes; then
5911 cat >>confdefs.h <<\_ACEOF
5912 #define NO_MATHERR 1
5913 _ACEOF
5917 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5918 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5919 if test "${ac_cv_struct_tm+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 cat >conftest.$ac_ext <<_ACEOF
5923 #line $LINENO "configure"
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #include <sys/types.h>
5930 #include <time.h>
5933 main ()
5935 struct tm *tp; tp->tm_sec;
5937 return 0;
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_struct_tm=time.h
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_struct_tm=sys/time.h
5959 rm -f conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5962 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5963 if test $ac_cv_struct_tm = sys/time.h; then
5965 cat >>confdefs.h <<\_ACEOF
5966 #define TM_IN_SYS_TIME 1
5967 _ACEOF
5971 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5972 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5973 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 #line $LINENO "configure"
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <$ac_cv_struct_tm>
5988 main ()
5990 static struct tm ac_aggr;
5991 if (ac_aggr.tm_zone)
5992 return 0;
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_member_struct_tm_tm_zone=yes
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 #include <$ac_cv_struct_tm>
6026 main ()
6028 static struct tm ac_aggr;
6029 if (sizeof ac_aggr.tm_zone)
6030 return 0;
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_cv_member_struct_tm_tm_zone=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_cv_member_struct_tm_tm_zone=no
6054 rm -f conftest.$ac_objext conftest.$ac_ext
6056 rm -f conftest.$ac_objext conftest.$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6059 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6060 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define HAVE_STRUCT_TM_TM_ZONE 1
6064 _ACEOF
6069 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6071 cat >>confdefs.h <<\_ACEOF
6072 #define HAVE_TM_ZONE 1
6073 _ACEOF
6075 else
6076 echo "$as_me:$LINENO: checking for tzname" >&5
6077 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6078 if test "${ac_cv_var_tzname+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <time.h>
6089 #ifndef tzname /* For SGI. */
6090 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6091 #endif
6094 main ()
6096 atoi(*tzname);
6098 return 0;
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest$ac_exeext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_var_tzname=yes
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_cv_var_tzname=no
6120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6123 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6124 if test $ac_cv_var_tzname = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define HAVE_TZNAME 1
6128 _ACEOF
6133 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6134 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6135 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <time.h>
6148 main ()
6150 static struct tm ac_aggr;
6151 if (ac_aggr.tm_gmtoff)
6152 return 0;
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_member_struct_tm_tm_gmtoff=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <time.h>
6184 main ()
6186 static struct tm ac_aggr;
6187 if (sizeof ac_aggr.tm_gmtoff)
6188 return 0;
6190 return 0;
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_member_struct_tm_tm_gmtoff=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_member_struct_tm_tm_gmtoff=no
6212 rm -f conftest.$ac_objext conftest.$ac_ext
6214 rm -f conftest.$ac_objext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6217 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6218 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_TM_GMTOFF 1
6222 _ACEOF
6228 echo "$as_me:$LINENO: checking for function prototypes" >&5
6229 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6230 if test "$ac_cv_prog_cc_stdc" != no; then
6231 echo "$as_me:$LINENO: result: yes" >&5
6232 echo "${ECHO_T}yes" >&6
6234 cat >>confdefs.h <<\_ACEOF
6235 #define PROTOTYPES 1
6236 _ACEOF
6239 cat >>confdefs.h <<\_ACEOF
6240 #define __PROTOTYPES 1
6241 _ACEOF
6243 else
6244 echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6
6248 echo "$as_me:$LINENO: checking for working volatile" >&5
6249 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6250 if test "${ac_cv_c_volatile+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6262 main ()
6265 volatile int x;
6266 int * volatile y;
6268 return 0;
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_c_volatile=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_cv_c_volatile=no
6290 rm -f conftest.$ac_objext conftest.$ac_ext
6292 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6293 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6294 if test $ac_cv_c_volatile = no; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define volatile
6298 _ACEOF
6302 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6303 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6304 if test "${ac_cv_c_const+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6316 main ()
6318 /* FIXME: Include the comments suggested by Paul. */
6319 #ifndef __cplusplus
6320 /* Ultrix mips cc rejects this. */
6321 typedef int charset[2];
6322 const charset x;
6323 /* SunOS 4.1.1 cc rejects this. */
6324 char const *const *ccp;
6325 char **p;
6326 /* NEC SVR4.0.2 mips cc rejects this. */
6327 struct point {int x, y;};
6328 static struct point const zero = {0,0};
6329 /* AIX XL C 1.02.0.0 rejects this.
6330 It does not let you subtract one const X* pointer from another in
6331 an arm of an if-expression whose if-part is not a constant
6332 expression */
6333 const char *g = "string";
6334 ccp = &g + (g ? g-g : 0);
6335 /* HPUX 7.0 cc rejects these. */
6336 ++ccp;
6337 p = (char**) ccp;
6338 ccp = (char const *const *) p;
6339 { /* SCO 3.2v4 cc rejects this. */
6340 char *t;
6341 char const *s = 0 ? (char *) 0 : (char const *) 0;
6343 *t++ = 0;
6345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6346 int x[] = {25, 17};
6347 const int *foo = &x[0];
6348 ++foo;
6350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6351 typedef const int *iptr;
6352 iptr p = 0;
6353 ++p;
6355 { /* AIX XL C 1.02.0.0 rejects this saying
6356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6357 struct s { int j; const int *ap[3]; };
6358 struct s *b; b->j = 5;
6360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6361 const int foo = 10;
6363 #endif
6366 return 0;
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_c_const=yes
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_c_const=no
6388 rm -f conftest.$ac_objext conftest.$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6391 echo "${ECHO_T}$ac_cv_c_const" >&6
6392 if test $ac_cv_c_const = no; then
6394 cat >>confdefs.h <<\_ACEOF
6395 #define const
6396 _ACEOF
6400 echo "$as_me:$LINENO: checking for void * support" >&5
6401 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6402 if test "${emacs_cv_void_star+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6414 main ()
6416 void * foo;
6418 return 0;
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 emacs_cv_void_star=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 emacs_cv_void_star=no
6440 rm -f conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6443 echo "${ECHO_T}$emacs_cv_void_star" >&6
6444 if test $emacs_cv_void_star = yes; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define POINTER_TYPE void
6447 _ACEOF
6449 else
6450 cat >>confdefs.h <<\_ACEOF
6451 #define POINTER_TYPE char
6452 _ACEOF
6458 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6459 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6460 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6461 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 cat >conftest.make <<\_ACEOF
6465 all:
6466 @echo 'ac_maketemp="$(MAKE)"'
6467 _ACEOF
6468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6469 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6470 if test -n "$ac_maketemp"; then
6471 eval ac_cv_prog_make_${ac_make}_set=yes
6472 else
6473 eval ac_cv_prog_make_${ac_make}_set=no
6475 rm -f conftest.make
6477 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6478 echo "$as_me:$LINENO: result: yes" >&5
6479 echo "${ECHO_T}yes" >&6
6480 SET_MAKE=
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6484 SET_MAKE="MAKE=${MAKE-make}"
6488 echo "$as_me:$LINENO: checking for long file names" >&5
6489 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6490 if test "${ac_cv_sys_long_file_names+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 ac_cv_sys_long_file_names=yes
6494 # Test for long file names in all the places we know might matter:
6495 # . the current directory, where building will happen
6496 # $prefix/lib where we will be installing things
6497 # $exec_prefix/lib likewise
6498 # eval it to expand exec_prefix.
6499 # $TMPDIR if set, where it might want to write temporary files
6500 # if $TMPDIR is not set:
6501 # /tmp where it might want to write temporary files
6502 # /var/tmp likewise
6503 # /usr/tmp likewise
6504 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6505 ac_tmpdirs=$TMPDIR
6506 else
6507 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6509 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6510 test -d $ac_dir || continue
6511 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6512 ac_xdir=$ac_dir/cf$$
6513 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6514 ac_tf1=$ac_xdir/conftest9012345
6515 ac_tf2=$ac_xdir/conftest9012346
6516 (echo 1 >$ac_tf1) 2>/dev/null
6517 (echo 2 >$ac_tf2) 2>/dev/null
6518 ac_val=`cat $ac_tf1 2>/dev/null`
6519 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6520 ac_cv_sys_long_file_names=no
6521 rm -rf $ac_xdir 2>/dev/null
6522 break
6524 rm -rf $ac_xdir 2>/dev/null
6525 done
6527 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6528 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6529 if test $ac_cv_sys_long_file_names = yes; then
6531 cat >>confdefs.h <<\_ACEOF
6532 #define HAVE_LONG_FILE_NAMES 1
6533 _ACEOF
6538 #### Choose a window system.
6540 echo "$as_me:$LINENO: checking for X" >&5
6541 echo $ECHO_N "checking for X... $ECHO_C" >&6
6544 # Check whether --with-x or --without-x was given.
6545 if test "${with_x+set}" = set; then
6546 withval="$with_x"
6549 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6550 if test "x$with_x" = xno; then
6551 # The user explicitly disabled X.
6552 have_x=disabled
6553 else
6554 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6555 # Both variables are already set.
6556 have_x=yes
6557 else
6558 if test "${ac_cv_have_x+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 # One or both of the vars are not set, and there is no cached value.
6562 ac_x_includes=no ac_x_libraries=no
6563 rm -fr conftest.dir
6564 if mkdir conftest.dir; then
6565 cd conftest.dir
6566 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6567 cat >Imakefile <<'_ACEOF'
6568 acfindx:
6569 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6570 _ACEOF
6571 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6574 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6575 for ac_extension in a so sl; do
6576 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6577 test -f $ac_im_libdir/libX11.$ac_extension; then
6578 ac_im_usrlibdir=$ac_im_libdir; break
6580 done
6581 # Screen out bogus values from the imake configuration. They are
6582 # bogus both because they are the default anyway, and because
6583 # using them would break gcc on systems where it needs fixed includes.
6584 case $ac_im_incroot in
6585 /usr/include) ;;
6586 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6587 esac
6588 case $ac_im_usrlibdir in
6589 /usr/lib | /lib) ;;
6590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6591 esac
6593 cd ..
6594 rm -fr conftest.dir
6597 # Standard set of common directories for X headers.
6598 # Check X11 before X11Rn because it is often a symlink to the current release.
6599 ac_x_header_dirs='
6600 /usr/X11/include
6601 /usr/X11R6/include
6602 /usr/X11R5/include
6603 /usr/X11R4/include
6605 /usr/include/X11
6606 /usr/include/X11R6
6607 /usr/include/X11R5
6608 /usr/include/X11R4
6610 /usr/local/X11/include
6611 /usr/local/X11R6/include
6612 /usr/local/X11R5/include
6613 /usr/local/X11R4/include
6615 /usr/local/include/X11
6616 /usr/local/include/X11R6
6617 /usr/local/include/X11R5
6618 /usr/local/include/X11R4
6620 /usr/X386/include
6621 /usr/x386/include
6622 /usr/XFree86/include/X11
6624 /usr/include
6625 /usr/local/include
6626 /usr/unsupported/include
6627 /usr/athena/include
6628 /usr/local/x11r5/include
6629 /usr/lpp/Xamples/include
6631 /usr/openwin/include
6632 /usr/openwin/share/include'
6634 if test "$ac_x_includes" = no; then
6635 # Guess where to find include files, by looking for Intrinsic.h.
6636 # First, try using that file with no special directory specified.
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <X11/Intrinsic.h>
6645 _ACEOF
6646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } >/dev/null; then
6654 if test -s conftest.err; then
6655 ac_cpp_err=$ac_c_preproc_warn_flag
6656 else
6657 ac_cpp_err=
6659 else
6660 ac_cpp_err=yes
6662 if test -z "$ac_cpp_err"; then
6663 # We can compile using X headers with no special include directory.
6664 ac_x_includes=
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 for ac_dir in $ac_x_header_dirs; do
6670 if test -r "$ac_dir/X11/Intrinsic.h"; then
6671 ac_x_includes=$ac_dir
6672 break
6674 done
6676 rm -f conftest.err conftest.$ac_ext
6677 fi # $ac_x_includes = no
6679 if test "$ac_x_libraries" = no; then
6680 # Check for the libraries.
6681 # See if we find them without any special options.
6682 # Don't add to $LIBS permanently.
6683 ac_save_LIBS=$LIBS
6684 LIBS="-lXt $LIBS"
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line $LINENO "configure"
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <X11/Intrinsic.h>
6694 main ()
6696 XtMalloc (0)
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 LIBS=$ac_save_LIBS
6714 # We can link X programs with no special library path.
6715 ac_x_libraries=
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 LIBS=$ac_save_LIBS
6721 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6723 # Don't even attempt the hair of trying to link an X program!
6724 for ac_extension in a so sl; do
6725 if test -r $ac_dir/libXt.$ac_extension; then
6726 ac_x_libraries=$ac_dir
6727 break 2
6729 done
6730 done
6732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 fi # $ac_x_libraries = no
6735 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6736 # Didn't find X anywhere. Cache the known absence of X.
6737 ac_cv_have_x="have_x=no"
6738 else
6739 # Record where we found X for the cache.
6740 ac_cv_have_x="have_x=yes \
6741 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6746 eval "$ac_cv_have_x"
6747 fi # $with_x != no
6749 if test "$have_x" != yes; then
6750 echo "$as_me:$LINENO: result: $have_x" >&5
6751 echo "${ECHO_T}$have_x" >&6
6752 no_x=yes
6753 else
6754 # If each of the values was on the command line, it overrides each guess.
6755 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6756 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6757 # Update the cache value to reflect the command line values.
6758 ac_cv_have_x="have_x=yes \
6759 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6760 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6761 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6764 if test "$no_x" = yes; then
6765 window_system=none
6766 else
6767 window_system=x11
6770 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6771 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6772 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6773 x_default_search_path=""
6774 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6775 x_search_path="\
6776 ${x_library}/X11/%L/%T/%N%C%S:\
6777 ${x_library}/X11/%l/%T/%N%C%S:\
6778 ${x_library}/X11/%T/%N%C%S:\
6779 ${x_library}/X11/%L/%T/%N%S:\
6780 ${x_library}/X11/%l/%T/%N%S:\
6781 ${x_library}/X11/%T/%N%S"
6782 if test x"${x_default_search_path}" = x; then
6783 x_default_search_path=${x_search_path}
6784 else
6785 x_default_search_path="${x_search_path}:${x_default_search_path}"
6787 done
6789 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6790 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6793 if test x"${x_includes}" = x; then
6794 bitmapdir=/usr/include/X11/bitmaps
6795 else
6796 # accumulate include directories that have X11 bitmap subdirectories
6797 bmd_acc="dummyval"
6798 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6799 if test -d "${bmd}/X11/bitmaps"; then
6800 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6802 if test -d "${bmd}/bitmaps"; then
6803 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6805 done
6806 if test ${bmd_acc} != "dummyval"; then
6807 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6811 case "${window_system}" in
6812 x11 )
6813 HAVE_X_WINDOWS=yes
6814 HAVE_X11=yes
6815 case "${with_x_toolkit}" in
6816 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6817 motif ) USE_X_TOOLKIT=MOTIF ;;
6818 no ) USE_X_TOOLKIT=none ;;
6819 * ) USE_X_TOOLKIT=maybe ;;
6820 esac
6822 none )
6823 HAVE_X_WINDOWS=no
6824 HAVE_X11=no
6825 USE_X_TOOLKIT=none
6827 esac
6829 ### If we're using X11, we should use the X menu package.
6830 HAVE_MENUS=no
6831 case ${HAVE_X11} in
6832 yes ) HAVE_MENUS=yes ;;
6833 esac
6835 if test "${opsys}" = "hpux9"; then
6836 case "${x_libraries}" in
6837 *X11R4* )
6838 opsysfile="s/hpux9-x11r4.h"
6840 esac
6843 if test "${opsys}" = "hpux9shr"; then
6844 case "${x_libraries}" in
6845 *X11R4* )
6846 opsysfile="s/hpux9shxr4.h"
6848 esac
6851 ### Compute the unexec source name from the object name.
6852 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6854 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6855 # Assume not, until told otherwise.
6856 GNU_MALLOC=yes
6857 doug_lea_malloc=yes
6858 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6859 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6860 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char malloc_get_state (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6874 #ifdef __STDC__
6875 # include <limits.h>
6876 #else
6877 # include <assert.h>
6878 #endif
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 #ifdef __cplusplus
6881 extern "C"
6883 #endif
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char malloc_get_state ();
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6891 choke me
6892 #else
6893 char (*f) () = malloc_get_state;
6894 #endif
6895 #ifdef __cplusplus
6897 #endif
6900 main ()
6902 return f != malloc_get_state;
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_malloc_get_state=yes
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_cv_func_malloc_get_state=no
6926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6929 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6930 if test $ac_cv_func_malloc_get_state = yes; then
6932 else
6933 doug_lea_malloc=no
6936 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6937 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6938 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char malloc_set_state (); below.
6950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 <limits.h> exists even on freestanding compilers. */
6952 #ifdef __STDC__
6953 # include <limits.h>
6954 #else
6955 # include <assert.h>
6956 #endif
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 #ifdef __cplusplus
6959 extern "C"
6961 #endif
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6964 char malloc_set_state ();
6965 /* The GNU C library defines this for functions which it implements
6966 to always fail with ENOSYS. Some functions are actually named
6967 something starting with __ and the normal name is an alias. */
6968 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6969 choke me
6970 #else
6971 char (*f) () = malloc_set_state;
6972 #endif
6973 #ifdef __cplusplus
6975 #endif
6978 main ()
6980 return f != malloc_set_state;
6982 return 0;
6984 _ACEOF
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_func_malloc_set_state=yes
6998 else
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_func_malloc_set_state=no
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7007 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7008 if test $ac_cv_func_malloc_set_state = yes; then
7010 else
7011 doug_lea_malloc=no
7014 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7015 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7016 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 extern void (* __after_morecore_hook)();
7028 main ()
7030 __after_morecore_hook = 0
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037 (eval $ac_link) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 emacs_cv_var___after_morecore_hook=yes
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 emacs_cv_var___after_morecore_hook=no
7054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7057 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7058 if test $emacs_cv_var___after_morecore_hook = no; then
7059 doug_lea_malloc=no
7061 if test "${system_malloc}" = "yes"; then
7062 GNU_MALLOC=no
7063 GNU_MALLOC_reason="
7064 (The GNU allocators don't work with this system configuration.)"
7066 if test "$doug_lea_malloc" = "yes" ; then
7067 if test "$GNU_MALLOC" = yes ; then
7068 GNU_MALLOC_reason="
7069 (Using Doug Lea's new malloc from the GNU C Library.)"
7072 cat >>confdefs.h <<\_ACEOF
7073 #define DOUG_LEA_MALLOC 1
7074 _ACEOF
7078 if test x"${REL_ALLOC}" = x; then
7079 REL_ALLOC=${GNU_MALLOC}
7085 for ac_header in stdlib.h unistd.h
7087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089 echo "$as_me:$LINENO: checking for $ac_header" >&5
7090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 else
7097 # Is the header compilable?
7098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line $LINENO "configure"
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 $ac_includes_default
7108 #include <$ac_header>
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -s conftest.$ac_objext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_header_compiler=yes
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_header_compiler=no
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7131 echo "${ECHO_T}$ac_header_compiler" >&6
7133 # Is the header present?
7134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 #include <$ac_header>
7144 _ACEOF
7145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } >/dev/null; then
7153 if test -s conftest.err; then
7154 ac_cpp_err=$ac_c_preproc_warn_flag
7155 else
7156 ac_cpp_err=
7158 else
7159 ac_cpp_err=yes
7161 if test -z "$ac_cpp_err"; then
7162 ac_header_preproc=yes
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_header_preproc=no
7169 rm -f conftest.err conftest.$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7171 echo "${ECHO_T}$ac_header_preproc" >&6
7173 # So? What about this header?
7174 case $ac_header_compiler:$ac_header_preproc in
7175 yes:no )
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7181 cat <<\_ASBOX
7182 ## ------------------------------------ ##
7183 ## Report this to bug-autoconf@gnu.org. ##
7184 ## ------------------------------------ ##
7185 _ASBOX
7187 sed "s/^/$as_me: WARNING: /" >&2
7189 no:yes )
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7197 cat <<\_ASBOX
7198 ## ------------------------------------ ##
7199 ## Report this to bug-autoconf@gnu.org. ##
7200 ## ------------------------------------ ##
7201 _ASBOX
7203 sed "s/^/$as_me: WARNING: /" >&2
7205 esac
7206 echo "$as_me:$LINENO: checking for $ac_header" >&5
7207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 eval "$as_ac_Header=$ac_header_preproc"
7213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218 cat >>confdefs.h <<_ACEOF
7219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 _ACEOF
7224 done
7227 for ac_func in getpagesize
7229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7230 echo "$as_me:$LINENO: checking for $ac_func" >&5
7231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7232 if eval "test \"\${$as_ac_var+set}\" = set"; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func (); below.
7244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 <limits.h> exists even on freestanding compilers. */
7246 #ifdef __STDC__
7247 # include <limits.h>
7248 #else
7249 # include <assert.h>
7250 #endif
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 #ifdef __cplusplus
7253 extern "C"
7255 #endif
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7258 char $ac_func ();
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 char (*f) () = $ac_func;
7266 #endif
7267 #ifdef __cplusplus
7269 #endif
7272 main ()
7274 return f != $ac_func;
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 eval "$as_ac_var=yes"
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 eval "$as_ac_var=no"
7298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7302 if test `eval echo '${'$as_ac_var'}'` = yes; then
7303 cat >>confdefs.h <<_ACEOF
7304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7305 _ACEOF
7308 done
7310 echo "$as_me:$LINENO: checking for working mmap" >&5
7311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 if test "$cross_compiling" = yes; then
7316 ac_cv_func_mmap_fixed_mapped=no
7317 else
7318 cat >conftest.$ac_ext <<_ACEOF
7319 #line $LINENO "configure"
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 $ac_includes_default
7326 /* malloc might have been renamed as rpl_malloc. */
7327 #undef malloc
7329 /* Thanks to Mike Haertel and Jim Avera for this test.
7330 Here is a matrix of mmap possibilities:
7331 mmap private not fixed
7332 mmap private fixed at somewhere currently unmapped
7333 mmap private fixed at somewhere already mapped
7334 mmap shared not fixed
7335 mmap shared fixed at somewhere currently unmapped
7336 mmap shared fixed at somewhere already mapped
7337 For private mappings, we should verify that changes cannot be read()
7338 back from the file, nor mmap's back from the file at a different
7339 address. (There have been systems where private was not correctly
7340 implemented like the infamous i386 svr4.0, and systems where the
7341 VM page cache was not coherent with the file system buffer cache
7342 like early versions of FreeBSD and possibly contemporary NetBSD.)
7343 For shared mappings, we should conversely verify that changes get
7344 propagated back to all the places they're supposed to be.
7346 Grep wants private fixed already mapped.
7347 The main things grep needs to know about mmap are:
7348 * does it exist and is it safe to write into the mmap'd area
7349 * how to use it (BSD variants) */
7351 #include <fcntl.h>
7352 #include <sys/mman.h>
7354 #if !STDC_HEADERS && !HAVE_STDLIB_H
7355 char *malloc ();
7356 #endif
7358 /* This mess was copied from the GNU getpagesize.h. */
7359 #if !HAVE_GETPAGESIZE
7360 /* Assume that all systems that can run configure have sys/param.h. */
7361 # if !HAVE_SYS_PARAM_H
7362 # define HAVE_SYS_PARAM_H 1
7363 # endif
7365 # ifdef _SC_PAGESIZE
7366 # define getpagesize() sysconf(_SC_PAGESIZE)
7367 # else /* no _SC_PAGESIZE */
7368 # if HAVE_SYS_PARAM_H
7369 # include <sys/param.h>
7370 # ifdef EXEC_PAGESIZE
7371 # define getpagesize() EXEC_PAGESIZE
7372 # else /* no EXEC_PAGESIZE */
7373 # ifdef NBPG
7374 # define getpagesize() NBPG * CLSIZE
7375 # ifndef CLSIZE
7376 # define CLSIZE 1
7377 # endif /* no CLSIZE */
7378 # else /* no NBPG */
7379 # ifdef NBPC
7380 # define getpagesize() NBPC
7381 # else /* no NBPC */
7382 # ifdef PAGESIZE
7383 # define getpagesize() PAGESIZE
7384 # endif /* PAGESIZE */
7385 # endif /* no NBPC */
7386 # endif /* no NBPG */
7387 # endif /* no EXEC_PAGESIZE */
7388 # else /* no HAVE_SYS_PARAM_H */
7389 # define getpagesize() 8192 /* punt totally */
7390 # endif /* no HAVE_SYS_PARAM_H */
7391 # endif /* no _SC_PAGESIZE */
7393 #endif /* no HAVE_GETPAGESIZE */
7396 main ()
7398 char *data, *data2, *data3;
7399 int i, pagesize;
7400 int fd;
7402 pagesize = getpagesize ();
7404 /* First, make a file with some known garbage in it. */
7405 data = (char *) malloc (pagesize);
7406 if (!data)
7407 exit (1);
7408 for (i = 0; i < pagesize; ++i)
7409 *(data + i) = rand ();
7410 umask (0);
7411 fd = creat ("conftest.mmap", 0600);
7412 if (fd < 0)
7413 exit (1);
7414 if (write (fd, data, pagesize) != pagesize)
7415 exit (1);
7416 close (fd);
7418 /* Next, try to mmap the file at a fixed address which already has
7419 something else allocated at it. If we can, also make sure that
7420 we see the same garbage. */
7421 fd = open ("conftest.mmap", O_RDWR);
7422 if (fd < 0)
7423 exit (1);
7424 data2 = (char *) malloc (2 * pagesize);
7425 if (!data2)
7426 exit (1);
7427 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7430 exit (1);
7431 for (i = 0; i < pagesize; ++i)
7432 if (*(data + i) != *(data2 + i))
7433 exit (1);
7435 /* Finally, make sure that changes to the mapped area do not
7436 percolate back to the file as seen by read(). (This is a bug on
7437 some variants of i386 svr4.0.) */
7438 for (i = 0; i < pagesize; ++i)
7439 *(data2 + i) = *(data2 + i) + 1;
7440 data3 = (char *) malloc (pagesize);
7441 if (!data3)
7442 exit (1);
7443 if (read (fd, data3, pagesize) != pagesize)
7444 exit (1);
7445 for (i = 0; i < pagesize; ++i)
7446 if (*(data + i) != *(data3 + i))
7447 exit (1);
7448 close (fd);
7449 exit (0);
7451 _ACEOF
7452 rm -f conftest$ac_exeext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7454 (eval $ac_link) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_mmap_fixed_mapped=yes
7464 else
7465 echo "$as_me: program exited with status $ac_status" >&5
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ( exit $ac_status )
7470 ac_cv_func_mmap_fixed_mapped=no
7472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7476 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7477 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_MMAP 1
7481 _ACEOF
7484 rm -f conftest.mmap
7486 if test $use_mmap_for_buffers = yes; then
7487 REL_ALLOC=no
7490 LIBS="$libsrc_libs $LIBS"
7493 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7494 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7495 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 ac_check_lib_save_LIBS=$LIBS
7499 LIBS="-ldnet $LIBS"
7500 cat >conftest.$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7514 char dnet_ntoa ();
7516 main ()
7518 dnet_ntoa ();
7520 return 0;
7522 _ACEOF
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } &&
7529 { ac_try='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_lib_dnet_dnet_ntoa=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_lib_dnet_dnet_ntoa=no
7542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7545 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7546 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7547 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define HAVE_LIBDNET 1
7550 _ACEOF
7552 LIBS="-ldnet $LIBS"
7557 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7558 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7559 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 ac_check_lib_save_LIBS=$LIBS
7563 LIBS="-lXbsd $LIBS"
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7574 main ()
7576 main ();
7578 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 ac_cv_lib_Xbsd_main=yes
7594 else
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 ac_cv_lib_Xbsd_main=no
7600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7604 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7605 if test $ac_cv_lib_Xbsd_main = yes; then
7606 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7611 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7612 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7613 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-lpthreads $LIBS"
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line $LINENO "configure"
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7626 /* Override any gcc2 internal prototype to avoid an error. */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */
7632 char cma_open ();
7634 main ()
7636 cma_open ();
7638 return 0;
7640 _ACEOF
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_lib_pthreads_cma_open=yes
7654 else
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_lib_pthreads_cma_open=no
7660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7661 LIBS=$ac_check_lib_save_LIBS
7663 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7664 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7665 if test $ac_cv_lib_pthreads_cma_open = yes; then
7666 cat >>confdefs.h <<_ACEOF
7667 #define HAVE_LIBPTHREADS 1
7668 _ACEOF
7670 LIBS="-lpthreads $LIBS"
7675 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7676 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7677 if test -d /usr/X386/include; then
7678 HAVE_XFREE386=yes
7679 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7680 else
7681 HAVE_XFREE386=no
7683 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7684 echo "${ECHO_T}$HAVE_XFREE386" >&6
7686 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7687 # used for the tests that follow. We set them back to REAL_CFLAGS and
7688 # REAL_CPPFLAGS later on.
7690 REAL_CPPFLAGS="$CPPFLAGS"
7692 if test "${HAVE_X11}" = "yes"; then
7693 DEFS="$C_SWITCH_X_SITE $DEFS"
7694 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7695 LIBS="$LIBX $LIBS"
7696 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7697 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7699 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7700 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7701 # but it's more convenient here to set LD_RUN_PATH
7702 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7703 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7704 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7705 export LD_RUN_PATH
7708 if test "${opsys}" = "gnu-linux"; then
7709 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7710 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7720 main ()
7722 XOpenDisplay ("foo");
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 xlinux_first_failure=no
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 xlinux_first_failure=yes
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 if test "${xlinux_first_failure}" = "yes"; then
7748 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7749 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7750 OLD_CPPFLAGS="$CPPFLAGS"
7751 OLD_LIBS="$LIBS"
7752 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7753 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7754 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7755 LIBS="$LIBS -b i486-linuxaout"
7756 cat >conftest.$ac_ext <<_ACEOF
7757 #line $LINENO "configure"
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7765 main ()
7767 XOpenDisplay ("foo");
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 xlinux_second_failure=no
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 xlinux_second_failure=yes
7791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792 if test "${xlinux_second_failure}" = "yes"; then
7793 # If we get the same failure with -b, there is no use adding -b.
7794 # So take it out. This plays safe.
7795 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7796 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7797 CPPFLAGS="$OLD_CPPFLAGS"
7798 LIBS="$OLD_LIBS"
7799 echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6
7801 else
7802 echo "$as_me:$LINENO: result: yes" >&5
7803 echo "${ECHO_T}yes" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7811 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7812 # header files included from there.
7813 echo "$as_me:$LINENO: checking for Xkb" >&5
7814 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <X11/Xlib.h>
7823 #include <X11/XKBlib.h>
7825 main ()
7827 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7829 return 0;
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 emacs_xkb=yes
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 emacs_xkb=no
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7853 echo "${ECHO_T}$emacs_xkb" >&6
7854 if test $emacs_xkb = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_XKBGETKEYBOARD 1
7858 _ACEOF
7866 for ac_func in XrmSetDatabase XScreenResourceString \
7867 XScreenNumberOfScreen XSetWMProtocols
7869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7870 echo "$as_me:$LINENO: checking for $ac_func" >&5
7871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7872 if eval "test \"\${$as_ac_var+set}\" = set"; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 cat >conftest.$ac_ext <<_ACEOF
7876 #line $LINENO "configure"
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 /* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char $ac_func (); below.
7884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 <limits.h> exists even on freestanding compilers. */
7886 #ifdef __STDC__
7887 # include <limits.h>
7888 #else
7889 # include <assert.h>
7890 #endif
7891 /* Override any gcc2 internal prototype to avoid an error. */
7892 #ifdef __cplusplus
7893 extern "C"
7895 #endif
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char $ac_func ();
7899 /* The GNU C library defines this for functions which it implements
7900 to always fail with ENOSYS. Some functions are actually named
7901 something starting with __ and the normal name is an alias. */
7902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7903 choke me
7904 #else
7905 char (*f) () = $ac_func;
7906 #endif
7907 #ifdef __cplusplus
7909 #endif
7912 main ()
7914 return f != $ac_func;
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 eval "$as_ac_var=yes"
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 eval "$as_ac_var=no"
7938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7942 if test `eval echo '${'$as_ac_var'}'` = yes; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7945 _ACEOF
7948 done
7952 if test "${window_system}" = "x11"; then
7953 echo "$as_me:$LINENO: checking X11 version 6" >&5
7954 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7955 if test "${emacs_cv_x11_version_6+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #line $LINENO "configure"
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <X11/Xlib.h>
7967 main ()
7969 #if XlibSpecificationRelease < 6
7970 fail;
7971 #endif
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 emacs_cv_x11_version_6=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 emacs_cv_x11_version_6=no
7996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999 if test $emacs_cv_x11_version_6 = yes; then
8000 echo "$as_me:$LINENO: result: 6 or newer" >&5
8001 echo "${ECHO_T}6 or newer" >&6
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_X11R6 1
8005 _ACEOF
8007 else
8008 echo "$as_me:$LINENO: result: before 6" >&5
8009 echo "${ECHO_T}before 6" >&6
8013 if test "${window_system}" = "x11"; then
8014 echo "$as_me:$LINENO: checking X11 version 5" >&5
8015 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8016 if test "${emacs_cv_x11_version_5+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <X11/Xlib.h>
8028 main ()
8030 #if XlibSpecificationRelease < 5
8031 fail;
8032 #endif
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 emacs_cv_x11_version_5=yes
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 emacs_cv_x11_version_5=no
8057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 if test $emacs_cv_x11_version_5 = yes; then
8061 echo "$as_me:$LINENO: result: 5 or newer" >&5
8062 echo "${ECHO_T}5 or newer" >&6
8063 HAVE_X11R5=yes
8065 cat >>confdefs.h <<\_ACEOF
8066 #define HAVE_X11R5 1
8067 _ACEOF
8069 else
8070 HAVE_X11R5=no
8071 echo "$as_me:$LINENO: result: before 5" >&5
8072 echo "${ECHO_T}before 5" >&6
8076 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8077 if test x"${HAVE_X11R5}" = xyes; then
8078 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8079 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8080 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 #include <X11/Intrinsic.h>
8092 #include <X11/Xaw/Simple.h>
8094 main ()
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 emacs_cv_x11_version_5_with_xaw=yes
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 emacs_cv_x11_version_5_with_xaw=no
8120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8123 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8124 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8125 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8126 USE_X_TOOLKIT=LUCID
8127 else
8128 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8129 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8130 USE_X_TOOLKIT=none
8132 else
8133 USE_X_TOOLKIT=none
8137 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8139 if test "${USE_X_TOOLKIT}" != "none"; then
8140 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8141 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8142 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <X11/Intrinsic.h>
8154 main ()
8156 #if XtSpecificationRelease < 6
8157 fail;
8158 #endif
8161 return 0;
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -s conftest$ac_exeext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 emacs_cv_x11_toolkit_version_6=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 emacs_cv_x11_toolkit_version_6=no
8183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8186 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8187 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8188 echo "$as_me:$LINENO: result: 6 or newer" >&5
8189 echo "${ECHO_T}6 or newer" >&6
8191 cat >>confdefs.h <<\_ACEOF
8192 #define HAVE_X11XTR6 1
8193 _ACEOF
8195 else
8196 echo "$as_me:$LINENO: result: before 6" >&5
8197 echo "${ECHO_T}before 6" >&6
8200 OLDLIBS="$LIBS"
8201 if test x$HAVE_X11XTR6 = xyes; then
8202 LIBS="-lXt -lSM -lICE $LIBS"
8203 else
8204 LIBS="-lXt $LIBS"
8207 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8208 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8209 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lXmu $LIBS"
8214 cat >conftest.$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8222 /* Override any gcc2 internal prototype to avoid an error. */
8223 #ifdef __cplusplus
8224 extern "C"
8225 #endif
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char XmuConvertStandardSelection ();
8230 main ()
8232 XmuConvertStandardSelection ();
8234 return 0;
8236 _ACEOF
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8239 (eval $ac_link) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8260 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8261 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_LIBXMU 1
8264 _ACEOF
8266 LIBS="-lXmu $LIBS"
8270 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8273 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8274 if test "${HAVE_X11}" = "yes"; then
8275 if test "${USE_X_TOOLKIT}" != "none"; then
8277 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8278 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8279 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lXext $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298 char XShapeQueryExtension ();
8300 main ()
8302 XShapeQueryExtension ();
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_lib_Xext_XShapeQueryExtension=yes
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_cv_lib_Xext_XShapeQueryExtension=no
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8330 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8331 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_LIBXEXT 1
8334 _ACEOF
8336 LIBS="-lXext $LIBS"
8343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8344 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8345 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8346 if test "${emacs_cv_lesstif+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 # We put this in CFLAGS temporarily to precede other -I options
8350 # that might be in CFLAGS temporarily.
8351 # We put this in CPPFLAGS where it precedes the other -I options.
8352 OLD_CPPFLAGS=$CPPFLAGS
8353 OLD_CFLAGS=$CFLAGS
8354 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8355 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8365 main ()
8367 int x = 5;
8369 return 0;
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 emacs_cv_lesstif=yes
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 emacs_cv_lesstif=no
8391 rm -f conftest.$ac_objext conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8394 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8395 if test $emacs_cv_lesstif = yes; then
8396 # Make sure this -I option remains in CPPFLAGS after it is set
8397 # back to REAL_CPPFLAGS.
8398 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8399 # have those other -I options anyway. Ultimately, having this
8400 # directory ultimately in CPPFLAGS will be enough.
8401 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8402 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8403 else
8404 CFLAGS=$OLD_CFLAGS
8405 CPPFLAGS=$OLD_CPPFLAGS
8407 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8408 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8409 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 cat >conftest.$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 #include <Xm/Xm.h>
8421 main ()
8423 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8424 int x = 5;
8425 #else
8426 Motif version prior to 2.1.
8427 #endif
8429 return 0;
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 emacs_cv_motif_version_2_1=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 emacs_cv_motif_version_2_1=no
8451 rm -f conftest.$ac_objext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8454 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8455 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8456 if test $emacs_cv_motif_version_2_1 = yes; then
8457 HAVE_LIBXP=no
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_MOTIF_2_1 1
8461 _ACEOF
8463 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8464 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8465 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-lXp $LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 /* confdefs.h. */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 #ifdef __cplusplus
8480 extern "C"
8481 #endif
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8484 char XpCreateContext ();
8486 main ()
8488 XpCreateContext ();
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_Xp_XpCreateContext=yes
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_cv_lib_Xp_XpCreateContext=no
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8516 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8517 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8518 HAVE_LIBXP=yes
8521 if test ${HAVE_LIBXP} = yes; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LIBXP 1
8525 _ACEOF
8531 ### Is -lXaw3d available?
8532 HAVE_XAW3D=no
8533 if test "${HAVE_X11}" = "yes"; then
8534 if test "${USE_X_TOOLKIT}" != "none"; then
8535 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8536 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8537 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <X11/Xaw3d/Scrollbar.h>
8548 _ACEOF
8549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } >/dev/null; then
8557 if test -s conftest.err; then
8558 ac_cpp_err=$ac_c_preproc_warn_flag
8559 else
8560 ac_cpp_err=
8562 else
8563 ac_cpp_err=yes
8565 if test -z "$ac_cpp_err"; then
8566 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8573 rm -f conftest.err conftest.$ac_ext
8575 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8577 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8578 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8579 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8580 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 ac_check_lib_save_LIBS=$LIBS
8584 LIBS="-lXaw3d $LIBS"
8585 cat >conftest.$ac_ext <<_ACEOF
8586 #line $LINENO "configure"
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599 char XawScrollbarSetThumb ();
8601 main ()
8603 XawScrollbarSetThumb ();
8605 return 0;
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8631 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8632 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8633 HAVE_XAW3D=yes
8639 if test "${HAVE_XAW3D}" = "yes"; then
8641 cat >>confdefs.h <<\_ACEOF
8642 #define HAVE_XAW3D 1
8643 _ACEOF
8651 USE_TOOLKIT_SCROLL_BARS=no
8652 if test "${with_toolkit_scroll_bars}" != "no"; then
8653 if test "${USE_X_TOOLKIT}" != "none"; then
8654 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define USE_TOOLKIT_SCROLL_BARS 1
8657 _ACEOF
8659 HAVE_XAW3D=no
8660 USE_TOOLKIT_SCROLL_BARS=yes
8661 elif test "${HAVE_XAW3D}" = "yes"; then
8662 cat >>confdefs.h <<\_ACEOF
8663 #define USE_TOOLKIT_SCROLL_BARS 1
8664 _ACEOF
8666 USE_TOOLKIT_SCROLL_BARS=yes
8672 if test "${with_xim}" != "no"; then
8674 cat >>confdefs.h <<\_ACEOF
8675 #define USE_XIM 1
8676 _ACEOF
8680 ### Use -lXpm if available, unless `--with-xpm=no'.
8681 HAVE_XPM=no
8682 if test "${HAVE_X11}" = "yes"; then
8683 if test "${with_xpm}" != "no"; then
8684 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8685 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8686 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8687 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8691 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8692 else
8693 # Is the header compilable?
8694 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8695 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #include <X11/xpm.h>
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_header_compiler=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_header_compiler=no
8725 rm -f conftest.$ac_objext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8727 echo "${ECHO_T}$ac_header_compiler" >&6
8729 # Is the header present?
8730 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8731 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 #include <X11/xpm.h>
8740 _ACEOF
8741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8751 else
8752 ac_cpp_err=
8754 else
8755 ac_cpp_err=yes
8757 if test -z "$ac_cpp_err"; then
8758 ac_header_preproc=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_header_preproc=no
8765 rm -f conftest.err conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767 echo "${ECHO_T}$ac_header_preproc" >&6
8769 # So? What about this header?
8770 case $ac_header_compiler:$ac_header_preproc in
8771 yes:no )
8772 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8773 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8775 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8777 cat <<\_ASBOX
8778 ## ------------------------------------ ##
8779 ## Report this to bug-autoconf@gnu.org. ##
8780 ## ------------------------------------ ##
8781 _ASBOX
8783 sed "s/^/$as_me: WARNING: /" >&2
8785 no:yes )
8786 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8793 cat <<\_ASBOX
8794 ## ------------------------------------ ##
8795 ## Report this to bug-autoconf@gnu.org. ##
8796 ## ------------------------------------ ##
8797 _ASBOX
8799 sed "s/^/$as_me: WARNING: /" >&2
8801 esac
8802 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8803 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8804 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 ac_cv_header_X11_xpm_h=$ac_header_preproc
8809 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8810 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8813 if test $ac_cv_header_X11_xpm_h = yes; then
8814 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8815 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8816 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 ac_check_lib_save_LIBS=$LIBS
8820 LIBS="-lXpm -lX11 $LIBS"
8821 cat >conftest.$ac_ext <<_ACEOF
8822 #line $LINENO "configure"
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char XpmReadFileToPixmap ();
8837 main ()
8839 XpmReadFileToPixmap ();
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8867 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8868 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8869 HAVE_XPM=yes
8875 if test "${HAVE_XPM}" = "yes"; then
8876 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8877 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include "X11/xpm.h"
8886 #ifndef XpmReturnAllocPixels
8887 no_return_alloc_pixels
8888 #endif
8890 _ACEOF
8891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
8893 HAVE_XPM=no
8894 else
8895 HAVE_XPM=yes
8897 rm -f conftest*
8900 if test "${HAVE_XPM}" = "yes"; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8903 else
8904 echo "$as_me:$LINENO: result: no" >&5
8905 echo "${ECHO_T}no" >&6
8910 if test "${HAVE_XPM}" = "yes"; then
8912 cat >>confdefs.h <<\_ACEOF
8913 #define HAVE_XPM 1
8914 _ACEOF
8919 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8920 HAVE_JPEG=no
8921 if test "${HAVE_X11}" = "yes"; then
8922 if test "${with_jpeg}" != "no"; then
8923 if test "${ac_cv_header_jerror_h+set}" = set; then
8924 echo "$as_me:$LINENO: checking for jerror.h" >&5
8925 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8926 if test "${ac_cv_header_jerror_h+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8930 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8931 else
8932 # Is the header compilable?
8933 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8934 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 #include <jerror.h>
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_header_compiler=yes
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_header_compiler=no
8964 rm -f conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8966 echo "${ECHO_T}$ac_header_compiler" >&6
8968 # Is the header present?
8969 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8970 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #include <jerror.h>
8979 _ACEOF
8980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } >/dev/null; then
8988 if test -s conftest.err; then
8989 ac_cpp_err=$ac_c_preproc_warn_flag
8990 else
8991 ac_cpp_err=
8993 else
8994 ac_cpp_err=yes
8996 if test -z "$ac_cpp_err"; then
8997 ac_header_preproc=yes
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_header_preproc=no
9004 rm -f conftest.err conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006 echo "${ECHO_T}$ac_header_preproc" >&6
9008 # So? What about this header?
9009 case $ac_header_compiler:$ac_header_preproc in
9010 yes:no )
9011 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9012 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9014 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9016 cat <<\_ASBOX
9017 ## ------------------------------------ ##
9018 ## Report this to bug-autoconf@gnu.org. ##
9019 ## ------------------------------------ ##
9020 _ASBOX
9022 sed "s/^/$as_me: WARNING: /" >&2
9024 no:yes )
9025 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9030 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9032 cat <<\_ASBOX
9033 ## ------------------------------------ ##
9034 ## Report this to bug-autoconf@gnu.org. ##
9035 ## ------------------------------------ ##
9036 _ASBOX
9038 sed "s/^/$as_me: WARNING: /" >&2
9040 esac
9041 echo "$as_me:$LINENO: checking for jerror.h" >&5
9042 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9043 if test "${ac_cv_header_jerror_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 ac_cv_header_jerror_h=$ac_header_preproc
9048 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9052 if test $ac_cv_header_jerror_h = yes; then
9053 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9054 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9055 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058 ac_check_lib_save_LIBS=$LIBS
9059 LIBS="-ljpeg $LIBS"
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9074 char jpeg_destroy_compress ();
9076 main ()
9078 jpeg_destroy_compress ();
9080 return 0;
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9105 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9106 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9107 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9108 HAVE_JPEG=yes
9117 if test "${HAVE_JPEG}" = "yes"; then
9118 cat >>confdefs.h <<\_ACEOF
9119 #define HAVE_JPEG 1
9120 _ACEOF
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 #include <jpeglib.h>
9130 version=JPEG_LIB_VERSION
9132 _ACEOF
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_JPEG 1
9137 _ACEOF
9139 else
9140 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9141 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9142 HAVE_JPEG=no
9144 rm -f conftest*
9149 ### Use -lpng if available, unless `--with-png=no'.
9150 HAVE_PNG=no
9151 if test "${HAVE_X11}" = "yes"; then
9152 if test "${with_png}" != "no"; then
9153 if test "${ac_cv_header_png_h+set}" = set; then
9154 echo "$as_me:$LINENO: checking for png.h" >&5
9155 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9156 if test "${ac_cv_header_png_h+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9161 else
9162 # Is the header compilable?
9163 echo "$as_me:$LINENO: checking png.h usability" >&5
9164 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $ac_includes_default
9173 #include <png.h>
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177 (eval $ac_compile) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -s conftest.$ac_objext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 ac_header_compiler=yes
9188 else
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_header_compiler=no
9194 rm -f conftest.$ac_objext conftest.$ac_ext
9195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9196 echo "${ECHO_T}$ac_header_compiler" >&6
9198 # Is the header present?
9199 echo "$as_me:$LINENO: checking png.h presence" >&5
9200 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <png.h>
9209 _ACEOF
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev/null; then
9218 if test -s conftest.err; then
9219 ac_cpp_err=$ac_c_preproc_warn_flag
9220 else
9221 ac_cpp_err=
9223 else
9224 ac_cpp_err=yes
9226 if test -z "$ac_cpp_err"; then
9227 ac_header_preproc=yes
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_header_preproc=no
9234 rm -f conftest.err conftest.$ac_ext
9235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9236 echo "${ECHO_T}$ac_header_preproc" >&6
9238 # So? What about this header?
9239 case $ac_header_compiler:$ac_header_preproc in
9240 yes:no )
9241 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9242 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9244 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9246 cat <<\_ASBOX
9247 ## ------------------------------------ ##
9248 ## Report this to bug-autoconf@gnu.org. ##
9249 ## ------------------------------------ ##
9250 _ASBOX
9252 sed "s/^/$as_me: WARNING: /" >&2
9254 no:yes )
9255 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9260 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9262 cat <<\_ASBOX
9263 ## ------------------------------------ ##
9264 ## Report this to bug-autoconf@gnu.org. ##
9265 ## ------------------------------------ ##
9266 _ASBOX
9268 sed "s/^/$as_me: WARNING: /" >&2
9270 esac
9271 echo "$as_me:$LINENO: checking for png.h" >&5
9272 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9273 if test "${ac_cv_header_png_h+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_cv_header_png_h=$ac_header_preproc
9278 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9279 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9282 if test $ac_cv_header_png_h = yes; then
9283 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9284 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9285 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288 ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-lpng -lz -lm $LIBS"
9290 cat >conftest.$ac_ext <<_ACEOF
9291 #line $LINENO "configure"
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any gcc2 internal prototype to avoid an error. */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 /* We use char because int might match the return type of a gcc2
9303 builtin and then its argument prototype would still apply. */
9304 char png_get_channels ();
9306 main ()
9308 png_get_channels ();
9310 return 0;
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_lib_png_png_get_channels=yes
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_png_png_get_channels=no
9332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9336 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9337 if test $ac_cv_lib_png_png_get_channels = yes; then
9338 HAVE_PNG=yes
9346 if test "${HAVE_PNG}" = "yes"; then
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_PNG 1
9350 _ACEOF
9355 ### Use -ltiff if available, unless `--with-tiff=no'.
9356 HAVE_TIFF=no
9357 if test "${HAVE_X11}" = "yes"; then
9358 if test "${with_tiff}" != "no"; then
9359 if test "${ac_cv_header_tiffio_h+set}" = set; then
9360 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9361 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9362 if test "${ac_cv_header_tiffio_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9367 else
9368 # Is the header compilable?
9369 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9370 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 $ac_includes_default
9379 #include <tiffio.h>
9380 _ACEOF
9381 rm -f conftest.$ac_objext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9383 (eval $ac_compile) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_header_compiler=yes
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_header_compiler=no
9400 rm -f conftest.$ac_objext conftest.$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402 echo "${ECHO_T}$ac_header_compiler" >&6
9404 # Is the header present?
9405 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9406 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9407 cat >conftest.$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <tiffio.h>
9415 _ACEOF
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null; then
9424 if test -s conftest.err; then
9425 ac_cpp_err=$ac_c_preproc_warn_flag
9426 else
9427 ac_cpp_err=
9429 else
9430 ac_cpp_err=yes
9432 if test -z "$ac_cpp_err"; then
9433 ac_header_preproc=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_header_preproc=no
9440 rm -f conftest.err conftest.$ac_ext
9441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc in
9446 yes:no )
9447 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9452 cat <<\_ASBOX
9453 ## ------------------------------------ ##
9454 ## Report this to bug-autoconf@gnu.org. ##
9455 ## ------------------------------------ ##
9456 _ASBOX
9458 sed "s/^/$as_me: WARNING: /" >&2
9460 no:yes )
9461 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9466 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9468 cat <<\_ASBOX
9469 ## ------------------------------------ ##
9470 ## Report this to bug-autoconf@gnu.org. ##
9471 ## ------------------------------------ ##
9472 _ASBOX
9474 sed "s/^/$as_me: WARNING: /" >&2
9476 esac
9477 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9478 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9479 if test "${ac_cv_header_tiffio_h+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 ac_cv_header_tiffio_h=$ac_header_preproc
9484 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9485 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9488 if test $ac_cv_header_tiffio_h = yes; then
9489 tifflibs="-lz -lm"
9490 # At least one tiff package requires the jpeg library.
9491 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9492 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9493 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9494 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 ac_check_lib_save_LIBS=$LIBS
9498 LIBS="-ltiff $tifflibs $LIBS"
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 /* Override any gcc2 internal prototype to avoid an error. */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9513 char TIFFGetVersion ();
9515 main ()
9517 TIFFGetVersion ();
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_lib_tiff_TIFFGetVersion=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_cv_lib_tiff_TIFFGetVersion=no
9541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9545 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9546 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9547 HAVE_TIFF=yes
9555 if test "${HAVE_TIFF}" = "yes"; then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_TIFF 1
9559 _ACEOF
9564 ### Use -lgif if available, unless `--with-gif=no'.
9565 HAVE_GIF=no
9566 if test "${HAVE_X11}" = "yes"; then
9567 if test "${with_gif}" != "no"; then
9568 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9569 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9570 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9571 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9575 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9576 else
9577 # Is the header compilable?
9578 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9579 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 $ac_includes_default
9588 #include <gif_lib.h>
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_header_compiler=yes
9603 else
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_header_compiler=no
9609 rm -f conftest.$ac_objext conftest.$ac_ext
9610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9611 echo "${ECHO_T}$ac_header_compiler" >&6
9613 # Is the header present?
9614 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9615 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9616 cat >conftest.$ac_ext <<_ACEOF
9617 #line $LINENO "configure"
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <gif_lib.h>
9624 _ACEOF
9625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } >/dev/null; then
9633 if test -s conftest.err; then
9634 ac_cpp_err=$ac_c_preproc_warn_flag
9635 else
9636 ac_cpp_err=
9638 else
9639 ac_cpp_err=yes
9641 if test -z "$ac_cpp_err"; then
9642 ac_header_preproc=yes
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_header_preproc=no
9649 rm -f conftest.err conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9651 echo "${ECHO_T}$ac_header_preproc" >&6
9653 # So? What about this header?
9654 case $ac_header_compiler:$ac_header_preproc in
9655 yes:no )
9656 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9657 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9659 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9661 cat <<\_ASBOX
9662 ## ------------------------------------ ##
9663 ## Report this to bug-autoconf@gnu.org. ##
9664 ## ------------------------------------ ##
9665 _ASBOX
9667 sed "s/^/$as_me: WARNING: /" >&2
9669 no:yes )
9670 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9671 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9673 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9675 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9677 cat <<\_ASBOX
9678 ## ------------------------------------ ##
9679 ## Report this to bug-autoconf@gnu.org. ##
9680 ## ------------------------------------ ##
9681 _ASBOX
9683 sed "s/^/$as_me: WARNING: /" >&2
9685 esac
9686 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9687 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 ac_cv_header_gif_lib_h=$ac_header_preproc
9693 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9694 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9697 if test $ac_cv_header_gif_lib_h = yes; then
9698 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9699 # Earlier versions can crash Emacs.
9700 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9701 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9702 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-lungif $LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9715 /* Override any gcc2 internal prototype to avoid an error. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char EGifPutExtensionLast ();
9723 main ()
9725 EGifPutExtensionLast ();
9727 return 0;
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_ungif_EGifPutExtensionLast=no
9749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9753 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9754 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9755 HAVE_GIF=yes
9763 if test "${HAVE_GIF}" = "yes"; then
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_GIF 1
9767 _ACEOF
9772 ### Use Mac OS X Carbon API to implement GUI.
9773 HAVE_CARBON=no
9774 if test "${with_carbon}" != "no"; then
9775 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9776 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9777 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9778 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9782 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9783 else
9784 # Is the header compilable?
9785 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9786 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 $ac_includes_default
9795 #include <Carbon/Carbon.h>
9796 _ACEOF
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_header_compiler=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_header_compiler=no
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6
9820 # Is the header present?
9821 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9822 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9824 #line $LINENO "configure"
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <Carbon/Carbon.h>
9831 _ACEOF
9832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev/null; then
9840 if test -s conftest.err; then
9841 ac_cpp_err=$ac_c_preproc_warn_flag
9842 else
9843 ac_cpp_err=
9845 else
9846 ac_cpp_err=yes
9848 if test -z "$ac_cpp_err"; then
9849 ac_header_preproc=yes
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_header_preproc=no
9856 rm -f conftest.err conftest.$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 echo "${ECHO_T}$ac_header_preproc" >&6
9860 # So? What about this header?
9861 case $ac_header_compiler:$ac_header_preproc in
9862 yes:no )
9863 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9864 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9866 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9868 cat <<\_ASBOX
9869 ## ------------------------------------ ##
9870 ## Report this to bug-autoconf@gnu.org. ##
9871 ## ------------------------------------ ##
9872 _ASBOX
9874 sed "s/^/$as_me: WARNING: /" >&2
9876 no:yes )
9877 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9878 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9880 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9882 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9884 cat <<\_ASBOX
9885 ## ------------------------------------ ##
9886 ## Report this to bug-autoconf@gnu.org. ##
9887 ## ------------------------------------ ##
9888 _ASBOX
9890 sed "s/^/$as_me: WARNING: /" >&2
9892 esac
9893 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9894 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9895 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9900 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9901 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9904 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9905 HAVE_CARBON=yes
9911 if test "${HAVE_CARBON}" = "yes"; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_CARBON 1
9915 _ACEOF
9917 window_system=mac
9918 ## Specify the install directory
9919 carbon_appdir=
9920 if test "${carbon_appdir_x}" != ""; then
9921 case ${carbon_appdir_x} in
9922 y | ye | yes) carbon_appdir=/Applications ;;
9923 * ) carbon_appdir=${carbon_appdir_x} ;;
9924 esac
9928 ### Use session management (-lSM -lICE) if available
9929 HAVE_X_SM=no
9930 if test "${HAVE_X11}" = "yes"; then
9931 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9932 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9933 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9934 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9938 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9939 else
9940 # Is the header compilable?
9941 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9942 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 $ac_includes_default
9951 #include <X11/SM/SMlib.h>
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_header_compiler=no
9972 rm -f conftest.$ac_objext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9978 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <X11/SM/SMlib.h>
9987 _ACEOF
9988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null; then
9996 if test -s conftest.err; then
9997 ac_cpp_err=$ac_c_preproc_warn_flag
9998 else
9999 ac_cpp_err=
10001 else
10002 ac_cpp_err=yes
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc=yes
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_header_preproc=no
10012 rm -f conftest.err conftest.$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc in
10018 yes:no )
10019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10022 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10024 cat <<\_ASBOX
10025 ## ------------------------------------ ##
10026 ## Report this to bug-autoconf@gnu.org. ##
10027 ## ------------------------------------ ##
10028 _ASBOX
10030 sed "s/^/$as_me: WARNING: /" >&2
10032 no:yes )
10033 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10040 cat <<\_ASBOX
10041 ## ------------------------------------ ##
10042 ## Report this to bug-autoconf@gnu.org. ##
10043 ## ------------------------------------ ##
10044 _ASBOX
10046 sed "s/^/$as_me: WARNING: /" >&2
10048 esac
10049 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10050 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10051 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10056 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10060 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10061 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10062 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10063 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lSM $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10082 char SmcOpenConnection ();
10084 main ()
10086 SmcOpenConnection ();
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_SM_SmcOpenConnection=yes
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_lib_SM_SmcOpenConnection=no
10110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10114 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10115 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10116 HAVE_X_SM=yes
10117 else
10118 -lICE
10125 if test "${HAVE_X_SM}" = "yes"; then
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_X_SM 1
10129 _ACEOF
10131 case "$LIBS" in
10132 *-lSM*) ;;
10133 *) LIBS="-lSM -lICE $LIBS" ;;
10134 esac
10138 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10139 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10140 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10141 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144 cat >conftest.$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <netdb.h>
10153 main ()
10155 return h_errno;
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 emacs_cv_netdb_declares_h_errno=yes
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 emacs_cv_netdb_declares_h_errno=no
10179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10181 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10182 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10183 if test $emacs_cv_netdb_declares_h_errno = yes; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_H_ERRNO 1
10187 _ACEOF
10191 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10192 # for constant arguments. Useless!
10193 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10194 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10195 if test "${ac_cv_working_alloca_h+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198 cat >conftest.$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <alloca.h>
10207 main ()
10209 char *p = (char *) alloca (2 * sizeof (int));
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_cv_working_alloca_h=yes
10227 else
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10231 ac_cv_working_alloca_h=no
10233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10237 if test $ac_cv_working_alloca_h = yes; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_ALLOCA_H 1
10241 _ACEOF
10245 echo "$as_me:$LINENO: checking for alloca" >&5
10246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10247 if test "${ac_cv_func_alloca_works+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 #line $LINENO "configure"
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 #ifdef __GNUC__
10258 # define alloca __builtin_alloca
10259 #else
10260 # ifdef _MSC_VER
10261 # include <malloc.h>
10262 # define alloca _alloca
10263 # else
10264 # if HAVE_ALLOCA_H
10265 # include <alloca.h>
10266 # else
10267 # ifdef _AIX
10268 #pragma alloca
10269 # else
10270 # ifndef alloca /* predefined by HP cc +Olibcalls */
10271 char *alloca ();
10272 # endif
10273 # endif
10274 # endif
10275 # endif
10276 #endif
10279 main ()
10281 char *p = (char *) alloca (1);
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_func_alloca_works=yes
10299 else
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 ac_cv_func_alloca_works=no
10305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10307 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10308 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10310 if test $ac_cv_func_alloca_works = yes; then
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_ALLOCA 1
10314 _ACEOF
10316 else
10317 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10318 # that cause trouble. Some versions do not even contain alloca or
10319 # contain a buggy version. If you still want to use their alloca,
10320 # use ar to extract alloca.o from them instead of compiling alloca.c.
10322 ALLOCA=alloca.$ac_objext
10324 cat >>confdefs.h <<\_ACEOF
10325 #define C_ALLOCA 1
10326 _ACEOF
10329 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10330 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10331 if test "${ac_cv_os_cray+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #if defined(CRAY) && ! defined(CRAY2)
10342 webecray
10343 #else
10344 wenotbecray
10345 #endif
10347 _ACEOF
10348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10349 $EGREP "webecray" >/dev/null 2>&1; then
10350 ac_cv_os_cray=yes
10351 else
10352 ac_cv_os_cray=no
10354 rm -f conftest*
10357 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10358 echo "${ECHO_T}$ac_cv_os_cray" >&6
10359 if test $ac_cv_os_cray = yes; then
10360 for ac_func in _getb67 GETB67 getb67; do
10361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10362 echo "$as_me:$LINENO: checking for $ac_func" >&5
10363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_var+set}\" = set"; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char $ac_func (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10378 #ifdef __STDC__
10379 # include <limits.h>
10380 #else
10381 # include <assert.h>
10382 #endif
10383 /* Override any gcc2 internal prototype to avoid an error. */
10384 #ifdef __cplusplus
10385 extern "C"
10387 #endif
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10390 char $ac_func ();
10391 /* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10395 choke me
10396 #else
10397 char (*f) () = $ac_func;
10398 #endif
10399 #ifdef __cplusplus
10401 #endif
10404 main ()
10406 return f != $ac_func;
10408 return 0;
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest$ac_exeext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 eval "$as_ac_var=yes"
10424 else
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 eval "$as_ac_var=no"
10430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10434 if test `eval echo '${'$as_ac_var'}'` = yes; then
10436 cat >>confdefs.h <<_ACEOF
10437 #define CRAY_STACKSEG_END $ac_func
10438 _ACEOF
10440 break
10443 done
10446 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10447 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10448 if test "${ac_cv_c_stack_direction+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451 if test "$cross_compiling" = yes; then
10452 ac_cv_c_stack_direction=0
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10462 find_stack_direction ()
10464 static char *addr = 0;
10465 auto char dummy;
10466 if (addr == 0)
10468 addr = &dummy;
10469 return find_stack_direction ();
10471 else
10472 return (&dummy > addr) ? 1 : -1;
10476 main ()
10478 exit (find_stack_direction () < 0);
10480 _ACEOF
10481 rm -f conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483 (eval $ac_link) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_c_stack_direction=1
10493 else
10494 echo "$as_me: program exited with status $ac_status" >&5
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ( exit $ac_status )
10499 ac_cv_c_stack_direction=-1
10501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10505 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10507 cat >>confdefs.h <<_ACEOF
10508 #define STACK_DIRECTION $ac_cv_c_stack_direction
10509 _ACEOF
10515 # fmod, logb, and frexp are found in -lm on most systems.
10516 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10518 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10519 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10520 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lm $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any gcc2 internal prototype to avoid an error. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10539 char sqrt ();
10541 main ()
10543 sqrt ();
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_lib_m_sqrt=yes
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_lib_m_sqrt=no
10567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10571 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10572 if test $ac_cv_lib_m_sqrt = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_LIBM 1
10575 _ACEOF
10577 LIBS="-lm $LIBS"
10582 # Check for mail-locking functions in a "mail" library
10584 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10585 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10586 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lmail $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10599 /* Override any gcc2 internal prototype to avoid an error. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10605 char maillock ();
10607 main ()
10609 maillock ();
10611 return 0;
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_lib_mail_maillock=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_lib_mail_maillock=no
10633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10636 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10637 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10638 if test $ac_cv_lib_mail_maillock = yes; then
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_LIBMAIL 1
10641 _ACEOF
10643 LIBS="-lmail $LIBS"
10648 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10649 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10650 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-llockfile $LIBS"
10655 cat >conftest.$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any gcc2 internal prototype to avoid an error. */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char maillock ();
10671 main ()
10673 maillock ();
10675 return 0;
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680 (eval $ac_link) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 ac_cv_lib_lockfile_maillock=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ac_cv_lib_lockfile_maillock=no
10697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10701 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10702 if test $ac_cv_lib_lockfile_maillock = yes; then
10703 cat >>confdefs.h <<_ACEOF
10704 #define HAVE_LIBLOCKFILE 1
10705 _ACEOF
10707 LIBS="-llockfile $LIBS"
10711 # If we have the shared liblockfile, assume we must use it for mail
10712 # locking (e.g. Debian). If we couldn't link against liblockfile
10713 # (no liblockfile.a installed), ensure that we don't need to.
10714 if test "$ac_cv_lib_lockfile_maillock" = no; then
10715 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10716 set dummy liblockfile.so; ac_word=$2
10717 echo "$as_me:$LINENO: checking for $ac_word" >&5
10718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10719 if test "${ac_cv_prog_liblockfile+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722 if test -n "$liblockfile"; then
10723 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10724 else
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10727 for as_dir in $as_dummy
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_liblockfile="yes"
10734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10737 done
10738 done
10740 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10743 liblockfile=$ac_cv_prog_liblockfile
10744 if test -n "$liblockfile"; then
10745 echo "$as_me:$LINENO: result: $liblockfile" >&5
10746 echo "${ECHO_T}$liblockfile" >&6
10747 else
10748 echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10752 if test $ac_cv_prog_liblockfile = yes; then
10753 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10754 This probably means that movemail could lose mail.
10755 There may be a \`development' package to install containing liblockfile." >&5
10756 echo "$as_me: error: Shared liblockfile found but can't link against it.
10757 This probably means that movemail could lose mail.
10758 There may be a \`development' package to install containing liblockfile." >&2;}
10759 { (exit 1); exit 1; }; }
10760 else
10761 cat >>confdefs.h <<\_ACEOF
10762 #define LIBMAIL -llockfile
10763 _ACEOF
10766 else :
10769 for ac_func in touchlock
10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_var+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 cat >conftest.$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char $ac_func (); below.
10786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10787 <limits.h> exists even on freestanding compilers. */
10788 #ifdef __STDC__
10789 # include <limits.h>
10790 #else
10791 # include <assert.h>
10792 #endif
10793 /* Override any gcc2 internal prototype to avoid an error. */
10794 #ifdef __cplusplus
10795 extern "C"
10797 #endif
10798 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */
10800 char $ac_func ();
10801 /* The GNU C library defines this for functions which it implements
10802 to always fail with ENOSYS. Some functions are actually named
10803 something starting with __ and the normal name is an alias. */
10804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10805 choke me
10806 #else
10807 char (*f) () = $ac_func;
10808 #endif
10809 #ifdef __cplusplus
10811 #endif
10814 main ()
10816 return f != $ac_func;
10818 return 0;
10820 _ACEOF
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 eval "$as_ac_var=yes"
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 eval "$as_ac_var=no"
10840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10844 if test `eval echo '${'$as_ac_var'}'` = yes; then
10845 cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10847 _ACEOF
10850 done
10853 for ac_header in maillock.h
10855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857 echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10864 else
10865 # Is the header compilable?
10866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header>
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -s conftest.$ac_objext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_header_compiler=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_compiler=no
10897 rm -f conftest.$ac_objext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6
10901 # Is the header present?
10902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10904 cat >conftest.$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10912 _ACEOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev/null; then
10921 if test -s conftest.err; then
10922 ac_cpp_err=$ac_c_preproc_warn_flag
10923 else
10924 ac_cpp_err=
10926 else
10927 ac_cpp_err=yes
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc=yes
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_header_preproc=no
10937 rm -f conftest.err conftest.$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc in
10943 yes:no )
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10949 cat <<\_ASBOX
10950 ## ------------------------------------ ##
10951 ## Report this to bug-autoconf@gnu.org. ##
10952 ## ------------------------------------ ##
10953 _ASBOX
10955 sed "s/^/$as_me: WARNING: /" >&2
10957 no:yes )
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 cat <<\_ASBOX
10966 ## ------------------------------------ ##
10967 ## Report this to bug-autoconf@gnu.org. ##
10968 ## ------------------------------------ ##
10969 _ASBOX
10971 sed "s/^/$as_me: WARNING: /" >&2
10973 esac
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 eval "$as_ac_Header=$ac_header_preproc"
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988 _ACEOF
10992 done
11055 for ac_func in gethostname getdomainname dup2 \
11056 rename closedir mkdir rmdir sysinfo \
11057 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11058 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11059 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11060 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11061 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11062 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11065 echo "$as_me:$LINENO: checking for $ac_func" >&5
11066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11067 if eval "test \"\${$as_ac_var+set}\" = set"; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char $ac_func (); below.
11079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11080 <limits.h> exists even on freestanding compilers. */
11081 #ifdef __STDC__
11082 # include <limits.h>
11083 #else
11084 # include <assert.h>
11085 #endif
11086 /* Override any gcc2 internal prototype to avoid an error. */
11087 #ifdef __cplusplus
11088 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11093 char $ac_func ();
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11098 choke me
11099 #else
11100 char (*f) () = $ac_func;
11101 #endif
11102 #ifdef __cplusplus
11104 #endif
11107 main ()
11109 return f != $ac_func;
11111 return 0;
11113 _ACEOF
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116 (eval $ac_link) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -s conftest$ac_exeext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 eval "$as_ac_var=yes"
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 eval "$as_ac_var=no"
11133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11137 if test `eval echo '${'$as_ac_var'}'` = yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 _ACEOF
11143 done
11147 for ac_header in sys/un.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11151 echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11158 else
11159 # Is the header compilable?
11160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_header_compiler=yes
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_compiler=no
11191 rm -f conftest.$ac_objext conftest.$ac_ext
11192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11193 echo "${ECHO_T}$ac_header_compiler" >&6
11195 # Is the header present?
11196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <$ac_header>
11206 _ACEOF
11207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 else
11218 ac_cpp_err=
11220 else
11221 ac_cpp_err=yes
11223 if test -z "$ac_cpp_err"; then
11224 ac_header_preproc=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_header_preproc=no
11231 rm -f conftest.err conftest.$ac_ext
11232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11233 echo "${ECHO_T}$ac_header_preproc" >&6
11235 # So? What about this header?
11236 case $ac_header_compiler:$ac_header_preproc in
11237 yes:no )
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11243 cat <<\_ASBOX
11244 ## ------------------------------------ ##
11245 ## Report this to bug-autoconf@gnu.org. ##
11246 ## ------------------------------------ ##
11247 _ASBOX
11249 sed "s/^/$as_me: WARNING: /" >&2
11251 no:yes )
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11259 cat <<\_ASBOX
11260 ## ------------------------------------ ##
11261 ## Report this to bug-autoconf@gnu.org. ##
11262 ## ------------------------------------ ##
11263 _ASBOX
11265 sed "s/^/$as_me: WARNING: /" >&2
11267 esac
11268 echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 eval "$as_ac_Header=$ac_header_preproc"
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11286 done
11291 for ac_header in sys/time.h unistd.h
11293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11295 echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11302 else
11303 # Is the header compilable?
11304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11306 cat >conftest.$ac_ext <<_ACEOF
11307 #line $LINENO "configure"
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 #include <$ac_header>
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_header_compiler=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_header_compiler=no
11335 rm -f conftest.$ac_objext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337 echo "${ECHO_T}$ac_header_compiler" >&6
11339 # Is the header present?
11340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11342 cat >conftest.$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <$ac_header>
11350 _ACEOF
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 else
11362 ac_cpp_err=
11364 else
11365 ac_cpp_err=yes
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11375 rm -f conftest.err conftest.$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377 echo "${ECHO_T}$ac_header_preproc" >&6
11379 # So? What about this header?
11380 case $ac_header_compiler:$ac_header_preproc in
11381 yes:no )
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 cat <<\_ASBOX
11388 ## ------------------------------------ ##
11389 ## Report this to bug-autoconf@gnu.org. ##
11390 ## ------------------------------------ ##
11391 _ASBOX
11393 sed "s/^/$as_me: WARNING: /" >&2
11395 no:yes )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 cat <<\_ASBOX
11404 ## ------------------------------------ ##
11405 ## Report this to bug-autoconf@gnu.org. ##
11406 ## ------------------------------------ ##
11407 _ASBOX
11409 sed "s/^/$as_me: WARNING: /" >&2
11411 esac
11412 echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 eval "$as_ac_Header=$ac_header_preproc"
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 _ACEOF
11430 done
11433 for ac_func in alarm
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11438 if eval "test \"\${$as_ac_var+set}\" = set"; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 cat >conftest.$ac_ext <<_ACEOF
11442 #line $LINENO "configure"
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 /* System header to define __stub macros and hopefully few prototypes,
11449 which can conflict with char $ac_func (); below.
11450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11451 <limits.h> exists even on freestanding compilers. */
11452 #ifdef __STDC__
11453 # include <limits.h>
11454 #else
11455 # include <assert.h>
11456 #endif
11457 /* Override any gcc2 internal prototype to avoid an error. */
11458 #ifdef __cplusplus
11459 extern "C"
11461 #endif
11462 /* We use char because int might match the return type of a gcc2
11463 builtin and then its argument prototype would still apply. */
11464 char $ac_func ();
11465 /* The GNU C library defines this for functions which it implements
11466 to always fail with ENOSYS. Some functions are actually named
11467 something starting with __ and the normal name is an alias. */
11468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11469 choke me
11470 #else
11471 char (*f) () = $ac_func;
11472 #endif
11473 #ifdef __cplusplus
11475 #endif
11478 main ()
11480 return f != $ac_func;
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 eval "$as_ac_var=yes"
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 eval "$as_ac_var=no"
11504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11508 if test `eval echo '${'$as_ac_var'}'` = yes; then
11509 cat >>confdefs.h <<_ACEOF
11510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11511 _ACEOF
11514 done
11516 echo "$as_me:$LINENO: checking for working mktime" >&5
11517 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11518 if test "${ac_cv_func_working_mktime+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521 if test "$cross_compiling" = yes; then
11522 ac_cv_func_working_mktime=no
11523 else
11524 cat >conftest.$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11526 /* confdefs.h. */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 /* Test program from Paul Eggert and Tony Leneis. */
11532 #if TIME_WITH_SYS_TIME
11533 # include <sys/time.h>
11534 # include <time.h>
11535 #else
11536 # if HAVE_SYS_TIME_H
11537 # include <sys/time.h>
11538 # else
11539 # include <time.h>
11540 # endif
11541 #endif
11543 #if HAVE_UNISTD_H
11544 # include <unistd.h>
11545 #endif
11547 #if !HAVE_ALARM
11548 # define alarm(X) /* empty */
11549 #endif
11551 /* Work around redefinition to rpl_putenv by other config tests. */
11552 #undef putenv
11554 static time_t time_t_max;
11556 /* Values we'll use to set the TZ environment variable. */
11557 static const char *const tz_strings[] = {
11558 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11559 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11561 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11563 /* Fail if mktime fails to convert a date in the spring-forward gap.
11564 Based on a problem report from Andreas Jaeger. */
11565 static void
11566 spring_forward_gap ()
11568 /* glibc (up to about 1998-10-07) failed this test. */
11569 struct tm tm;
11571 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11572 instead of "TZ=America/Vancouver" in order to detect the bug even
11573 on systems that don't support the Olson extension, or don't have the
11574 full zoneinfo tables installed. */
11575 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11577 tm.tm_year = 98;
11578 tm.tm_mon = 3;
11579 tm.tm_mday = 5;
11580 tm.tm_hour = 2;
11581 tm.tm_min = 0;
11582 tm.tm_sec = 0;
11583 tm.tm_isdst = -1;
11584 if (mktime (&tm) == (time_t)-1)
11585 exit (1);
11588 static void
11589 mktime_test (now)
11590 time_t now;
11592 struct tm *lt;
11593 if ((lt = localtime (&now)) && mktime (lt) != now)
11594 exit (1);
11595 now = time_t_max - now;
11596 if ((lt = localtime (&now)) && mktime (lt) != now)
11597 exit (1);
11600 static void
11601 irix_6_4_bug ()
11603 /* Based on code from Ariel Faigon. */
11604 struct tm tm;
11605 tm.tm_year = 96;
11606 tm.tm_mon = 3;
11607 tm.tm_mday = 0;
11608 tm.tm_hour = 0;
11609 tm.tm_min = 0;
11610 tm.tm_sec = 0;
11611 tm.tm_isdst = -1;
11612 mktime (&tm);
11613 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11614 exit (1);
11617 static void
11618 bigtime_test (j)
11619 int j;
11621 struct tm tm;
11622 time_t now;
11623 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11624 now = mktime (&tm);
11625 if (now != (time_t) -1)
11627 struct tm *lt = localtime (&now);
11628 if (! (lt
11629 && lt->tm_year == tm.tm_year
11630 && lt->tm_mon == tm.tm_mon
11631 && lt->tm_mday == tm.tm_mday
11632 && lt->tm_hour == tm.tm_hour
11633 && lt->tm_min == tm.tm_min
11634 && lt->tm_sec == tm.tm_sec
11635 && lt->tm_yday == tm.tm_yday
11636 && lt->tm_wday == tm.tm_wday
11637 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11638 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11639 exit (1);
11644 main ()
11646 time_t t, delta;
11647 int i, j;
11649 /* This test makes some buggy mktime implementations loop.
11650 Give up after 60 seconds; a mktime slower than that
11651 isn't worth using anyway. */
11652 alarm (60);
11654 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11655 continue;
11656 time_t_max--;
11657 delta = time_t_max / 997; /* a suitable prime number */
11658 for (i = 0; i < N_STRINGS; i++)
11660 if (tz_strings[i])
11661 putenv (tz_strings[i]);
11663 for (t = 0; t <= time_t_max - delta; t += delta)
11664 mktime_test (t);
11665 mktime_test ((time_t) 60 * 60);
11666 mktime_test ((time_t) 60 * 60 * 24);
11668 for (j = 1; 0 < j; j *= 2)
11669 bigtime_test (j);
11670 bigtime_test (j - 1);
11672 irix_6_4_bug ();
11673 spring_forward_gap ();
11674 exit (0);
11676 _ACEOF
11677 rm -f conftest$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_func_working_mktime=yes
11689 else
11690 echo "$as_me: program exited with status $ac_status" >&5
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ( exit $ac_status )
11695 ac_cv_func_working_mktime=no
11697 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11700 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11701 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11702 if test $ac_cv_func_working_mktime = no; then
11703 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11706 if test "$ac_cv_func_working_mktime" = no; then
11708 cat >>confdefs.h <<\_ACEOF
11709 #define BROKEN_MKTIME 1
11710 _ACEOF
11714 ac_have_func=no # yes means we've found a way to get the load average.
11716 # Make sure getloadavg.c is where it belongs, at configure-time.
11717 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11718 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11719 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11720 { (exit 1); exit 1; }; }
11722 ac_save_LIBS=$LIBS
11724 # Check for getloadavg, but be sure not to touch the cache variable.
11725 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11726 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11727 if test "${ac_cv_func_getloadavg+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 #line $LINENO "configure"
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char getloadavg (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 #ifdef __cplusplus
11748 extern "C"
11750 #endif
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753 char getloadavg ();
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11758 choke me
11759 #else
11760 char (*f) () = getloadavg;
11761 #endif
11762 #ifdef __cplusplus
11764 #endif
11767 main ()
11769 return f != getloadavg;
11771 return 0;
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_func_getloadavg=yes
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_func_getloadavg=no
11793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11795 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11796 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11797 if test $ac_cv_func_getloadavg = yes; then
11798 exit 0
11799 else
11800 exit 1
11802 ) && ac_have_func=yes
11804 # On HPUX9, an unprivileged user can get load averages through this function.
11806 for ac_func in pstat_getdynamic
11808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11811 if eval "test \"\${$as_ac_var+set}\" = set"; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 #line $LINENO "configure"
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 /* System header to define __stub macros and hopefully few prototypes,
11822 which can conflict with char $ac_func (); below.
11823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11824 <limits.h> exists even on freestanding compilers. */
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 #ifdef __cplusplus
11832 extern "C"
11834 #endif
11835 /* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11837 char $ac_func ();
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11842 choke me
11843 #else
11844 char (*f) () = $ac_func;
11845 #endif
11846 #ifdef __cplusplus
11848 #endif
11851 main ()
11853 return f != $ac_func;
11855 return 0;
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11871 else
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 eval "$as_ac_var=no"
11877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11887 done
11890 # Solaris has libkstat which does not require root.
11892 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11893 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11894 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897 ac_check_lib_save_LIBS=$LIBS
11898 LIBS="-lkstat $LIBS"
11899 cat >conftest.$ac_ext <<_ACEOF
11900 #line $LINENO "configure"
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11913 char kstat_open ();
11915 main ()
11917 kstat_open ();
11919 return 0;
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_lib_kstat_kstat_open=yes
11935 else
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_lib_kstat_kstat_open=no
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11945 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11946 if test $ac_cv_lib_kstat_kstat_open = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define HAVE_LIBKSTAT 1
11949 _ACEOF
11951 LIBS="-lkstat $LIBS"
11955 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11957 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11958 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11959 # to get the right answer into the cache.
11960 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11961 if test $ac_have_func = no; then
11962 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11963 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11964 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 ac_check_lib_save_LIBS=$LIBS
11968 LIBS="-lelf $LIBS"
11969 cat >conftest.$ac_ext <<_ACEOF
11970 #line $LINENO "configure"
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983 char elf_begin ();
11985 main ()
11987 elf_begin ();
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_lib_elf_elf_begin=yes
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_cv_lib_elf_elf_begin=no
12011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12014 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12015 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12016 if test $ac_cv_lib_elf_elf_begin = yes; then
12017 LIBS="-lelf $LIBS"
12021 if test $ac_have_func = no; then
12022 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12023 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12024 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 ac_check_lib_save_LIBS=$LIBS
12028 LIBS="-lkvm $LIBS"
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12043 char kvm_open ();
12045 main ()
12047 kvm_open ();
12049 return 0;
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_kvm_kvm_open=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_lib_kvm_kvm_open=no
12071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12075 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12076 if test $ac_cv_lib_kvm_kvm_open = yes; then
12077 LIBS="-lkvm $LIBS"
12080 # Check for the 4.4BSD definition of getloadavg.
12081 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12082 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12083 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-lutil $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char getloadavg ();
12104 main ()
12106 getloadavg ();
12108 return 0;
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_lib_util_getloadavg=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_cv_lib_util_getloadavg=no
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12134 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12135 if test $ac_cv_lib_util_getloadavg = yes; then
12136 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12141 if test $ac_have_func = no; then
12142 # There is a commonly available library for RS/6000 AIX.
12143 # Since it is not a standard part of AIX, it might be installed locally.
12144 ac_getloadavg_LIBS=$LIBS
12145 LIBS="-L/usr/local/lib $LIBS"
12146 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12147 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12148 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-lgetloadavg $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any gcc2 internal prototype to avoid an error. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char getloadavg ();
12169 main ()
12171 getloadavg ();
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_getloadavg_getloadavg=yes
12189 else
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_lib_getloadavg_getloadavg=no
12195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12199 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12200 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12201 LIBS="-lgetloadavg $LIBS"
12202 else
12203 LIBS=$ac_getloadavg_LIBS
12208 # Make sure it is really in the library, if we think we found it,
12209 # otherwise set up the replacement function.
12211 for ac_func in getloadavg
12213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12214 echo "$as_me:$LINENO: checking for $ac_func" >&5
12215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12216 if eval "test \"\${$as_ac_var+set}\" = set"; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219 cat >conftest.$ac_ext <<_ACEOF
12220 #line $LINENO "configure"
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char $ac_func (); below.
12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 <limits.h> exists even on freestanding compilers. */
12230 #ifdef __STDC__
12231 # include <limits.h>
12232 #else
12233 # include <assert.h>
12234 #endif
12235 /* Override any gcc2 internal prototype to avoid an error. */
12236 #ifdef __cplusplus
12237 extern "C"
12239 #endif
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char $ac_func ();
12243 /* The GNU C library defines this for functions which it implements
12244 to always fail with ENOSYS. Some functions are actually named
12245 something starting with __ and the normal name is an alias. */
12246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12247 choke me
12248 #else
12249 char (*f) () = $ac_func;
12250 #endif
12251 #ifdef __cplusplus
12253 #endif
12256 main ()
12258 return f != $ac_func;
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 eval "$as_ac_var=yes"
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 eval "$as_ac_var=no"
12282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12286 if test `eval echo '${'$as_ac_var'}'` = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289 _ACEOF
12291 else
12292 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12294 cat >>confdefs.h <<\_ACEOF
12295 #define C_GETLOADAVG 1
12296 _ACEOF
12298 # Figure out what our getloadavg.c needs.
12299 ac_have_func=no
12300 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12301 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12302 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12303 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12307 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12308 else
12309 # Is the header compilable?
12310 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12311 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 #include <sys/dg_sys_info.h>
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12324 (eval $ac_compile) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -s conftest.$ac_objext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_header_compiler=yes
12335 else
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 ac_header_compiler=no
12341 rm -f conftest.$ac_objext conftest.$ac_ext
12342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 echo "${ECHO_T}$ac_header_compiler" >&6
12345 # Is the header present?
12346 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12347 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include <sys/dg_sys_info.h>
12356 _ACEOF
12357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } >/dev/null; then
12365 if test -s conftest.err; then
12366 ac_cpp_err=$ac_c_preproc_warn_flag
12367 else
12368 ac_cpp_err=
12370 else
12371 ac_cpp_err=yes
12373 if test -z "$ac_cpp_err"; then
12374 ac_header_preproc=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_preproc=no
12381 rm -f conftest.err conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12383 echo "${ECHO_T}$ac_header_preproc" >&6
12385 # So? What about this header?
12386 case $ac_header_compiler:$ac_header_preproc in
12387 yes:no )
12388 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12389 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12391 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12393 cat <<\_ASBOX
12394 ## ------------------------------------ ##
12395 ## Report this to bug-autoconf@gnu.org. ##
12396 ## ------------------------------------ ##
12397 _ASBOX
12399 sed "s/^/$as_me: WARNING: /" >&2
12401 no:yes )
12402 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12403 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12405 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12407 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12409 cat <<\_ASBOX
12410 ## ------------------------------------ ##
12411 ## Report this to bug-autoconf@gnu.org. ##
12412 ## ------------------------------------ ##
12413 _ASBOX
12415 sed "s/^/$as_me: WARNING: /" >&2
12417 esac
12418 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12419 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12420 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12425 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12426 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12429 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12430 ac_have_func=yes
12432 cat >>confdefs.h <<\_ACEOF
12433 #define DGUX 1
12434 _ACEOF
12437 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12438 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12439 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442 ac_check_lib_save_LIBS=$LIBS
12443 LIBS="-ldgc $LIBS"
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 /* confdefs.h. */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12452 /* Override any gcc2 internal prototype to avoid an error. */
12453 #ifdef __cplusplus
12454 extern "C"
12455 #endif
12456 /* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458 char dg_sys_info ();
12460 main ()
12462 dg_sys_info ();
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -s conftest$ac_exeext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_lib_dgc_dg_sys_info=yes
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_cv_lib_dgc_dg_sys_info=no
12486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12489 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12490 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12491 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12492 cat >>confdefs.h <<_ACEOF
12493 #define HAVE_LIBDGC 1
12494 _ACEOF
12496 LIBS="-ldgc $LIBS"
12504 if test "${ac_cv_header_locale_h+set}" = set; then
12505 echo "$as_me:$LINENO: checking for locale.h" >&5
12506 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12507 if test "${ac_cv_header_locale_h+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12511 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12512 else
12513 # Is the header compilable?
12514 echo "$as_me:$LINENO: checking locale.h usability" >&5
12515 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 /* confdefs.h. */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 $ac_includes_default
12524 #include <locale.h>
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_header_compiler=no
12545 rm -f conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking locale.h presence" >&5
12551 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 #include <locale.h>
12560 _ACEOF
12561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } >/dev/null; then
12569 if test -s conftest.err; then
12570 ac_cpp_err=$ac_c_preproc_warn_flag
12571 else
12572 ac_cpp_err=
12574 else
12575 ac_cpp_err=yes
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_header_preproc=no
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc in
12591 yes:no )
12592 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12595 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12597 cat <<\_ASBOX
12598 ## ------------------------------------ ##
12599 ## Report this to bug-autoconf@gnu.org. ##
12600 ## ------------------------------------ ##
12601 _ASBOX
12603 sed "s/^/$as_me: WARNING: /" >&2
12605 no:yes )
12606 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12607 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12609 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12613 cat <<\_ASBOX
12614 ## ------------------------------------ ##
12615 ## Report this to bug-autoconf@gnu.org. ##
12616 ## ------------------------------------ ##
12617 _ASBOX
12619 sed "s/^/$as_me: WARNING: /" >&2
12621 esac
12622 echo "$as_me:$LINENO: checking for locale.h" >&5
12623 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12624 if test "${ac_cv_header_locale_h+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627 ac_cv_header_locale_h=$ac_header_preproc
12629 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12636 for ac_func in setlocale
12638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12639 echo "$as_me:$LINENO: checking for $ac_func" >&5
12640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12641 if eval "test \"\${$as_ac_var+set}\" = set"; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func (); below.
12653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12654 <limits.h> exists even on freestanding compilers. */
12655 #ifdef __STDC__
12656 # include <limits.h>
12657 #else
12658 # include <assert.h>
12659 #endif
12660 /* Override any gcc2 internal prototype to avoid an error. */
12661 #ifdef __cplusplus
12662 extern "C"
12664 #endif
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12667 char $ac_func ();
12668 /* The GNU C library defines this for functions which it implements
12669 to always fail with ENOSYS. Some functions are actually named
12670 something starting with __ and the normal name is an alias. */
12671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12672 choke me
12673 #else
12674 char (*f) () = $ac_func;
12675 #endif
12676 #ifdef __cplusplus
12678 #endif
12681 main ()
12683 return f != $ac_func;
12685 return 0;
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try='test -s conftest$ac_exeext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 eval "$as_ac_var=yes"
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 eval "$as_ac_var=no"
12707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12711 if test `eval echo '${'$as_ac_var'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 _ACEOF
12717 done
12720 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12721 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12722 # Irix 4.0.5F has the header but not the library.
12723 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12724 ac_have_func=yes
12726 cat >>confdefs.h <<\_ACEOF
12727 #define SVR4 1
12728 _ACEOF
12732 if test $ac_have_func = no; then
12733 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12734 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12735 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12736 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12740 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12741 else
12742 # Is the header compilable?
12743 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12744 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <inq_stats/cpustats.h>
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler=yes
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_header_compiler=no
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12776 echo "${ECHO_T}$ac_header_compiler" >&6
12778 # Is the header present?
12779 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12780 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12781 cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <inq_stats/cpustats.h>
12789 _ACEOF
12790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } >/dev/null; then
12798 if test -s conftest.err; then
12799 ac_cpp_err=$ac_c_preproc_warn_flag
12800 else
12801 ac_cpp_err=
12803 else
12804 ac_cpp_err=yes
12806 if test -z "$ac_cpp_err"; then
12807 ac_header_preproc=yes
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_header_preproc=no
12814 rm -f conftest.err conftest.$ac_ext
12815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12816 echo "${ECHO_T}$ac_header_preproc" >&6
12818 # So? What about this header?
12819 case $ac_header_compiler:$ac_header_preproc in
12820 yes:no )
12821 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12822 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12826 cat <<\_ASBOX
12827 ## ------------------------------------ ##
12828 ## Report this to bug-autoconf@gnu.org. ##
12829 ## ------------------------------------ ##
12830 _ASBOX
12832 sed "s/^/$as_me: WARNING: /" >&2
12834 no:yes )
12835 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12836 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12838 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12840 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12842 cat <<\_ASBOX
12843 ## ------------------------------------ ##
12844 ## Report this to bug-autoconf@gnu.org. ##
12845 ## ------------------------------------ ##
12846 _ASBOX
12848 sed "s/^/$as_me: WARNING: /" >&2
12850 esac
12851 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12852 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12853 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
12858 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12862 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12863 ac_have_func=yes
12865 cat >>confdefs.h <<\_ACEOF
12866 #define UMAX 1
12867 _ACEOF
12870 cat >>confdefs.h <<\_ACEOF
12871 #define UMAX4_3 1
12872 _ACEOF
12879 if test $ac_have_func = no; then
12880 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12881 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12882 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12883 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12887 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12888 else
12889 # Is the header compilable?
12890 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12891 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12892 cat >conftest.$ac_ext <<_ACEOF
12893 #line $LINENO "configure"
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12900 #include <sys/cpustats.h>
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_header_compiler=yes
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_header_compiler=no
12921 rm -f conftest.$ac_objext conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12923 echo "${ECHO_T}$ac_header_compiler" >&6
12925 # Is the header present?
12926 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12927 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12928 cat >conftest.$ac_ext <<_ACEOF
12929 #line $LINENO "configure"
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 #include <sys/cpustats.h>
12936 _ACEOF
12937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } >/dev/null; then
12945 if test -s conftest.err; then
12946 ac_cpp_err=$ac_c_preproc_warn_flag
12947 else
12948 ac_cpp_err=
12950 else
12951 ac_cpp_err=yes
12953 if test -z "$ac_cpp_err"; then
12954 ac_header_preproc=yes
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 ac_header_preproc=no
12961 rm -f conftest.err conftest.$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12963 echo "${ECHO_T}$ac_header_preproc" >&6
12965 # So? What about this header?
12966 case $ac_header_compiler:$ac_header_preproc in
12967 yes:no )
12968 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12969 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12971 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12973 cat <<\_ASBOX
12974 ## ------------------------------------ ##
12975 ## Report this to bug-autoconf@gnu.org. ##
12976 ## ------------------------------------ ##
12977 _ASBOX
12979 sed "s/^/$as_me: WARNING: /" >&2
12981 no:yes )
12982 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12983 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12985 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12987 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12989 cat <<\_ASBOX
12990 ## ------------------------------------ ##
12991 ## Report this to bug-autoconf@gnu.org. ##
12992 ## ------------------------------------ ##
12993 _ASBOX
12995 sed "s/^/$as_me: WARNING: /" >&2
12997 esac
12998 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12999 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13000 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13006 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13009 if test $ac_cv_header_sys_cpustats_h = yes; then
13010 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13011 #define UMAX 1
13012 _ACEOF
13019 if test $ac_have_func = no; then
13021 for ac_header in mach/mach.h
13023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13025 echo "$as_me:$LINENO: checking for $ac_header" >&5
13026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13032 else
13033 # Is the header compilable?
13034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 $ac_includes_default
13044 #include <$ac_header>
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_header_compiler=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_header_compiler=no
13065 rm -f conftest.$ac_objext conftest.$ac_ext
13066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067 echo "${ECHO_T}$ac_header_compiler" >&6
13069 # Is the header present?
13070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13072 cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <$ac_header>
13080 _ACEOF
13081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null; then
13089 if test -s conftest.err; then
13090 ac_cpp_err=$ac_c_preproc_warn_flag
13091 else
13092 ac_cpp_err=
13094 else
13095 ac_cpp_err=yes
13097 if test -z "$ac_cpp_err"; then
13098 ac_header_preproc=yes
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 ac_header_preproc=no
13105 rm -f conftest.err conftest.$ac_ext
13106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13107 echo "${ECHO_T}$ac_header_preproc" >&6
13109 # So? What about this header?
13110 case $ac_header_compiler:$ac_header_preproc in
13111 yes:no )
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13117 cat <<\_ASBOX
13118 ## ------------------------------------ ##
13119 ## Report this to bug-autoconf@gnu.org. ##
13120 ## ------------------------------------ ##
13121 _ASBOX
13123 sed "s/^/$as_me: WARNING: /" >&2
13125 no:yes )
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13133 cat <<\_ASBOX
13134 ## ------------------------------------ ##
13135 ## Report this to bug-autoconf@gnu.org. ##
13136 ## ------------------------------------ ##
13137 _ASBOX
13139 sed "s/^/$as_me: WARNING: /" >&2
13141 esac
13142 echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 eval "$as_ac_Header=$ac_header_preproc"
13149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156 _ACEOF
13160 done
13165 for ac_header in nlist.h
13167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13169 echo "$as_me:$LINENO: checking for $ac_header" >&5
13170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13176 else
13177 # Is the header compilable?
13178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 $ac_includes_default
13188 #include <$ac_header>
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_header_compiler=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_header_compiler=no
13209 rm -f conftest.$ac_objext conftest.$ac_ext
13210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13211 echo "${ECHO_T}$ac_header_compiler" >&6
13213 # Is the header present?
13214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13216 cat >conftest.$ac_ext <<_ACEOF
13217 #line $LINENO "configure"
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <$ac_header>
13224 _ACEOF
13225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } >/dev/null; then
13233 if test -s conftest.err; then
13234 ac_cpp_err=$ac_c_preproc_warn_flag
13235 else
13236 ac_cpp_err=
13238 else
13239 ac_cpp_err=yes
13241 if test -z "$ac_cpp_err"; then
13242 ac_header_preproc=yes
13243 else
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_header_preproc=no
13249 rm -f conftest.err conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13251 echo "${ECHO_T}$ac_header_preproc" >&6
13253 # So? What about this header?
13254 case $ac_header_compiler:$ac_header_preproc in
13255 yes:no )
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13261 cat <<\_ASBOX
13262 ## ------------------------------------ ##
13263 ## Report this to bug-autoconf@gnu.org. ##
13264 ## ------------------------------------ ##
13265 _ASBOX
13267 sed "s/^/$as_me: WARNING: /" >&2
13269 no:yes )
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13277 cat <<\_ASBOX
13278 ## ------------------------------------ ##
13279 ## Report this to bug-autoconf@gnu.org. ##
13280 ## ------------------------------------ ##
13281 _ASBOX
13283 sed "s/^/$as_me: WARNING: /" >&2
13285 esac
13286 echo "$as_me:$LINENO: checking for $ac_header" >&5
13287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 eval "$as_ac_Header=$ac_header_preproc"
13293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13300 _ACEOF
13301 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13302 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13303 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13307 #line $LINENO "configure"
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <nlist.h>
13316 main ()
13318 static struct nlist ac_aggr;
13319 if (ac_aggr.n_un.n_name)
13320 return 0;
13322 return 0;
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_member_struct_nlist_n_un_n_name=yes
13338 else
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <nlist.h>
13352 main ()
13354 static struct nlist ac_aggr;
13355 if (sizeof ac_aggr.n_un.n_name)
13356 return 0;
13358 return 0;
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_member_struct_nlist_n_un_n_name=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_cv_member_struct_nlist_n_un_n_name=no
13380 rm -f conftest.$ac_objext conftest.$ac_ext
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13385 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13386 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13388 cat >>confdefs.h <<_ACEOF
13389 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13390 _ACEOF
13393 cat >>confdefs.h <<\_ACEOF
13394 #define NLIST_NAME_UNION 1
13395 _ACEOF
13402 done
13405 done
13408 # Some definitions of getloadavg require that the program be installed setgid.
13409 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13410 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13411 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13422 #ifdef LDAV_PRIVILEGED
13423 Yowza Am I SETGID yet
13424 #endif
13425 _ACEOF
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13428 ac_cv_func_getloadavg_setgid=yes
13429 else
13430 ac_cv_func_getloadavg_setgid=no
13432 rm -f conftest*
13435 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13436 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13437 if test $ac_cv_func_getloadavg_setgid = yes; then
13438 NEED_SETGID=true
13440 cat >>confdefs.h <<\_ACEOF
13441 #define GETLOADAVG_PRIVILEGED 1
13442 _ACEOF
13444 else
13445 NEED_SETGID=false
13448 if test $ac_cv_func_getloadavg_setgid = yes; then
13449 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13450 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13451 if test "${ac_cv_group_kmem+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13455 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13456 # If we got an error (system does not support symlinks), try without -L.
13457 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13458 ac_cv_group_kmem=`echo $ac_ls_output \
13459 | sed -ne 's/[ ][ ]*/ /g;
13460 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13461 / /s/.* //;p;'`
13464 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13465 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13466 KMEM_GROUP=$ac_cv_group_kmem
13468 if test "x$ac_save_LIBS" = x; then
13469 GETLOADAVG_LIBS=$LIBS
13470 else
13471 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13473 LIBS=$ac_save_LIBS
13477 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13478 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13479 if test "${ac_cv_sys_largefile_source+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 while :; do
13483 ac_cv_sys_largefile_source=no
13484 cat >conftest.$ac_ext <<_ACEOF
13485 #line $LINENO "configure"
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <stdio.h>
13493 main ()
13495 return !fseeko;
13497 return 0;
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502 (eval $ac_compile) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 break
13513 else
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13518 rm -f conftest.$ac_objext conftest.$ac_ext
13519 cat >conftest.$ac_ext <<_ACEOF
13520 #line $LINENO "configure"
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #define _LARGEFILE_SOURCE 1
13527 #include <stdio.h>
13529 main ()
13531 return !fseeko;
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_sys_largefile_source=1; break
13549 else
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13554 rm -f conftest.$ac_objext conftest.$ac_ext
13555 break
13556 done
13558 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13559 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13560 if test "$ac_cv_sys_largefile_source" != no; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13564 _ACEOF
13567 rm -f conftest*
13569 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13570 # in glibc 2.1.3, but that breaks too many other things.
13571 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13572 echo "$as_me:$LINENO: checking for fseeko" >&5
13573 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13574 if test "${ac_cv_func_fseeko+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577 cat >conftest.$ac_ext <<_ACEOF
13578 #line $LINENO "configure"
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 #include <stdio.h>
13586 main ()
13588 return fseeko && fseeko (stdin, 0, 0);
13590 return 0;
13592 _ACEOF
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13595 (eval $ac_link) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -s conftest$ac_exeext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_cv_func_fseeko=yes
13606 else
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13610 ac_cv_func_fseeko=no
13612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13614 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13615 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13616 if test $ac_cv_func_fseeko = yes; then
13618 cat >>confdefs.h <<\_ACEOF
13619 #define HAVE_FSEEKO 1
13620 _ACEOF
13625 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13626 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13627 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 # Use it with a single arg.
13631 cat >conftest.$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13640 main ()
13642 getpgrp (0);
13644 return 0;
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 ac_cv_func_getpgrp_void=no
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_cv_func_getpgrp_void=yes
13666 rm -f conftest.$ac_objext conftest.$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13670 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13671 if test $ac_cv_func_getpgrp_void = yes; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define GETPGRP_VOID 1
13675 _ACEOF
13680 # UNIX98 PTYs.
13682 for ac_func in grantpt
13684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 echo "$as_me:$LINENO: checking for $ac_func" >&5
13686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_var+set}\" = set"; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690 cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 /* System header to define __stub macros and hopefully few prototypes,
13698 which can conflict with char $ac_func (); below.
13699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13700 <limits.h> exists even on freestanding compilers. */
13701 #ifdef __STDC__
13702 # include <limits.h>
13703 #else
13704 # include <assert.h>
13705 #endif
13706 /* Override any gcc2 internal prototype to avoid an error. */
13707 #ifdef __cplusplus
13708 extern "C"
13710 #endif
13711 /* We use char because int might match the return type of a gcc2
13712 builtin and then its argument prototype would still apply. */
13713 char $ac_func ();
13714 /* The GNU C library defines this for functions which it implements
13715 to always fail with ENOSYS. Some functions are actually named
13716 something starting with __ and the normal name is an alias. */
13717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13718 choke me
13719 #else
13720 char (*f) () = $ac_func;
13721 #endif
13722 #ifdef __cplusplus
13724 #endif
13727 main ()
13729 return f != $ac_func;
13731 return 0;
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -s conftest$ac_exeext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 eval "$as_ac_var=yes"
13747 else
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 eval "$as_ac_var=no"
13753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13757 if test `eval echo '${'$as_ac_var'}'` = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13760 _ACEOF
13763 done
13766 # PTY-related GNU extensions.
13768 for ac_func in getpt
13770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_var+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char $ac_func (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
13787 #ifdef __STDC__
13788 # include <limits.h>
13789 #else
13790 # include <assert.h>
13791 #endif
13792 /* Override any gcc2 internal prototype to avoid an error. */
13793 #ifdef __cplusplus
13794 extern "C"
13796 #endif
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799 char $ac_func ();
13800 /* The GNU C library defines this for functions which it implements
13801 to always fail with ENOSYS. Some functions are actually named
13802 something starting with __ and the normal name is an alias. */
13803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13804 choke me
13805 #else
13806 char (*f) () = $ac_func;
13807 #endif
13808 #ifdef __cplusplus
13810 #endif
13813 main ()
13815 return f != $ac_func;
13817 return 0;
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -s conftest$ac_exeext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 eval "$as_ac_var=yes"
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 eval "$as_ac_var=no"
13839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13843 if test `eval echo '${'$as_ac_var'}'` = yes; then
13844 cat >>confdefs.h <<_ACEOF
13845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13846 _ACEOF
13849 done
13852 # Check this now, so that we will NOT find the above functions in ncurses.
13853 # That is because we have not set up to link ncurses in lib-src.
13854 # It's better to believe a function is not available
13855 # than to expect to find it in ncurses.
13857 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13858 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13859 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862 ac_check_lib_save_LIBS=$LIBS
13863 LIBS="-lncurses $LIBS"
13864 cat >conftest.$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13866 /* confdefs.h. */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 /* Override any gcc2 internal prototype to avoid an error. */
13873 #ifdef __cplusplus
13874 extern "C"
13875 #endif
13876 /* We use char because int might match the return type of a gcc2
13877 builtin and then its argument prototype would still apply. */
13878 char tparm ();
13880 main ()
13882 tparm ();
13884 return 0;
13886 _ACEOF
13887 rm -f conftest.$ac_objext conftest$ac_exeext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13889 (eval $ac_link) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_lib_ncurses_tparm=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_cv_lib_ncurses_tparm=no
13906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13907 LIBS=$ac_check_lib_save_LIBS
13909 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13910 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13911 if test $ac_cv_lib_ncurses_tparm = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_LIBNCURSES 1
13914 _ACEOF
13916 LIBS="-lncurses $LIBS"
13921 # Do we need the Hesiod library to provide the support routines?
13922 if test "$with_hesiod" = yes ; then
13923 # Don't set $LIBS here -- see comments above.
13924 resolv=no
13925 echo "$as_me:$LINENO: checking for res_send" >&5
13926 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13927 if test "${ac_cv_func_res_send+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 /* confdefs.h. */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 /* System header to define __stub macros and hopefully few prototypes,
13938 which can conflict with char res_send (); below.
13939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13940 <limits.h> exists even on freestanding compilers. */
13941 #ifdef __STDC__
13942 # include <limits.h>
13943 #else
13944 # include <assert.h>
13945 #endif
13946 /* Override any gcc2 internal prototype to avoid an error. */
13947 #ifdef __cplusplus
13948 extern "C"
13950 #endif
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953 char res_send ();
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined (__stub_res_send) || defined (__stub___res_send)
13958 choke me
13959 #else
13960 char (*f) () = res_send;
13961 #endif
13962 #ifdef __cplusplus
13964 #endif
13967 main ()
13969 return f != res_send;
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_cv_func_res_send=yes
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_cv_func_res_send=no
13993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13996 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13997 if test $ac_cv_func_res_send = yes; then
13999 else
14000 echo "$as_me:$LINENO: checking for __res_send" >&5
14001 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14002 if test "${ac_cv_func___res_send+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 cat >conftest.$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char __res_send (); below.
14014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14015 <limits.h> exists even on freestanding compilers. */
14016 #ifdef __STDC__
14017 # include <limits.h>
14018 #else
14019 # include <assert.h>
14020 #endif
14021 /* Override any gcc2 internal prototype to avoid an error. */
14022 #ifdef __cplusplus
14023 extern "C"
14025 #endif
14026 /* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14028 char __res_send ();
14029 /* The GNU C library defines this for functions which it implements
14030 to always fail with ENOSYS. Some functions are actually named
14031 something starting with __ and the normal name is an alias. */
14032 #if defined (__stub___res_send) || defined (__stub_____res_send)
14033 choke me
14034 #else
14035 char (*f) () = __res_send;
14036 #endif
14037 #ifdef __cplusplus
14039 #endif
14042 main ()
14044 return f != __res_send;
14046 return 0;
14048 _ACEOF
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_func___res_send=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_func___res_send=no
14068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14071 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14072 if test $ac_cv_func___res_send = yes; then
14074 else
14075 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14076 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14077 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080 ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-lresolv $LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any gcc2 internal prototype to avoid an error. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 /* We use char because int might match the return type of a gcc2
14095 builtin and then its argument prototype would still apply. */
14096 char res_send ();
14098 main ()
14100 res_send ();
14102 return 0;
14104 _ACEOF
14105 rm -f conftest.$ac_objext conftest$ac_exeext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14107 (eval $ac_link) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_lib_resolv_res_send=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_lib_resolv_res_send=no
14124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14128 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14129 if test $ac_cv_lib_resolv_res_send = yes; then
14130 resolv=yes
14131 else
14132 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14133 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14134 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-lresolv $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* Override any gcc2 internal prototype to avoid an error. */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 /* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14153 char __res_send ();
14155 main ()
14157 __res_send ();
14159 return 0;
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14164 (eval $ac_link) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_cv_lib_resolv___res_send=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_cv_lib_resolv___res_send=no
14181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14184 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14185 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14186 if test $ac_cv_lib_resolv___res_send = yes; then
14187 resolv=yes
14196 if test "$resolv" = yes ; then
14197 RESOLVLIB=-lresolv
14199 cat >>confdefs.h <<\_ACEOF
14200 #define HAVE_LIBRESOLV 1
14201 _ACEOF
14203 else
14204 RESOLVLIB=
14206 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14207 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14208 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211 cat >conftest.$ac_ext <<_ACEOF
14212 #line $LINENO "configure"
14213 /* confdefs.h. */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 /* System header to define __stub macros and hopefully few prototypes,
14219 which can conflict with char hes_getmailhost (); below.
14220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14221 <limits.h> exists even on freestanding compilers. */
14222 #ifdef __STDC__
14223 # include <limits.h>
14224 #else
14225 # include <assert.h>
14226 #endif
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 #ifdef __cplusplus
14229 extern "C"
14231 #endif
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14234 char hes_getmailhost ();
14235 /* The GNU C library defines this for functions which it implements
14236 to always fail with ENOSYS. Some functions are actually named
14237 something starting with __ and the normal name is an alias. */
14238 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14239 choke me
14240 #else
14241 char (*f) () = hes_getmailhost;
14242 #endif
14243 #ifdef __cplusplus
14245 #endif
14248 main ()
14250 return f != hes_getmailhost;
14252 return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14257 (eval $ac_link) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -s conftest$ac_exeext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_cv_func_hes_getmailhost=yes
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 ac_cv_func_hes_getmailhost=no
14274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14276 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14277 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14278 if test $ac_cv_func_hes_getmailhost = yes; then
14280 else
14281 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14282 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14283 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-lhesiod $RESOLVLIB $LIBS"
14288 cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302 char hes_getmailhost ();
14304 main ()
14306 hes_getmailhost ();
14308 return 0;
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_cv_lib_hesiod_hes_getmailhost=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_cv_lib_hesiod_hes_getmailhost=no
14330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14333 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14334 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14335 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_LIBHESIOD 1
14339 _ACEOF
14341 else
14349 # These tell us which Kerberos-related libraries to use.
14350 if test "${with_kerberos+set}" = set; then
14352 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14353 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14354 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lcom_err $LIBS"
14359 cat >conftest.$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any gcc2 internal prototype to avoid an error. */
14368 #ifdef __cplusplus
14369 extern "C"
14370 #endif
14371 /* We use char because int might match the return type of a gcc2
14372 builtin and then its argument prototype would still apply. */
14373 char com_err ();
14375 main ()
14377 com_err ();
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_lib_com_err_com_err=yes
14395 else
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_com_err_com_err=no
14401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14404 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14405 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14406 if test $ac_cv_lib_com_err_com_err = yes; then
14407 cat >>confdefs.h <<_ACEOF
14408 #define HAVE_LIBCOM_ERR 1
14409 _ACEOF
14411 LIBS="-lcom_err $LIBS"
14416 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14417 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14418 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421 ac_check_lib_save_LIBS=$LIBS
14422 LIBS="-lk5crypto $LIBS"
14423 cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14431 /* Override any gcc2 internal prototype to avoid an error. */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 /* We use char because int might match the return type of a gcc2
14436 builtin and then its argument prototype would still apply. */
14437 char mit_des_cbc_encrypt ();
14439 main ()
14441 mit_des_cbc_encrypt ();
14443 return 0;
14445 _ACEOF
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14448 (eval $ac_link) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14466 LIBS=$ac_check_lib_save_LIBS
14468 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14469 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14470 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define HAVE_LIBK5CRYPTO 1
14473 _ACEOF
14475 LIBS="-lk5crypto $LIBS"
14480 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14481 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14482 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485 ac_check_lib_save_LIBS=$LIBS
14486 LIBS="-lcrypto $LIBS"
14487 cat >conftest.$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any gcc2 internal prototype to avoid an error. */
14496 #ifdef __cplusplus
14497 extern "C"
14498 #endif
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14501 char mit_des_cbc_encrypt ();
14503 main ()
14505 mit_des_cbc_encrypt ();
14507 return 0;
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14523 else
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14532 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14533 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14534 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_LIBCRYPTO 1
14537 _ACEOF
14539 LIBS="-lcrypto $LIBS"
14544 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14545 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14546 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lkrb5 $LIBS"
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14553 /* confdefs.h. */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14559 /* Override any gcc2 internal prototype to avoid an error. */
14560 #ifdef __cplusplus
14561 extern "C"
14562 #endif
14563 /* We use char because int might match the return type of a gcc2
14564 builtin and then its argument prototype would still apply. */
14565 char krb5_init_context ();
14567 main ()
14569 krb5_init_context ();
14571 return 0;
14573 _ACEOF
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_cv_lib_krb5_krb5_init_context=yes
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_cv_lib_krb5_krb5_init_context=no
14593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14596 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14597 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14598 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_LIBKRB5 1
14601 _ACEOF
14603 LIBS="-lkrb5 $LIBS"
14607 if test "${with_kerberos5+set}" != set; then
14609 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14610 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14611 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-ldes425 $LIBS"
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14624 /* Override any gcc2 internal prototype to avoid an error. */
14625 #ifdef __cplusplus
14626 extern "C"
14627 #endif
14628 /* We use char because int might match the return type of a gcc2
14629 builtin and then its argument prototype would still apply. */
14630 char des_cbc_encrypt ();
14632 main ()
14634 des_cbc_encrypt ();
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest$ac_exeext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_lib_des425_des_cbc_encrypt=yes
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_cv_lib_des425_des_cbc_encrypt=no
14658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14661 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14662 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14663 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_LIBDES425 1
14666 _ACEOF
14668 LIBS="-ldes425 $LIBS"
14670 else
14672 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14673 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14674 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677 ac_check_lib_save_LIBS=$LIBS
14678 LIBS="-ldes $LIBS"
14679 cat >conftest.$ac_ext <<_ACEOF
14680 #line $LINENO "configure"
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 /* Override any gcc2 internal prototype to avoid an error. */
14688 #ifdef __cplusplus
14689 extern "C"
14690 #endif
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14693 char des_cbc_encrypt ();
14695 main ()
14697 des_cbc_encrypt ();
14699 return 0;
14701 _ACEOF
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -s conftest$ac_exeext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_lib_des_des_cbc_encrypt=yes
14715 else
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_cv_lib_des_des_cbc_encrypt=no
14721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14722 LIBS=$ac_check_lib_save_LIBS
14724 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14725 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14726 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_LIBDES 1
14729 _ACEOF
14731 LIBS="-ldes $LIBS"
14738 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14739 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14740 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 ac_check_lib_save_LIBS=$LIBS
14744 LIBS="-lkrb4 $LIBS"
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14753 /* Override any gcc2 internal prototype to avoid an error. */
14754 #ifdef __cplusplus
14755 extern "C"
14756 #endif
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759 char krb_get_cred ();
14761 main ()
14763 krb_get_cred ();
14765 return 0;
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -s conftest$ac_exeext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_lib_krb4_krb_get_cred=yes
14781 else
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_cv_lib_krb4_krb_get_cred=no
14787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_check_lib_save_LIBS
14790 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14791 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14792 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_LIBKRB4 1
14795 _ACEOF
14797 LIBS="-lkrb4 $LIBS"
14799 else
14801 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14802 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14803 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-lkrb $LIBS"
14808 cat >conftest.$ac_ext <<_ACEOF
14809 #line $LINENO "configure"
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 /* Override any gcc2 internal prototype to avoid an error. */
14817 #ifdef __cplusplus
14818 extern "C"
14819 #endif
14820 /* We use char because int might match the return type of a gcc2
14821 builtin and then its argument prototype would still apply. */
14822 char krb_get_cred ();
14824 main ()
14826 krb_get_cred ();
14828 return 0;
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833 (eval $ac_link) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -s conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_lib_krb_krb_get_cred=yes
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_lib_krb_krb_get_cred=no
14850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14854 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14855 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_LIBKRB 1
14858 _ACEOF
14860 LIBS="-lkrb $LIBS"
14868 if test "${with_kerberos5+set}" = set; then
14870 for ac_header in krb5.h
14872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14874 echo "$as_me:$LINENO: checking for $ac_header" >&5
14875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14881 else
14882 # Is the header compilable?
14883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 /* confdefs.h. */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 #include <$ac_header>
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_header_compiler=yes
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_header_compiler=no
14914 rm -f conftest.$ac_objext conftest.$ac_ext
14915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14916 echo "${ECHO_T}$ac_header_compiler" >&6
14918 # Is the header present?
14919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14921 cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 #include <$ac_header>
14929 _ACEOF
14930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } >/dev/null; then
14938 if test -s conftest.err; then
14939 ac_cpp_err=$ac_c_preproc_warn_flag
14940 else
14941 ac_cpp_err=
14943 else
14944 ac_cpp_err=yes
14946 if test -z "$ac_cpp_err"; then
14947 ac_header_preproc=yes
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14952 ac_header_preproc=no
14954 rm -f conftest.err conftest.$ac_ext
14955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14956 echo "${ECHO_T}$ac_header_preproc" >&6
14958 # So? What about this header?
14959 case $ac_header_compiler:$ac_header_preproc in
14960 yes:no )
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966 cat <<\_ASBOX
14967 ## ------------------------------------ ##
14968 ## Report this to bug-autoconf@gnu.org. ##
14969 ## ------------------------------------ ##
14970 _ASBOX
14972 sed "s/^/$as_me: WARNING: /" >&2
14974 no:yes )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 cat <<\_ASBOX
14983 ## ------------------------------------ ##
14984 ## Report this to bug-autoconf@gnu.org. ##
14985 ## ------------------------------------ ##
14986 _ASBOX
14988 sed "s/^/$as_me: WARNING: /" >&2
14990 esac
14991 echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996 eval "$as_ac_Header=$ac_header_preproc"
14998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15005 _ACEOF
15009 done
15011 else
15013 for ac_header in des.h
15015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15017 echo "$as_me:$LINENO: checking for $ac_header" >&5
15018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15024 else
15025 # Is the header compilable?
15026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 #include <$ac_header>
15037 _ACEOF
15038 rm -f conftest.$ac_objext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040 (eval $ac_compile) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -s conftest.$ac_objext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler=yes
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ac_header_compiler=no
15057 rm -f conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6
15061 # Is the header present?
15062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15064 cat >conftest.$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <$ac_header>
15072 _ACEOF
15073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } >/dev/null; then
15081 if test -s conftest.err; then
15082 ac_cpp_err=$ac_c_preproc_warn_flag
15083 else
15084 ac_cpp_err=
15086 else
15087 ac_cpp_err=yes
15089 if test -z "$ac_cpp_err"; then
15090 ac_header_preproc=yes
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_header_preproc=no
15097 rm -f conftest.err conftest.$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc in
15103 yes:no )
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15109 cat <<\_ASBOX
15110 ## ------------------------------------ ##
15111 ## Report this to bug-autoconf@gnu.org. ##
15112 ## ------------------------------------ ##
15113 _ASBOX
15115 sed "s/^/$as_me: WARNING: /" >&2
15117 no:yes )
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125 cat <<\_ASBOX
15126 ## ------------------------------------ ##
15127 ## Report this to bug-autoconf@gnu.org. ##
15128 ## ------------------------------------ ##
15129 _ASBOX
15131 sed "s/^/$as_me: WARNING: /" >&2
15133 esac
15134 echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 eval "$as_ac_Header=$ac_header_preproc"
15141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15146 cat >>confdefs.h <<_ACEOF
15147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15148 _ACEOF
15150 else
15152 for ac_header in kerberosIV/des.h
15154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15156 echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15163 else
15164 # Is the header compilable?
15165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 $ac_includes_default
15175 #include <$ac_header>
15176 _ACEOF
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179 (eval $ac_compile) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_compiler=no
15196 rm -f conftest.$ac_objext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6
15200 # Is the header present?
15201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <$ac_header>
15211 _ACEOF
15212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 else
15223 ac_cpp_err=
15225 else
15226 ac_cpp_err=yes
15228 if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15230 else
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_header_preproc=no
15236 rm -f conftest.err conftest.$ac_ext
15237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238 echo "${ECHO_T}$ac_header_preproc" >&6
15240 # So? What about this header?
15241 case $ac_header_compiler:$ac_header_preproc in
15242 yes:no )
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15248 cat <<\_ASBOX
15249 ## ------------------------------------ ##
15250 ## Report this to bug-autoconf@gnu.org. ##
15251 ## ------------------------------------ ##
15252 _ASBOX
15254 sed "s/^/$as_me: WARNING: /" >&2
15256 no:yes )
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15264 cat <<\_ASBOX
15265 ## ------------------------------------ ##
15266 ## Report this to bug-autoconf@gnu.org. ##
15267 ## ------------------------------------ ##
15268 _ASBOX
15270 sed "s/^/$as_me: WARNING: /" >&2
15272 esac
15273 echo "$as_me:$LINENO: checking for $ac_header" >&5
15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 eval "$as_ac_Header=$ac_header_preproc"
15280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287 _ACEOF
15289 else
15291 for ac_header in kerberos/des.h
15293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15302 else
15303 # Is the header compilable?
15304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15306 cat >conftest.$ac_ext <<_ACEOF
15307 #line $LINENO "configure"
15308 /* confdefs.h. */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15313 $ac_includes_default
15314 #include <$ac_header>
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -s conftest.$ac_objext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_header_compiler=yes
15329 else
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15335 rm -f conftest.$ac_objext conftest.$ac_ext
15336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15337 echo "${ECHO_T}$ac_header_compiler" >&6
15339 # Is the header present?
15340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15342 cat >conftest.$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <$ac_header>
15350 _ACEOF
15351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } >/dev/null; then
15359 if test -s conftest.err; then
15360 ac_cpp_err=$ac_c_preproc_warn_flag
15361 else
15362 ac_cpp_err=
15364 else
15365 ac_cpp_err=yes
15367 if test -z "$ac_cpp_err"; then
15368 ac_header_preproc=yes
15369 else
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_header_preproc=no
15375 rm -f conftest.err conftest.$ac_ext
15376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15377 echo "${ECHO_T}$ac_header_preproc" >&6
15379 # So? What about this header?
15380 case $ac_header_compiler:$ac_header_preproc in
15381 yes:no )
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15387 cat <<\_ASBOX
15388 ## ------------------------------------ ##
15389 ## Report this to bug-autoconf@gnu.org. ##
15390 ## ------------------------------------ ##
15391 _ASBOX
15393 sed "s/^/$as_me: WARNING: /" >&2
15395 no:yes )
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15403 cat <<\_ASBOX
15404 ## ------------------------------------ ##
15405 ## Report this to bug-autoconf@gnu.org. ##
15406 ## ------------------------------------ ##
15407 _ASBOX
15409 sed "s/^/$as_me: WARNING: /" >&2
15411 esac
15412 echo "$as_me:$LINENO: checking for $ac_header" >&5
15413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 eval "$as_ac_Header=$ac_header_preproc"
15419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15424 cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15426 _ACEOF
15430 done
15434 done
15438 done
15441 for ac_header in krb.h
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15452 else
15453 # Is the header compilable?
15454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15456 cat >conftest.$ac_ext <<_ACEOF
15457 #line $LINENO "configure"
15458 /* confdefs.h. */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15464 #include <$ac_header>
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_header_compiler=no
15485 rm -f conftest.$ac_objext conftest.$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15487 echo "${ECHO_T}$ac_header_compiler" >&6
15489 # Is the header present?
15490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15492 cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 /* confdefs.h. */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <$ac_header>
15500 _ACEOF
15501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15503 ac_status=$?
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } >/dev/null; then
15509 if test -s conftest.err; then
15510 ac_cpp_err=$ac_c_preproc_warn_flag
15511 else
15512 ac_cpp_err=
15514 else
15515 ac_cpp_err=yes
15517 if test -z "$ac_cpp_err"; then
15518 ac_header_preproc=yes
15519 else
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_preproc=no
15525 rm -f conftest.err conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15527 echo "${ECHO_T}$ac_header_preproc" >&6
15529 # So? What about this header?
15530 case $ac_header_compiler:$ac_header_preproc in
15531 yes:no )
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15537 cat <<\_ASBOX
15538 ## ------------------------------------ ##
15539 ## Report this to bug-autoconf@gnu.org. ##
15540 ## ------------------------------------ ##
15541 _ASBOX
15543 sed "s/^/$as_me: WARNING: /" >&2
15545 no:yes )
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15553 cat <<\_ASBOX
15554 ## ------------------------------------ ##
15555 ## Report this to bug-autoconf@gnu.org. ##
15556 ## ------------------------------------ ##
15557 _ASBOX
15559 sed "s/^/$as_me: WARNING: /" >&2
15561 esac
15562 echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 eval "$as_ac_Header=$ac_header_preproc"
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 _ACEOF
15578 else
15580 for ac_header in kerberosIV/krb.h
15582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15584 echo "$as_me:$LINENO: checking for $ac_header" >&5
15585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15591 else
15592 # Is the header compilable?
15593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15596 #line $LINENO "configure"
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 $ac_includes_default
15603 #include <$ac_header>
15604 _ACEOF
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -s conftest.$ac_objext'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_header_compiler=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_compiler=no
15624 rm -f conftest.$ac_objext conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15626 echo "${ECHO_T}$ac_header_compiler" >&6
15628 # Is the header present?
15629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15631 cat >conftest.$ac_ext <<_ACEOF
15632 #line $LINENO "configure"
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <$ac_header>
15639 _ACEOF
15640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } >/dev/null; then
15648 if test -s conftest.err; then
15649 ac_cpp_err=$ac_c_preproc_warn_flag
15650 else
15651 ac_cpp_err=
15653 else
15654 ac_cpp_err=yes
15656 if test -z "$ac_cpp_err"; then
15657 ac_header_preproc=yes
15658 else
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_preproc=no
15664 rm -f conftest.err conftest.$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666 echo "${ECHO_T}$ac_header_preproc" >&6
15668 # So? What about this header?
15669 case $ac_header_compiler:$ac_header_preproc in
15670 yes:no )
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15676 cat <<\_ASBOX
15677 ## ------------------------------------ ##
15678 ## Report this to bug-autoconf@gnu.org. ##
15679 ## ------------------------------------ ##
15680 _ASBOX
15682 sed "s/^/$as_me: WARNING: /" >&2
15684 no:yes )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15692 cat <<\_ASBOX
15693 ## ------------------------------------ ##
15694 ## Report this to bug-autoconf@gnu.org. ##
15695 ## ------------------------------------ ##
15696 _ASBOX
15698 sed "s/^/$as_me: WARNING: /" >&2
15700 esac
15701 echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 eval "$as_ac_Header=$ac_header_preproc"
15708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715 _ACEOF
15717 else
15719 for ac_header in kerberos/krb.h
15721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15730 else
15731 # Is the header compilable?
15732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15734 cat >conftest.$ac_ext <<_ACEOF
15735 #line $LINENO "configure"
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_header_compiler=no
15763 rm -f conftest.$ac_objext conftest.$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15765 echo "${ECHO_T}$ac_header_compiler" >&6
15767 # Is the header present?
15768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15770 cat >conftest.$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15772 /* confdefs.h. */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 #include <$ac_header>
15778 _ACEOF
15779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev/null; then
15787 if test -s conftest.err; then
15788 ac_cpp_err=$ac_c_preproc_warn_flag
15789 else
15790 ac_cpp_err=
15792 else
15793 ac_cpp_err=yes
15795 if test -z "$ac_cpp_err"; then
15796 ac_header_preproc=yes
15797 else
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_header_preproc=no
15803 rm -f conftest.err conftest.$ac_ext
15804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15805 echo "${ECHO_T}$ac_header_preproc" >&6
15807 # So? What about this header?
15808 case $ac_header_compiler:$ac_header_preproc in
15809 yes:no )
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15815 cat <<\_ASBOX
15816 ## ------------------------------------ ##
15817 ## Report this to bug-autoconf@gnu.org. ##
15818 ## ------------------------------------ ##
15819 _ASBOX
15821 sed "s/^/$as_me: WARNING: /" >&2
15823 no:yes )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15831 cat <<\_ASBOX
15832 ## ------------------------------------ ##
15833 ## Report this to bug-autoconf@gnu.org. ##
15834 ## ------------------------------------ ##
15835 _ASBOX
15837 sed "s/^/$as_me: WARNING: /" >&2
15839 esac
15840 echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845 eval "$as_ac_Header=$ac_header_preproc"
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15852 cat >>confdefs.h <<_ACEOF
15853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15854 _ACEOF
15858 done
15862 done
15866 done
15870 for ac_header in com_err.h
15872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15881 else
15882 # Is the header compilable?
15883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_header_compiler=no
15914 rm -f conftest.$ac_objext conftest.$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15929 _ACEOF
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev/null; then
15938 if test -s conftest.err; then
15939 ac_cpp_err=$ac_c_preproc_warn_flag
15940 else
15941 ac_cpp_err=
15943 else
15944 ac_cpp_err=yes
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_header_preproc=no
15954 rm -f conftest.err conftest.$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc in
15960 yes:no )
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966 cat <<\_ASBOX
15967 ## ------------------------------------ ##
15968 ## Report this to bug-autoconf@gnu.org. ##
15969 ## ------------------------------------ ##
15970 _ASBOX
15972 sed "s/^/$as_me: WARNING: /" >&2
15974 no:yes )
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15982 cat <<\_ASBOX
15983 ## ------------------------------------ ##
15984 ## Report this to bug-autoconf@gnu.org. ##
15985 ## ------------------------------------ ##
15986 _ASBOX
15988 sed "s/^/$as_me: WARNING: /" >&2
15990 esac
15991 echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996 eval "$as_ac_Header=$ac_header_preproc"
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003 cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 _ACEOF
16009 done
16013 # Solaris requires -lintl if you want strerror (which calls dgettext)
16014 # to return localized messages.
16016 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16017 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16018 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lintl $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16031 /* Override any gcc2 internal prototype to avoid an error. */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char dgettext ();
16039 main ()
16041 dgettext ();
16043 return 0;
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_lib_intl_dgettext=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_cv_lib_intl_dgettext=no
16065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16069 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16070 if test $ac_cv_lib_intl_dgettext = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_LIBINTL 1
16073 _ACEOF
16075 LIBS="-lintl $LIBS"
16080 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16081 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16082 if test "${emacs_cv_localtime_cache+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085 if test x$ac_cv_func_tzset = xyes; then
16086 if test "$cross_compiling" = yes; then
16087 # If we have tzset, assume the worst when cross-compiling.
16088 emacs_cv_localtime_cache=yes
16089 else
16090 cat >conftest.$ac_ext <<_ACEOF
16091 #line $LINENO "configure"
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <time.h>
16098 extern char **environ;
16099 unset_TZ ()
16101 char **from, **to;
16102 for (to = from = environ; (*to = *from); from++)
16103 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16104 to++;
16106 char TZ_GMT0[] = "TZ=GMT0";
16107 char TZ_PST8[] = "TZ=PST8";
16108 main()
16110 time_t now = time ((time_t *) 0);
16111 int hour_GMT0, hour_unset;
16112 if (putenv (TZ_GMT0) != 0)
16113 exit (1);
16114 hour_GMT0 = localtime (&now)->tm_hour;
16115 unset_TZ ();
16116 hour_unset = localtime (&now)->tm_hour;
16117 if (putenv (TZ_PST8) != 0)
16118 exit (1);
16119 if (localtime (&now)->tm_hour == hour_GMT0)
16120 exit (1);
16121 unset_TZ ();
16122 if (localtime (&now)->tm_hour != hour_unset)
16123 exit (1);
16124 exit (0);
16126 _ACEOF
16127 rm -f conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 emacs_cv_localtime_cache=no
16139 else
16140 echo "$as_me: program exited with status $ac_status" >&5
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 ( exit $ac_status )
16145 emacs_cv_localtime_cache=yes
16147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16149 else
16150 # If we lack tzset, report that localtime does not cache TZ,
16151 # since we can't invalidate the cache if we don't have tzset.
16152 emacs_cv_localtime_cache=no
16155 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16156 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16157 if test $emacs_cv_localtime_cache = yes; then
16159 cat >>confdefs.h <<\_ACEOF
16160 #define LOCALTIME_CACHE 1
16161 _ACEOF
16165 if test "x$HAVE_TIMEVAL" = xyes; then
16167 for ac_func in gettimeofday
16169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170 echo "$as_me:$LINENO: checking for $ac_func" >&5
16171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16172 if eval "test \"\${$as_ac_var+set}\" = set"; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16177 /* confdefs.h. */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 /* System header to define __stub macros and hopefully few prototypes,
16183 which can conflict with char $ac_func (); below.
16184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16185 <limits.h> exists even on freestanding compilers. */
16186 #ifdef __STDC__
16187 # include <limits.h>
16188 #else
16189 # include <assert.h>
16190 #endif
16191 /* Override any gcc2 internal prototype to avoid an error. */
16192 #ifdef __cplusplus
16193 extern "C"
16195 #endif
16196 /* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16198 char $ac_func ();
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16203 choke me
16204 #else
16205 char (*f) () = $ac_func;
16206 #endif
16207 #ifdef __cplusplus
16209 #endif
16212 main ()
16214 return f != $ac_func;
16216 return 0;
16218 _ACEOF
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -s conftest$ac_exeext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 eval "$as_ac_var=yes"
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 eval "$as_ac_var=no"
16238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16242 if test `eval echo '${'$as_ac_var'}'` = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16245 _ACEOF
16248 done
16250 if test $ac_cv_func_gettimeofday = yes; then
16251 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16252 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16253 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256 cat >conftest.$ac_ext <<_ACEOF
16257 #line $LINENO "configure"
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16264 #ifdef TIME_WITH_SYS_TIME
16265 #include <sys/time.h>
16266 #include <time.h>
16267 #else
16268 #ifdef HAVE_SYS_TIME_H
16269 #include <sys/time.h>
16270 #else
16271 #include <time.h>
16272 #endif
16273 #endif
16275 main ()
16277 struct timeval time;
16278 gettimeofday (&time, 0);
16280 return 0;
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -s conftest.$ac_objext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 emacs_cv_gettimeofday_two_arguments=yes
16296 else
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 emacs_cv_gettimeofday_two_arguments=no
16302 rm -f conftest.$ac_objext conftest.$ac_ext
16304 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16305 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16306 if test $emacs_cv_gettimeofday_two_arguments = no; then
16308 cat >>confdefs.h <<\_ACEOF
16309 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16310 _ACEOF
16316 if test "$ac_cv_func_gettimeofday" = yes; then
16317 echo "$as_me:$LINENO: checking for struct timezone" >&5
16318 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16319 if test "${emacs_cv_struct_timezone+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322 cat >conftest.$ac_ext <<_ACEOF
16323 #line $LINENO "configure"
16324 /* confdefs.h. */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16329 #include <sys/time.h>
16331 main ()
16333 struct timezone tz;
16335 return 0;
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 if test "$cross_compiling" = yes; then
16351 emacs_cv_struct_timezone=yes
16352 else
16353 cat >conftest.$ac_ext <<_ACEOF
16354 #line $LINENO "configure"
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16361 #ifdef TIME_WITH_SYS_TIME
16362 #include <sys/time.h>
16363 #include <time.h>
16364 #else
16365 #ifdef HAVE_SYS_TIME_H
16366 #include <sys/time.h>
16367 #else
16368 #include <time.h>
16369 #endif
16370 #endif
16371 main () {
16372 struct timeval time;
16373 struct timezone dummy;
16374 exit (gettimeofday (&time, &dummy));
16376 _ACEOF
16377 rm -f conftest$ac_exeext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16379 (eval $ac_link) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 emacs_cv_struct_timezone=yes
16389 else
16390 echo "$as_me: program exited with status $ac_status" >&5
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ( exit $ac_status )
16395 emacs_cv_struct_timezone=no
16397 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 emacs_cv_struct_timezone=no
16405 rm -f conftest.$ac_objext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16408 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16411 ok_so_far=yes
16412 echo "$as_me:$LINENO: checking for socket" >&5
16413 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16414 if test "${ac_cv_func_socket+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 cat >conftest.$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 /* System header to define __stub macros and hopefully few prototypes,
16425 which can conflict with char socket (); below.
16426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16427 <limits.h> exists even on freestanding compilers. */
16428 #ifdef __STDC__
16429 # include <limits.h>
16430 #else
16431 # include <assert.h>
16432 #endif
16433 /* Override any gcc2 internal prototype to avoid an error. */
16434 #ifdef __cplusplus
16435 extern "C"
16437 #endif
16438 /* We use char because int might match the return type of a gcc2
16439 builtin and then its argument prototype would still apply. */
16440 char socket ();
16441 /* The GNU C library defines this for functions which it implements
16442 to always fail with ENOSYS. Some functions are actually named
16443 something starting with __ and the normal name is an alias. */
16444 #if defined (__stub_socket) || defined (__stub___socket)
16445 choke me
16446 #else
16447 char (*f) () = socket;
16448 #endif
16449 #ifdef __cplusplus
16451 #endif
16454 main ()
16456 return f != socket;
16458 return 0;
16460 _ACEOF
16461 rm -f conftest.$ac_objext conftest$ac_exeext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16463 (eval $ac_link) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_func_socket=yes
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ac_cv_func_socket=no
16480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16483 echo "${ECHO_T}$ac_cv_func_socket" >&6
16484 if test $ac_cv_func_socket = yes; then
16486 else
16487 ok_so_far=no
16490 if test $ok_so_far = yes; then
16491 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16492 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16493 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16494 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16498 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16499 else
16500 # Is the header compilable?
16501 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16502 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16504 #line $LINENO "configure"
16505 /* confdefs.h. */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16511 #include <netinet/in.h>
16512 _ACEOF
16513 rm -f conftest.$ac_objext
16514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_header_compiler=yes
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 ac_header_compiler=no
16532 rm -f conftest.$ac_objext conftest.$ac_ext
16533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534 echo "${ECHO_T}$ac_header_compiler" >&6
16536 # Is the header present?
16537 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16538 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16539 cat >conftest.$ac_ext <<_ACEOF
16540 #line $LINENO "configure"
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 #include <netinet/in.h>
16547 _ACEOF
16548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } >/dev/null; then
16556 if test -s conftest.err; then
16557 ac_cpp_err=$ac_c_preproc_warn_flag
16558 else
16559 ac_cpp_err=
16561 else
16562 ac_cpp_err=yes
16564 if test -z "$ac_cpp_err"; then
16565 ac_header_preproc=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_header_preproc=no
16572 rm -f conftest.err conftest.$ac_ext
16573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16574 echo "${ECHO_T}$ac_header_preproc" >&6
16576 # So? What about this header?
16577 case $ac_header_compiler:$ac_header_preproc in
16578 yes:no )
16579 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16580 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16582 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16584 cat <<\_ASBOX
16585 ## ------------------------------------ ##
16586 ## Report this to bug-autoconf@gnu.org. ##
16587 ## ------------------------------------ ##
16588 _ASBOX
16590 sed "s/^/$as_me: WARNING: /" >&2
16592 no:yes )
16593 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16594 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16596 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16598 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16600 cat <<\_ASBOX
16601 ## ------------------------------------ ##
16602 ## Report this to bug-autoconf@gnu.org. ##
16603 ## ------------------------------------ ##
16604 _ASBOX
16606 sed "s/^/$as_me: WARNING: /" >&2
16608 esac
16609 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16610 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16611 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 ac_cv_header_netinet_in_h=$ac_header_preproc
16616 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16617 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16620 if test $ac_cv_header_netinet_in_h = yes; then
16622 else
16623 ok_so_far=no
16628 if test $ok_so_far = yes; then
16629 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16630 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16631 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16632 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16636 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16637 else
16638 # Is the header compilable?
16639 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16640 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16643 /* confdefs.h. */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 $ac_includes_default
16649 #include <arpa/inet.h>
16650 _ACEOF
16651 rm -f conftest.$ac_objext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_header_compiler=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_compiler=no
16670 rm -f conftest.$ac_objext conftest.$ac_ext
16671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16672 echo "${ECHO_T}$ac_header_compiler" >&6
16674 # Is the header present?
16675 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16676 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16677 cat >conftest.$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <arpa/inet.h>
16685 _ACEOF
16686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16688 ac_status=$?
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } >/dev/null; then
16694 if test -s conftest.err; then
16695 ac_cpp_err=$ac_c_preproc_warn_flag
16696 else
16697 ac_cpp_err=
16699 else
16700 ac_cpp_err=yes
16702 if test -z "$ac_cpp_err"; then
16703 ac_header_preproc=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_header_preproc=no
16710 rm -f conftest.err conftest.$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16712 echo "${ECHO_T}$ac_header_preproc" >&6
16714 # So? What about this header?
16715 case $ac_header_compiler:$ac_header_preproc in
16716 yes:no )
16717 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16718 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16719 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16720 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16722 cat <<\_ASBOX
16723 ## ------------------------------------ ##
16724 ## Report this to bug-autoconf@gnu.org. ##
16725 ## ------------------------------------ ##
16726 _ASBOX
16728 sed "s/^/$as_me: WARNING: /" >&2
16730 no:yes )
16731 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16732 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16734 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16738 cat <<\_ASBOX
16739 ## ------------------------------------ ##
16740 ## Report this to bug-autoconf@gnu.org. ##
16741 ## ------------------------------------ ##
16742 _ASBOX
16744 sed "s/^/$as_me: WARNING: /" >&2
16746 esac
16747 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16748 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 ac_cv_header_arpa_inet_h=$ac_header_preproc
16754 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16755 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16758 if test $ac_cv_header_arpa_inet_h = yes; then
16760 else
16761 ok_so_far=no
16766 if test $ok_so_far = yes; then
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_INET_SOCKETS 1
16770 _ACEOF
16774 if test -f /usr/lpp/X11/bin/smt.exp; then
16776 cat >>confdefs.h <<\_ACEOF
16777 #define HAVE_AIX_SMT_EXP 1
16778 _ACEOF
16782 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16783 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16784 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16785 echo "$as_me:$LINENO: result: yes" >&5
16786 echo "${ECHO_T}yes" >&6
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_DEV_PTMX 1
16790 _ACEOF
16792 else
16793 echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6
16797 echo "$as_me:$LINENO: checking for pid_t" >&5
16798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16799 if test "${ac_cv_type_pid_t+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802 cat >conftest.$ac_ext <<_ACEOF
16803 #line $LINENO "configure"
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16811 main ()
16813 if ((pid_t *) 0)
16814 return 0;
16815 if (sizeof (pid_t))
16816 return 0;
16818 return 0;
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try='test -s conftest.$ac_objext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_cv_type_pid_t=yes
16834 else
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16838 ac_cv_type_pid_t=no
16840 rm -f conftest.$ac_objext conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16843 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16844 if test $ac_cv_type_pid_t = yes; then
16846 else
16848 cat >>confdefs.h <<_ACEOF
16849 #define pid_t int
16850 _ACEOF
16856 for ac_header in unistd.h vfork.h
16858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16860 echo "$as_me:$LINENO: checking for $ac_header" >&5
16861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16867 else
16868 # Is the header compilable?
16869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16872 #line $LINENO "configure"
16873 /* confdefs.h. */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 $ac_includes_default
16879 #include <$ac_header>
16880 _ACEOF
16881 rm -f conftest.$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_header_compiler=yes
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_header_compiler=no
16900 rm -f conftest.$ac_objext conftest.$ac_ext
16901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16902 echo "${ECHO_T}$ac_header_compiler" >&6
16904 # Is the header present?
16905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16907 cat >conftest.$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <$ac_header>
16915 _ACEOF
16916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev/null; then
16924 if test -s conftest.err; then
16925 ac_cpp_err=$ac_c_preproc_warn_flag
16926 else
16927 ac_cpp_err=
16929 else
16930 ac_cpp_err=yes
16932 if test -z "$ac_cpp_err"; then
16933 ac_header_preproc=yes
16934 else
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 ac_header_preproc=no
16940 rm -f conftest.err conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc in
16946 yes:no )
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16952 cat <<\_ASBOX
16953 ## ------------------------------------ ##
16954 ## Report this to bug-autoconf@gnu.org. ##
16955 ## ------------------------------------ ##
16956 _ASBOX
16958 sed "s/^/$as_me: WARNING: /" >&2
16960 no:yes )
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16968 cat <<\_ASBOX
16969 ## ------------------------------------ ##
16970 ## Report this to bug-autoconf@gnu.org. ##
16971 ## ------------------------------------ ##
16972 _ASBOX
16974 sed "s/^/$as_me: WARNING: /" >&2
16976 esac
16977 echo "$as_me:$LINENO: checking for $ac_header" >&5
16978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982 eval "$as_ac_Header=$ac_header_preproc"
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16991 _ACEOF
16995 done
16999 for ac_func in fork vfork
17001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_var+set}\" = set"; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* System header to define __stub macros and hopefully few prototypes,
17015 which can conflict with char $ac_func (); below.
17016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017 <limits.h> exists even on freestanding compilers. */
17018 #ifdef __STDC__
17019 # include <limits.h>
17020 #else
17021 # include <assert.h>
17022 #endif
17023 /* Override any gcc2 internal prototype to avoid an error. */
17024 #ifdef __cplusplus
17025 extern "C"
17027 #endif
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17030 char $ac_func ();
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17035 choke me
17036 #else
17037 char (*f) () = $ac_func;
17038 #endif
17039 #ifdef __cplusplus
17041 #endif
17044 main ()
17046 return f != $ac_func;
17048 return 0;
17050 _ACEOF
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17053 (eval $ac_link) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 eval "$as_ac_var=yes"
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 eval "$as_ac_var=no"
17070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077 _ACEOF
17080 done
17082 if test "x$ac_cv_func_fork" = xyes; then
17083 echo "$as_me:$LINENO: checking for working fork" >&5
17084 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17085 if test "${ac_cv_func_fork_works+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088 if test "$cross_compiling" = yes; then
17089 ac_cv_func_fork_works=cross
17090 else
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* By Ruediger Kuhlmann. */
17093 #include <sys/types.h>
17094 #if HAVE_UNISTD_H
17095 # include <unistd.h>
17096 #endif
17097 /* Some systems only have a dummy stub for fork() */
17098 int main ()
17100 if (fork() < 0)
17101 exit (1);
17102 exit (0);
17104 _ACEOF
17105 rm -f conftest$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_func_fork_works=yes
17117 else
17118 echo "$as_me: program exited with status $ac_status" >&5
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ( exit $ac_status )
17123 ac_cv_func_fork_works=no
17125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17128 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17129 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17131 else
17132 ac_cv_func_fork_works=$ac_cv_func_fork
17134 if test "x$ac_cv_func_fork_works" = xcross; then
17135 case $host in
17136 *-*-amigaos* | *-*-msdosdjgpp*)
17137 # Override, as these systems have only a dummy fork() stub
17138 ac_cv_func_fork_works=no
17141 ac_cv_func_fork_works=yes
17143 esac
17144 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17145 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17147 ac_cv_func_vfork_works=$ac_cv_func_vfork
17148 if test "x$ac_cv_func_vfork" = xyes; then
17149 echo "$as_me:$LINENO: checking for working vfork" >&5
17150 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17151 if test "${ac_cv_func_vfork_works+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154 if test "$cross_compiling" = yes; then
17155 ac_cv_func_vfork_works=cross
17156 else
17157 cat >conftest.$ac_ext <<_ACEOF
17158 #line $LINENO "configure"
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Thanks to Paul Eggert for this test. */
17165 #include <stdio.h>
17166 #include <stdlib.h>
17167 #include <sys/types.h>
17168 #include <sys/stat.h>
17169 #include <sys/wait.h>
17170 #if HAVE_UNISTD_H
17171 # include <unistd.h>
17172 #endif
17173 #if HAVE_VFORK_H
17174 # include <vfork.h>
17175 #endif
17176 /* On some sparc systems, changes by the child to local and incoming
17177 argument registers are propagated back to the parent. The compiler
17178 is told about this with #include <vfork.h>, but some compilers
17179 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17180 static variable whose address is put into a register that is
17181 clobbered by the vfork. */
17182 static void
17183 #ifdef __cplusplus
17184 sparc_address_test (int arg)
17185 # else
17186 sparc_address_test (arg) int arg;
17187 #endif
17189 static pid_t child;
17190 if (!child) {
17191 child = vfork ();
17192 if (child < 0) {
17193 perror ("vfork");
17194 _exit(2);
17196 if (!child) {
17197 arg = getpid();
17198 write(-1, "", 0);
17199 _exit (arg);
17205 main ()
17207 pid_t parent = getpid ();
17208 pid_t child;
17210 sparc_address_test (0);
17212 child = vfork ();
17214 if (child == 0) {
17215 /* Here is another test for sparc vfork register problems. This
17216 test uses lots of local variables, at least as many local
17217 variables as main has allocated so far including compiler
17218 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17219 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17220 reuse the register of parent for one of the local variables,
17221 since it will think that parent can't possibly be used any more
17222 in this routine. Assigning to the local variable will thus
17223 munge parent in the parent process. */
17224 pid_t
17225 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17226 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17227 /* Convince the compiler that p..p7 are live; otherwise, it might
17228 use the same hardware register for all 8 local variables. */
17229 if (p != p1 || p != p2 || p != p3 || p != p4
17230 || p != p5 || p != p6 || p != p7)
17231 _exit(1);
17233 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17234 from child file descriptors. If the child closes a descriptor
17235 before it execs or exits, this munges the parent's descriptor
17236 as well. Test for this by closing stdout in the child. */
17237 _exit(close(fileno(stdout)) != 0);
17238 } else {
17239 int status;
17240 struct stat st;
17242 while (wait(&status) != child)
17244 exit(
17245 /* Was there some problem with vforking? */
17246 child < 0
17248 /* Did the child fail? (This shouldn't happen.) */
17249 || status
17251 /* Did the vfork/compiler bug occur? */
17252 || parent != getpid()
17254 /* Did the file descriptor bug occur? */
17255 || fstat(fileno(stdout), &st) != 0
17259 _ACEOF
17260 rm -f conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262 (eval $ac_link) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_func_vfork_works=yes
17272 else
17273 echo "$as_me: program exited with status $ac_status" >&5
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ( exit $ac_status )
17278 ac_cv_func_vfork_works=no
17280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17284 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17287 if test "x$ac_cv_func_fork_works" = xcross; then
17288 ac_cv_func_vfork_works=ac_cv_func_vfork
17289 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17290 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17293 if test "x$ac_cv_func_vfork_works" = xyes; then
17295 cat >>confdefs.h <<\_ACEOF
17296 #define HAVE_WORKING_VFORK 1
17297 _ACEOF
17299 else
17301 cat >>confdefs.h <<\_ACEOF
17302 #define vfork fork
17303 _ACEOF
17306 if test "x$ac_cv_func_fork_works" = xyes; then
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_WORKING_FORK 1
17310 _ACEOF
17315 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17316 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17317 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320 cat >conftest.$ac_ext <<_ACEOF
17321 #line $LINENO "configure"
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 #include <langinfo.h>
17329 main ()
17331 char* cs = nl_langinfo(CODESET);
17333 return 0;
17335 _ACEOF
17336 rm -f conftest.$ac_objext conftest$ac_exeext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338 (eval $ac_link) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -s conftest$ac_exeext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 emacs_cv_langinfo_codeset=yes
17349 else
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 emacs_cv_langinfo_codeset=no
17355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17359 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17360 if test $emacs_cv_langinfo_codeset = yes; then
17362 cat >>confdefs.h <<\_ACEOF
17363 #define HAVE_LANGINFO_CODESET 1
17364 _ACEOF
17368 echo "$as_me:$LINENO: checking for size_t" >&5
17369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17370 if test "${ac_cv_type_size_t+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 cat >conftest.$ac_ext <<_ACEOF
17374 #line $LINENO "configure"
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 $ac_includes_default
17382 main ()
17384 if ((size_t *) 0)
17385 return 0;
17386 if (sizeof (size_t))
17387 return 0;
17389 return 0;
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17394 (eval $ac_compile) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -s conftest.$ac_objext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_type_size_t=yes
17405 else
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_type_size_t=no
17411 rm -f conftest.$ac_objext conftest.$ac_ext
17413 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17414 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17415 if test $ac_cv_type_size_t = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE_SIZE_T 1
17419 _ACEOF
17425 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17426 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17427 if test "${emacs_cv_c_restrict+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 cat >conftest.$ac_ext <<_ACEOF
17431 #line $LINENO "configure"
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 void fred (int *restrict x);
17439 main ()
17443 return 0;
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -s conftest.$ac_objext'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17458 emacs_cv_c_restrict=yes
17459 else
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 cat >conftest.$ac_ext <<_ACEOF
17464 #line $LINENO "configure"
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 void fred (int *__restrict x);
17472 main ()
17476 return 0;
17478 _ACEOF
17479 rm -f conftest.$ac_objext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17481 (eval $ac_compile) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 emacs_cv_c_restrict=__restrict
17492 else
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 emacs_cv_c_restrict=no
17498 rm -f conftest.$ac_objext conftest.$ac_ext
17500 rm -f conftest.$ac_objext conftest.$ac_ext
17502 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17503 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17504 case "$emacs_cv_c_restrict" in
17505 yes) emacs_restrict=restrict;;
17506 no) emacs_restrict="";;
17507 *) emacs_restrict="$emacs_cv_c_restrict";;
17508 esac
17509 if test "$emacs_restrict" != __restrict; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define __restrict $emacs_restrict
17513 _ACEOF
17517 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17518 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17519 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522 cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17524 /* confdefs.h. */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 void fred (int x[__restrict]);
17531 main ()
17535 return 0;
17537 _ACEOF
17538 rm -f conftest.$ac_objext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -s conftest.$ac_objext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 emacs_cv_c_restrict_arr=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 emacs_cv_c_restrict_arr=no
17557 rm -f conftest.$ac_objext conftest.$ac_ext
17559 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17560 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17561 if test "$emacs_cv_c_restrict_arr" = yes; then
17563 cat >>confdefs.h <<\_ACEOF
17564 #define __restrict_arr __restrict
17565 _ACEOF
17570 for ac_header in nlist.h
17572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17574 echo "$as_me:$LINENO: checking for $ac_header" >&5
17575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17581 else
17582 # Is the header compilable?
17583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17586 #line $LINENO "configure"
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 $ac_includes_default
17593 #include <$ac_header>
17594 _ACEOF
17595 rm -f conftest.$ac_objext
17596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -s conftest.$ac_objext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_header_compiler=yes
17608 else
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 ac_header_compiler=no
17614 rm -f conftest.$ac_objext conftest.$ac_ext
17615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17616 echo "${ECHO_T}$ac_header_compiler" >&6
17618 # Is the header present?
17619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17622 #line $LINENO "configure"
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 #include <$ac_header>
17629 _ACEOF
17630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev/null; then
17638 if test -s conftest.err; then
17639 ac_cpp_err=$ac_c_preproc_warn_flag
17640 else
17641 ac_cpp_err=
17643 else
17644 ac_cpp_err=yes
17646 if test -z "$ac_cpp_err"; then
17647 ac_header_preproc=yes
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_header_preproc=no
17654 rm -f conftest.err conftest.$ac_ext
17655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17656 echo "${ECHO_T}$ac_header_preproc" >&6
17658 # So? What about this header?
17659 case $ac_header_compiler:$ac_header_preproc in
17660 yes:no )
17661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17666 cat <<\_ASBOX
17667 ## ------------------------------------ ##
17668 ## Report this to bug-autoconf@gnu.org. ##
17669 ## ------------------------------------ ##
17670 _ASBOX
17672 sed "s/^/$as_me: WARNING: /" >&2
17674 no:yes )
17675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17682 cat <<\_ASBOX
17683 ## ------------------------------------ ##
17684 ## Report this to bug-autoconf@gnu.org. ##
17685 ## ------------------------------------ ##
17686 _ASBOX
17688 sed "s/^/$as_me: WARNING: /" >&2
17690 esac
17691 echo "$as_me:$LINENO: checking for $ac_header" >&5
17692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17696 eval "$as_ac_Header=$ac_header_preproc"
17698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17705 _ACEOF
17707 cat >>confdefs.h <<\_ACEOF
17708 #define NLIST_STRUCT 1
17709 _ACEOF
17713 done
17718 # Set up the CFLAGS for real compilation, so we can substitute it.
17719 CFLAGS="$REAL_CFLAGS"
17720 CPPFLAGS="$REAL_CPPFLAGS"
17722 #### Find out which version of Emacs this is.
17723 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17724 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17725 if test x"${version}" = x; then
17726 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17727 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17728 { (exit 1); exit 1; }; }
17731 ### Specify what sort of things we'll be editing into Makefile and config.h.
17732 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17768 cat >>confdefs.h <<_ACEOF
17769 #define EMACS_CONFIGURATION "${canonical}"
17770 _ACEOF
17773 cat >>confdefs.h <<_ACEOF
17774 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17775 _ACEOF
17778 cat >>confdefs.h <<_ACEOF
17779 #define config_machfile "${machfile}"
17780 _ACEOF
17783 cat >>confdefs.h <<_ACEOF
17784 #define config_opsysfile "${opsysfile}"
17785 _ACEOF
17788 cat >>confdefs.h <<_ACEOF
17789 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17790 _ACEOF
17793 cat >>confdefs.h <<_ACEOF
17794 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17795 _ACEOF
17798 cat >>confdefs.h <<_ACEOF
17799 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17800 _ACEOF
17803 cat >>confdefs.h <<_ACEOF
17804 #define UNEXEC_SRC ${UNEXEC_SRC}
17805 _ACEOF
17808 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17810 cat >>confdefs.h <<\_ACEOF
17811 #define HAVE_X_WINDOWS 1
17812 _ACEOF
17815 if test "${USE_X_TOOLKIT}" != "none" ; then
17817 cat >>confdefs.h <<\_ACEOF
17818 #define USE_X_TOOLKIT 1
17819 _ACEOF
17822 if test "${HAVE_X11}" = "yes" ; then
17824 cat >>confdefs.h <<\_ACEOF
17825 #define HAVE_X11 1
17826 _ACEOF
17829 if test "${HAVE_XFREE386}" = "yes" ; then
17831 cat >>confdefs.h <<\_ACEOF
17832 #define HAVE_XFREE386 1
17833 _ACEOF
17836 if test "${HAVE_MENUS}" = "yes" ; then
17838 cat >>confdefs.h <<\_ACEOF
17839 #define HAVE_MENUS 1
17840 _ACEOF
17843 if test "${GNU_MALLOC}" = "yes" ; then
17845 cat >>confdefs.h <<\_ACEOF
17846 #define GNU_MALLOC 1
17847 _ACEOF
17850 if test "${REL_ALLOC}" = "yes" ; then
17852 cat >>confdefs.h <<\_ACEOF
17853 #define REL_ALLOC 1
17854 _ACEOF
17862 #### Report on what we decided to do.
17863 echo "
17864 Configured for \`${canonical}'.
17866 Where should the build process find the source code? ${srcdir}
17867 What operating system and machine description files should Emacs use?
17868 \`${opsysfile}' and \`${machfile}'
17869 What compiler should emacs be built with? ${CC} ${CFLAGS}
17870 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17871 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17872 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17873 What window system should Emacs use? ${window_system}
17874 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17876 if test -n "${x_includes}"; then
17877 echo " Where do we find X Windows header files? ${x_includes}"
17878 else
17879 echo " Where do we find X Windows header files? Standard dirs"
17881 if test -n "${x_libraries}"; then
17882 echo " Where do we find X Windows libraries? ${x_libraries}"
17883 else
17884 echo " Where do we find X Windows libraries? Standard dirs"
17887 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17888 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17889 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17890 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17891 echo " Does Emacs use -lungif? ${HAVE_GIF}"
17892 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17893 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17894 echo
17896 # Remove any trailing slashes in these variables.
17897 test "${prefix}" != NONE &&
17898 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17899 test "${exec_prefix}" != NONE &&
17900 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17902 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
17903 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
17904 ## from Makefile.c can correctly provide the arg `-traditional' to the
17905 ## C preprocessor.
17907 cat >conftest.$ac_ext <<_ACEOF
17908 #line $LINENO "configure"
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 yes..yes
17915 _ACEOF
17916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17917 $EGREP "yes..yes" >/dev/null 2>&1; then
17918 CPP_NEED_TRADITIONAL=no
17919 else
17920 CPP_NEED_TRADITIONAL=yes
17922 rm -f conftest*
17925 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"
17926 ac_config_commands="$ac_config_commands default"
17927 cat >confcache <<\_ACEOF
17928 # This file is a shell script that caches the results of configure
17929 # tests run on this system so they can be shared between configure
17930 # scripts and configure runs, see configure's option --config-cache.
17931 # It is not useful on other systems. If it contains results you don't
17932 # want to keep, you may remove or edit it.
17934 # config.status only pays attention to the cache file if you give it
17935 # the --recheck option to rerun configure.
17937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17939 # following values.
17941 _ACEOF
17943 # The following way of writing the cache mishandles newlines in values,
17944 # but we know of no workaround that is simple, portable, and efficient.
17945 # So, don't put newlines in cache variables' values.
17946 # Ultrix sh set writes to stderr and can't be redirected directly,
17947 # and sets the high bit in the cache file unless we assign to the vars.
17949 (set) 2>&1 |
17950 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17951 *ac_space=\ *)
17952 # `set' does not quote correctly, so add quotes (double-quote
17953 # substitution turns \\\\ into \\, and sed turns \\ into \).
17954 sed -n \
17955 "s/'/'\\\\''/g;
17956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17959 # `set' quotes correctly as required by POSIX, so do not add quotes.
17960 sed -n \
17961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17963 esac;
17965 sed '
17966 t clear
17967 : clear
17968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17969 t end
17970 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17971 : end' >>confcache
17972 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17973 if test -w $cache_file; then
17974 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17975 cat confcache >$cache_file
17976 else
17977 echo "not updating unwritable cache $cache_file"
17980 rm -f confcache
17982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17983 # Let make expand exec_prefix.
17984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17988 # trailing colons and then remove the whole line if VPATH becomes empty
17989 # (actually we leave an empty line to preserve line numbers).
17990 if test "x$srcdir" = x.; then
17991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17992 s/:*\$(srcdir):*/:/;
17993 s/:*\${srcdir}:*/:/;
17994 s/:*@srcdir@:*/:/;
17995 s/^\([^=]*=[ ]*\):*/\1/;
17996 s/:*$//;
17997 s/^[^=]*=[ ]*$//;
18001 DEFS=-DHAVE_CONFIG_H
18003 ac_libobjs=
18004 ac_ltlibobjs=
18005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18006 # 1. Remove the extension, and $U if already installed.
18007 ac_i=`echo "$ac_i" |
18008 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18009 # 2. Add them.
18010 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18011 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18012 done
18013 LIBOBJS=$ac_libobjs
18015 LTLIBOBJS=$ac_ltlibobjs
18019 : ${CONFIG_STATUS=./config.status}
18020 ac_clean_files_save=$ac_clean_files
18021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18022 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18023 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18024 cat >$CONFIG_STATUS <<_ACEOF
18025 #! $SHELL
18026 # Generated by $as_me.
18027 # Run this file to recreate the current configuration.
18028 # Compiler output produced by configure, useful for debugging
18029 # configure, is in config.log if it exists.
18031 debug=false
18032 ac_cs_recheck=false
18033 ac_cs_silent=false
18034 SHELL=\${CONFIG_SHELL-$SHELL}
18035 _ACEOF
18037 cat >>$CONFIG_STATUS <<\_ACEOF
18038 ## --------------------- ##
18039 ## M4sh Initialization. ##
18040 ## --------------------- ##
18042 # Be Bourne compatible
18043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18044 emulate sh
18045 NULLCMD=:
18046 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18047 # is contrary to our usage. Disable this feature.
18048 alias -g '${1+"$@"}'='"$@"'
18049 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18050 set -o posix
18053 # Support unset when possible.
18054 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18055 as_unset=unset
18056 else
18057 as_unset=false
18061 # Work around bugs in pre-3.0 UWIN ksh.
18062 $as_unset ENV MAIL MAILPATH
18063 PS1='$ '
18064 PS2='> '
18065 PS4='+ '
18067 # NLS nuisances.
18068 for as_var in \
18069 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18070 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18071 LC_TELEPHONE LC_TIME
18073 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18074 eval $as_var=C; export $as_var
18075 else
18076 $as_unset $as_var
18078 done
18080 # Required to use basename.
18081 if expr a : '\(a\)' >/dev/null 2>&1; then
18082 as_expr=expr
18083 else
18084 as_expr=false
18087 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18088 as_basename=basename
18089 else
18090 as_basename=false
18094 # Name of the executable.
18095 as_me=`$as_basename "$0" ||
18096 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18097 X"$0" : 'X\(//\)$' \| \
18098 X"$0" : 'X\(/\)$' \| \
18099 . : '\(.\)' 2>/dev/null ||
18100 echo X/"$0" |
18101 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18102 /^X\/\(\/\/\)$/{ s//\1/; q; }
18103 /^X\/\(\/\).*/{ s//\1/; q; }
18104 s/.*/./; q'`
18107 # PATH needs CR, and LINENO needs CR and PATH.
18108 # Avoid depending upon Character Ranges.
18109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18112 as_cr_digits='0123456789'
18113 as_cr_alnum=$as_cr_Letters$as_cr_digits
18115 # The user is always right.
18116 if test "${PATH_SEPARATOR+set}" != set; then
18117 echo "#! /bin/sh" >conf$$.sh
18118 echo "exit 0" >>conf$$.sh
18119 chmod +x conf$$.sh
18120 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18121 PATH_SEPARATOR=';'
18122 else
18123 PATH_SEPARATOR=:
18125 rm -f conf$$.sh
18129 as_lineno_1=$LINENO
18130 as_lineno_2=$LINENO
18131 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18132 test "x$as_lineno_1" != "x$as_lineno_2" &&
18133 test "x$as_lineno_3" = "x$as_lineno_2" || {
18134 # Find who we are. Look in the path if we contain no path at all
18135 # relative or not.
18136 case $0 in
18137 *[\\/]* ) as_myself=$0 ;;
18138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18139 for as_dir in $PATH
18141 IFS=$as_save_IFS
18142 test -z "$as_dir" && as_dir=.
18143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18144 done
18147 esac
18148 # We did not find ourselves, most probably we were run as `sh COMMAND'
18149 # in which case we are not to be found in the path.
18150 if test "x$as_myself" = x; then
18151 as_myself=$0
18153 if test ! -f "$as_myself"; then
18154 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18155 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18156 { (exit 1); exit 1; }; }
18158 case $CONFIG_SHELL in
18160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18161 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18163 IFS=$as_save_IFS
18164 test -z "$as_dir" && as_dir=.
18165 for as_base in sh bash ksh sh5; do
18166 case $as_dir in
18168 if ("$as_dir/$as_base" -c '
18169 as_lineno_1=$LINENO
18170 as_lineno_2=$LINENO
18171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18172 test "x$as_lineno_1" != "x$as_lineno_2" &&
18173 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18174 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18175 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18176 CONFIG_SHELL=$as_dir/$as_base
18177 export CONFIG_SHELL
18178 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18179 fi;;
18180 esac
18181 done
18182 done
18184 esac
18186 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18187 # uniformly replaced by the line number. The first 'sed' inserts a
18188 # line-number line before each line; the second 'sed' does the real
18189 # work. The second script uses 'N' to pair each line-number line
18190 # with the numbered line, and appends trailing '-' during
18191 # substitution so that $LINENO is not a special case at line end.
18192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18193 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18194 sed '=' <$as_myself |
18195 sed '
18197 s,$,-,
18198 : loop
18199 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18200 t loop
18201 s,-$,,
18202 s,^['$as_cr_digits']*\n,,
18203 ' >$as_me.lineno &&
18204 chmod +x $as_me.lineno ||
18205 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18206 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18207 { (exit 1); exit 1; }; }
18209 # Don't try to exec as it changes $[0], causing all sort of problems
18210 # (the dirname of $[0] is not the place where we might find the
18211 # original and so on. Autoconf is especially sensible to this).
18212 . ./$as_me.lineno
18213 # Exit status is that of the last command.
18214 exit
18218 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18219 *c*,-n*) ECHO_N= ECHO_C='
18220 ' ECHO_T=' ' ;;
18221 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18222 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18223 esac
18225 if expr a : '\(a\)' >/dev/null 2>&1; then
18226 as_expr=expr
18227 else
18228 as_expr=false
18231 rm -f conf$$ conf$$.exe conf$$.file
18232 echo >conf$$.file
18233 if ln -s conf$$.file conf$$ 2>/dev/null; then
18234 # We could just check for DJGPP; but this test a) works b) is more generic
18235 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18236 if test -f conf$$.exe; then
18237 # Don't use ln at all; we don't have any links
18238 as_ln_s='cp -p'
18239 else
18240 as_ln_s='ln -s'
18242 elif ln conf$$.file conf$$ 2>/dev/null; then
18243 as_ln_s=ln
18244 else
18245 as_ln_s='cp -p'
18247 rm -f conf$$ conf$$.exe conf$$.file
18249 if mkdir -p . 2>/dev/null; then
18250 as_mkdir_p=:
18251 else
18252 as_mkdir_p=false
18255 as_executable_p="test -f"
18257 # Sed expression to map a string onto a valid CPP name.
18258 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18260 # Sed expression to map a string onto a valid variable name.
18261 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18264 # IFS
18265 # We need space, tab and new line, in precisely that order.
18266 as_nl='
18268 IFS=" $as_nl"
18270 # CDPATH.
18271 $as_unset CDPATH
18273 exec 6>&1
18275 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18276 # report actual input values of CONFIG_FILES etc. instead of their
18277 # values after options handling. Logging --version etc. is OK.
18278 exec 5>>config.log
18280 echo
18281 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18282 ## Running $as_me. ##
18283 _ASBOX
18284 } >&5
18285 cat >&5 <<_CSEOF
18287 This file was extended by $as_me, which was
18288 generated by GNU Autoconf 2.57. Invocation command line was
18290 CONFIG_FILES = $CONFIG_FILES
18291 CONFIG_HEADERS = $CONFIG_HEADERS
18292 CONFIG_LINKS = $CONFIG_LINKS
18293 CONFIG_COMMANDS = $CONFIG_COMMANDS
18294 $ $0 $@
18296 _CSEOF
18297 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18298 echo >&5
18299 _ACEOF
18301 # Files that config.status was made for.
18302 if test -n "$ac_config_files"; then
18303 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18306 if test -n "$ac_config_headers"; then
18307 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18310 if test -n "$ac_config_links"; then
18311 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18314 if test -n "$ac_config_commands"; then
18315 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18318 cat >>$CONFIG_STATUS <<\_ACEOF
18320 ac_cs_usage="\
18321 \`$as_me' instantiates files from templates according to the
18322 current configuration.
18324 Usage: $0 [OPTIONS] [FILE]...
18326 -h, --help print this help, then exit
18327 -V, --version print version number, then exit
18328 -q, --quiet do not print progress messages
18329 -d, --debug don't remove temporary files
18330 --recheck update $as_me by reconfiguring in the same conditions
18331 --file=FILE[:TEMPLATE]
18332 instantiate the configuration file FILE
18333 --header=FILE[:TEMPLATE]
18334 instantiate the configuration header FILE
18336 Configuration files:
18337 $config_files
18339 Configuration headers:
18340 $config_headers
18342 Configuration commands:
18343 $config_commands
18345 Report bugs to <bug-autoconf@gnu.org>."
18346 _ACEOF
18348 cat >>$CONFIG_STATUS <<_ACEOF
18349 ac_cs_version="\\
18350 config.status
18351 configured by $0, generated by GNU Autoconf 2.57,
18352 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18354 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18355 Free Software Foundation, Inc.
18356 This config.status script is free software; the Free Software Foundation
18357 gives unlimited permission to copy, distribute and modify it."
18358 srcdir=$srcdir
18359 INSTALL="$INSTALL"
18360 _ACEOF
18362 cat >>$CONFIG_STATUS <<\_ACEOF
18363 # If no file are specified by the user, then we need to provide default
18364 # value. By we need to know if files were specified by the user.
18365 ac_need_defaults=:
18366 while test $# != 0
18368 case $1 in
18369 --*=*)
18370 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18371 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18372 ac_shift=:
18375 ac_option=$1
18376 ac_optarg=$2
18377 ac_shift=shift
18379 *) # This is not an option, so the user has probably given explicit
18380 # arguments.
18381 ac_option=$1
18382 ac_need_defaults=false;;
18383 esac
18385 case $ac_option in
18386 # Handling of the options.
18387 _ACEOF
18388 cat >>$CONFIG_STATUS <<\_ACEOF
18389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18390 ac_cs_recheck=: ;;
18391 --version | --vers* | -V )
18392 echo "$ac_cs_version"; exit 0 ;;
18393 --he | --h)
18394 # Conflict between --help and --header
18395 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18396 Try \`$0 --help' for more information." >&5
18397 echo "$as_me: error: ambiguous option: $1
18398 Try \`$0 --help' for more information." >&2;}
18399 { (exit 1); exit 1; }; };;
18400 --help | --hel | -h )
18401 echo "$ac_cs_usage"; exit 0 ;;
18402 --debug | --d* | -d )
18403 debug=: ;;
18404 --file | --fil | --fi | --f )
18405 $ac_shift
18406 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18407 ac_need_defaults=false;;
18408 --header | --heade | --head | --hea )
18409 $ac_shift
18410 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18411 ac_need_defaults=false;;
18412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18413 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18414 ac_cs_silent=: ;;
18416 # This is an error.
18417 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18418 Try \`$0 --help' for more information." >&5
18419 echo "$as_me: error: unrecognized option: $1
18420 Try \`$0 --help' for more information." >&2;}
18421 { (exit 1); exit 1; }; } ;;
18423 *) ac_config_targets="$ac_config_targets $1" ;;
18425 esac
18426 shift
18427 done
18429 ac_configure_extra_args=
18431 if $ac_cs_silent; then
18432 exec 6>/dev/null
18433 ac_configure_extra_args="$ac_configure_extra_args --silent"
18436 _ACEOF
18437 cat >>$CONFIG_STATUS <<_ACEOF
18438 if \$ac_cs_recheck; then
18439 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18440 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18443 _ACEOF
18445 cat >>$CONFIG_STATUS <<_ACEOF
18447 # INIT-COMMANDS section.
18450 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18452 _ACEOF
18456 cat >>$CONFIG_STATUS <<\_ACEOF
18457 for ac_config_target in $ac_config_targets
18459 case "$ac_config_target" in
18460 # Handling of arguments.
18461 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18462 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18463 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18464 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18465 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18466 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18467 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18468 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18469 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18470 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18471 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18472 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18474 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18475 { (exit 1); exit 1; }; };;
18476 esac
18477 done
18479 # If the user did not use the arguments to specify the items to instantiate,
18480 # then the envvar interface is used. Set only those that are not.
18481 # We use the long form for the default assignment because of an extremely
18482 # bizarre bug on SunOS 4.1.3.
18483 if $ac_need_defaults; then
18484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18489 # Have a temporary directory for convenience. Make it in the build tree
18490 # simply because there is no reason to put it here, and in addition,
18491 # creating and moving files from /tmp can sometimes cause problems.
18492 # Create a temporary directory, and hook for its removal unless debugging.
18493 $debug ||
18495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18496 trap '{ (exit 1); exit 1; }' 1 2 13 15
18499 # Create a (secure) tmp directory for tmp files.
18502 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18503 test -n "$tmp" && test -d "$tmp"
18504 } ||
18506 tmp=./confstat$$-$RANDOM
18507 (umask 077 && mkdir $tmp)
18508 } ||
18510 echo "$me: cannot create a temporary directory in ." >&2
18511 { (exit 1); exit 1; }
18514 _ACEOF
18516 cat >>$CONFIG_STATUS <<_ACEOF
18519 # CONFIG_FILES section.
18522 # No need to generate the scripts if there are no CONFIG_FILES.
18523 # This happens for instance when ./config.status config.h
18524 if test -n "\$CONFIG_FILES"; then
18525 # Protect against being on the right side of a sed subst in config.status.
18526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18528 s,@SHELL@,$SHELL,;t t
18529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18535 s,@exec_prefix@,$exec_prefix,;t t
18536 s,@prefix@,$prefix,;t t
18537 s,@program_transform_name@,$program_transform_name,;t t
18538 s,@bindir@,$bindir,;t t
18539 s,@sbindir@,$sbindir,;t t
18540 s,@libexecdir@,$libexecdir,;t t
18541 s,@datadir@,$datadir,;t t
18542 s,@sysconfdir@,$sysconfdir,;t t
18543 s,@sharedstatedir@,$sharedstatedir,;t t
18544 s,@localstatedir@,$localstatedir,;t t
18545 s,@libdir@,$libdir,;t t
18546 s,@includedir@,$includedir,;t t
18547 s,@oldincludedir@,$oldincludedir,;t t
18548 s,@infodir@,$infodir,;t t
18549 s,@mandir@,$mandir,;t t
18550 s,@build_alias@,$build_alias,;t t
18551 s,@host_alias@,$host_alias,;t t
18552 s,@target_alias@,$target_alias,;t t
18553 s,@DEFS@,$DEFS,;t t
18554 s,@ECHO_C@,$ECHO_C,;t t
18555 s,@ECHO_N@,$ECHO_N,;t t
18556 s,@ECHO_T@,$ECHO_T,;t t
18557 s,@LIBS@,$LIBS,;t t
18558 s,@build@,$build,;t t
18559 s,@build_cpu@,$build_cpu,;t t
18560 s,@build_vendor@,$build_vendor,;t t
18561 s,@build_os@,$build_os,;t t
18562 s,@host@,$host,;t t
18563 s,@host_cpu@,$host_cpu,;t t
18564 s,@host_vendor@,$host_vendor,;t t
18565 s,@host_os@,$host_os,;t t
18566 s,@CC@,$CC,;t t
18567 s,@CFLAGS@,$CFLAGS,;t t
18568 s,@LDFLAGS@,$LDFLAGS,;t t
18569 s,@CPPFLAGS@,$CPPFLAGS,;t t
18570 s,@ac_ct_CC@,$ac_ct_CC,;t t
18571 s,@EXEEXT@,$EXEEXT,;t t
18572 s,@OBJEXT@,$OBJEXT,;t t
18573 s,@LN_S@,$LN_S,;t t
18574 s,@CPP@,$CPP,;t t
18575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18578 s,@RANLIB@,$RANLIB,;t t
18579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18580 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18581 s,@EGREP@,$EGREP,;t t
18582 s,@LIBSOUND@,$LIBSOUND,;t t
18583 s,@SET_MAKE@,$SET_MAKE,;t t
18584 s,@ALLOCA@,$ALLOCA,;t t
18585 s,@liblockfile@,$liblockfile,;t t
18586 s,@LIBOBJS@,$LIBOBJS,;t t
18587 s,@NEED_SETGID@,$NEED_SETGID,;t t
18588 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18589 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18590 s,@version@,$version,;t t
18591 s,@configuration@,$configuration,;t t
18592 s,@canonical@,$canonical,;t t
18593 s,@srcdir@,$srcdir,;t t
18594 s,@lispdir@,$lispdir,;t t
18595 s,@locallisppath@,$locallisppath,;t t
18596 s,@lisppath@,$lisppath,;t t
18597 s,@x_default_search_path@,$x_default_search_path,;t t
18598 s,@etcdir@,$etcdir,;t t
18599 s,@archlibdir@,$archlibdir,;t t
18600 s,@docdir@,$docdir,;t t
18601 s,@bitmapdir@,$bitmapdir,;t t
18602 s,@gamedir@,$gamedir,;t t
18603 s,@gameuser@,$gameuser,;t t
18604 s,@c_switch_system@,$c_switch_system,;t t
18605 s,@c_switch_machine@,$c_switch_machine,;t t
18606 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18607 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18608 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18609 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18610 s,@machfile@,$machfile,;t t
18611 s,@opsysfile@,$opsysfile,;t t
18612 s,@carbon_appdir@,$carbon_appdir,;t t
18613 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18614 CEOF
18616 _ACEOF
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619 # Split the substitutions into bite-sized pieces for seds with
18620 # small command number limits, like on Digital OSF/1 and HP-UX.
18621 ac_max_sed_lines=48
18622 ac_sed_frag=1 # Number of current file.
18623 ac_beg=1 # First line for current file.
18624 ac_end=$ac_max_sed_lines # Line after last line for current file.
18625 ac_more_lines=:
18626 ac_sed_cmds=
18627 while $ac_more_lines; do
18628 if test $ac_beg -gt 1; then
18629 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18630 else
18631 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18633 if test ! -s $tmp/subs.frag; then
18634 ac_more_lines=false
18635 else
18636 # The purpose of the label and of the branching condition is to
18637 # speed up the sed processing (if there are no `@' at all, there
18638 # is no need to browse any of the substitutions).
18639 # These are the two extra sed commands mentioned above.
18640 (echo ':t
18641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18642 if test -z "$ac_sed_cmds"; then
18643 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18644 else
18645 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18647 ac_sed_frag=`expr $ac_sed_frag + 1`
18648 ac_beg=$ac_end
18649 ac_end=`expr $ac_end + $ac_max_sed_lines`
18651 done
18652 if test -z "$ac_sed_cmds"; then
18653 ac_sed_cmds=cat
18655 fi # test -n "$CONFIG_FILES"
18657 _ACEOF
18658 cat >>$CONFIG_STATUS <<\_ACEOF
18659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18661 case $ac_file in
18662 - | *:- | *:-:* ) # input from stdin
18663 cat >$tmp/stdin
18664 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18666 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18668 * ) ac_file_in=$ac_file.in ;;
18669 esac
18671 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$ac_file" : 'X\(//\)[^/]' \| \
18675 X"$ac_file" : 'X\(//\)$' \| \
18676 X"$ac_file" : 'X\(/\)' \| \
18677 . : '\(.\)' 2>/dev/null ||
18678 echo X"$ac_file" |
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18681 /^X\(\/\/\)$/{ s//\1/; q; }
18682 /^X\(\/\).*/{ s//\1/; q; }
18683 s/.*/./; q'`
18684 { if $as_mkdir_p; then
18685 mkdir -p "$ac_dir"
18686 else
18687 as_dir="$ac_dir"
18688 as_dirs=
18689 while test ! -d "$as_dir"; do
18690 as_dirs="$as_dir $as_dirs"
18691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18693 X"$as_dir" : 'X\(//\)[^/]' \| \
18694 X"$as_dir" : 'X\(//\)$' \| \
18695 X"$as_dir" : 'X\(/\)' \| \
18696 . : '\(.\)' 2>/dev/null ||
18697 echo X"$as_dir" |
18698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18700 /^X\(\/\/\)$/{ s//\1/; q; }
18701 /^X\(\/\).*/{ s//\1/; q; }
18702 s/.*/./; q'`
18703 done
18704 test ! -n "$as_dirs" || mkdir $as_dirs
18705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18707 { (exit 1); exit 1; }; }; }
18709 ac_builddir=.
18711 if test "$ac_dir" != .; then
18712 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18713 # A "../" for each directory in $ac_dir_suffix.
18714 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18715 else
18716 ac_dir_suffix= ac_top_builddir=
18719 case $srcdir in
18720 .) # No --srcdir option. We are building in place.
18721 ac_srcdir=.
18722 if test -z "$ac_top_builddir"; then
18723 ac_top_srcdir=.
18724 else
18725 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18726 fi ;;
18727 [\\/]* | ?:[\\/]* ) # Absolute path.
18728 ac_srcdir=$srcdir$ac_dir_suffix;
18729 ac_top_srcdir=$srcdir ;;
18730 *) # Relative path.
18731 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18732 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18733 esac
18734 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18735 # absolute.
18736 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18737 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18738 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18739 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18742 case $INSTALL in
18743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18745 esac
18747 if test x"$ac_file" != x-; then
18748 { echo "$as_me:$LINENO: creating $ac_file" >&5
18749 echo "$as_me: creating $ac_file" >&6;}
18750 rm -f "$ac_file"
18752 # Let's still pretend it is `configure' which instantiates (i.e., don't
18753 # use $as_me), people would be surprised to read:
18754 # /* config.h. Generated by config.status. */
18755 if test x"$ac_file" = x-; then
18756 configure_input=
18757 else
18758 configure_input="$ac_file. "
18760 configure_input=$configure_input"Generated from `echo $ac_file_in |
18761 sed 's,.*/,,'` by configure."
18763 # First look for the input files in the build tree, otherwise in the
18764 # src tree.
18765 ac_file_inputs=`IFS=:
18766 for f in $ac_file_in; do
18767 case $f in
18768 -) echo $tmp/stdin ;;
18769 [\\/$]*)
18770 # Absolute (can't be DOS-style, as IFS=:)
18771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18772 echo "$as_me: error: cannot find input file: $f" >&2;}
18773 { (exit 1); exit 1; }; }
18774 echo $f;;
18775 *) # Relative
18776 if test -f "$f"; then
18777 # Build tree
18778 echo $f
18779 elif test -f "$srcdir/$f"; then
18780 # Source tree
18781 echo $srcdir/$f
18782 else
18783 # /dev/null tree
18784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18785 echo "$as_me: error: cannot find input file: $f" >&2;}
18786 { (exit 1); exit 1; }; }
18787 fi;;
18788 esac
18789 done` || { (exit 1); exit 1; }
18790 _ACEOF
18791 cat >>$CONFIG_STATUS <<_ACEOF
18792 sed "$ac_vpsub
18793 $extrasub
18794 _ACEOF
18795 cat >>$CONFIG_STATUS <<\_ACEOF
18797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18798 s,@configure_input@,$configure_input,;t t
18799 s,@srcdir@,$ac_srcdir,;t t
18800 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18801 s,@top_srcdir@,$ac_top_srcdir,;t t
18802 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18803 s,@builddir@,$ac_builddir,;t t
18804 s,@abs_builddir@,$ac_abs_builddir,;t t
18805 s,@top_builddir@,$ac_top_builddir,;t t
18806 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18807 s,@INSTALL@,$ac_INSTALL,;t t
18808 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18809 rm -f $tmp/stdin
18810 if test x"$ac_file" != x-; then
18811 mv $tmp/out $ac_file
18812 else
18813 cat $tmp/out
18814 rm -f $tmp/out
18817 done
18818 _ACEOF
18819 cat >>$CONFIG_STATUS <<\_ACEOF
18822 # CONFIG_HEADER section.
18825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18828 # ac_d sets the value in "#define NAME VALUE" lines.
18829 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18830 ac_dB='[ ].*$,\1#\2'
18831 ac_dC=' '
18832 ac_dD=',;t'
18833 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18834 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18835 ac_uB='$,\1#\2define\3'
18836 ac_uC=' '
18837 ac_uD=',;t'
18839 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18841 case $ac_file in
18842 - | *:- | *:-:* ) # input from stdin
18843 cat >$tmp/stdin
18844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18848 * ) ac_file_in=$ac_file.in ;;
18849 esac
18851 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18852 echo "$as_me: creating $ac_file" >&6;}
18854 # First look for the input files in the build tree, otherwise in the
18855 # src tree.
18856 ac_file_inputs=`IFS=:
18857 for f in $ac_file_in; do
18858 case $f in
18859 -) echo $tmp/stdin ;;
18860 [\\/$]*)
18861 # Absolute (can't be DOS-style, as IFS=:)
18862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18863 echo "$as_me: error: cannot find input file: $f" >&2;}
18864 { (exit 1); exit 1; }; }
18865 echo $f;;
18866 *) # Relative
18867 if test -f "$f"; then
18868 # Build tree
18869 echo $f
18870 elif test -f "$srcdir/$f"; then
18871 # Source tree
18872 echo $srcdir/$f
18873 else
18874 # /dev/null tree
18875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18876 echo "$as_me: error: cannot find input file: $f" >&2;}
18877 { (exit 1); exit 1; }; }
18878 fi;;
18879 esac
18880 done` || { (exit 1); exit 1; }
18881 # Remove the trailing spaces.
18882 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18884 _ACEOF
18886 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18887 # `conftest.undefs', that substitutes the proper values into
18888 # config.h.in to produce config.h. The first handles `#define'
18889 # templates, and the second `#undef' templates.
18890 # And first: Protect against being on the right side of a sed subst in
18891 # config.status. Protect against being in an unquoted here document
18892 # in config.status.
18893 rm -f conftest.defines conftest.undefs
18894 # Using a here document instead of a string reduces the quoting nightmare.
18895 # Putting comments in sed scripts is not portable.
18897 # `end' is used to avoid that the second main sed command (meant for
18898 # 0-ary CPP macros) applies to n-ary macro definitions.
18899 # See the Autoconf documentation for `clear'.
18900 cat >confdef2sed.sed <<\_ACEOF
18901 s/[\\&,]/\\&/g
18902 s,[\\$`],\\&,g
18903 t clear
18904 : clear
18905 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18906 t end
18907 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18908 : end
18909 _ACEOF
18910 # If some macros were called several times there might be several times
18911 # the same #defines, which is useless. Nevertheless, we may not want to
18912 # sort them, since we want the *last* AC-DEFINE to be honored.
18913 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18914 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18915 rm -f confdef2sed.sed
18917 # This sed command replaces #undef with comments. This is necessary, for
18918 # example, in the case of _POSIX_SOURCE, which is predefined and required
18919 # on some systems where configure will not decide to define it.
18920 cat >>conftest.undefs <<\_ACEOF
18921 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18922 _ACEOF
18924 # Break up conftest.defines because some shells have a limit on the size
18925 # of here documents, and old seds have small limits too (100 cmds).
18926 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18927 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18928 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18929 echo ' :' >>$CONFIG_STATUS
18930 rm -f conftest.tail
18931 while grep . conftest.defines >/dev/null
18933 # Write a limited-size here document to $tmp/defines.sed.
18934 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18935 # Speed up: don't consider the non `#define' lines.
18936 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18937 # Work around the forget-to-reset-the-flag bug.
18938 echo 't clr' >>$CONFIG_STATUS
18939 echo ': clr' >>$CONFIG_STATUS
18940 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18941 echo 'CEOF
18942 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18943 rm -f $tmp/in
18944 mv $tmp/out $tmp/in
18945 ' >>$CONFIG_STATUS
18946 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18947 rm -f conftest.defines
18948 mv conftest.tail conftest.defines
18949 done
18950 rm -f conftest.defines
18951 echo ' fi # grep' >>$CONFIG_STATUS
18952 echo >>$CONFIG_STATUS
18954 # Break up conftest.undefs because some shells have a limit on the size
18955 # of here documents, and old seds have small limits too (100 cmds).
18956 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18957 rm -f conftest.tail
18958 while grep . conftest.undefs >/dev/null
18960 # Write a limited-size here document to $tmp/undefs.sed.
18961 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18962 # Speed up: don't consider the non `#undef'
18963 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18964 # Work around the forget-to-reset-the-flag bug.
18965 echo 't clr' >>$CONFIG_STATUS
18966 echo ': clr' >>$CONFIG_STATUS
18967 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18968 echo 'CEOF
18969 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18970 rm -f $tmp/in
18971 mv $tmp/out $tmp/in
18972 ' >>$CONFIG_STATUS
18973 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18974 rm -f conftest.undefs
18975 mv conftest.tail conftest.undefs
18976 done
18977 rm -f conftest.undefs
18979 cat >>$CONFIG_STATUS <<\_ACEOF
18980 # Let's still pretend it is `configure' which instantiates (i.e., don't
18981 # use $as_me), people would be surprised to read:
18982 # /* config.h. Generated by config.status. */
18983 if test x"$ac_file" = x-; then
18984 echo "/* Generated by configure. */" >$tmp/config.h
18985 else
18986 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18988 cat $tmp/in >>$tmp/config.h
18989 rm -f $tmp/in
18990 if test x"$ac_file" != x-; then
18991 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18993 echo "$as_me: $ac_file is unchanged" >&6;}
18994 else
18995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18997 X"$ac_file" : 'X\(//\)[^/]' \| \
18998 X"$ac_file" : 'X\(//\)$' \| \
18999 X"$ac_file" : 'X\(/\)' \| \
19000 . : '\(.\)' 2>/dev/null ||
19001 echo X"$ac_file" |
19002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19004 /^X\(\/\/\)$/{ s//\1/; q; }
19005 /^X\(\/\).*/{ s//\1/; q; }
19006 s/.*/./; q'`
19007 { if $as_mkdir_p; then
19008 mkdir -p "$ac_dir"
19009 else
19010 as_dir="$ac_dir"
19011 as_dirs=
19012 while test ! -d "$as_dir"; do
19013 as_dirs="$as_dir $as_dirs"
19014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19016 X"$as_dir" : 'X\(//\)[^/]' \| \
19017 X"$as_dir" : 'X\(//\)$' \| \
19018 X"$as_dir" : 'X\(/\)' \| \
19019 . : '\(.\)' 2>/dev/null ||
19020 echo X"$as_dir" |
19021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19023 /^X\(\/\/\)$/{ s//\1/; q; }
19024 /^X\(\/\).*/{ s//\1/; q; }
19025 s/.*/./; q'`
19026 done
19027 test ! -n "$as_dirs" || mkdir $as_dirs
19028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19030 { (exit 1); exit 1; }; }; }
19032 rm -f $ac_file
19033 mv $tmp/config.h $ac_file
19035 else
19036 cat $tmp/config.h
19037 rm -f $tmp/config.h
19039 done
19040 _ACEOF
19041 cat >>$CONFIG_STATUS <<\_ACEOF
19044 # CONFIG_COMMANDS section.
19046 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19047 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19048 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19049 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19050 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$ac_dest" : 'X\(//\)[^/]' \| \
19052 X"$ac_dest" : 'X\(//\)$' \| \
19053 X"$ac_dest" : 'X\(/\)' \| \
19054 . : '\(.\)' 2>/dev/null ||
19055 echo X"$ac_dest" |
19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19058 /^X\(\/\/\)$/{ s//\1/; q; }
19059 /^X\(\/\).*/{ s//\1/; q; }
19060 s/.*/./; q'`
19061 ac_builddir=.
19063 if test "$ac_dir" != .; then
19064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19065 # A "../" for each directory in $ac_dir_suffix.
19066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19067 else
19068 ac_dir_suffix= ac_top_builddir=
19071 case $srcdir in
19072 .) # No --srcdir option. We are building in place.
19073 ac_srcdir=.
19074 if test -z "$ac_top_builddir"; then
19075 ac_top_srcdir=.
19076 else
19077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19078 fi ;;
19079 [\\/]* | ?:[\\/]* ) # Absolute path.
19080 ac_srcdir=$srcdir$ac_dir_suffix;
19081 ac_top_srcdir=$srcdir ;;
19082 *) # Relative path.
19083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19085 esac
19086 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19087 # absolute.
19088 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19089 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19090 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19091 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19094 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19095 echo "$as_me: executing $ac_dest commands" >&6;}
19096 case $ac_dest in
19097 default )
19099 ### Make the necessary directories, if they don't exist.
19100 for dir in etc lisp ; do
19101 test -d ${dir} || mkdir ${dir}
19102 done
19104 # Build src/Makefile from ${srcdir}/src/Makefile.c
19105 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19106 # This must be done after src/config.h is built, since we rely on that file.
19108 # Now get this: Some word that is part of the ${srcdir} directory name
19109 # or the ${configuration} value might, just might, happen to be an
19110 # identifier like `sun4' or `i386' or something, and be predefined by
19111 # the C preprocessor to some helpful value like 1, or maybe the empty
19112 # string. Needless to say consequent macro substitutions are less
19113 # than conducive to the makefile finding the correct directory.
19114 undefs="`echo $top_srcdir $configuration $canonical |
19115 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19116 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19119 echo creating src/epaths.h
19120 ${MAKE-make} epaths-force
19122 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19123 # `..' to `. .' unless invoked with -traditional
19125 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19126 CPPFLAGS="$CPPFLAGS -traditional"
19129 echo creating lib-src/Makefile
19130 ( cd lib-src
19131 rm -f junk.c junk1.c junk2.c
19132 sed -e '/start of cpp stuff/q' \
19133 < Makefile.c > junk1.c
19134 sed -e '1,/start of cpp stuff/d'\
19135 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19136 < Makefile.c > junk.c
19137 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19138 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19139 cat junk1.c junk2.c > Makefile.new
19140 rm -f junk.c junk1.c junk2.c
19141 chmod 444 Makefile.new
19142 mv -f Makefile.new Makefile
19145 echo creating src/Makefile
19146 ( cd src
19147 rm -f junk.c junk1.c junk2.c
19148 sed -e '/start of cpp stuff/q' \
19149 < Makefile.c > junk1.c
19150 sed -e '1,/start of cpp stuff/d'\
19151 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19152 < Makefile.c > junk.c
19153 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19154 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19155 cat junk1.c junk2.c > Makefile.new
19156 rm -f junk.c junk1.c junk2.c
19157 chmod 444 Makefile.new
19158 mv -f Makefile.new Makefile
19161 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19162 echo creating src/.gdbinit
19163 echo source $srcdir/src/.gdbinit > src/.gdbinit
19166 # This is how we know whether to re-run configure in certain cases.
19167 touch src/config.stamp
19170 esac
19171 done
19172 _ACEOF
19174 cat >>$CONFIG_STATUS <<\_ACEOF
19176 { (exit 0); exit 0; }
19177 _ACEOF
19178 chmod +x $CONFIG_STATUS
19179 ac_clean_files=$ac_clean_files_save
19182 # configure is writing to config.log, and then calls config.status.
19183 # config.status does its own redirection, appending to config.log.
19184 # Unfortunately, on DOS this fails, as config.log is still kept open
19185 # by configure, so config.status won't be able to write to it; its
19186 # output is simply discarded. So we exec the FD to /dev/null,
19187 # effectively closing config.log, so it can be properly (re)opened and
19188 # appended to by config.status. When coming back to configure, we
19189 # need to make the FD available again.
19190 if test "$no_create" != yes; then
19191 ac_cs_success=:
19192 ac_config_status_args=
19193 test "$silent" = yes &&
19194 ac_config_status_args="$ac_config_status_args --quiet"
19195 exec 5>/dev/null
19196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19197 exec 5>>config.log
19198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19199 # would make configure fail if this is the last instruction.
19200 $ac_cs_success || { (exit 1); exit 1; }