*** empty log message ***
[emacs.git] / configure
blob177064de6454451980842cb6018ec486305ebfca
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
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 YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile 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 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-largefile omit support for large files
853 Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-gcc don't use GCC to compile Emacs if GCC is found
857 --without-pop don't support POP mail retrieval with movemail
858 --with-kerberos support Kerberos-authenticated POP
859 --with-kerberos5 support Kerberos version 5 authenticated POP
860 --with-hesiod support Hesiod to get the POP server host
861 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
862 --with-xpm use -lXpm for displaying XPM images
863 --with-jpeg use -ljpeg for displaying JPEG images
864 --with-tiff use -ltiff for displaying TIFF images
865 --with-gif use -lungif for displaying GIF images
866 --with-png use -lpng for displaying PNG images
867 --without-toolkit-scroll-bars
868 don't use Motif or Xaw3d scroll bars
869 --without-xim don't use X11 XIM
870 --with-x use the X Window System
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CPP C preprocessor
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
884 _ACEOF
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899 ac_dir_suffix= ac_top_builddir=
902 case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
923 case "$ac_dir" in
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
941 case $ac_srcdir in
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 esac;;
955 esac
957 cd $ac_dir
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
960 echo
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
963 echo
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
967 echo
968 $ac_configure --help
969 else
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 cd $ac_popdir
973 done
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978 cat <<\_ACEOF
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
983 _ACEOF
984 exit 0
986 exec 5>config.log
987 cat >&5 <<_ACEOF
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
991 It was created by $as_me, which was
992 generated by GNU Autoconf 2.59. Invocation command line was
994 $ $0 $@
996 _ACEOF
998 cat <<_ASUNAME
999 ## --------- ##
1000 ## Platform. ##
1001 ## --------- ##
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 _ASUNAME
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 for as_dir in $PATH
1025 IFS=$as_save_IFS
1026 test -z "$as_dir" && as_dir=.
1027 echo "PATH: $as_dir"
1028 done
1030 } >&5
1032 cat >&5 <<_ACEOF
1035 ## ----------- ##
1036 ## Core tests. ##
1037 ## ----------- ##
1039 _ACEOF
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_configure_args=
1048 ac_configure_args0=
1049 ac_configure_args1=
1050 ac_sep=
1051 ac_must_keep_next=false
1052 for ac_pass in 1 2
1054 for ac_arg
1056 case $ac_arg in
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 continue ;;
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 esac
1064 case $ac_pass in
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068 if test $ac_must_keep_next = true; then
1069 ac_must_keep_next=false # Got value, back to normal.
1070 else
1071 case $ac_arg in
1072 *=* | --config-cache | -C | -disable-* | --disable-* \
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075 | -with-* | --with-* | -without-* | --without-* | --x)
1076 case "$ac_configure_args0 " in
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 esac
1080 -* ) ac_must_keep_next=true ;;
1081 esac
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084 # Get rid of the leading space.
1085 ac_sep=" "
1087 esac
1088 done
1089 done
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log. We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close' the trap.
1098 trap 'exit_status=$?
1099 # Save into config.log some information that might help in debugging.
1101 echo
1103 cat <<\_ASBOX
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1107 _ASBOX
1108 echo
1109 # The following way of writing the cache mishandles newlines in values,
1111 (set) 2>&1 |
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 *ac_space=\ *)
1114 sed -n \
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 sed -n \
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 esac;
1124 echo
1126 cat <<\_ASBOX
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_vars
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1139 if test -n "$ac_subst_files"; then
1140 cat <<\_ASBOX
1141 ## ------------- ##
1142 ## Output files. ##
1143 ## ------------- ##
1144 _ASBOX
1145 echo
1146 for ac_var in $ac_subst_files
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1154 if test -s confdefs.h; then
1155 cat <<\_ASBOX
1156 ## ----------- ##
1157 ## confdefs.h. ##
1158 ## ----------- ##
1159 _ASBOX
1160 echo
1161 sed "/^$/d" confdefs.h | sort
1162 echo
1164 test "$ac_signal" != 0 &&
1165 echo "$as_me: caught signal $ac_signal"
1166 echo "$as_me: exit $exit_status"
1167 } >&5
1168 rm -f core *.core &&
1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 exit $exit_status
1172 for ac_signal in 1 2 13 15; do
1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 done
1175 ac_signal=0
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 echo >confdefs.h
1182 # Predefined preprocessor variables.
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 _ACEOF
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212 if test "x$prefix" != xNONE; then
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 else
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 for ac_site_file in $CONFIG_SITE; do
1219 if test -r "$ac_site_file"; then
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222 sed 's/^/| /' "$ac_site_file" >&5
1223 . "$ac_site_file"
1225 done
1227 if test -r "$cache_file"; then
1228 # Some versions of bash will fail to source /dev/null (special
1229 # files actually), so we avoid doing that.
1230 if test -f "$cache_file"; then
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1233 case $cache_file in
1234 [\\/]* | ?:[\\/]* ) . $cache_file;;
1235 *) . ./$cache_file;;
1236 esac
1238 else
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1241 >$cache_file
1244 # Check that the precious variables saved in the cache have kept the same
1245 # value.
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250 eval ac_new_set=\$ac_env_${ac_var}_set
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252 eval ac_new_val="\$ac_env_${ac_var}_value"
1253 case $ac_old_set,$ac_new_set in
1254 set,)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,set)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,);;
1264 if test "x$ac_old_val" != "x$ac_new_val"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268 echo "$as_me: former value: $ac_old_val" >&2;}
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270 echo "$as_me: current value: $ac_new_val" >&2;}
1271 ac_cache_corrupted=:
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292 { (exit 1); exit 1; }; }
1295 ac_ext=c
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1322 lispdir='${datadir}/emacs/${version}/lisp'
1323 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1324 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1325 lisppath='${locallisppath}:${lispdir}'
1326 etcdir='${datadir}/emacs/${version}/etc'
1327 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1328 docdir='${datadir}/emacs/${version}/etc'
1331 # Check whether --with-gcc or --without-gcc was given.
1332 if test "${with_gcc+set}" = set; then
1333 withval="$with_gcc"
1337 # Check whether --with-pop or --without-pop was given.
1338 if test "${with_pop+set}" = set; then
1339 withval="$with_pop"
1340 if test "$withval" = yes; then
1341 cat >>confdefs.h <<\_ACEOF
1342 #define MAIL_USE_POP 1
1343 _ACEOF
1345 else :
1347 else
1348 cat >>confdefs.h <<\_ACEOF
1349 #define MAIL_USE_POP 1
1350 _ACEOF
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval="$with_kerberos"
1357 cat >>confdefs.h <<\_ACEOF
1358 #define KERBEROS 1
1359 _ACEOF
1363 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1364 if test "${with_kerberos5+set}" = set; then
1365 withval="$with_kerberos5"
1366 if test "${with_kerberos5+set}" = set; then
1367 if test "${with_kerberos+set}" != set; then
1368 with_kerberos=yes
1369 cat >>confdefs.h <<\_ACEOF
1370 #define KERBEROS 1
1371 _ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384 cat >>confdefs.h <<\_ACEOF
1385 #define HESIOD 1
1386 _ACEOF
1390 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1391 if test "${with_x_toolkit+set}" = set; then
1392 withval="$with_x_toolkit"
1393 case "${withval}" in
1394 y | ye | yes ) val=athena ;;
1395 n | no ) val=no ;;
1396 l | lu | luc | luci | lucid ) val=lucid ;;
1397 a | at | ath | athe | athen | athena ) val=athena ;;
1398 m | mo | mot | moti | motif ) val=motif ;;
1400 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1401 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1402 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1403 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1404 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1405 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1406 { (exit 1); exit 1; }; }
1408 esac
1409 with_x_toolkit=$val
1413 # Check whether --with-xpm or --without-xpm was given.
1414 if test "${with_xpm+set}" = set; then
1415 withval="$with_xpm"
1419 # Check whether --with-jpeg or --without-jpeg was given.
1420 if test "${with_jpeg+set}" = set; then
1421 withval="$with_jpeg"
1425 # Check whether --with-tiff or --without-tiff was given.
1426 if test "${with_tiff+set}" = set; then
1427 withval="$with_tiff"
1431 # Check whether --with-gif or --without-gif was given.
1432 if test "${with_gif+set}" = set; then
1433 withval="$with_gif"
1437 # Check whether --with-png or --without-png was given.
1438 if test "${with_png+set}" = set; then
1439 withval="$with_png"
1443 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1444 if test "${with_toolkit_scroll_bars+set}" = set; then
1445 withval="$with_toolkit_scroll_bars"
1449 # Check whether --with-xim or --without-xim was given.
1450 if test "${with_xim+set}" = set; then
1451 withval="$with_xim"
1455 #### Make srcdir absolute, if it isn't already. It's important to
1456 #### avoid running the path through pwd unnecessarily, since pwd can
1457 #### give you automounter prefixes, which can go away. We do all this
1458 #### so Emacs can find its files when run uninstalled.
1459 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1460 unset CDPATH
1461 case "${srcdir}" in
1462 /* ) ;;
1464 ## We may be able to use the $PWD environment variable to make this
1465 ## absolute. But sometimes PWD is inaccurate.
1466 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1467 then
1468 srcdir="$PWD"
1469 else
1470 srcdir="`(cd ${srcdir}; pwd)`"
1473 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1474 esac
1476 #### Check if the source directory already has a configured system in it.
1477 if test `pwd` != `(cd ${srcdir} && pwd)` \
1478 && test -f "${srcdir}/src/config.h" ; then
1479 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1480 as a build directory right now; it has been configured in its own
1481 right. To configure in another directory as well, you MUST
1482 use GNU make. If you do not have GNU make, then you must
1483 now do \`make distclean' in ${srcdir},
1484 and then run $0 again." >&5
1485 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1486 as a build directory right now; it has been configured in its own
1487 right. To configure in another directory as well, you MUST
1488 use GNU make. If you do not have GNU make, then you must
1489 now do \`make distclean' in ${srcdir},
1490 and then run $0 again." >&2;}
1492 extrasub='/^VPATH[ ]*=/c\
1493 vpath %.c $(srcdir)\
1494 vpath %.h $(srcdir)\
1495 vpath %.y $(srcdir)\
1496 vpath %.l $(srcdir)\
1497 vpath %.s $(srcdir)\
1498 vpath %.in $(srcdir)\
1499 vpath %.texi $(srcdir)'
1502 #### Given the configuration name, set machfile and opsysfile to the
1503 #### names of the m/*.h and s/*.h files we should use.
1505 ### Canonicalize the configuration name.
1507 ac_aux_dir=
1508 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1509 if test -f $ac_dir/install-sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install-sh -c"
1512 break
1513 elif test -f $ac_dir/install.sh; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/install.sh -c"
1516 break
1517 elif test -f $ac_dir/shtool; then
1518 ac_aux_dir=$ac_dir
1519 ac_install_sh="$ac_aux_dir/shtool install -c"
1520 break
1522 done
1523 if test -z "$ac_aux_dir"; then
1524 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1525 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1526 { (exit 1); exit 1; }; }
1528 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1529 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1530 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532 # Make sure we can run config.sub.
1533 $ac_config_sub sun4 >/dev/null 2>&1 ||
1534 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1535 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1536 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: checking build system type" >&5
1539 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1540 if test "${ac_cv_build+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 ac_cv_build_alias=$build_alias
1544 test -z "$ac_cv_build_alias" &&
1545 ac_cv_build_alias=`$ac_config_guess`
1546 test -z "$ac_cv_build_alias" &&
1547 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1548 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1549 { (exit 1); exit 1; }; }
1550 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1552 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1557 echo "${ECHO_T}$ac_cv_build" >&6
1558 build=$ac_cv_build
1559 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$as_me:$LINENO: checking host system type" >&5
1565 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1566 if test "${ac_cv_host+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 ac_cv_host_alias=$host_alias
1570 test -z "$ac_cv_host_alias" &&
1571 ac_cv_host_alias=$ac_cv_build_alias
1572 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1579 echo "${ECHO_T}$ac_cv_host" >&6
1580 host=$ac_cv_host
1581 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 canonical=$host
1587 configuration=$host_alias
1590 ### If you add support for a new configuration, add code to this
1591 ### switch statement to recognize your configuration name and select
1592 ### the appropriate operating system and machine description files.
1594 ### You would hope that you could choose an m/*.h file pretty much
1595 ### based on the machine portion of the configuration name, and an s-
1596 ### file based on the operating system portion. However, it turns out
1597 ### that each m/*.h file is pretty manufacturer-specific - for
1598 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1599 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1600 ### machines. So we basically have to have a special case for each
1601 ### configuration name.
1603 ### As far as handling version numbers on operating systems is
1604 ### concerned, make sure things will fail in a fixable way. If
1605 ### /etc/MACHINES doesn't say anything about version numbers, be
1606 ### prepared to handle anything reasonably. If version numbers
1607 ### matter, be sure /etc/MACHINES says something about it.
1609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1610 ### "System V Release 4"; he writes, "The old convention encouraged
1611 ### confusion between `system' and `release' levels'."
1613 machine='' opsys='' unported=no
1614 case "${canonical}" in
1616 ## NetBSD ports
1617 *-*-netbsd* )
1618 opsys=netbsd
1619 case "${canonical}" in
1620 alpha*-*-netbsd*) machine=alpha ;;
1621 i[3456]86-*-netbsd*) machine=intel386 ;;
1622 m68k-*-netbsd*)
1623 # This is somewhat bogus.
1624 machine=hp9000s300 ;;
1625 powerpc-apple-netbsd*) machine=macppc ;;
1626 mips-*-netbsd*) machine=pmax ;;
1627 mipsel-*-netbsd*) machine=pmax ;;
1628 ns32k-*-netbsd*) machine=ns32000 ;;
1629 powerpc-*-netbsd*) machine=macppc ;;
1630 sparc*-*-netbsd*) machine=sparc ;;
1631 vax-*-netbsd*) machine=vax ;;
1632 arm-*-netbsd*) machine=arm ;;
1633 esac
1636 ## OpenBSD ports
1637 *-*-openbsd* )
1638 opsys=openbsd
1639 case "${canonical}" in
1640 alpha*-*-openbsd*) machine=alpha ;;
1641 i386-*-openbsd*) machine=intel386 ;;
1642 m68k-*-openbsd*) machine=hp9000s300 ;;
1643 mipsel-*-openbsd*) machine=pmax ;;
1644 ns32k-*-openbsd*) machine=ns32000 ;;
1645 sparc-*-openbsd*) machine=sparc ;;
1646 vax-*-openbsd*) machine=vax ;;
1647 esac
1650 ## Acorn RISCiX:
1651 arm-acorn-riscix1.1* )
1652 machine=acorn opsys=riscix1-1
1654 arm-acorn-riscix1.2* | arm-acorn-riscix )
1655 ## This name is riscix12 instead of riscix1.2
1656 ## to avoid a file name conflict on MSDOS.
1657 machine=acorn opsys=riscix12
1660 ## BSDI ports
1661 *-*-bsdi* )
1662 opsys=bsdi
1663 case "${canonical}" in
1664 i[345]86-*-bsdi*) machine=intel386 ;;
1665 sparc-*-bsdi*) machine=sparc ;;
1666 powerpc-*-bsdi*) machine=macppc ;;
1667 esac
1668 case "${canonical}" in
1669 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1670 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1671 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1672 *-*-bsdi3* ) opsys=bsdos3 ;;
1673 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1674 esac
1677 ## Alliant machines
1678 ## Strictly speaking, we need the version of the alliant operating
1679 ## system to choose the right machine file, but currently the
1680 ## configuration name doesn't tell us enough to choose the right
1681 ## one; we need to give alliants their own operating system name to
1682 ## do this right. When someone cares, they can help us.
1683 fx80-alliant-* )
1684 machine=alliant4 opsys=bsd4-2
1686 i860-alliant-* )
1687 machine=alliant-2800 opsys=bsd4-3
1690 ## Alpha (DEC) machines.
1691 alpha*-dec-osf* )
1692 machine=alpha opsys=osf1
1693 # This is needed to find X11R6.1 libraries for certain tests.
1694 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1695 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1696 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1697 # due to non-traditional preprocessing with the current compiler
1698 # defaults. OSF 4 can also have that compiler version, and there
1699 # seems always to have been a usable /usr/bin/cpp.
1700 NON_GNU_CPP=/usr/bin/cpp
1701 case "${canonical}" in
1702 alpha*-dec-osf[5-9]*)
1703 opsys=osf5-0 ;;
1704 esac
1707 alpha*-*-linux-gnu* )
1708 machine=alpha opsys=gnu-linux
1711 arm*-*-linux-gnu* )
1712 machine=arm opsys=gnu-linux
1715 ppc-*-linux | \
1716 powerpc-*-linux* )
1717 machine=macppc opsys=gnu-linux
1720 ## Altos 3068
1721 m68*-altos-sysv* )
1722 machine=altos opsys=usg5-2
1725 ## Amdahl UTS
1726 580-amdahl-sysv* )
1727 machine=amdahl opsys=usg5-2-2
1730 ## Apollo, Domain/OS
1731 m68*-apollo-* )
1732 machine=apollo opsys=bsd4-3
1735 ## AT&T 3b2, 3b5, 3b15, 3b20
1736 we32k-att-sysv* )
1737 machine=att3b opsys=usg5-2-2
1740 ## AT&T 3b1 - The Mighty Unix PC!
1741 m68*-att-sysv* )
1742 machine=7300 opsys=usg5-2-2
1745 ## Bull dpx20
1746 rs6000-bull-bosx* )
1747 machine=ibmrs6000 opsys=aix3-2
1750 ## Bull dpx2
1751 m68*-bull-sysv3* )
1752 machine=dpx2 opsys=usg5-3
1755 ## Bull sps7
1756 m68*-bull-sysv2* )
1757 machine=sps7 opsys=usg5-2
1760 ## CCI 5/32, 6/32 -- see "Tahoe".
1762 ## Celerity
1763 ## I don't know what configuration name to use for this; config.sub
1764 ## doesn't seem to know anything about it. Hey, Celerity users, get
1765 ## in touch with us!
1766 celerity-celerity-bsd* )
1767 machine=celerity opsys=bsd4-2
1770 ## Clipper
1771 ## What operating systems does this chip run that Emacs has been
1772 ## tested on?
1773 clipper-* )
1774 machine=clipper
1775 ## We'll use the catch-all code at the bottom to guess the
1776 ## operating system.
1779 ## Convex
1780 *-convex-bsd* | *-convex-convexos* )
1781 machine=convex opsys=bsd4-3
1782 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1783 NON_GNU_CPP="cc -E -P"
1786 ## Cubix QBx/386
1787 i[3456]86-cubix-sysv* )
1788 machine=intel386 opsys=usg5-3
1791 ## Cydra 5
1792 cydra*-cydrome-sysv* )
1793 machine=cydra5 opsys=usg5-3
1796 ## Data General AViiON Machines
1797 ## DG changed naming conventions with the release of 5.4.4.10, they
1798 ## dropped the initial 5.4 but left the intervening R. Because of the
1799 ## R this shouldn't conflict with older versions of the OS (which I
1800 ## think were named like dgux4.*). In addition, DG new AViiONs series
1801 ## uses either Motorola M88k or Intel Pentium CPUs.
1802 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1803 machine=aviion opsys=dgux4
1805 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1806 ## This name is dgux5-4-3 instead of dgux5-4r3
1807 ## to avoid a file name conflict on MSDOS.
1808 machine=aviion opsys=dgux5-4-3
1810 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1811 machine=aviion opsys=dgux5-4r2
1813 m88k-dg-dgux* )
1814 machine=aviion opsys=dgux
1817 ## Data General AViiON Intel (x86) Machines
1818 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1819 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1820 i[345]86-dg-dguxR4* )
1821 machine=aviion-intel opsys=dgux4
1824 ## DECstations
1825 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1826 machine=pmax opsys=bsd4-2
1828 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1829 machine=pmax opsys=bsd4-3
1831 mips-dec-ultrix* )
1832 machine=pmax opsys=ultrix4-3
1834 mips-dec-osf* )
1835 machine=pmax opsys=osf1
1837 mips-dec-mach_bsd4.3* )
1838 machine=pmax opsys=mach-bsd4-3
1841 ## Motorola Delta machines
1842 m68k-motorola-sysv* | m68000-motorola-sysv* )
1843 machine=delta opsys=usg5-3
1844 if test -z "`type gnucc | grep 'not found'`"
1845 then
1846 if test -s /etc/167config
1847 then CC="gnucc -m68040"
1848 else CC="gnucc -m68881"
1850 else
1851 if test -z "`type gcc | grep 'not found'`"
1852 then CC=gcc
1853 else CC=cc
1857 m88k-motorola-sysv4* )
1858 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1859 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1860 # I hope there are not other 4.0 versions for this machine
1861 # which really need usg5-4 instead.
1862 machine=delta88k opsys=usg5-4-2
1864 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1865 machine=delta88k opsys=usg5-3
1868 ## Dual machines
1869 m68*-dual-sysv* )
1870 machine=dual opsys=usg5-2
1872 m68*-dual-uniplus* )
1873 machine=dual opsys=unipl5-2
1876 ## Elxsi 6400
1877 elxsi-elxsi-sysv* )
1878 machine=elxsi opsys=usg5-2
1881 ## Encore machines
1882 ns16k-encore-bsd* )
1883 machine=ns16000 opsys=umax
1886 ## The GEC 63 - apparently, this port isn't really finished yet.
1887 # I'm sure we finished off the last of the machines, though. -- fx
1889 ## Gould Power Node and NP1
1890 pn-gould-bsd4.2* )
1891 machine=gould opsys=bsd4-2
1893 pn-gould-bsd4.3* )
1894 machine=gould opsys=bsd4-3
1896 np1-gould-bsd* )
1897 machine=gould-np1 opsys=bsd4-3
1900 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1901 ## as far as Emacs is concerned).
1902 m88k-harris-cxux* )
1903 # Build needs to be different on 7.0 and later releases
1904 case "`uname -r`" in
1905 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1906 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1907 esac
1908 NON_GNU_CPP="/lib/cpp"
1910 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1911 m68k-harris-cxux* )
1912 machine=nh3000 opsys=cxux
1914 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1915 powerpc-harris-powerunix )
1916 machine=nh6000 opsys=powerunix
1917 NON_GNU_CPP="cc -Xo -E -P"
1919 ## SR2001/SR2201 running HI-UX/MPP
1920 hppa1.1-hitachi-hiuxmpp* )
1921 machine=sr2k opsys=hiuxmpp
1923 hppa1.1-hitachi-hiuxwe2* )
1924 machine=sr2k opsys=hiuxwe2
1926 ## Honeywell XPS100
1927 xps*-honeywell-sysv* )
1928 machine=xps100 opsys=usg5-2
1931 ## HP 9000 series 200 or 300
1932 m68*-hp-bsd* )
1933 machine=hp9000s300 opsys=bsd4-3
1935 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1936 m68*-hp-hpux* )
1937 case "`uname -r`" in
1938 ## Someone's system reports A.B8.05 for this.
1939 ## I wonder what other possibilities there are.
1940 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1941 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1942 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1943 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1944 *) machine=hp9000s300 opsys=hpux ;;
1945 esac
1948 ## HP 9000 series 700 and 800, running HP/UX
1949 hppa*-hp-hpux7* )
1950 machine=hp800 opsys=hpux
1952 hppa*-hp-hpux8* )
1953 machine=hp800 opsys=hpux8
1955 hppa*-hp-hpux9shr* )
1956 machine=hp800 opsys=hpux9shr
1958 hppa*-hp-hpux9* )
1959 machine=hp800 opsys=hpux9
1962 hppa*-hp-hpux10* )
1963 machine=hp800 opsys=hpux10
1965 hppa*-hp-hpux1[1-9]* )
1966 machine=hp800 opsys=hpux11
1969 ## HP 9000 series 700 and 800, running HP/UX
1970 hppa*-hp-hpux* )
1971 ## Cross-compilation? Nah!
1972 case "`uname -r`" in
1973 ## Someone's system reports A.B8.05 for this.
1974 ## I wonder what other possibilities there are.
1975 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1976 *.08.* ) machine=hp800 opsys=hpux8 ;;
1977 *.09.* ) machine=hp800 opsys=hpux9 ;;
1978 *) machine=hp800 opsys=hpux10 ;;
1979 esac
1981 hppa*-*-nextstep* )
1982 machine=hp800 opsys=nextstep
1985 ## Orion machines
1986 orion-orion-bsd* )
1987 machine=orion opsys=bsd4-2
1989 clipper-orion-bsd* )
1990 machine=orion105 opsys=bsd4-2
1993 ## IBM machines
1994 i[3456]86-ibm-aix1.1* )
1995 machine=ibmps2-aix opsys=usg5-2-2
1997 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1998 machine=ibmps2-aix opsys=usg5-3
2000 i370-ibm-aix*)
2001 machine=ibm370aix opsys=usg5-3
2003 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2004 machine=ibmrs6000 opsys=aix3-1
2006 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2007 machine=ibmrs6000 opsys=aix3-2-5
2009 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2010 machine=ibmrs6000 opsys=aix4-1
2012 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2013 machine=ibmrs6000 opsys=aix4-2
2015 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2016 machine=ibmrs6000 opsys=aix4-2
2018 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2019 machine=ibmrs6000 opsys=aix4
2021 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2022 machine=ibmrs6000 opsys=aix4-1
2024 rs6000-ibm-aix* | powerpc-ibm-aix* )
2025 machine=ibmrs6000 opsys=aix3-2
2027 romp-ibm-bsd4.3* )
2028 machine=ibmrt opsys=bsd4-3
2030 romp-ibm-bsd4.2* )
2031 machine=ibmrt opsys=bsd4-2
2033 romp-ibm-aos4.3* )
2034 machine=ibmrt opsys=bsd4-3
2036 romp-ibm-aos4.2* )
2037 machine=ibmrt opsys=bsd4-2
2039 romp-ibm-aos* )
2040 machine=ibmrt opsys=bsd4-3
2042 romp-ibm-bsd* )
2043 machine=ibmrt opsys=bsd4-3
2045 romp-ibm-aix* )
2046 machine=ibmrt-aix opsys=usg5-2-2
2049 ## Integrated Solutions `Optimum V'
2050 m68*-isi-bsd4.2* )
2051 machine=isi-ov opsys=bsd4-2
2053 m68*-isi-bsd4.3* )
2054 machine=isi-ov opsys=bsd4-3
2057 ## Intel 386 machines where we do care about the manufacturer
2058 i[3456]86-intsys-sysv* )
2059 machine=is386 opsys=usg5-2-2
2062 ## Prime EXL
2063 i[3456]86-prime-sysv* )
2064 machine=i386 opsys=usg5-3
2067 ## Sequent Symmetry running Dynix
2068 i[3456]86-sequent-bsd* )
2069 machine=symmetry opsys=bsd4-3
2072 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2073 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2074 machine=sequent-ptx opsys=ptx4
2075 NON_GNU_CPP=/lib/cpp
2078 ## Sequent Symmetry running DYNIX/ptx
2079 ## Use the old cpp rather than the newer ANSI one.
2080 i[3456]86-sequent-ptx* )
2081 machine=sequent-ptx opsys=ptx
2082 NON_GNU_CPP="/lib/cpp"
2085 ## ncr machine running svr4.3.
2086 i[3456]86-ncr-sysv4.3 )
2087 machine=ncr386 opsys=usg5-4-3
2090 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2091 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2092 i[3456]86-ncr-sysv* )
2093 machine=ncr386 opsys=usg5-4-2
2096 ## Intel Paragon OSF/1
2097 i860-intel-osf1* )
2098 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2101 ## Intel 860
2102 i860-*-sysv4* )
2103 machine=i860 opsys=usg5-4
2104 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2105 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2108 ## Macintosh PowerPC
2109 powerpc*-*-linux-gnu* )
2110 machine=macppc opsys=gnu-linux
2113 ## Masscomp machines
2114 m68*-masscomp-rtu* )
2115 machine=masscomp opsys=rtu
2118 ## Megatest machines
2119 m68*-megatest-bsd* )
2120 machine=mega68 opsys=bsd4-2
2123 ## Workstations sold by MIPS
2124 ## This is not necessarily all workstations using the MIPS processor -
2125 ## Irises are produced by SGI, and DECstations by DEC.
2127 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2128 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2129 ## it gives for choosing between the alternatives seems to be "Use
2130 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2131 ## the BSD world." I'll assume that these are instructions for
2132 ## handling two odd situations, and that every other situation
2133 ## should use mips.h and usg5-2-2, they being listed first.
2134 mips-mips-usg* )
2135 machine=mips4
2136 ## Fall through to the general code at the bottom to decide on the OS.
2138 mips-mips-riscos4* )
2139 machine=mips4 opsys=bsd4-3
2140 NON_GNU_CC="cc -systype bsd43"
2141 NON_GNU_CPP="cc -systype bsd43 -E"
2143 mips-mips-riscos5* )
2144 machine=mips4 opsys=riscos5
2145 NON_GNU_CC="cc -systype bsd43"
2146 NON_GNU_CPP="cc -systype bsd43 -E"
2148 mips-mips-bsd* )
2149 machine=mips opsys=bsd4-3
2151 mips-mips-* )
2152 machine=mips opsys=usg5-2-2
2155 ## NeXT
2156 m68*-next-* | m68k-*-nextstep* )
2157 machine=m68k opsys=nextstep
2160 ## The complete machine from National Semiconductor
2161 ns32k-ns-genix* )
2162 machine=ns32000 opsys=usg5-2
2165 ## NCR machines
2166 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2167 machine=tower32 opsys=usg5-2-2
2169 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2170 machine=tower32v3 opsys=usg5-3
2173 ## NEC EWS4800
2174 mips-nec-sysv4*)
2175 machine=ews4800 opsys=ux4800
2178 ## Nixdorf Targon 31
2179 m68*-nixdorf-sysv* )
2180 machine=targon31 opsys=usg5-2-2
2183 ## Nu (TI or LMI)
2184 m68*-nu-sysv* )
2185 machine=nu opsys=usg5-2
2188 ## Plexus
2189 m68*-plexus-sysv* )
2190 machine=plexus opsys=usg5-2
2193 ## PowerPC reference platform
2194 powerpcle-*-solaris2* )
2195 machine=prep
2196 opsys=sol2-5
2199 ## Pyramid machines
2200 ## I don't really have any idea what sort of processor the Pyramid has,
2201 ## so I'm assuming it is its own architecture.
2202 pyramid-pyramid-bsd* )
2203 machine=pyramid opsys=bsd4-2
2206 ## Sequent Balance
2207 ns32k-sequent-bsd4.2* )
2208 machine=sequent opsys=bsd4-2
2210 ns32k-sequent-bsd4.3* )
2211 machine=sequent opsys=bsd4-3
2214 ## Siemens Nixdorf
2215 mips-siemens-sysv* | mips-sni-sysv*)
2216 machine=mips-siemens opsys=usg5-4
2217 NON_GNU_CC=/usr/ccs/bin/cc
2218 NON_GNU_CPP=/usr/ccs/lib/cpp
2221 ## Silicon Graphics machines
2222 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2223 m68*-sgi-iris3.5* )
2224 machine=irist opsys=iris3-5
2226 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2227 machine=irist opsys=iris3-6
2229 ## Iris 4D
2230 mips-sgi-irix3* )
2231 machine=iris4d opsys=irix3-3
2233 mips-sgi-irix4* )
2234 machine=iris4d opsys=irix4-0
2236 mips-sgi-irix6.5 )
2237 machine=iris4d opsys=irix6-5
2238 # Without defining _LANGUAGE_C, things get masked out in the headers
2239 # so that, for instance, grepping for `free' in stdlib.h fails and
2240 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2241 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2242 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2244 mips-sgi-irix6* )
2245 machine=iris4d opsys=irix6-0
2246 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2247 # but presumably it does no harm.
2248 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2249 # -32 probably isn't necessary in later v.6s -- anyone know which?
2250 NON_GCC_TEST_OPTIONS=-32
2252 mips-sgi-irix5.[01]* )
2253 machine=iris4d opsys=irix5-0
2255 mips-sgi-irix5* | mips-sgi-irix* )
2256 machine=iris4d opsys=irix5-2
2259 ## SONY machines
2260 m68*-sony-bsd4.2* )
2261 machine=news opsys=bsd4-2
2263 m68*-sony-bsd4.3* )
2264 machine=news opsys=bsd4-3
2266 m68*-sony-newsos3* | m68*-sony-news3*)
2267 machine=news opsys=bsd4-3
2269 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2270 machine=news-risc opsys=bsd4-3
2272 mips-sony-newsos6* )
2273 machine=news-r6 opsys=newsos6
2275 mips-sony-news* )
2276 machine=news-risc opsys=newsos5
2279 ## Stride
2280 m68*-stride-sysv* )
2281 machine=stride opsys=usg5-2
2284 ## Suns
2285 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2286 machine=sparc opsys=gnu-linux
2289 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2290 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2291 | rs6000-*-solaris2*)
2292 case "${canonical}" in
2293 m68*-sunos1* ) machine=sun1 ;;
2294 m68*-sunos2* ) machine=sun2 ;;
2295 m68* ) machine=sun3 ;;
2296 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2297 i[3456]86-*-* ) machine=intel386 ;;
2298 powerpcle* ) machine=powerpcle ;;
2299 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2300 sparc* ) machine=sparc ;;
2301 * ) unported=yes ;;
2302 esac
2303 case "${canonical}" in
2304 ## The Sun386 didn't get past 4.0.
2305 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2306 *-sunos4.0* ) opsys=sunos4-0 ;;
2307 *-sunos4.1.[3-9]*noshare )
2308 ## This name is sunos413 instead of sunos4-1-3
2309 ## to avoid a file name conflict on MSDOS.
2310 opsys=sunos413
2311 NON_GNU_CPP=/usr/lib/cpp
2312 NON_GCC_TEST_OPTIONS=-Bstatic
2313 GCC_TEST_OPTIONS=-static
2315 *-sunos4.1.[3-9]* | *-sunos4shr*)
2316 opsys=sunos4shr
2317 NON_GNU_CPP=/usr/lib/cpp
2319 *-sunos4* | *-sunos )
2320 opsys=sunos4-1
2321 NON_GCC_TEST_OPTIONS=-Bstatic
2322 GCC_TEST_OPTIONS=-static
2324 *-sunos5.3* | *-solaris2.3* )
2325 opsys=sol2-3
2326 NON_GNU_CPP=/usr/ccs/lib/cpp
2328 *-sunos5.4* | *-solaris2.4* )
2329 opsys=sol2-4
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 RANLIB="ar -ts"
2333 *-sunos5.5* | *-solaris2.5* )
2334 opsys=sol2-5
2335 NON_GNU_CPP=/usr/ccs/lib/cpp
2336 RANLIB="ar -ts"
2338 *-sunos5* | *-solaris* )
2339 opsys=sol2-5
2340 NON_GNU_CPP=/usr/ccs/lib/cpp
2342 * ) opsys=bsd4-2 ;;
2343 esac
2344 ## Watch out for a compiler that we know will not work.
2345 case "${canonical}" in
2346 *-solaris* | *-sunos5* )
2347 if [ "x$CC" = x/usr/ucb/cc ]; then
2348 ## /usr/ucb/cc doesn't work;
2349 ## we should find some other compiler that does work.
2350 unset CC
2353 *) ;;
2354 esac
2356 sparc-*-nextstep* )
2357 machine=sparc opsys=nextstep
2360 ## Tadpole 68k
2361 m68*-tadpole-sysv* )
2362 machine=tad68k opsys=usg5-3
2365 ## Tahoe machines
2366 tahoe-tahoe-bsd4.2* )
2367 machine=tahoe opsys=bsd4-2
2369 tahoe-tahoe-bsd4.3* )
2370 machine=tahoe opsys=bsd4-3
2373 ## Tandem Integrity S2
2374 mips-tandem-sysv* )
2375 machine=tandem-s2 opsys=usg5-3
2378 ## Tektronix XD88
2379 m88k-tektronix-sysv3* )
2380 machine=tekxd88 opsys=usg5-3
2383 ## Tektronix 16000 box (6130?)
2384 ns16k-tektronix-bsd* )
2385 machine=ns16000 opsys=bsd4-2
2387 ## Tektronix 4300
2388 ## src/m/tek4300.h hints that this is a m68k machine.
2389 m68*-tektronix-bsd* )
2390 machine=tek4300 opsys=bsd4-3
2393 ## Titan P2 or P3
2394 ## We seem to have lost the machine-description file titan.h!
2395 titan-titan-sysv* )
2396 machine=titan opsys=usg5-3
2399 ## Ustation E30 (SS5E)
2400 m68*-unisys-uniplus* )
2401 machine=ustation opsystem=unipl5-2
2404 ## Vaxen.
2405 vax-dec-* )
2406 machine=vax
2407 case "${canonical}" in
2408 *-bsd4.1* ) opsys=bsd4-1 ;;
2409 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2410 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2411 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2412 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2413 *-vms* ) opsys=vms ;;
2414 * ) unported=yes
2415 esac
2418 ## Whitechapel MG1
2419 ns16k-whitechapel-* )
2420 machine=mg1
2421 ## We don't know what sort of OS runs on these; we'll let the
2422 ## operating system guessing code below try.
2425 ## Wicat
2426 m68*-wicat-sysv* )
2427 machine=wicat opsys=usg5-2
2430 ## IA-64
2431 ia64*-*-linux* )
2432 machine=ia64 opsys=gnu-linux
2435 ## Intel 386 machines where we don't care about the manufacturer
2436 i[3456]86-*-* )
2437 machine=intel386
2438 case "${canonical}" in
2439 *-lynxos* ) opsys=lynxos ;;
2440 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2441 *-isc2.2* ) opsys=isc2-2 ;;
2442 *-isc4.0* ) opsys=isc4-0 ;;
2443 *-isc4.* ) opsys=isc4-1
2444 GCC_TEST_OPTIONS=-posix
2445 NON_GCC_TEST_OPTIONS=-Xp
2447 *-isc* ) opsys=isc3-0 ;;
2448 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2449 *-esix* ) opsys=esix ;;
2450 *-xenix* ) opsys=xenix ;;
2451 *-linux-gnu* ) opsys=gnu-linux ;;
2452 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2453 *-sco3.2v5* ) opsys=sco5
2454 NON_GNU_CPP=/lib/cpp
2455 # Prevent -belf from being passed to $CPP.
2456 # /lib/cpp does not accept it.
2457 OVERRIDE_CPPFLAGS=" "
2459 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2460 *-386bsd* ) opsys=386bsd ;;
2461 *-freebsd* ) opsys=freebsd ;;
2462 *-nextstep* ) opsys=nextstep ;;
2463 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2464 esac
2467 ## m68k Linux-based GNU system
2468 m68k-*-linux-gnu* )
2469 machine=m68k opsys=gnu-linux
2472 ## Mips Linux-based GNU system
2473 mips-*-linux-gnu* )
2474 machine=mips opsys=gnu-linux
2477 ## UXP/DS
2478 sparc-fujitsu-sysv4* )
2479 machine=sparc opsys=uxpds
2480 NON_GNU_CPP=/usr/ccs/lib/cpp
2481 RANLIB="ar -ts"
2484 ## UXP/V
2485 f301-fujitsu-uxpv4.1)
2486 machine=f301 opsys=uxpv
2490 unported=yes
2492 esac
2494 ### If the code above didn't choose an operating system, just choose
2495 ### an operating system based on the configuration name. You really
2496 ### only want to use this when you have no idea what the right
2497 ### operating system is; if you know what operating systems a machine
2498 ### runs, it's cleaner to make it explicit in the case statement
2499 ### above.
2500 if test x"${opsys}" = x; then
2501 case "${canonical}" in
2502 *-gnu* ) opsys=gnu ;;
2503 *-bsd4.[01] ) opsys=bsd4-1 ;;
2504 *-bsd4.2 ) opsys=bsd4-2 ;;
2505 *-bsd4.3 ) opsys=bsd4-3 ;;
2506 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2507 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2508 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2509 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2510 *-sysv4.2uw* ) opsys=unixware ;;
2511 *-sysv4.1* | *-sysvr4.1* )
2512 NON_GNU_CPP=/usr/lib/cpp
2513 opsys=usg5-4 ;;
2514 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2515 if [ x$NON_GNU_CPP = x ]; then
2516 if [ -f /usr/ccs/lib/cpp ]; then
2517 NON_GNU_CPP=/usr/ccs/lib/cpp
2518 else
2519 NON_GNU_CPP=/lib/cpp
2522 opsys=usg5-4-2 ;;
2523 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2525 unported=yes
2527 esac
2531 if test $unported = yes; then
2532 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2533 Check \`etc/MACHINES' for recognized configuration names." >&5
2534 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2535 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2536 { (exit 1); exit 1; }; }
2539 machfile="m/${machine}.h"
2540 opsysfile="s/${opsys}.h"
2543 #### Choose a compiler.
2544 test -n "$CC" && cc_specified=yes
2546 # Save the value of CFLAGS that the user specified.
2547 SPECIFIED_CFLAGS="$CFLAGS"
2549 case ${with_gcc} in
2550 "yes" ) CC="gcc" GCC=yes ;;
2551 "no" ) : ${CC=cc} ;;
2552 * ) ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586 echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6
2588 else
2589 echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6
2594 if test -z "$ac_cv_prog_CC"; then
2595 ac_ct_CC=$CC
2596 # Extract the first word of "gcc", so it can be a program name with args.
2597 set dummy gcc; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_ac_ct_CC="gcc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2617 done
2618 done
2622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 echo "${ECHO_T}$ac_ct_CC" >&6
2626 else
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2631 CC=$ac_ct_CC
2632 else
2633 CC="$ac_cv_prog_CC"
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}cc; ac_word=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_CC="${ac_tool_prefix}cc"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6
2668 else
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2674 if test -z "$ac_cv_prog_CC"; then
2675 ac_ct_CC=$CC
2676 # Extract the first word of "cc", so it can be a program name with args.
2677 set dummy cc; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CC="cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2711 CC=$ac_ct_CC
2712 else
2713 CC="$ac_cv_prog_CC"
2717 if test -z "$CC"; then
2718 # Extract the first word of "cc", so it can be a program name with args.
2719 set dummy cc; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 ac_prog_rejected=no
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2737 ac_prog_rejected=yes
2738 continue
2740 ac_cv_prog_CC="cc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2747 if test $ac_prog_rejected = yes; then
2748 # We found a bogon in the path, so make sure we never use it.
2749 set dummy $ac_cv_prog_CC
2750 shift
2751 if test $# != 0; then
2752 # We chose a different compiler from the bogus one.
2753 # However, it has the same basename, so the bogon will be chosen
2754 # first if we set CC to just the basename; use the full file name.
2755 shift
2756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763 echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in cl
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2810 test -n "$CC" && break
2811 done
2813 if test -z "$CC"; then
2814 ac_ct_CC=$CC
2815 for ac_prog in cl
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2846 echo "${ECHO_T}$ac_ct_CC" >&6
2847 else
2848 echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6
2852 test -n "$ac_ct_CC" && break
2853 done
2855 CC=$ac_ct_CC
2861 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2867 # Provide some information about the compiler.
2868 echo "$as_me:$LINENO:" \
2869 "checking for C compiler version" >&5
2870 ac_compiler=`set X $ac_compile; echo $2`
2871 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2872 (eval $ac_compiler --version </dev/null >&5) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2877 (eval $ac_compiler -v </dev/null >&5) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2882 (eval $ac_compiler -V </dev/null >&5) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2895 main ()
2899 return 0;
2901 _ACEOF
2902 ac_clean_files_save=$ac_clean_files
2903 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2904 # Try to create an executable without -o first, disregard a.out.
2905 # It will help us diagnose broken compilers, and finding out an intuition
2906 # of exeext.
2907 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2908 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2909 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2911 (eval $ac_link_default) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 # Find the output, starting from the most likely. This scheme is
2916 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2917 # resort.
2919 # Be careful to initialize this variable, since it used to be cached.
2920 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2921 ac_cv_exeext=
2922 # b.out is created by i960 compilers.
2923 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2929 conftest.$ac_ext )
2930 # This is the source file.
2932 [ab].out )
2933 # We found the default executable, but exeext='' is most
2934 # certainly right.
2935 break;;
2936 *.* )
2937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 # FIXME: I believe we export ac_cv_exeext for Libtool,
2939 # but it would be cool to find out if it's true. Does anybody
2940 # maintain Libtool? --akim.
2941 export ac_cv_exeext
2942 break;;
2944 break;;
2945 esac
2946 done
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955 { (exit 77); exit 77; }; }
2958 ac_exeext=$ac_cv_exeext
2959 echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6
2962 # Check the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
2980 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot run C compiled programs.
2984 If you meant to cross compile, use \`--host'.
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2990 echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6
2993 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2994 ac_clean_files=$ac_clean_files_save
2995 # Check the compiler produces executables we can run. If not, either
2996 # the compiler is broken, or we cross compile.
2997 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2998 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2999 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3000 echo "${ECHO_T}$cross_compiling" >&6
3002 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3003 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005 (eval $ac_link) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3012 # `rm'.
3013 for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 export ac_cv_exeext
3019 break;;
3020 * ) break;;
3021 esac
3022 done
3023 else
3024 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3031 rm -f conftest$ac_cv_exeext
3032 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3033 echo "${ECHO_T}$ac_cv_exeext" >&6
3035 rm -f conftest.$ac_ext
3036 EXEEXT=$ac_cv_exeext
3037 ac_exeext=$EXEEXT
3038 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3039 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3040 if test "${ac_cv_objext+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3051 main ()
3055 return 0;
3057 _ACEOF
3058 rm -f conftest.o conftest.obj
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068 break;;
3069 esac
3070 done
3071 else
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3085 echo "${ECHO_T}$ac_cv_objext" >&6
3086 OBJEXT=$ac_cv_objext
3087 ac_objext=$OBJEXT
3088 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3089 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3090 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093 cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h. */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3101 main ()
3103 #ifndef __GNUC__
3104 choke me
3105 #endif
3108 return 0;
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113 (eval $ac_compile) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag"
3121 || test ! -s conftest.err'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 ac_compiler_gnu=yes
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_compiler_gnu=no
3140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3146 GCC=`test $ac_compiler_gnu = yes && echo yes`
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 CFLAGS="-g"
3150 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3151 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3152 if test "${ac_cv_prog_cc_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_cc_g=yes
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_cv_prog_cc_g=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
3208 else
3209 CFLAGS="-g"
3211 else
3212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
3214 else
3215 CFLAGS=
3218 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3219 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3220 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 ac_cv_prog_cc_stdc=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239 char **p;
3240 int i;
3242 return p[i];
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std1 is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std1. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 int test (int i, double x);
3264 struct s1 {int (*f) (int a);};
3265 struct s2 {int (*f) (double a);};
3266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3267 int argc;
3268 char **argv;
3270 main ()
3272 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 return 0;
3276 _ACEOF
3277 # Don't try gcc -ansi; that turns off useful extensions and
3278 # breaks some systems' header files.
3279 # AIX -qlanglvl=ansi
3280 # Ultrix and OSF/1 -std1
3281 # HP-UX 10.20 and later -Ae
3282 # HP-UX older versions -Aa -D_HPUX_SOURCE
3283 # SVR4 -Xc -D__EXTENSIONS__
3284 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_prog_cc_stdc=$ac_arg
3310 break
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3316 rm -f conftest.err conftest.$ac_objext
3317 done
3318 rm -f conftest.$ac_ext conftest.$ac_objext
3319 CC=$ac_save_CC
3323 case "x$ac_cv_prog_cc_stdc" in
3324 x|xno)
3325 echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6 ;;
3328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3330 CC="$CC $ac_cv_prog_cc_stdc" ;;
3331 esac
3333 # Some people use a C++ compiler to compile C. Since we use `exit',
3334 # in C++ we need to declare it. In case someone uses the same compiler
3335 # for both compiling C and C++ we need to have the C++ compiler decide
3336 # the declaration of exit, since it's the most demanding environment.
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #ifndef __cplusplus
3339 choke me
3340 #endif
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 for ac_declaration in \
3365 '' \
3366 'extern "C" void std::exit (int) throw (); using std::exit;' \
3367 'extern "C" void std::exit (int); using std::exit;' \
3368 'extern "C" void exit (int) throw ();' \
3369 'extern "C" void exit (int);' \
3370 'void exit (int);'
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 $ac_declaration
3379 #include <stdlib.h>
3381 main ()
3383 exit (42);
3385 return 0;
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -z "$ac_c_werror_flag"
3398 || test ! -s conftest.err'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 continue
3417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 $ac_declaration
3426 main ()
3428 exit (42);
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 break
3456 else
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462 done
3463 rm -f conftest*
3464 if test -n "$ac_declaration"; then
3465 echo '#ifdef __cplusplus' >>confdefs.h
3466 echo $ac_declaration >>confdefs.h
3467 echo '#endif' >>confdefs.h
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 esac
3484 # On Suns, sometimes $CPP names a directory.
3485 if test -n "$CPP" && test -d "$CPP"; then
3486 CPP=
3489 #### Some systems specify a CPP 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_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3493 then
3494 CPP="$NON_GNU_CPP"
3497 #### Some systems specify a CC to use unless we are using GCC.
3498 #### Now that we know whether we are using GCC, we can decide whether
3499 #### to use that one.
3500 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3501 test x$cc_specified != xyes
3502 then
3503 CC="$NON_GNU_CC"
3506 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3507 then
3508 CC="$CC $GCC_TEST_OPTIONS"
3511 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3512 then
3513 CC="$CC $NON_GCC_TEST_OPTIONS"
3516 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3517 then
3518 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3521 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3522 then
3523 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3526 #### Some other nice autoconf tests. If you add a test here which
3527 #### should make an entry in src/config.h, don't forget to add an
3528 #### #undef clause to src/config.h.in for autoconf to modify.
3530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3532 LN_S=$as_ln_s
3533 if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3536 else
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538 echo "${ECHO_T}no, using $LN_S" >&6
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3550 CPP=
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #ifdef __STDC__
3575 # include <limits.h>
3576 #else
3577 # include <assert.h>
3578 #endif
3579 Syntax error
3580 _ACEOF
3581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 else
3593 ac_cpp_err=
3595 else
3596 ac_cpp_err=yes
3598 if test -z "$ac_cpp_err"; then
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Broken: fails on valid input.
3605 continue
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3618 _ACEOF
3619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev/null; then
3627 if test -s conftest.err; then
3628 ac_cpp_err=$ac_c_preproc_warn_flag
3629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3630 else
3631 ac_cpp_err=
3633 else
3634 ac_cpp_err=yes
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3647 rm -f conftest.err conftest.$ac_ext
3649 done
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.$ac_ext
3652 if $ac_preproc_ok; then
3653 break
3656 done
3657 ac_cv_prog_CPP=$CPP
3660 CPP=$ac_cv_prog_CPP
3661 else
3662 ac_cv_prog_CPP=$CPP
3664 echo "$as_me:$LINENO: result: $CPP" >&5
3665 echo "${ECHO_T}$CPP" >&6
3666 ac_preproc_ok=false
3667 for ac_c_preproc_warn_flag in '' yes
3669 # Use a header file that comes with gcc, so configuring glibc
3670 # with a fresh cross-compiler works.
3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672 # <limits.h> exists even on freestanding compilers.
3673 # On the NeXT, cc -E runs the code through the compiler's parser,
3674 # not just through cpp. "Syntax error" is here to catch this case.
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 #ifdef __STDC__
3682 # include <limits.h>
3683 #else
3684 # include <assert.h>
3685 #endif
3686 Syntax error
3687 _ACEOF
3688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } >/dev/null; then
3696 if test -s conftest.err; then
3697 ac_cpp_err=$ac_c_preproc_warn_flag
3698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699 else
3700 ac_cpp_err=
3702 else
3703 ac_cpp_err=yes
3705 if test -z "$ac_cpp_err"; then
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 # Broken: fails on valid input.
3712 continue
3714 rm -f conftest.err conftest.$ac_ext
3716 # OK, works on sane cases. Now check whether non-existent headers
3717 # can be detected and how.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3725 _ACEOF
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3740 else
3741 ac_cpp_err=yes
3743 if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3745 continue
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3754 rm -f conftest.err conftest.$ac_ext
3756 done
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.err conftest.$ac_ext
3759 if $ac_preproc_ok; then
3761 else
3762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3781 # AIX /bin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # OS/2's system install, which has a completely different semantic
3787 # ./install, which can be erroneously created by make from ./install.sh.
3788 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3789 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3790 if test -z "$INSTALL"; then
3791 if test "${ac_cv_path_install+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 # Account for people who put trailing slashes in PATH elements.
3800 case $as_dir/ in
3801 ./ | .// | /cC/* | \
3802 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3803 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3804 /usr/ucb/* ) ;;
3806 # OSF1 and SCO ODT 3.0 have their own names for install.
3807 # Don't use installbsd from OSF since it installs stuff as root
3808 # by default.
3809 for ac_prog in ginstall scoinst install; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3812 if test $ac_prog = install &&
3813 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3814 # AIX install. It has an incompatible calling convention.
3816 elif test $ac_prog = install &&
3817 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3818 # program-specific install script used by HP pwplus--don't use.
3820 else
3821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3822 break 3
3825 done
3826 done
3828 esac
3829 done
3833 if test "${ac_cv_path_install+set}" = set; then
3834 INSTALL=$ac_cv_path_install
3835 else
3836 # As a last resort, use the slow shell script. We don't cache a
3837 # path for INSTALL within a source directory, because that will
3838 # break other packages using the cache if that directory is
3839 # removed, or if the path is relative.
3840 INSTALL=$ac_install_sh
3843 echo "$as_me:$LINENO: result: $INSTALL" >&5
3844 echo "${ECHO_T}$INSTALL" >&6
3846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3847 # It thinks the first close brace ends the variable substitution.
3848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854 for ac_prog in 'bison -y' byacc
3856 # Extract the first word of "$ac_prog", so it can be a program name with args.
3857 set dummy $ac_prog; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_prog_YACC+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 if test -n "$YACC"; then
3864 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_YACC="$ac_prog"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3877 done
3878 done
3882 YACC=$ac_cv_prog_YACC
3883 if test -n "$YACC"; then
3884 echo "$as_me:$LINENO: result: $YACC" >&5
3885 echo "${ECHO_T}$YACC" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3891 test -n "$YACC" && break
3892 done
3893 test -n "$YACC" || YACC="yacc"
3895 if test "x$RANLIB" = x; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_RANLIB+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 if test -n "$RANLIB"; then
3905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3923 RANLIB=$ac_cv_prog_RANLIB
3924 if test -n "$RANLIB"; then
3925 echo "$as_me:$LINENO: result: $RANLIB" >&5
3926 echo "${ECHO_T}$RANLIB" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3933 if test -z "$ac_cv_prog_RANLIB"; then
3934 ac_ct_RANLIB=$RANLIB
3935 # Extract the first word of "ranlib", so it can be a program name with args.
3936 set dummy ranlib; ac_word=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 if test -n "$ac_ct_RANLIB"; then
3943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_ac_ct_RANLIB="ranlib"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3963 if test -n "$ac_ct_RANLIB"; then
3964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3965 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 RANLIB=$ac_ct_RANLIB
3972 else
3973 RANLIB="$ac_cv_prog_RANLIB"
3980 echo "$as_me:$LINENO: checking for egrep" >&5
3981 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3982 if test "${ac_cv_prog_egrep+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3986 then ac_cv_prog_egrep='grep -E'
3987 else ac_cv_prog_egrep='egrep'
3990 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3991 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3992 EGREP=$ac_cv_prog_egrep
3996 echo "$as_me:$LINENO: checking for AIX" >&5
3997 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #ifdef _AIX
4006 #endif
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "yes" >/dev/null 2>&1; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4013 cat >>confdefs.h <<\_ACEOF
4014 #define _ALL_SOURCE 1
4015 _ACEOF
4017 else
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4021 rm -f conftest*
4025 #### Extract some information from the operating system and machine files.
4027 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4028 - which libraries the lib-src programs will want, and
4029 - whether the GNU malloc routines are usable..." >&5
4030 echo "$as_me: checking the machine- and system-dependent files to find out
4031 - which libraries the lib-src programs will want, and
4032 - whether the GNU malloc routines are usable..." >&6;}
4034 ### First figure out CFLAGS (which we use for running the compiler here)
4035 ### and REAL_CFLAGS (which we use for real compilation).
4036 ### The two are the same except on a few systems, where they are made
4037 ### different to work around various lossages. For example,
4038 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4039 ### as implying static linking.
4041 ### If the CFLAGS env var is specified, we use that value
4042 ### instead of the default.
4044 ### It's not important that this name contain the PID; you can't run
4045 ### two configures in the same directory and have anything work
4046 ### anyway.
4047 tempcname="conftest.c"
4049 echo '
4050 #include "'${srcdir}'/src/'${opsysfile}'"
4051 #include "'${srcdir}'/src/'${machfile}'"
4052 #ifndef LIBS_MACHINE
4053 #define LIBS_MACHINE
4054 #endif
4055 #ifndef LIBS_SYSTEM
4056 #define LIBS_SYSTEM
4057 #endif
4058 #ifndef C_SWITCH_SYSTEM
4059 #define C_SWITCH_SYSTEM
4060 #endif
4061 #ifndef C_SWITCH_MACHINE
4062 #define C_SWITCH_MACHINE
4063 #endif
4064 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4065 configure___ c_switch_system=C_SWITCH_SYSTEM
4066 configure___ c_switch_machine=C_SWITCH_MACHINE
4068 #ifndef LIB_X11_LIB
4069 #define LIB_X11_LIB -lX11
4070 #endif
4072 #ifndef LIBX11_MACHINE
4073 #define LIBX11_MACHINE
4074 #endif
4076 #ifndef LIBX11_SYSTEM
4077 #define LIBX11_SYSTEM
4078 #endif
4079 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4081 #ifdef UNEXEC
4082 configure___ unexec=UNEXEC
4083 #else
4084 configure___ unexec=unexec.o
4085 #endif
4087 #ifdef SYSTEM_MALLOC
4088 configure___ system_malloc=yes
4089 #else
4090 configure___ system_malloc=no
4091 #endif
4093 #ifdef USE_MMAP_FOR_BUFFERS
4094 configure___ use_mmap_for_buffers=yes
4095 #else
4096 configure___ use_mmap_for_buffers=no
4097 #endif
4099 #ifndef C_DEBUG_SWITCH
4100 #define C_DEBUG_SWITCH -g
4101 #endif
4103 #ifndef C_OPTIMIZE_SWITCH
4104 #ifdef __GNUC__
4105 #define C_OPTIMIZE_SWITCH -O2
4106 #else
4107 #define C_OPTIMIZE_SWITCH -O
4108 #endif
4109 #endif
4111 #ifndef LD_SWITCH_MACHINE
4112 #define LD_SWITCH_MACHINE
4113 #endif
4115 #ifndef LD_SWITCH_SYSTEM
4116 #define LD_SWITCH_SYSTEM
4117 #endif
4119 #ifndef LD_SWITCH_X_SITE_AUX
4120 #define LD_SWITCH_X_SITE_AUX
4121 #endif
4123 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4124 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4126 #ifdef THIS_IS_CONFIGURE
4128 /* Get the CFLAGS for tests in configure. */
4129 #ifdef __GNUC__
4130 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4131 #else
4132 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4133 #endif
4135 #else /* not THIS_IS_CONFIGURE */
4137 /* Get the CFLAGS for real compilation. */
4138 #ifdef __GNUC__
4139 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4140 #else
4141 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4142 #endif
4144 #endif /* not THIS_IS_CONFIGURE */
4145 ' > ${tempcname}
4147 # The value of CPP is a quoted variable reference, so we need to do this
4148 # to get its actual value...
4149 CPP=`eval "echo $CPP"`
4150 eval `${CPP} -Isrc ${tempcname} \
4151 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4152 if test "x$SPECIFIED_CFLAGS" = x; then
4153 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4154 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4155 else
4156 REAL_CFLAGS="$CFLAGS"
4158 rm ${tempcname}
4160 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4162 ### Make sure subsequent tests use flags consistent with the build flags.
4164 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4165 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4166 else
4167 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4171 # Check whether --enable-largefile or --disable-largefile was given.
4172 if test "${enable_largefile+set}" = set; then
4173 enableval="$enable_largefile"
4176 if test "$enable_largefile" != no; then
4178 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4179 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4180 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 ac_cv_sys_largefile_CC=no
4184 if test "$GCC" != yes; then
4185 # IRIX 6.2 and later do not support large files by default,
4186 # so use the C compiler's -n32 option if that helps.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4197 main ()
4201 return 0;
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ac_save_CC="$CC"
4232 CC="$CC -n32"
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <sys/types.h>
4240 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4243 main ()
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag"
4260 || test ! -s conftest.err'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 (eval $ac_try) 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_sys_largefile_CC=' -n32'
4273 else
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279 CC="$ac_save_CC"
4281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4285 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4286 if test "$ac_cv_sys_largefile_CC" != no; then
4287 CC="$CC$ac_cv_sys_largefile_CC"
4290 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4291 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4292 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 ac_cv_sys_file_offset_bits=no
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #include <sys/types.h>
4303 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4306 main ()
4310 return 0;
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag"
4323 || test ! -s conftest.err'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #define _FILE_OFFSET_BITS 64
4347 #include <sys/types.h>
4348 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4352 main ()
4356 return 0;
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_sys_file_offset_bits=64
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4392 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4393 if test "$ac_cv_sys_file_offset_bits" != no; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4397 _ACEOF
4400 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4401 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4402 if test "${ac_cv_sys_large_files+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 ac_cv_sys_large_files=no
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4414 main ()
4418 return 0;
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #define _LARGE_FILES 1
4458 main ()
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 (eval $ac_try) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_cv_sys_large_files=1
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4498 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4499 if test "$ac_cv_sys_large_files" != no; then
4501 cat >>confdefs.h <<_ACEOF
4502 #define _LARGE_FILES $ac_cv_sys_large_files
4503 _ACEOF
4509 # Sound support for GNU/Linux and the free BSDs.
4510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4512 if test "${ac_cv_header_stdc+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #include <stdlib.h>
4522 #include <stdarg.h>
4523 #include <string.h>
4524 #include <float.h>
4527 main ()
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_header_stdc=yes
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 ac_cv_header_stdc=no
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 if test $ac_cv_header_stdc = yes; then
4566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <string.h>
4575 _ACEOF
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "memchr" >/dev/null 2>&1; then
4579 else
4580 ac_cv_header_stdc=no
4582 rm -f conftest*
4586 if test $ac_cv_header_stdc = yes; then
4587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 #include <stdlib.h>
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev/null 2>&1; then
4600 else
4601 ac_cv_header_stdc=no
4603 rm -f conftest*
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <ctype.h>
4619 #if ((' ' & 0x0FF) == 0x020)
4620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4622 #else
4623 # define ISLOWER(c) \
4624 (('a' <= (c) && (c) <= 'i') \
4625 || ('j' <= (c) && (c) <= 'r') \
4626 || ('s' <= (c) && (c) <= 'z'))
4627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4628 #endif
4630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632 main ()
4634 int i;
4635 for (i = 0; i < 256; i++)
4636 if (XOR (islower (i), ISLOWER (i))
4637 || toupper (i) != TOUPPER (i))
4638 exit(2);
4639 exit (0);
4641 _ACEOF
4642 rm -f conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4654 else
4655 echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 ( exit $ac_status )
4660 ac_cv_header_stdc=no
4662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4668 if test $ac_cv_header_stdc = yes; then
4670 cat >>confdefs.h <<\_ACEOF
4671 #define STDC_HEADERS 1
4672 _ACEOF
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687 inttypes.h stdint.h unistd.h
4689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 $ac_includes_default
4703 #include <$ac_header>
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 eval "$as_ac_Header=yes"
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 eval "$as_ac_Header=no"
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 _ACEOF
4745 done
4751 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo "$as_me:$LINENO: checking for $ac_header" >&5
4756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 else
4763 # Is the header compilable?
4764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #include <$ac_header>
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_header_compiler=yes
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_header_compiler=no
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4806 echo "${ECHO_T}$ac_header_compiler" >&6
4808 # Is the header present?
4809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <$ac_header>
4818 _ACEOF
4819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev/null; then
4827 if test -s conftest.err; then
4828 ac_cpp_err=$ac_c_preproc_warn_flag
4829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4830 else
4831 ac_cpp_err=
4833 else
4834 ac_cpp_err=yes
4836 if test -z "$ac_cpp_err"; then
4837 ac_header_preproc=yes
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_header_preproc=no
4844 rm -f conftest.err conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846 echo "${ECHO_T}$ac_header_preproc" >&6
4848 # So? What about this header?
4849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4850 yes:no: )
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4855 ac_header_preproc=yes
4857 no:yes:* )
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4871 cat <<\_ASBOX
4872 ## ------------------------------------------ ##
4873 ## Report this to the AC_PACKAGE_NAME lists. ##
4874 ## ------------------------------------------ ##
4875 _ASBOX
4877 sed "s/^/$as_me: WARNING: /" >&2
4879 esac
4880 echo "$as_me:$LINENO: checking for $ac_header" >&5
4881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 eval "$as_ac_Header=\$ac_header_preproc"
4887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4892 cat >>confdefs.h <<_ACEOF
4893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4894 _ACEOF
4898 done
4900 # Emulation library used on NetBSD.
4901 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4902 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4903 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 ac_check_lib_save_LIBS=$LIBS
4907 LIBS="-lossaudio $LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char _oss_ioctl ();
4923 main ()
4925 _oss_ioctl ();
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_ossaudio__oss_ioctl=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ac_cv_lib_ossaudio__oss_ioctl=no
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 LIBS=$ac_check_lib_save_LIBS
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4964 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4965 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4966 LIBSOUND=-lossaudio
4967 else
4968 LIBSOUND=
4990 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4991 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4992 termcap.h stdio_ext.h fcntl.h term.h strings.h pwd.h
4994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996 echo "$as_me:$LINENO: checking for $ac_header" >&5
4997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5003 else
5004 # Is the header compilable?
5005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h. */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014 #include <$ac_header>
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_header_compiler=yes
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_header_compiler=no
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5047 echo "${ECHO_T}$ac_header_compiler" >&6
5049 # Is the header present?
5050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <$ac_header>
5059 _ACEOF
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_c_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5071 else
5072 ac_cpp_err=
5074 else
5075 ac_cpp_err=yes
5077 if test -z "$ac_cpp_err"; then
5078 ac_header_preproc=yes
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 ac_header_preproc=no
5085 rm -f conftest.err conftest.$ac_ext
5086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5087 echo "${ECHO_T}$ac_header_preproc" >&6
5089 # So? What about this header?
5090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5091 yes:no: )
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5096 ac_header_preproc=yes
5098 no:yes:* )
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&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;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5112 cat <<\_ASBOX
5113 ## ------------------------------------------ ##
5114 ## Report this to the AC_PACKAGE_NAME lists. ##
5115 ## ------------------------------------------ ##
5116 _ASBOX
5118 sed "s/^/$as_me: WARNING: /" >&2
5120 esac
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 eval "$as_ac_Header=\$ac_header_preproc"
5128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5133 cat >>confdefs.h <<_ACEOF
5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5135 _ACEOF
5139 done
5141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5143 if test "${ac_cv_header_stdc+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 #include <stdlib.h>
5153 #include <stdarg.h>
5154 #include <string.h>
5155 #include <float.h>
5158 main ()
5162 return 0;
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_c_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_header_stdc=yes
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_cv_header_stdc=no
5194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5196 if test $ac_cv_header_stdc = yes; then
5197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <string.h>
5206 _ACEOF
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "memchr" >/dev/null 2>&1; then
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f conftest*
5217 if test $ac_cv_header_stdc = yes; then
5218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h. */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 #include <stdlib.h>
5227 _ACEOF
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 $EGREP "free" >/dev/null 2>&1; then
5231 else
5232 ac_cv_header_stdc=no
5234 rm -f conftest*
5238 if test $ac_cv_header_stdc = yes; then
5239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5240 if test "$cross_compiling" = yes; then
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <ctype.h>
5250 #if ((' ' & 0x0FF) == 0x020)
5251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5253 #else
5254 # define ISLOWER(c) \
5255 (('a' <= (c) && (c) <= 'i') \
5256 || ('j' <= (c) && (c) <= 'r') \
5257 || ('s' <= (c) && (c) <= 'z'))
5258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5259 #endif
5261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5263 main ()
5265 int i;
5266 for (i = 0; i < 256; i++)
5267 if (XOR (islower (i), ISLOWER (i))
5268 || toupper (i) != TOUPPER (i))
5269 exit(2);
5270 exit (0);
5272 _ACEOF
5273 rm -f conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5285 else
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ( exit $ac_status )
5291 ac_cv_header_stdc=no
5293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5299 if test $ac_cv_header_stdc = yes; then
5301 cat >>confdefs.h <<\_ACEOF
5302 #define STDC_HEADERS 1
5303 _ACEOF
5307 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5308 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5309 if test "${ac_cv_header_time+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 #include <sys/types.h>
5319 #include <sys/time.h>
5320 #include <time.h>
5323 main ()
5325 if ((struct tm *) 0)
5326 return 0;
5328 return 0;
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
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); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_header_time=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_header_time=no
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5363 echo "${ECHO_T}$ac_cv_header_time" >&6
5364 if test $ac_cv_header_time = yes; then
5366 cat >>confdefs.h <<\_ACEOF
5367 #define TIME_WITH_SYS_TIME 1
5368 _ACEOF
5372 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5373 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5374 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <signal.h>
5384 /* NetBSD declares sys_siglist in unistd.h. */
5385 #if HAVE_UNISTD_H
5386 # include <unistd.h>
5387 #endif
5391 main ()
5393 #ifndef sys_siglist
5394 char *p = (char *) sys_siglist;
5395 #endif
5398 return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_have_decl_sys_siglist=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_have_decl_sys_siglist=no
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5433 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5434 if test $ac_cv_have_decl_sys_siglist = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define HAVE_DECL_SYS_SIGLIST 1
5438 _ACEOF
5441 else
5442 cat >>confdefs.h <<_ACEOF
5443 #define HAVE_DECL_SYS_SIGLIST 0
5444 _ACEOF
5451 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <sys/types.h>
5463 #include <sys/wait.h>
5464 #ifndef WEXITSTATUS
5465 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5466 #endif
5467 #ifndef WIFEXITED
5468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5469 #endif
5472 main ()
5474 int s;
5475 wait (&s);
5476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_sys_wait_h=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_header_sys_wait_h=no
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5514 if test $ac_cv_header_sys_wait_h = yes; then
5516 cat >>confdefs.h <<\_ACEOF
5517 #define HAVE_SYS_WAIT_H 1
5518 _ACEOF
5523 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5524 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5525 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #ifdef TIME_WITH_SYS_TIME
5535 #include <sys/time.h>
5536 #include <time.h>
5537 #else
5538 #ifdef HAVE_SYS_TIME_H
5539 #include <sys/time.h>
5540 #else
5541 #include <time.h>
5542 #endif
5543 #endif
5544 #ifdef HAVE_UTIME_H
5545 #include <utime.h>
5546 #endif
5548 main ()
5550 static struct utimbuf x; x.actime = x.modtime;
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 emacs_cv_struct_utimbuf=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 emacs_cv_struct_utimbuf=no
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5587 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5588 if test $emacs_cv_struct_utimbuf = yes; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_STRUCT_UTIMBUF 1
5591 _ACEOF
5595 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5597 if test "${ac_cv_type_signal+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <sys/types.h>
5607 #include <signal.h>
5608 #ifdef signal
5609 # undef signal
5610 #endif
5611 #ifdef __cplusplus
5612 extern "C" void (*signal (int, void (*)(int)))(int);
5613 #else
5614 void (*signal ()) ();
5615 #endif
5618 main ()
5620 int i;
5622 return 0;
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_cv_type_signal=void
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 ac_cv_type_signal=int
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5657 echo "${ECHO_T}$ac_cv_type_signal" >&6
5659 cat >>confdefs.h <<_ACEOF
5660 #define RETSIGTYPE $ac_cv_type_signal
5661 _ACEOF
5665 echo "$as_me:$LINENO: checking for speed_t" >&5
5666 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5667 if test "${emacs_cv_speed_t+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <termios.h>
5678 main ()
5680 speed_t x = 1;
5682 return 0;
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 emacs_cv_speed_t=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5716 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5717 if test $emacs_cv_speed_t = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_SPEED_T 1
5720 _ACEOF
5724 echo "$as_me:$LINENO: checking for struct timeval" >&5
5725 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5726 if test "${emacs_cv_struct_timeval+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #ifdef TIME_WITH_SYS_TIME
5736 #include <sys/time.h>
5737 #include <time.h>
5738 #else
5739 #ifdef HAVE_SYS_TIME_H
5740 #include <sys/time.h>
5741 #else
5742 #include <time.h>
5743 #endif
5744 #endif
5746 main ()
5748 static struct timeval x; x.tv_sec = x.tv_usec;
5750 return 0;
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 emacs_cv_struct_timeval=yes
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 emacs_cv_struct_timeval=no
5782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5784 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5785 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5786 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5787 if test $emacs_cv_struct_timeval = yes; then
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_TIMEVAL 1
5790 _ACEOF
5794 echo "$as_me:$LINENO: checking for struct exception" >&5
5795 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5796 if test "${emacs_cv_struct_exception+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <math.h>
5807 main ()
5809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5811 return 0;
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 emacs_cv_struct_exception=yes
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 emacs_cv_struct_exception=no
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5846 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5847 HAVE_EXCEPTION=$emacs_cv_struct_exception
5848 if test $emacs_cv_struct_exception != yes; then
5849 cat >>confdefs.h <<\_ACEOF
5850 #define NO_MATHERR 1
5851 _ACEOF
5855 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5856 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5857 if test "${ac_cv_struct_tm+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h. */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5867 #include <time.h>
5870 main ()
5872 struct tm *tp; tp->tm_sec;
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -z "$ac_c_werror_flag"
5887 || test ! -s conftest.err'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_cv_struct_tm=time.h
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 ac_cv_struct_tm=sys/time.h
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5909 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5910 if test $ac_cv_struct_tm = sys/time.h; then
5912 cat >>confdefs.h <<\_ACEOF
5913 #define TM_IN_SYS_TIME 1
5914 _ACEOF
5918 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5919 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5920 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
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 <$ac_cv_struct_tm>
5934 main ()
5936 static struct tm ac_aggr;
5937 if (ac_aggr.tm_zone)
5938 return 0;
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_member_struct_tm_tm_zone=yes
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <sys/types.h>
5977 #include <$ac_cv_struct_tm>
5981 main ()
5983 static struct tm ac_aggr;
5984 if (sizeof ac_aggr.tm_zone)
5985 return 0;
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_member_struct_tm_tm_zone=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_member_struct_tm_tm_zone=no
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6024 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6025 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_STRUCT_TM_TM_ZONE 1
6029 _ACEOF
6034 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_TM_ZONE 1
6038 _ACEOF
6040 else
6041 echo "$as_me:$LINENO: checking for tzname" >&5
6042 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6043 if test "${ac_cv_var_tzname+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <time.h>
6053 #ifndef tzname /* For SGI. */
6054 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6055 #endif
6058 main ()
6060 atoi(*tzname);
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_var_tzname=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_var_tzname=no
6094 rm -f conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6097 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6098 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6099 if test $ac_cv_var_tzname = yes; then
6101 cat >>confdefs.h <<\_ACEOF
6102 #define HAVE_TZNAME 1
6103 _ACEOF
6108 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
6109 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
6110 if test "${emacs_cv_tm_gmtoff+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <time.h>
6121 main ()
6123 struct tm t; t.tm_gmtoff = 0
6125 return 0;
6127 _ACEOF
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 emacs_cv_tm_gmtoff=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 emacs_cv_tm_gmtoff=no
6157 rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
6161 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
6162 if test $emacs_cv_tm_gmtoff = yes; then
6163 cat >>confdefs.h <<\_ACEOF
6164 #define HAVE_TM_GMTOFF 1
6165 _ACEOF
6170 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
6171 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
6172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 ac_cv_prog_cc_stdc=no
6176 ac_save_CC="$CC"
6177 # Don't try gcc -ansi; that turns off useful extensions and
6178 # breaks some systems' header files.
6179 # AIX -qlanglvl=ansi
6180 # Ultrix and OSF/1 -std1
6181 # HP-UX 10.20 and later -Ae
6182 # HP-UX older versions -Aa -D_HPUX_SOURCE
6183 # SVR4 -Xc -D__EXTENSIONS__
6184 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6186 CC="$ac_save_CC $ac_arg"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <stdarg.h>
6194 #include <stdio.h>
6195 #include <sys/types.h>
6196 #include <sys/stat.h>
6197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6198 struct buf { int x; };
6199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6200 static char *e (p, i)
6201 char **p;
6202 int i;
6204 return p[i];
6206 static char *f (char * (*g) (char **, int), char **p, ...)
6208 char *s;
6209 va_list v;
6210 va_start (v,p);
6211 s = g (p, va_arg (v,int));
6212 va_end (v);
6213 return s;
6215 int test (int i, double x);
6216 struct s1 {int (*f) (int a);};
6217 struct s2 {int (*f) (double a);};
6218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6219 int argc;
6220 char **argv;
6222 main ()
6224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6226 return 0;
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_prog_cc_stdc="$ac_arg"; break
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 done
6259 CC="$ac_save_CC"
6263 case "x$ac_cv_prog_cc_stdc" in
6264 x|xno)
6265 echo "$as_me:$LINENO: result: none needed" >&5
6266 echo "${ECHO_T}none needed" >&6 ;;
6268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6269 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6270 CC="$CC $ac_cv_prog_cc_stdc" ;;
6271 esac
6273 echo "$as_me:$LINENO: checking for function prototypes" >&5
6274 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6275 if test "$ac_cv_prog_cc_stdc" != no; then
6276 echo "$as_me:$LINENO: result: yes" >&5
6277 echo "${ECHO_T}yes" >&6
6279 cat >>confdefs.h <<\_ACEOF
6280 #define PROTOTYPES 1
6281 _ACEOF
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6288 echo "$as_me:$LINENO: checking for working volatile" >&5
6289 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6290 if test "${ac_cv_c_volatile+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6301 main ()
6304 volatile int x;
6305 int * volatile y;
6307 return 0;
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_c_volatile=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_cv_c_volatile=no
6339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6342 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6343 if test $ac_cv_c_volatile = no; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define volatile
6347 _ACEOF
6351 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6353 if test "${ac_cv_c_const+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6364 main ()
6366 /* FIXME: Include the comments suggested by Paul. */
6367 #ifndef __cplusplus
6368 /* Ultrix mips cc rejects this. */
6369 typedef int charset[2];
6370 const charset x;
6371 /* SunOS 4.1.1 cc rejects this. */
6372 char const *const *ccp;
6373 char **p;
6374 /* NEC SVR4.0.2 mips cc rejects this. */
6375 struct point {int x, y;};
6376 static struct point const zero = {0,0};
6377 /* AIX XL C 1.02.0.0 rejects this.
6378 It does not let you subtract one const X* pointer from another in
6379 an arm of an if-expression whose if-part is not a constant
6380 expression */
6381 const char *g = "string";
6382 ccp = &g + (g ? g-g : 0);
6383 /* HPUX 7.0 cc rejects these. */
6384 ++ccp;
6385 p = (char**) ccp;
6386 ccp = (char const *const *) p;
6387 { /* SCO 3.2v4 cc rejects this. */
6388 char *t;
6389 char const *s = 0 ? (char *) 0 : (char const *) 0;
6391 *t++ = 0;
6393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6394 int x[] = {25, 17};
6395 const int *foo = &x[0];
6396 ++foo;
6398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6399 typedef const int *iptr;
6400 iptr p = 0;
6401 ++p;
6403 { /* AIX XL C 1.02.0.0 rejects this saying
6404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6405 struct s { int j; const int *ap[3]; };
6406 struct s *b; b->j = 5;
6408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6409 const int foo = 10;
6411 #endif
6414 return 0;
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
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); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_c_const=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_cv_c_const=no
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6449 echo "${ECHO_T}$ac_cv_c_const" >&6
6450 if test $ac_cv_c_const = no; then
6452 cat >>confdefs.h <<\_ACEOF
6453 #define const
6454 _ACEOF
6458 echo "$as_me:$LINENO: checking for void * support" >&5
6459 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6460 if test "${emacs_cv_void_star+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6471 main ()
6473 void * foo;
6475 return 0;
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 emacs_cv_void_star=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 emacs_cv_void_star=no
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6510 echo "${ECHO_T}$emacs_cv_void_star" >&6
6511 if test $emacs_cv_void_star = yes; then
6512 cat >>confdefs.h <<\_ACEOF
6513 #define POINTER_TYPE void
6514 _ACEOF
6516 else
6517 cat >>confdefs.h <<\_ACEOF
6518 #define POINTER_TYPE char
6519 _ACEOF
6523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6525 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 cat >conftest.make <<\_ACEOF
6530 all:
6531 @echo 'ac_maketemp="$(MAKE)"'
6532 _ACEOF
6533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6535 if test -n "$ac_maketemp"; then
6536 eval ac_cv_prog_make_${ac_make}_set=yes
6537 else
6538 eval ac_cv_prog_make_${ac_make}_set=no
6540 rm -f conftest.make
6542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6
6545 SET_MAKE=
6546 else
6547 echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6549 SET_MAKE="MAKE=${MAKE-make}"
6553 echo "$as_me:$LINENO: checking for long file names" >&5
6554 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6555 if test "${ac_cv_sys_long_file_names+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 ac_cv_sys_long_file_names=yes
6559 # Test for long file names in all the places we know might matter:
6560 # . the current directory, where building will happen
6561 # $prefix/lib where we will be installing things
6562 # $exec_prefix/lib likewise
6563 # eval it to expand exec_prefix.
6564 # $TMPDIR if set, where it might want to write temporary files
6565 # if $TMPDIR is not set:
6566 # /tmp where it might want to write temporary files
6567 # /var/tmp likewise
6568 # /usr/tmp likewise
6569 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6570 ac_tmpdirs=$TMPDIR
6571 else
6572 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6574 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6575 test -d $ac_dir || continue
6576 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6577 ac_xdir=$ac_dir/cf$$
6578 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6579 ac_tf1=$ac_xdir/conftest9012345
6580 ac_tf2=$ac_xdir/conftest9012346
6581 (echo 1 >$ac_tf1) 2>/dev/null
6582 (echo 2 >$ac_tf2) 2>/dev/null
6583 ac_val=`cat $ac_tf1 2>/dev/null`
6584 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6585 ac_cv_sys_long_file_names=no
6586 rm -rf $ac_xdir 2>/dev/null
6587 break
6589 rm -rf $ac_xdir 2>/dev/null
6590 done
6592 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6593 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6594 if test $ac_cv_sys_long_file_names = yes; then
6596 cat >>confdefs.h <<\_ACEOF
6597 #define HAVE_LONG_FILE_NAMES 1
6598 _ACEOF
6603 #### Choose a window system.
6605 echo "$as_me:$LINENO: checking for X" >&5
6606 echo $ECHO_N "checking for X... $ECHO_C" >&6
6609 # Check whether --with-x or --without-x was given.
6610 if test "${with_x+set}" = set; then
6611 withval="$with_x"
6614 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6615 if test "x$with_x" = xno; then
6616 # The user explicitly disabled X.
6617 have_x=disabled
6618 else
6619 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6620 # Both variables are already set.
6621 have_x=yes
6622 else
6623 if test "${ac_cv_have_x+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 # One or both of the vars are not set, and there is no cached value.
6627 ac_x_includes=no ac_x_libraries=no
6628 rm -fr conftest.dir
6629 if mkdir conftest.dir; then
6630 cd conftest.dir
6631 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6632 cat >Imakefile <<'_ACEOF'
6633 acfindx:
6634 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6635 _ACEOF
6636 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6638 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6640 for ac_extension in a so sl; do
6641 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6642 test -f $ac_im_libdir/libX11.$ac_extension; then
6643 ac_im_usrlibdir=$ac_im_libdir; break
6645 done
6646 # Screen out bogus values from the imake configuration. They are
6647 # bogus both because they are the default anyway, and because
6648 # using them would break gcc on systems where it needs fixed includes.
6649 case $ac_im_incroot in
6650 /usr/include) ;;
6651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6652 esac
6653 case $ac_im_usrlibdir in
6654 /usr/lib | /lib) ;;
6655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6656 esac
6658 cd ..
6659 rm -fr conftest.dir
6662 # Standard set of common directories for X headers.
6663 # Check X11 before X11Rn because it is often a symlink to the current release.
6664 ac_x_header_dirs='
6665 /usr/X11/include
6666 /usr/X11R6/include
6667 /usr/X11R5/include
6668 /usr/X11R4/include
6670 /usr/include/X11
6671 /usr/include/X11R6
6672 /usr/include/X11R5
6673 /usr/include/X11R4
6675 /usr/local/X11/include
6676 /usr/local/X11R6/include
6677 /usr/local/X11R5/include
6678 /usr/local/X11R4/include
6680 /usr/local/include/X11
6681 /usr/local/include/X11R6
6682 /usr/local/include/X11R5
6683 /usr/local/include/X11R4
6685 /usr/X386/include
6686 /usr/x386/include
6687 /usr/XFree86/include/X11
6689 /usr/include
6690 /usr/local/include
6691 /usr/unsupported/include
6692 /usr/athena/include
6693 /usr/local/x11r5/include
6694 /usr/lpp/Xamples/include
6696 /usr/openwin/include
6697 /usr/openwin/share/include'
6699 if test "$ac_x_includes" = no; then
6700 # Guess where to find include files, by looking for Intrinsic.h.
6701 # First, try using that file with no special directory specified.
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <X11/Intrinsic.h>
6709 _ACEOF
6710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } >/dev/null; then
6718 if test -s conftest.err; then
6719 ac_cpp_err=$ac_c_preproc_warn_flag
6720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6721 else
6722 ac_cpp_err=
6724 else
6725 ac_cpp_err=yes
6727 if test -z "$ac_cpp_err"; then
6728 # We can compile using X headers with no special include directory.
6729 ac_x_includes=
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 for ac_dir in $ac_x_header_dirs; do
6735 if test -r "$ac_dir/X11/Intrinsic.h"; then
6736 ac_x_includes=$ac_dir
6737 break
6739 done
6741 rm -f conftest.err conftest.$ac_ext
6742 fi # $ac_x_includes = no
6744 if test "$ac_x_libraries" = no; then
6745 # Check for the libraries.
6746 # See if we find them without any special options.
6747 # Don't add to $LIBS permanently.
6748 ac_save_LIBS=$LIBS
6749 LIBS="-lXt $LIBS"
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <X11/Intrinsic.h>
6758 main ()
6760 XtMalloc (0)
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 LIBS=$ac_save_LIBS
6788 # We can link X programs with no special library path.
6789 ac_x_libraries=
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 LIBS=$ac_save_LIBS
6795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6797 # Don't even attempt the hair of trying to link an X program!
6798 for ac_extension in a so sl; do
6799 if test -r $ac_dir/libXt.$ac_extension; then
6800 ac_x_libraries=$ac_dir
6801 break 2
6803 done
6804 done
6806 rm -f conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6808 fi # $ac_x_libraries = no
6810 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6811 # Didn't find X anywhere. Cache the known absence of X.
6812 ac_cv_have_x="have_x=no"
6813 else
6814 # Record where we found X for the cache.
6815 ac_cv_have_x="have_x=yes \
6816 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6821 eval "$ac_cv_have_x"
6822 fi # $with_x != no
6824 if test "$have_x" != yes; then
6825 echo "$as_me:$LINENO: result: $have_x" >&5
6826 echo "${ECHO_T}$have_x" >&6
6827 no_x=yes
6828 else
6829 # If each of the values was on the command line, it overrides each guess.
6830 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6831 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6832 # Update the cache value to reflect the command line values.
6833 ac_cv_have_x="have_x=yes \
6834 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6835 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6836 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6839 if test "$no_x" = yes; then
6840 window_system=none
6841 else
6842 window_system=x11
6845 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6846 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6847 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6848 x_default_search_path=""
6849 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6850 x_search_path="\
6851 ${x_library}/X11/%L/%T/%N%C%S:\
6852 ${x_library}/X11/%l/%T/%N%C%S:\
6853 ${x_library}/X11/%T/%N%C%S:\
6854 ${x_library}/X11/%L/%T/%N%S:\
6855 ${x_library}/X11/%l/%T/%N%S:\
6856 ${x_library}/X11/%T/%N%S"
6857 if test x"${x_default_search_path}" = x; then
6858 x_default_search_path=${x_search_path}
6859 else
6860 x_default_search_path="${x_search_path}:${x_default_search_path}"
6862 done
6864 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6865 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6868 if test x"${x_includes}" = x; then
6869 bitmapdir=/usr/include/X11/bitmaps
6870 else
6871 # accumulate include directories that have X11 bitmap subdirectories
6872 bmd_acc="dummyval"
6873 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6874 if test -d "${bmd}/X11/bitmaps"; then
6875 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6877 if test -d "${bmd}/bitmaps"; then
6878 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6880 done
6881 if test ${bmd_acc} != "dummyval"; then
6882 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6886 case "${window_system}" in
6887 x11 )
6888 HAVE_X_WINDOWS=yes
6889 HAVE_X11=yes
6890 case "${with_x_toolkit}" in
6891 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6892 motif ) USE_X_TOOLKIT=MOTIF ;;
6893 no ) USE_X_TOOLKIT=none ;;
6894 * ) USE_X_TOOLKIT=maybe ;;
6895 esac
6897 none )
6898 HAVE_X_WINDOWS=no
6899 HAVE_X11=no
6900 USE_X_TOOLKIT=none
6902 esac
6904 ### If we're using X11, we should use the X menu package.
6905 HAVE_MENUS=no
6906 case ${HAVE_X11} in
6907 yes ) HAVE_MENUS=yes ;;
6908 esac
6910 if test "${opsys}" = "hpux9"; then
6911 case "${x_libraries}" in
6912 *X11R4* )
6913 opsysfile="s/hpux9-x11r4.h"
6915 esac
6918 if test "${opsys}" = "hpux9shr"; then
6919 case "${x_libraries}" in
6920 *X11R4* )
6921 opsysfile="s/hpux9shxr4.h"
6923 esac
6926 ### Compute the unexec source name from the object name.
6927 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6929 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6930 # Assume not, until told otherwise.
6931 GNU_MALLOC=yes
6932 doug_lea_malloc=yes
6933 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6934 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6935 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
6945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6946 #define malloc_get_state innocuous_malloc_get_state
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char malloc_get_state (); below.
6950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 <limits.h> exists even on freestanding compilers. */
6953 #ifdef __STDC__
6954 # include <limits.h>
6955 #else
6956 # include <assert.h>
6957 #endif
6959 #undef malloc_get_state
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 #ifdef __cplusplus
6963 extern "C"
6965 #endif
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6968 char malloc_get_state ();
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6973 choke me
6974 #else
6975 char (*f) () = malloc_get_state;
6976 #endif
6977 #ifdef __cplusplus
6979 #endif
6982 main ()
6984 return f != malloc_get_state;
6986 return 0;
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_func_malloc_get_state=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_func_malloc_get_state=no
7018 rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7021 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7022 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7023 if test $ac_cv_func_malloc_get_state = yes; then
7025 else
7026 doug_lea_malloc=no
7029 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7030 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7031 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
7041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7042 #define malloc_set_state innocuous_malloc_set_state
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char malloc_set_state (); below.
7046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 <limits.h> exists even on freestanding compilers. */
7049 #ifdef __STDC__
7050 # include <limits.h>
7051 #else
7052 # include <assert.h>
7053 #endif
7055 #undef malloc_set_state
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 #ifdef __cplusplus
7059 extern "C"
7061 #endif
7062 /* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064 char malloc_set_state ();
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7069 choke me
7070 #else
7071 char (*f) () = malloc_set_state;
7072 #endif
7073 #ifdef __cplusplus
7075 #endif
7078 main ()
7080 return f != malloc_set_state;
7082 return 0;
7084 _ACEOF
7085 rm -f conftest.$ac_objext conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_func_malloc_set_state=yes
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ac_cv_func_malloc_set_state=no
7114 rm -f conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7117 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7118 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7119 if test $ac_cv_func_malloc_set_state = yes; then
7121 else
7122 doug_lea_malloc=no
7125 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7126 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7127 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 extern void (* __after_morecore_hook)();
7138 main ()
7140 __after_morecore_hook = 0
7142 return 0;
7144 _ACEOF
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 emacs_cv_var___after_morecore_hook=yes
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7172 emacs_cv_var___after_morecore_hook=no
7174 rm -f conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7178 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7179 if test $emacs_cv_var___after_morecore_hook = no; then
7180 doug_lea_malloc=no
7182 if test "${system_malloc}" = "yes"; then
7183 GNU_MALLOC=no
7184 GNU_MALLOC_reason="
7185 (The GNU allocators don't work with this system configuration.)"
7187 if test "$doug_lea_malloc" = "yes" ; then
7188 if test "$GNU_MALLOC" = yes ; then
7189 GNU_MALLOC_reason="
7190 (Using Doug Lea's new malloc from the GNU C Library.)"
7192 cat >>confdefs.h <<\_ACEOF
7193 #define DOUG_LEA_MALLOC 1
7194 _ACEOF
7198 if test x"${REL_ALLOC}" = x; then
7199 REL_ALLOC=${GNU_MALLOC}
7206 for ac_header in stdlib.h unistd.h sys/stat.h
7208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 else
7218 # Is the header compilable?
7219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 $ac_includes_default
7228 #include <$ac_header>
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_header_compiler=yes
7253 else
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 ac_header_compiler=no
7259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261 echo "${ECHO_T}$ac_header_compiler" >&6
7263 # Is the header present?
7264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 #include <$ac_header>
7273 _ACEOF
7274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } >/dev/null; then
7282 if test -s conftest.err; then
7283 ac_cpp_err=$ac_c_preproc_warn_flag
7284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7285 else
7286 ac_cpp_err=
7288 else
7289 ac_cpp_err=yes
7291 if test -z "$ac_cpp_err"; then
7292 ac_header_preproc=yes
7293 else
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_header_preproc=no
7299 rm -f conftest.err conftest.$ac_ext
7300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7301 echo "${ECHO_T}$ac_header_preproc" >&6
7303 # So? What about this header?
7304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7305 yes:no: )
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7310 ac_header_preproc=yes
7312 no:yes:* )
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7326 cat <<\_ASBOX
7327 ## ------------------------------------------ ##
7328 ## Report this to the AC_PACKAGE_NAME lists. ##
7329 ## ------------------------------------------ ##
7330 _ASBOX
7332 sed "s/^/$as_me: WARNING: /" >&2
7334 esac
7335 echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 eval "$as_ac_Header=\$ac_header_preproc"
7342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7353 done
7356 for ac_func in getpagesize
7358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7359 echo "$as_me:$LINENO: checking for $ac_func" >&5
7360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7361 if eval "test \"\${$as_ac_var+set}\" = set"; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define $ac_func innocuous_$ac_func
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char $ac_func (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7385 #undef $ac_func
7387 /* Override any gcc2 internal prototype to avoid an error. */
7388 #ifdef __cplusplus
7389 extern "C"
7391 #endif
7392 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */
7394 char $ac_func ();
7395 /* The GNU C library defines this for functions which it implements
7396 to always fail with ENOSYS. Some functions are actually named
7397 something starting with __ and the normal name is an alias. */
7398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7399 choke me
7400 #else
7401 char (*f) () = $ac_func;
7402 #endif
7403 #ifdef __cplusplus
7405 #endif
7408 main ()
7410 return f != $ac_func;
7412 return 0;
7414 _ACEOF
7415 rm -f conftest.$ac_objext conftest$ac_exeext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417 (eval $ac_link) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -z "$ac_c_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try='test -s conftest$ac_exeext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_var=yes"
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 eval "$as_ac_var=no"
7444 rm -f conftest.err conftest.$ac_objext \
7445 conftest$ac_exeext conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7449 if test `eval echo '${'$as_ac_var'}'` = yes; then
7450 cat >>confdefs.h <<_ACEOF
7451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7452 _ACEOF
7455 done
7457 echo "$as_me:$LINENO: checking for working mmap" >&5
7458 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7459 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 if test "$cross_compiling" = yes; then
7463 ac_cv_func_mmap_fixed_mapped=no
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 /* Thanks to Mike Haertel and Jim Avera for this test.
7472 Here is a matrix of mmap possibilities:
7473 mmap private not fixed
7474 mmap private fixed at somewhere currently unmapped
7475 mmap private fixed at somewhere already mapped
7476 mmap shared not fixed
7477 mmap shared fixed at somewhere currently unmapped
7478 mmap shared fixed at somewhere already mapped
7479 For private mappings, we should verify that changes cannot be read()
7480 back from the file, nor mmap's back from the file at a different
7481 address. (There have been systems where private was not correctly
7482 implemented like the infamous i386 svr4.0, and systems where the
7483 VM page cache was not coherent with the file system buffer cache
7484 like early versions of FreeBSD and possibly contemporary NetBSD.)
7485 For shared mappings, we should conversely verify that changes get
7486 propogated back to all the places they're supposed to be.
7488 Grep wants private fixed already mapped.
7489 The main things grep needs to know about mmap are:
7490 * does it exist and is it safe to write into the mmap'd area
7491 * how to use it (BSD variants) */
7492 #include <sys/types.h>
7493 #include <fcntl.h>
7494 #include <sys/mman.h>
7496 #if STDC_HEADERS || HAVE_STDLIB_H
7497 # include <stdlib.h>
7498 #else
7499 char *malloc ();
7500 #endif
7501 #if HAVE_UNISTD_H
7502 # include <unistd.h>
7503 #endif
7504 #if HAVE_SYS_STAT_H
7505 # include <sys/stat.h>
7506 #endif
7508 /* This mess was copied from the GNU getpagesize.h. */
7509 #if !HAVE_GETPAGESIZE
7510 /* Assume that all systems that can run configure have sys/param.h. */
7511 # if !HAVE_SYS_PARAM_H
7512 # define HAVE_SYS_PARAM_H 1
7513 # endif
7515 # ifdef _SC_PAGESIZE
7516 # define getpagesize() sysconf(_SC_PAGESIZE)
7517 # else /* no _SC_PAGESIZE */
7518 # if HAVE_SYS_PARAM_H
7519 # include <sys/param.h>
7520 # ifdef EXEC_PAGESIZE
7521 # define getpagesize() EXEC_PAGESIZE
7522 # else /* no EXEC_PAGESIZE */
7523 # ifdef NBPG
7524 # define getpagesize() NBPG * CLSIZE
7525 # ifndef CLSIZE
7526 # define CLSIZE 1
7527 # endif /* no CLSIZE */
7528 # else /* no NBPG */
7529 # ifdef NBPC
7530 # define getpagesize() NBPC
7531 # else /* no NBPC */
7532 # ifdef PAGESIZE
7533 # define getpagesize() PAGESIZE
7534 # endif /* PAGESIZE */
7535 # endif /* no NBPC */
7536 # endif /* no NBPG */
7537 # endif /* no EXEC_PAGESIZE */
7538 # else /* no HAVE_SYS_PARAM_H */
7539 # define getpagesize() 8192 /* punt totally */
7540 # endif /* no HAVE_SYS_PARAM_H */
7541 # endif /* no _SC_PAGESIZE */
7543 #endif /* no HAVE_GETPAGESIZE */
7546 main ()
7548 char *data, *data2, *data3;
7549 int i, pagesize;
7550 int fd;
7552 pagesize = getpagesize ();
7554 /* First, make a file with some known garbage in it. */
7555 data = (char *) malloc (pagesize);
7556 if (!data)
7557 exit (1);
7558 for (i = 0; i < pagesize; ++i)
7559 *(data + i) = rand ();
7560 umask (0);
7561 fd = creat ("conftestmmap", 0600);
7562 if (fd < 0)
7563 exit (1);
7564 if (write (fd, data, pagesize) != pagesize)
7565 exit (1);
7566 close (fd);
7568 /* Next, try to mmap the file at a fixed address which already has
7569 something else allocated at it. If we can, also make sure that
7570 we see the same garbage. */
7571 fd = open ("conftestmmap", O_RDWR);
7572 if (fd < 0)
7573 exit (1);
7574 data2 = (char *) malloc (2 * pagesize);
7575 if (!data2)
7576 exit (1);
7577 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7578 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7579 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7580 exit (1);
7581 for (i = 0; i < pagesize; ++i)
7582 if (*(data + i) != *(data2 + i))
7583 exit (1);
7585 /* Finally, make sure that changes to the mapped area do not
7586 percolate back to the file as seen by read(). (This is a bug on
7587 some variants of i386 svr4.0.) */
7588 for (i = 0; i < pagesize; ++i)
7589 *(data2 + i) = *(data2 + i) + 1;
7590 data3 = (char *) malloc (pagesize);
7591 if (!data3)
7592 exit (1);
7593 if (read (fd, data3, pagesize) != pagesize)
7594 exit (1);
7595 for (i = 0; i < pagesize; ++i)
7596 if (*(data + i) != *(data3 + i))
7597 exit (1);
7598 close (fd);
7599 unlink ("conftestmmap");
7600 exit (0);
7602 _ACEOF
7603 rm -f conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_func_mmap_fixed_mapped=yes
7615 else
7616 echo "$as_me: program exited with status $ac_status" >&5
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ( exit $ac_status )
7621 ac_cv_func_mmap_fixed_mapped=no
7623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7627 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7630 cat >>confdefs.h <<\_ACEOF
7631 #define HAVE_MMAP 1
7632 _ACEOF
7636 if test $use_mmap_for_buffers = yes; then
7637 REL_ALLOC=no
7640 LIBS="$libsrc_libs $LIBS"
7643 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7644 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7645 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 ac_check_lib_save_LIBS=$LIBS
7649 LIBS="-ldnet $LIBS"
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 #ifdef __cplusplus
7659 extern "C"
7660 #endif
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7663 char dnet_ntoa ();
7665 main ()
7667 dnet_ntoa ();
7669 return 0;
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_lib_dnet_dnet_ntoa=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_cv_lib_dnet_dnet_ntoa=no
7701 rm -f conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 LIBS=$ac_check_lib_save_LIBS
7705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7706 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7707 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_LIBDNET 1
7710 _ACEOF
7712 LIBS="-ldnet $LIBS"
7717 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7718 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7719 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722 ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-lXbsd $LIBS"
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7733 main ()
7735 main ();
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_Xbsd_main=yes
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_cv_lib_Xbsd_main=no
7769 rm -f conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7773 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7774 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7775 if test $ac_cv_lib_Xbsd_main = yes; then
7776 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7781 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7782 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7783 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lpthreads $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801 char cma_open ();
7803 main ()
7805 cma_open ();
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_pthreads_cma_open=yes
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_lib_pthreads_cma_open=no
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7844 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7845 if test $ac_cv_lib_pthreads_cma_open = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847 #define HAVE_LIBPTHREADS 1
7848 _ACEOF
7850 LIBS="-lpthreads $LIBS"
7855 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7856 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7857 if test -d /usr/X386/include; then
7858 HAVE_XFREE386=yes
7859 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7860 else
7861 HAVE_XFREE386=no
7863 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7864 echo "${ECHO_T}$HAVE_XFREE386" >&6
7866 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7867 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7869 REAL_CPPFLAGS="$CPPFLAGS"
7871 if test "${HAVE_X11}" = "yes"; then
7872 DEFS="$C_SWITCH_X_SITE $DEFS"
7873 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7874 LIBS="$LIBX $LIBS"
7875 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7876 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7878 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7879 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7880 # but it's more convenient here to set LD_RUN_PATH
7881 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7882 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7883 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7884 export LD_RUN_PATH
7887 if test "${opsys}" = "gnu-linux"; then
7888 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7889 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7898 main ()
7900 XOpenDisplay ("foo");
7902 return 0;
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 xlinux_first_failure=no
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 xlinux_first_failure=yes
7934 rm -f conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 if test "${xlinux_first_failure}" = "yes"; then
7937 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7938 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7939 OLD_CPPFLAGS="$CPPFLAGS"
7940 OLD_LIBS="$LIBS"
7941 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7942 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7943 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7944 LIBS="$LIBS -b i486-linuxaout"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7953 main ()
7955 XOpenDisplay ("foo");
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 xlinux_second_failure=no
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 xlinux_second_failure=yes
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 if test "${xlinux_second_failure}" = "yes"; then
7992 # If we get the same failure with -b, there is no use adding -b.
7993 # So take it out. This plays safe.
7994 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7995 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7996 CPPFLAGS="$OLD_CPPFLAGS"
7997 LIBS="$OLD_LIBS"
7998 echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8000 else
8001 echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8010 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8011 # header files included from there.
8012 echo "$as_me:$LINENO: checking for Xkb" >&5
8013 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <X11/Xlib.h>
8021 #include <X11/XKBlib.h>
8023 main ()
8025 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 emacs_xkb=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 emacs_xkb=no
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8062 echo "${ECHO_T}$emacs_xkb" >&6
8063 if test $emacs_xkb = yes; then
8064 cat >>confdefs.h <<\_ACEOF
8065 #define HAVE_XKBGETKEYBOARD 1
8066 _ACEOF
8074 for ac_func in XrmSetDatabase XScreenResourceString \
8075 XScreenNumberOfScreen XSetWMProtocols
8077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 echo "$as_me:$LINENO: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8080 if eval "test \"\${$as_ac_var+set}\" = set"; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091 #define $ac_func innocuous_$ac_func
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8098 #ifdef __STDC__
8099 # include <limits.h>
8100 #else
8101 # include <assert.h>
8102 #endif
8104 #undef $ac_func
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 #ifdef __cplusplus
8108 extern "C"
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113 char $ac_func ();
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8118 choke me
8119 #else
8120 char (*f) () = $ac_func;
8121 #endif
8122 #ifdef __cplusplus
8124 #endif
8127 main ()
8129 return f != $ac_func;
8131 return 0;
8133 _ACEOF
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try='test -z "$ac_c_werror_flag"
8144 || test ! -s conftest.err'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 eval "$as_ac_var=yes"
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 eval "$as_ac_var=no"
8163 rm -f conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8168 if test `eval echo '${'$as_ac_var'}'` = yes; then
8169 cat >>confdefs.h <<_ACEOF
8170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8171 _ACEOF
8174 done
8178 if test "${window_system}" = "x11"; then
8179 echo "$as_me:$LINENO: checking X11 version 6" >&5
8180 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8181 if test "${emacs_cv_x11_version_6+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 #include <X11/Xlib.h>
8192 main ()
8194 #if XlibSpecificationRelease < 6
8195 fail;
8196 #endif
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 emacs_cv_x11_version_6=yes
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 emacs_cv_x11_version_6=no
8231 rm -f conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8235 if test $emacs_cv_x11_version_6 = yes; then
8236 echo "$as_me:$LINENO: result: 6 or newer" >&5
8237 echo "${ECHO_T}6 or newer" >&6
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_X11R6 1
8240 _ACEOF
8242 else
8243 echo "$as_me:$LINENO: result: before 6" >&5
8244 echo "${ECHO_T}before 6" >&6
8248 if test "${window_system}" = "x11"; then
8249 echo "$as_me:$LINENO: checking X11 version 5" >&5
8250 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8251 if test "${emacs_cv_x11_version_5+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <X11/Xlib.h>
8262 main ()
8264 #if XlibSpecificationRelease < 5
8265 fail;
8266 #endif
8269 return 0;
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 emacs_cv_x11_version_5=yes
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 emacs_cv_x11_version_5=no
8301 rm -f conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8305 if test $emacs_cv_x11_version_5 = yes; then
8306 echo "$as_me:$LINENO: result: 5 or newer" >&5
8307 echo "${ECHO_T}5 or newer" >&6
8308 HAVE_X11R5=yes
8309 cat >>confdefs.h <<\_ACEOF
8310 #define HAVE_X11R5 1
8311 _ACEOF
8313 else
8314 HAVE_X11R5=no
8315 echo "$as_me:$LINENO: result: before 5" >&5
8316 echo "${ECHO_T}before 5" >&6
8320 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8321 if test x"${HAVE_X11R5}" = xyes; then
8322 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8323 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8324 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 #include <X11/Intrinsic.h>
8335 #include <X11/Xaw/Simple.h>
8337 main ()
8341 return 0;
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 emacs_cv_x11_version_5_with_xaw=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 emacs_cv_x11_version_5_with_xaw=no
8373 rm -f conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8377 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8378 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8379 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8380 USE_X_TOOLKIT=LUCID
8381 else
8382 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8383 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8384 USE_X_TOOLKIT=none
8386 else
8387 USE_X_TOOLKIT=none
8391 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8393 if test "${USE_X_TOOLKIT}" != "none"; then
8394 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8395 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8396 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <X11/Intrinsic.h>
8407 main ()
8409 #if XtSpecificationRelease < 6
8410 fail;
8411 #endif
8414 return 0;
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 emacs_cv_x11_toolkit_version_6=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 emacs_cv_x11_toolkit_version_6=no
8446 rm -f conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8450 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8451 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8452 echo "$as_me:$LINENO: result: 6 or newer" >&5
8453 echo "${ECHO_T}6 or newer" >&6
8454 cat >>confdefs.h <<\_ACEOF
8455 #define HAVE_X11XTR6 1
8456 _ACEOF
8458 else
8459 echo "$as_me:$LINENO: result: before 6" >&5
8460 echo "${ECHO_T}before 6" >&6
8463 OLDLIBS="$LIBS"
8464 if test x$HAVE_X11XTR6 = xyes; then
8465 LIBS="-lXt -lSM -lICE $LIBS"
8466 else
8467 LIBS="-lXt $LIBS"
8470 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8471 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8472 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 ac_check_lib_save_LIBS=$LIBS
8476 LIBS="-lXmu $LIBS"
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 /* Override any gcc2 internal prototype to avoid an error. */
8485 #ifdef __cplusplus
8486 extern "C"
8487 #endif
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char XmuConvertStandardSelection ();
8492 main ()
8494 XmuConvertStandardSelection ();
8496 return 0;
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8528 rm -f conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530 LIBS=$ac_check_lib_save_LIBS
8532 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8533 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8534 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8535 cat >>confdefs.h <<_ACEOF
8536 #define HAVE_LIBXMU 1
8537 _ACEOF
8539 LIBS="-lXmu $LIBS"
8543 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8546 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8547 if test "${HAVE_X11}" = "yes"; then
8548 if test "${USE_X_TOOLKIT}" != "none"; then
8550 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8551 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8552 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 ac_check_lib_save_LIBS=$LIBS
8556 LIBS="-lXext $LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char XShapeQueryExtension ();
8572 main ()
8574 XShapeQueryExtension ();
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_lib_Xext_XShapeQueryExtension=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_lib_Xext_XShapeQueryExtension=no
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8613 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8614 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define HAVE_LIBXEXT 1
8617 _ACEOF
8619 LIBS="-lXext $LIBS"
8626 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8627 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8628 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8629 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 #include <Xm/Xm.h>
8640 main ()
8642 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8643 int x = 5;
8644 #else
8645 Motif version prior to 2.1.
8646 #endif
8648 return 0;
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653 (eval $ac_compile) 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest.$ac_objext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 (eval $ac_try) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 emacs_cv_motif_version_2_1=yes
8674 else
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 emacs_cv_motif_version_2_1=no
8680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8683 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8684 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8685 if test $emacs_cv_motif_version_2_1 = yes; then
8686 HAVE_LIBXP=no
8687 cat >>confdefs.h <<\_ACEOF
8688 #define HAVE_MOTIF_2_1 1
8689 _ACEOF
8691 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8692 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8693 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 ac_check_lib_save_LIBS=$LIBS
8697 LIBS="-lXp $LIBS"
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8705 /* Override any gcc2 internal prototype to avoid an error. */
8706 #ifdef __cplusplus
8707 extern "C"
8708 #endif
8709 /* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8711 char XpCreateContext ();
8713 main ()
8715 XpCreateContext ();
8717 return 0;
8719 _ACEOF
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_lib_Xp_XpCreateContext=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_lib_Xp_XpCreateContext=no
8749 rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8753 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8754 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8755 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8756 HAVE_LIBXP=yes
8759 if test ${HAVE_LIBXP} = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_LIBXP 1
8762 _ACEOF
8768 ### Is -lXaw3d available?
8769 HAVE_XAW3D=no
8770 if test "${HAVE_X11}" = "yes"; then
8771 if test "${USE_X_TOOLKIT}" != "none"; then
8772 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8773 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8774 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8775 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8779 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8780 else
8781 # Is the header compilable?
8782 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
8783 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 #include <X11/Xaw3d/Scrollbar.h>
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_header_compiler=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_header_compiler=no
8822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824 echo "${ECHO_T}$ac_header_compiler" >&6
8826 # Is the header present?
8827 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
8828 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 #include <X11/Xaw3d/Scrollbar.h>
8836 _ACEOF
8837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } >/dev/null; then
8845 if test -s conftest.err; then
8846 ac_cpp_err=$ac_c_preproc_warn_flag
8847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8848 else
8849 ac_cpp_err=
8851 else
8852 ac_cpp_err=yes
8854 if test -z "$ac_cpp_err"; then
8855 ac_header_preproc=yes
8856 else
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8868 yes:no: )
8869 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
8872 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
8873 ac_header_preproc=yes
8875 no:yes:* )
8876 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
8881 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&5
8883 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8885 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
8887 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
8889 cat <<\_ASBOX
8890 ## ------------------------------------------ ##
8891 ## Report this to the AC_PACKAGE_NAME lists. ##
8892 ## ------------------------------------------ ##
8893 _ASBOX
8895 sed "s/^/$as_me: WARNING: /" >&2
8897 esac
8898 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8899 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8900 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
8905 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8906 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8909 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8910 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8911 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8912 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915 ac_check_lib_save_LIBS=$LIBS
8916 LIBS="-lXaw3d $LIBS"
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8930 char XawScrollbarSetThumb ();
8932 main ()
8934 XawScrollbarSetThumb ();
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8962 else
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8966 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8968 rm -f conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 LIBS=$ac_check_lib_save_LIBS
8972 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8973 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8974 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8975 HAVE_XAW3D=yes
8981 if test "${HAVE_XAW3D}" = "yes"; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_XAW3D 1
8984 _ACEOF
8991 USE_TOOLKIT_SCROLL_BARS=no
8992 if test "${with_toolkit_scroll_bars}" != "no"; then
8993 if test "${USE_X_TOOLKIT}" != "none"; then
8994 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8995 cat >>confdefs.h <<\_ACEOF
8996 #define USE_TOOLKIT_SCROLL_BARS 1
8997 _ACEOF
8999 HAVE_XAW3D=no
9000 USE_TOOLKIT_SCROLL_BARS=yes
9001 elif test "${HAVE_XAW3D}" = "yes"; then
9002 cat >>confdefs.h <<\_ACEOF
9003 #define USE_TOOLKIT_SCROLL_BARS 1
9004 _ACEOF
9006 USE_TOOLKIT_SCROLL_BARS=yes
9012 if test "${with_xim}" != "no"; then
9013 cat >>confdefs.h <<\_ACEOF
9014 #define USE_XIM 1
9015 _ACEOF
9019 ### Use -lXpm if available, unless `--with-xpm=no'.
9020 HAVE_XPM=no
9021 if test "${HAVE_X11}" = "yes"; then
9022 if test "${with_xpm}" != "no"; then
9023 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9024 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9025 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9026 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9030 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9031 else
9032 # Is the header compilable?
9033 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9034 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9042 #include <X11/xpm.h>
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_header_compiler=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_header_compiler=no
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9075 echo "${ECHO_T}$ac_header_compiler" >&6
9077 # Is the header present?
9078 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9079 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <X11/xpm.h>
9087 _ACEOF
9088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } >/dev/null; then
9096 if test -s conftest.err; then
9097 ac_cpp_err=$ac_c_preproc_warn_flag
9098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9099 else
9100 ac_cpp_err=
9102 else
9103 ac_cpp_err=yes
9105 if test -z "$ac_cpp_err"; then
9106 ac_header_preproc=yes
9107 else
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_header_preproc=no
9113 rm -f conftest.err conftest.$ac_ext
9114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9115 echo "${ECHO_T}$ac_header_preproc" >&6
9117 # So? What about this header?
9118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9119 yes:no: )
9120 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9121 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9123 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9124 ac_header_preproc=yes
9126 no:yes:* )
9127 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9128 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9130 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
9132 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
9134 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9136 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
9138 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9140 cat <<\_ASBOX
9141 ## ------------------------------------------ ##
9142 ## Report this to the AC_PACKAGE_NAME lists. ##
9143 ## ------------------------------------------ ##
9144 _ASBOX
9146 sed "s/^/$as_me: WARNING: /" >&2
9148 esac
9149 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9150 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9151 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 ac_cv_header_X11_xpm_h=$ac_header_preproc
9156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9157 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9160 if test $ac_cv_header_X11_xpm_h = yes; then
9161 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9162 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9163 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 ac_check_lib_save_LIBS=$LIBS
9167 LIBS="-lXpm -lX11 $LIBS"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9175 /* Override any gcc2 internal prototype to avoid an error. */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 /* We use char because int might match the return type of a gcc2
9180 builtin and then its argument prototype would still apply. */
9181 char XpmReadFileToPixmap ();
9183 main ()
9185 XpmReadFileToPixmap ();
9187 return 0;
9189 _ACEOF
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9219 rm -f conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9224 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9225 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9226 HAVE_XPM=yes
9232 if test "${HAVE_XPM}" = "yes"; then
9233 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9234 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 #include "X11/xpm.h"
9242 #ifndef XpmReturnAllocPixels
9243 no_return_alloc_pixels
9244 #endif
9246 _ACEOF
9247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9248 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9249 HAVE_XPM=no
9250 else
9251 HAVE_XPM=yes
9253 rm -f conftest*
9256 if test "${HAVE_XPM}" = "yes"; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258 echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6
9266 if test "${HAVE_XPM}" = "yes"; then
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_XPM 1
9269 _ACEOF
9274 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9275 HAVE_JPEG=no
9276 if test "${HAVE_X11}" = "yes"; then
9277 if test "${with_jpeg}" != "no"; then
9278 if test "${ac_cv_header_jerror_h+set}" = set; then
9279 echo "$as_me:$LINENO: checking for jerror.h" >&5
9280 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9281 if test "${ac_cv_header_jerror_h+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9285 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9286 else
9287 # Is the header compilable?
9288 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9289 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9290 cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h. */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 $ac_includes_default
9297 #include <jerror.h>
9298 _ACEOF
9299 rm -f conftest.$ac_objext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301 (eval $ac_compile) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest.$ac_objext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_header_compiler=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_header_compiler=no
9328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330 echo "${ECHO_T}$ac_header_compiler" >&6
9332 # Is the header present?
9333 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9334 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 #include <jerror.h>
9342 _ACEOF
9343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } >/dev/null; then
9351 if test -s conftest.err; then
9352 ac_cpp_err=$ac_c_preproc_warn_flag
9353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9354 else
9355 ac_cpp_err=
9357 else
9358 ac_cpp_err=yes
9360 if test -z "$ac_cpp_err"; then
9361 ac_header_preproc=yes
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_preproc=no
9368 rm -f conftest.err conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9370 echo "${ECHO_T}$ac_header_preproc" >&6
9372 # So? What about this header?
9373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9374 yes:no: )
9375 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9376 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9378 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9379 ac_header_preproc=yes
9381 no:yes:* )
9382 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9383 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9385 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
9387 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
9389 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9391 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
9393 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9395 cat <<\_ASBOX
9396 ## ------------------------------------------ ##
9397 ## Report this to the AC_PACKAGE_NAME lists. ##
9398 ## ------------------------------------------ ##
9399 _ASBOX
9401 sed "s/^/$as_me: WARNING: /" >&2
9403 esac
9404 echo "$as_me:$LINENO: checking for jerror.h" >&5
9405 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9406 if test "${ac_cv_header_jerror_h+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 ac_cv_header_jerror_h=$ac_header_preproc
9411 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9412 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9415 if test $ac_cv_header_jerror_h = yes; then
9416 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9417 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9418 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421 ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-ljpeg $LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char jpeg_destroy_compress ();
9438 main ()
9440 jpeg_destroy_compress ();
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9479 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9480 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9481 HAVE_JPEG=yes
9489 if test "${HAVE_JPEG}" = "yes"; then
9490 cat >>confdefs.h <<\_ACEOF
9491 #define HAVE_JPEG 1
9492 _ACEOF
9497 ### Use -lpng if available, unless `--with-png=no'.
9498 HAVE_PNG=no
9499 if test "${HAVE_X11}" = "yes"; then
9500 if test "${with_png}" != "no"; then
9501 if test "${ac_cv_header_png_h+set}" = set; then
9502 echo "$as_me:$LINENO: checking for png.h" >&5
9503 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9504 if test "${ac_cv_header_png_h+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9509 else
9510 # Is the header compilable?
9511 echo "$as_me:$LINENO: checking png.h usability" >&5
9512 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 $ac_includes_default
9520 #include <png.h>
9521 _ACEOF
9522 rm -f conftest.$ac_objext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9524 (eval $ac_compile) 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_header_compiler=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_header_compiler=no
9551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9553 echo "${ECHO_T}$ac_header_compiler" >&6
9555 # Is the header present?
9556 echo "$as_me:$LINENO: checking png.h presence" >&5
9557 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <png.h>
9565 _ACEOF
9566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } >/dev/null; then
9574 if test -s conftest.err; then
9575 ac_cpp_err=$ac_c_preproc_warn_flag
9576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9577 else
9578 ac_cpp_err=
9580 else
9581 ac_cpp_err=yes
9583 if test -z "$ac_cpp_err"; then
9584 ac_header_preproc=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_preproc=no
9591 rm -f conftest.err conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9593 echo "${ECHO_T}$ac_header_preproc" >&6
9595 # So? What about this header?
9596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9597 yes:no: )
9598 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9599 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
9601 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
9602 ac_header_preproc=yes
9604 no:yes:* )
9605 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9606 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9608 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9609 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
9610 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
9612 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
9616 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
9618 cat <<\_ASBOX
9619 ## ------------------------------------------ ##
9620 ## Report this to the AC_PACKAGE_NAME lists. ##
9621 ## ------------------------------------------ ##
9622 _ASBOX
9624 sed "s/^/$as_me: WARNING: /" >&2
9626 esac
9627 echo "$as_me:$LINENO: checking for png.h" >&5
9628 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9629 if test "${ac_cv_header_png_h+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 ac_cv_header_png_h=$ac_header_preproc
9634 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9635 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9638 if test $ac_cv_header_png_h = yes; then
9639 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9640 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9641 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644 ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-lpng -lz -lm $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any gcc2 internal prototype to avoid an error. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9659 char png_get_channels ();
9661 main ()
9663 png_get_channels ();
9665 return 0;
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag"
9678 || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_png_png_get_channels=yes
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_lib_png_png_get_channels=no
9697 rm -f conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699 LIBS=$ac_check_lib_save_LIBS
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9702 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9703 if test $ac_cv_lib_png_png_get_channels = yes; then
9704 HAVE_PNG=yes
9712 if test "${HAVE_PNG}" = "yes"; then
9713 cat >>confdefs.h <<\_ACEOF
9714 #define HAVE_PNG 1
9715 _ACEOF
9720 ### Use -ltiff if available, unless `--with-tiff=no'.
9721 HAVE_TIFF=no
9722 if test "${HAVE_X11}" = "yes"; then
9723 if test "${with_tiff}" != "no"; then
9724 if test "${ac_cv_header_tiffio_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9726 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_tiffio_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9732 else
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9735 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9743 #include <tiffio.h>
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_header_compiler=no
9774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9780 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 #include <tiffio.h>
9788 _ACEOF
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev/null; then
9797 if test -s conftest.err; then
9798 ac_cpp_err=$ac_c_preproc_warn_flag
9799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9800 else
9801 ac_cpp_err=
9803 else
9804 ac_cpp_err=yes
9806 if test -z "$ac_cpp_err"; then
9807 ac_header_preproc=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_header_preproc=no
9814 rm -f conftest.err conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9816 echo "${ECHO_T}$ac_header_preproc" >&6
9818 # So? What about this header?
9819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9820 yes:no: )
9821 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9822 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
9824 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
9825 ac_header_preproc=yes
9827 no:yes:* )
9828 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9829 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9831 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
9833 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
9835 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9837 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
9839 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
9841 cat <<\_ASBOX
9842 ## ------------------------------------------ ##
9843 ## Report this to the AC_PACKAGE_NAME lists. ##
9844 ## ------------------------------------------ ##
9845 _ASBOX
9847 sed "s/^/$as_me: WARNING: /" >&2
9849 esac
9850 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9851 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9852 if test "${ac_cv_header_tiffio_h+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855 ac_cv_header_tiffio_h=$ac_header_preproc
9857 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9858 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9861 if test $ac_cv_header_tiffio_h = yes; then
9862 tifflibs="-lz -lm"
9863 # At least one tiff package requires the jpeg library.
9864 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9865 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9866 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9867 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870 ac_check_lib_save_LIBS=$LIBS
9871 LIBS="-ltiff $tifflibs $LIBS"
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char TIFFGetVersion ();
9887 main ()
9889 TIFFGetVersion ();
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_lib_tiff_TIFFGetVersion=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_lib_tiff_TIFFGetVersion=no
9923 rm -f conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 LIBS=$ac_check_lib_save_LIBS
9927 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9928 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9929 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9930 HAVE_TIFF=yes
9938 if test "${HAVE_TIFF}" = "yes"; then
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_TIFF 1
9941 _ACEOF
9946 ### Use -lgif if available, unless `--with-gif=no'.
9947 HAVE_GIF=no
9948 if test "${HAVE_X11}" = "yes"; then
9949 if test "${with_gif}" != "no"; then
9950 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9951 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9952 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9953 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9957 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9958 else
9959 # Is the header compilable?
9960 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9961 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 #include <gif_lib.h>
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest.$ac_objext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_header_compiler=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_header_compiler=no
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10002 echo "${ECHO_T}$ac_header_compiler" >&6
10004 # Is the header present?
10005 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10006 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <gif_lib.h>
10014 _ACEOF
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null; then
10023 if test -s conftest.err; then
10024 ac_cpp_err=$ac_c_preproc_warn_flag
10025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10026 else
10027 ac_cpp_err=
10029 else
10030 ac_cpp_err=yes
10032 if test -z "$ac_cpp_err"; then
10033 ac_header_preproc=yes
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_header_preproc=no
10040 rm -f conftest.err conftest.$ac_ext
10041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10042 echo "${ECHO_T}$ac_header_preproc" >&6
10044 # So? What about this header?
10045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10046 yes:no: )
10047 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10048 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
10050 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
10051 ac_header_preproc=yes
10053 no:yes:* )
10054 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10055 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10057 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
10059 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
10061 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10063 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
10065 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
10067 cat <<\_ASBOX
10068 ## ------------------------------------------ ##
10069 ## Report this to the AC_PACKAGE_NAME lists. ##
10070 ## ------------------------------------------ ##
10071 _ASBOX
10073 sed "s/^/$as_me: WARNING: /" >&2
10075 esac
10076 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10077 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10078 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 ac_cv_header_gif_lib_h=$ac_header_preproc
10083 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10084 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10087 if test $ac_cv_header_gif_lib_h = yes; then
10088 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
10089 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
10090 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-lungif $LIBS"
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h. */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10108 char DGifOpen ();
10110 main ()
10112 DGifOpen ();
10114 return 0;
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_lib_ungif_DGifOpen=yes
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_lib_ungif_DGifOpen=no
10146 rm -f conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10150 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
10151 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
10152 if test $ac_cv_lib_ungif_DGifOpen = yes; then
10153 HAVE_GIF=yes
10161 if test "${HAVE_GIF}" = "yes"; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_GIF 1
10164 _ACEOF
10169 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10170 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10171 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10172 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <netdb.h>
10183 main ()
10185 return h_errno;
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 emacs_cv_netdb_declares_h_errno=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 emacs_cv_netdb_declares_h_errno=no
10219 rm -f conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10223 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10224 if test $emacs_cv_netdb_declares_h_errno = yes; then
10225 cat >>confdefs.h <<\_ACEOF
10226 #define HAVE_H_ERRNO 1
10227 _ACEOF
10231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10232 # for constant arguments. Useless!
10233 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10234 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10235 if test "${ac_cv_working_alloca_h+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 #include <alloca.h>
10246 main ()
10248 char *p = (char *) alloca (2 * sizeof (int));
10250 return 0;
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255 (eval $ac_link) 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest$ac_exeext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_cv_working_alloca_h=yes
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_cv_working_alloca_h=no
10282 rm -f conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10286 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10287 if test $ac_cv_working_alloca_h = yes; then
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_ALLOCA_H 1
10291 _ACEOF
10295 echo "$as_me:$LINENO: checking for alloca" >&5
10296 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10297 if test "${ac_cv_func_alloca_works+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 #ifdef __GNUC__
10307 # define alloca __builtin_alloca
10308 #else
10309 # ifdef _MSC_VER
10310 # include <malloc.h>
10311 # define alloca _alloca
10312 # else
10313 # if HAVE_ALLOCA_H
10314 # include <alloca.h>
10315 # else
10316 # ifdef _AIX
10317 #pragma alloca
10318 # else
10319 # ifndef alloca /* predefined by HP cc +Olibcalls */
10320 char *alloca ();
10321 # endif
10322 # endif
10323 # endif
10324 # endif
10325 #endif
10328 main ()
10330 char *p = (char *) alloca (1);
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_func_alloca_works=yes
10358 else
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_cv_func_alloca_works=no
10364 rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10367 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10368 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10370 if test $ac_cv_func_alloca_works = yes; then
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_ALLOCA 1
10374 _ACEOF
10376 else
10377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10378 # that cause trouble. Some versions do not even contain alloca or
10379 # contain a buggy version. If you still want to use their alloca,
10380 # use ar to extract alloca.o from them instead of compiling alloca.c.
10382 ALLOCA=alloca.$ac_objext
10384 cat >>confdefs.h <<\_ACEOF
10385 #define C_ALLOCA 1
10386 _ACEOF
10389 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10390 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10391 if test "${ac_cv_os_cray+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 #if defined(CRAY) && ! defined(CRAY2)
10401 webecray
10402 #else
10403 wenotbecray
10404 #endif
10406 _ACEOF
10407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10408 $EGREP "webecray" >/dev/null 2>&1; then
10409 ac_cv_os_cray=yes
10410 else
10411 ac_cv_os_cray=no
10413 rm -f conftest*
10416 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10417 echo "${ECHO_T}$ac_cv_os_cray" >&6
10418 if test $ac_cv_os_cray = yes; then
10419 for ac_func in _getb67 GETB67 getb67; do
10420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421 echo "$as_me:$LINENO: checking for $ac_func" >&5
10422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10423 if eval "test \"\${$as_ac_var+set}\" = set"; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h. */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10434 #define $ac_func innocuous_$ac_func
10436 /* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below.
10438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <limits.h> exists even on freestanding compilers. */
10441 #ifdef __STDC__
10442 # include <limits.h>
10443 #else
10444 # include <assert.h>
10445 #endif
10447 #undef $ac_func
10449 /* Override any gcc2 internal prototype to avoid an error. */
10450 #ifdef __cplusplus
10451 extern "C"
10453 #endif
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char $ac_func ();
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10461 choke me
10462 #else
10463 char (*f) () = $ac_func;
10464 #endif
10465 #ifdef __cplusplus
10467 #endif
10470 main ()
10472 return f != $ac_func;
10474 return 0;
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -z "$ac_c_werror_flag"
10487 || test ! -s conftest.err'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 eval "$as_ac_var=yes"
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 eval "$as_ac_var=no"
10506 rm -f conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10511 if test `eval echo '${'$as_ac_var'}'` = yes; then
10513 cat >>confdefs.h <<_ACEOF
10514 #define CRAY_STACKSEG_END $ac_func
10515 _ACEOF
10517 break
10520 done
10523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10525 if test "${ac_cv_c_stack_direction+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 if test "$cross_compiling" = yes; then
10529 ac_cv_c_stack_direction=0
10530 else
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10538 find_stack_direction ()
10540 static char *addr = 0;
10541 auto char dummy;
10542 if (addr == 0)
10544 addr = &dummy;
10545 return find_stack_direction ();
10547 else
10548 return (&dummy > addr) ? 1 : -1;
10552 main ()
10554 exit (find_stack_direction () < 0);
10556 _ACEOF
10557 rm -f conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_c_stack_direction=1
10569 else
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ( exit $ac_status )
10575 ac_cv_c_stack_direction=-1
10577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10580 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10581 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10583 cat >>confdefs.h <<_ACEOF
10584 #define STACK_DIRECTION $ac_cv_c_stack_direction
10585 _ACEOF
10591 # fmod, logb, and frexp are found in -lm on most systems.
10592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10594 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10595 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10596 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599 ac_check_lib_save_LIBS=$LIBS
10600 LIBS="-lm $LIBS"
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 #ifdef __cplusplus
10610 extern "C"
10611 #endif
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614 char sqrt ();
10616 main ()
10618 sqrt ();
10620 return 0;
10622 _ACEOF
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_lib_m_sqrt=yes
10646 else
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_lib_m_sqrt=no
10652 rm -f conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10657 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10658 if test $ac_cv_lib_m_sqrt = yes; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define HAVE_LIBM 1
10661 _ACEOF
10663 LIBS="-lm $LIBS"
10668 # Check for mail-locking functions in a "mail" library
10670 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10671 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10672 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_check_lib_save_LIBS=$LIBS
10676 LIBS="-lmail $LIBS"
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10690 char maillock ();
10692 main ()
10694 maillock ();
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_mail_maillock=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_lib_mail_maillock=no
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10733 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10734 if test $ac_cv_lib_mail_maillock = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_LIBMAIL 1
10737 _ACEOF
10739 LIBS="-lmail $LIBS"
10744 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10745 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10746 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-llockfile $LIBS"
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10758 /* Override any gcc2 internal prototype to avoid an error. */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 /* We use char because int might match the return type of a gcc2
10763 builtin and then its argument prototype would still apply. */
10764 char maillock ();
10766 main ()
10768 maillock ();
10770 return 0;
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag"
10783 || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_lockfile_maillock=yes
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_cv_lib_lockfile_maillock=no
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10806 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10807 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10808 if test $ac_cv_lib_lockfile_maillock = yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define HAVE_LIBLOCKFILE 1
10811 _ACEOF
10813 LIBS="-llockfile $LIBS"
10817 # If we have the shared liblockfile, assume we must use it for mail
10818 # locking (e.g. Debian). If we couldn't link against liblockfile
10819 # (no liblockfile.a installed), ensure that we don't need to.
10820 if test "$ac_cv_lib_lockfile_maillock" = no; then
10821 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10822 set dummy liblockfile.so; ac_word=$2
10823 echo "$as_me:$LINENO: checking for $ac_word" >&5
10824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10825 if test "${ac_cv_prog_liblockfile+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828 if test -n "$liblockfile"; then
10829 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10830 else
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10833 for as_dir in $as_dummy
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_liblockfile="yes"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10846 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10849 liblockfile=$ac_cv_prog_liblockfile
10850 if test -n "$liblockfile"; then
10851 echo "$as_me:$LINENO: result: $liblockfile" >&5
10852 echo "${ECHO_T}$liblockfile" >&6
10853 else
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10858 if test $ac_cv_prog_liblockfile = yes; then
10859 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10860 This probably means that movemail could lose mail.
10861 There may be a \`development' package to install containing liblockfile." >&5
10862 echo "$as_me: error: Shared liblockfile found but can't link against it.
10863 This probably means that movemail could lose mail.
10864 There may be a \`development' package to install containing liblockfile." >&2;}
10865 { (exit 1); exit 1; }; }
10866 else cat >>confdefs.h <<\_ACEOF
10867 #define LIBMAIL -llockfile
10868 _ACEOF
10871 else :
10874 for ac_func in touchlock
10876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 echo "$as_me:$LINENO: checking for $ac_func" >&5
10878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_var+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h. */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define $ac_func innocuous_$ac_func
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char $ac_func (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10897 #ifdef __STDC__
10898 # include <limits.h>
10899 #else
10900 # include <assert.h>
10901 #endif
10903 #undef $ac_func
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 #ifdef __cplusplus
10907 extern "C"
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char $ac_func ();
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10917 choke me
10918 #else
10919 char (*f) () = $ac_func;
10920 #endif
10921 #ifdef __cplusplus
10923 #endif
10926 main ()
10928 return f != $ac_func;
10930 return 0;
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 eval "$as_ac_var=yes"
10956 else
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 eval "$as_ac_var=no"
10962 rm -f conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10967 if test `eval echo '${'$as_ac_var'}'` = yes; then
10968 cat >>confdefs.h <<_ACEOF
10969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10970 _ACEOF
10973 done
10976 for ac_header in maillock.h
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987 else
10988 # Is the header compilable?
10989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 #include <$ac_header>
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -z "$ac_c_werror_flag"
11010 || test ! -s conftest.err'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try='test -s conftest.$ac_objext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_header_compiler=yes
11023 else
11024 echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 ac_header_compiler=no
11029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031 echo "${ECHO_T}$ac_header_compiler" >&6
11033 # Is the header present?
11034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11043 _ACEOF
11044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } >/dev/null; then
11052 if test -s conftest.err; then
11053 ac_cpp_err=$ac_c_preproc_warn_flag
11054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11055 else
11056 ac_cpp_err=
11058 else
11059 ac_cpp_err=yes
11061 if test -z "$ac_cpp_err"; then
11062 ac_header_preproc=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_preproc=no
11069 rm -f conftest.err conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 echo "${ECHO_T}$ac_header_preproc" >&6
11073 # So? What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075 yes:no: )
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc=yes
11082 no:yes:* )
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11096 cat <<\_ASBOX
11097 ## ------------------------------------------ ##
11098 ## Report this to the AC_PACKAGE_NAME lists. ##
11099 ## ------------------------------------------ ##
11100 _ASBOX
11102 sed "s/^/$as_me: WARNING: /" >&2
11104 esac
11105 echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 eval "$as_ac_Header=\$ac_header_preproc"
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 _ACEOF
11123 done
11172 for ac_func in gethostname getdomainname dup2 \
11173 rename closedir mkdir rmdir sysinfo \
11174 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11175 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11176 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11177 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
11178 gai_strerror mkstemp
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_var+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11207 #undef $ac_func
11209 /* Override any gcc2 internal prototype to avoid an error. */
11210 #ifdef __cplusplus
11211 extern "C"
11213 #endif
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char $ac_func ();
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11221 choke me
11222 #else
11223 char (*f) () = $ac_func;
11224 #endif
11225 #ifdef __cplusplus
11227 #endif
11230 main ()
11232 return f != $ac_func;
11234 return 0;
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11239 (eval $ac_link) 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -z "$ac_c_werror_flag"
11247 || test ! -s conftest.err'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest$ac_exeext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 eval "$as_ac_var=yes"
11260 else
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 eval "$as_ac_var=no"
11266 rm -f conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 _ACEOF
11277 done
11282 for ac_header in sys/time.h unistd.h
11284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11286 echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11293 else
11294 # Is the header compilable?
11295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 $ac_includes_default
11304 #include <$ac_header>
11305 _ACEOF
11306 rm -f conftest.$ac_objext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 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.err 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 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 #include <$ac_header>
11349 _ACEOF
11350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_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:$ac_c_preproc_warn_flag 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 compiler's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386 ac_header_preproc=yes
11388 no:yes:* )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402 cat <<\_ASBOX
11403 ## ------------------------------------------ ##
11404 ## Report this to the AC_PACKAGE_NAME lists. ##
11405 ## ------------------------------------------ ##
11406 _ASBOX
11408 sed "s/^/$as_me: WARNING: /" >&2
11410 esac
11411 echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 eval "$as_ac_Header=\$ac_header_preproc"
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11429 done
11432 for ac_func in alarm
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11448 #define $ac_func innocuous_$ac_func
11450 /* System header to define __stub macros and hopefully few prototypes,
11451 which can conflict with char $ac_func (); below.
11452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11453 <limits.h> exists even on freestanding compilers. */
11455 #ifdef __STDC__
11456 # include <limits.h>
11457 #else
11458 # include <assert.h>
11459 #endif
11461 #undef $ac_func
11463 /* Override any gcc2 internal prototype to avoid an error. */
11464 #ifdef __cplusplus
11465 extern "C"
11467 #endif
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11470 char $ac_func ();
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11475 choke me
11476 #else
11477 char (*f) () = $ac_func;
11478 #endif
11479 #ifdef __cplusplus
11481 #endif
11484 main ()
11486 return f != $ac_func;
11488 return 0;
11490 _ACEOF
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag"
11501 || test ! -s conftest.err'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try='test -s conftest$ac_exeext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "$as_ac_var=yes"
11514 else
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 eval "$as_ac_var=no"
11520 rm -f conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11525 if test `eval echo '${'$as_ac_var'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11528 _ACEOF
11531 done
11533 echo "$as_me:$LINENO: checking for working mktime" >&5
11534 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11535 if test "${ac_cv_func_working_mktime+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538 if test "$cross_compiling" = yes; then
11539 ac_cv_func_working_mktime=no
11540 else
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* Test program from Paul Eggert (eggert@twinsun.com)
11548 and Tony Leneis (tony@plaza.ds.adp.com). */
11549 #if TIME_WITH_SYS_TIME
11550 # include <sys/time.h>
11551 # include <time.h>
11552 #else
11553 # if HAVE_SYS_TIME_H
11554 # include <sys/time.h>
11555 # else
11556 # include <time.h>
11557 # endif
11558 #endif
11560 #if HAVE_UNISTD_H
11561 # include <unistd.h>
11562 #endif
11564 #if !HAVE_ALARM
11565 # define alarm(X) /* empty */
11566 #endif
11568 /* Work around redefinition to rpl_putenv by other config tests. */
11569 #undef putenv
11571 static time_t time_t_max;
11573 /* Values we'll use to set the TZ environment variable. */
11574 static const char *const tz_strings[] = {
11575 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11576 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11578 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11580 /* Fail if mktime fails to convert a date in the spring-forward gap.
11581 Based on a problem report from Andreas Jaeger. */
11582 static void
11583 spring_forward_gap ()
11585 /* glibc (up to about 1998-10-07) failed this test) */
11586 struct tm tm;
11588 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11589 instead of "TZ=America/Vancouver" in order to detect the bug even
11590 on systems that don't support the Olson extension, or don't have the
11591 full zoneinfo tables installed. */
11592 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11594 tm.tm_year = 98;
11595 tm.tm_mon = 3;
11596 tm.tm_mday = 5;
11597 tm.tm_hour = 2;
11598 tm.tm_min = 0;
11599 tm.tm_sec = 0;
11600 tm.tm_isdst = -1;
11601 if (mktime (&tm) == (time_t)-1)
11602 exit (1);
11605 static void
11606 mktime_test (now)
11607 time_t now;
11609 struct tm *lt;
11610 if ((lt = localtime (&now)) && mktime (lt) != now)
11611 exit (1);
11612 now = time_t_max - now;
11613 if ((lt = localtime (&now)) && mktime (lt) != now)
11614 exit (1);
11617 static void
11618 irix_6_4_bug ()
11620 /* Based on code from Ariel Faigon. */
11621 struct tm tm;
11622 tm.tm_year = 96;
11623 tm.tm_mon = 3;
11624 tm.tm_mday = 0;
11625 tm.tm_hour = 0;
11626 tm.tm_min = 0;
11627 tm.tm_sec = 0;
11628 tm.tm_isdst = -1;
11629 mktime (&tm);
11630 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11631 exit (1);
11634 static void
11635 bigtime_test (j)
11636 int j;
11638 struct tm tm;
11639 time_t now;
11640 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11641 now = mktime (&tm);
11642 if (now != (time_t) -1)
11644 struct tm *lt = localtime (&now);
11645 if (! (lt
11646 && lt->tm_year == tm.tm_year
11647 && lt->tm_mon == tm.tm_mon
11648 && lt->tm_mday == tm.tm_mday
11649 && lt->tm_hour == tm.tm_hour
11650 && lt->tm_min == tm.tm_min
11651 && lt->tm_sec == tm.tm_sec
11652 && lt->tm_yday == tm.tm_yday
11653 && lt->tm_wday == tm.tm_wday
11654 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11655 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11656 exit (1);
11661 main ()
11663 time_t t, delta;
11664 int i, j;
11666 /* This test makes some buggy mktime implementations loop.
11667 Give up after 60 seconds; a mktime slower than that
11668 isn't worth using anyway. */
11669 alarm (60);
11671 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11672 continue;
11673 time_t_max--;
11674 delta = time_t_max / 997; /* a suitable prime number */
11675 for (i = 0; i < N_STRINGS; i++)
11677 if (tz_strings[i])
11678 putenv (tz_strings[i]);
11680 for (t = 0; t <= time_t_max - delta; t += delta)
11681 mktime_test (t);
11682 mktime_test ((time_t) 60 * 60);
11683 mktime_test ((time_t) 60 * 60 * 24);
11685 for (j = 1; 0 < j; j *= 2)
11686 bigtime_test (j);
11687 bigtime_test (j - 1);
11689 irix_6_4_bug ();
11690 spring_forward_gap ();
11691 exit (0);
11693 _ACEOF
11694 rm -f conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696 (eval $ac_link) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_func_working_mktime=yes
11706 else
11707 echo "$as_me: program exited with status $ac_status" >&5
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ( exit $ac_status )
11712 ac_cv_func_working_mktime=no
11714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11718 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11719 if test $ac_cv_func_working_mktime = no; then
11720 LIBOBJS="$LIBOBJS mktime.${ac_objext}"
11723 if test "$ac_cv_func_working_mktime" = no; then
11724 cat >>confdefs.h <<\_ACEOF
11725 #define BROKEN_MKTIME 1
11726 _ACEOF
11730 ac_have_func=no # yes means we've found a way to get the load average.
11732 # Make sure getloadavg.c is where it belongs, at configure-time.
11733 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11734 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11735 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11736 { (exit 1); exit 1; }; }
11738 ac_save_LIBS=$LIBS
11740 # Check for getloadavg, but be sure not to touch the cache variable.
11741 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11742 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11743 if test "${ac_cv_func_getloadavg+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define getloadavg innocuous_getloadavg
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char getloadavg (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11767 #undef getloadavg
11769 /* Override any gcc2 internal prototype to avoid an error. */
11770 #ifdef __cplusplus
11771 extern "C"
11773 #endif
11774 /* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11776 char getloadavg ();
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11781 choke me
11782 #else
11783 char (*f) () = getloadavg;
11784 #endif
11785 #ifdef __cplusplus
11787 #endif
11790 main ()
11792 return f != getloadavg;
11794 return 0;
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_func_getloadavg=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_cv_func_getloadavg=no
11826 rm -f conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11830 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11831 if test $ac_cv_func_getloadavg = yes; then
11832 exit 0
11833 else
11834 exit 1
11836 ) && ac_have_func=yes
11838 # On HPUX9, an unprivileged user can get load averages through this function.
11840 for ac_func in pstat_getdynamic
11842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11843 echo "$as_me:$LINENO: checking for $ac_func" >&5
11844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11845 if eval "test \"\${$as_ac_var+set}\" = set"; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11856 #define $ac_func innocuous_$ac_func
11858 /* System header to define __stub macros and hopefully few prototypes,
11859 which can conflict with char $ac_func (); below.
11860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11861 <limits.h> exists even on freestanding compilers. */
11863 #ifdef __STDC__
11864 # include <limits.h>
11865 #else
11866 # include <assert.h>
11867 #endif
11869 #undef $ac_func
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 #ifdef __cplusplus
11873 extern "C"
11875 #endif
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char $ac_func ();
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11883 choke me
11884 #else
11885 char (*f) () = $ac_func;
11886 #endif
11887 #ifdef __cplusplus
11889 #endif
11892 main ()
11894 return f != $ac_func;
11896 return 0;
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest$ac_exeext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 eval "$as_ac_var=no"
11928 rm -f conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11933 if test `eval echo '${'$as_ac_var'}'` = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11936 _ACEOF
11939 done
11942 # Solaris has libkstat which does not require root.
11944 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11945 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lkstat $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any gcc2 internal prototype to avoid an error. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char kstat_open ();
11966 main ()
11968 kstat_open ();
11970 return 0;
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_lib_kstat_kstat_open=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_lib_kstat_kstat_open=no
12002 rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12007 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12008 if test $ac_cv_lib_kstat_kstat_open = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_LIBKSTAT 1
12011 _ACEOF
12013 LIBS="-lkstat $LIBS"
12017 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12019 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12020 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12021 # to get the right answer into the cache.
12022 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12023 if test $ac_have_func = no; then
12024 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12025 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12026 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lelf $LIBS"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12044 char elf_begin ();
12046 main ()
12048 elf_begin ();
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag"
12063 || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_lib_elf_elf_begin=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_lib_elf_elf_begin=no
12082 rm -f conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_lib_save_LIBS
12086 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12087 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12088 if test $ac_cv_lib_elf_elf_begin = yes; then
12089 LIBS="-lelf $LIBS"
12093 if test $ac_have_func = no; then
12094 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12095 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12096 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-lkvm $LIBS"
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12108 /* Override any gcc2 internal prototype to avoid an error. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 /* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12114 char kvm_open ();
12116 main ()
12118 kvm_open ();
12120 return 0;
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest$ac_exeext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_kvm_kvm_open=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_lib_kvm_kvm_open=no
12152 rm -f conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12156 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12157 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12158 if test $ac_cv_lib_kvm_kvm_open = yes; then
12159 LIBS="-lkvm $LIBS"
12162 # Check for the 4.4BSD definition of getloadavg.
12163 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12164 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12165 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-lutil $LIBS"
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 /* Override any gcc2 internal prototype to avoid an error. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183 char getloadavg ();
12185 main ()
12187 getloadavg ();
12189 return 0;
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194 (eval $ac_link) 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_c_werror_flag"
12202 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_util_getloadavg=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_cv_lib_util_getloadavg=no
12221 rm -f conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12226 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12227 if test $ac_cv_lib_util_getloadavg = yes; then
12228 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12233 if test $ac_have_func = no; then
12234 # There is a commonly available library for RS/6000 AIX.
12235 # Since it is not a standard part of AIX, it might be installed locally.
12236 ac_getloadavg_LIBS=$LIBS
12237 LIBS="-L/usr/local/lib $LIBS"
12238 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12239 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12240 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-lgetloadavg $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any gcc2 internal prototype to avoid an error. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char getloadavg ();
12260 main ()
12262 getloadavg ();
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_lib_getloadavg_getloadavg=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_lib_getloadavg_getloadavg=no
12296 rm -f conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12301 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12302 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12303 LIBS="-lgetloadavg $LIBS"
12304 else
12305 LIBS=$ac_getloadavg_LIBS
12310 # Make sure it is really in the library, if we think we found it,
12311 # otherwise set up the replacement function.
12313 for ac_func in getloadavg
12315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12316 echo "$as_me:$LINENO: checking for $ac_func" >&5
12317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12318 if eval "test \"\${$as_ac_var+set}\" = set"; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12329 #define $ac_func innocuous_$ac_func
12331 /* System header to define __stub macros and hopefully few prototypes,
12332 which can conflict with char $ac_func (); below.
12333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12334 <limits.h> exists even on freestanding compilers. */
12336 #ifdef __STDC__
12337 # include <limits.h>
12338 #else
12339 # include <assert.h>
12340 #endif
12342 #undef $ac_func
12344 /* Override any gcc2 internal prototype to avoid an error. */
12345 #ifdef __cplusplus
12346 extern "C"
12348 #endif
12349 /* We use char because int might match the return type of a gcc2
12350 builtin and then its argument prototype would still apply. */
12351 char $ac_func ();
12352 /* The GNU C library defines this for functions which it implements
12353 to always fail with ENOSYS. Some functions are actually named
12354 something starting with __ and the normal name is an alias. */
12355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12356 choke me
12357 #else
12358 char (*f) () = $ac_func;
12359 #endif
12360 #ifdef __cplusplus
12362 #endif
12365 main ()
12367 return f != $ac_func;
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag"
12382 || test ! -s conftest.err'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "$as_ac_var=yes"
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 eval "$as_ac_var=no"
12401 rm -f conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12406 if test `eval echo '${'$as_ac_var'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12409 _ACEOF
12411 else
12412 case $LIBOBJS in
12413 "getloadavg.$ac_objext" | \
12414 *" getloadavg.$ac_objext" | \
12415 "getloadavg.$ac_objext "* | \
12416 *" getloadavg.$ac_objext "* ) ;;
12417 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
12418 esac
12421 cat >>confdefs.h <<\_ACEOF
12422 #define C_GETLOADAVG 1
12423 _ACEOF
12425 # Figure out what our getloadavg.c needs.
12426 ac_have_func=no
12427 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12428 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12429 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12430 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12434 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12435 else
12436 # Is the header compilable?
12437 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12438 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <sys/dg_sys_info.h>
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450 (eval $ac_compile) 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_c_werror_flag"
12458 || test ! -s conftest.err'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_header_compiler=yes
12471 else
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12475 ac_header_compiler=no
12477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12479 echo "${ECHO_T}$ac_header_compiler" >&6
12481 # Is the header present?
12482 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12483 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <sys/dg_sys_info.h>
12491 _ACEOF
12492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev/null; then
12500 if test -s conftest.err; then
12501 ac_cpp_err=$ac_c_preproc_warn_flag
12502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12503 else
12504 ac_cpp_err=
12506 else
12507 ac_cpp_err=yes
12509 if test -z "$ac_cpp_err"; then
12510 ac_header_preproc=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ac_header_preproc=no
12517 rm -f conftest.err conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12519 echo "${ECHO_T}$ac_header_preproc" >&6
12521 # So? What about this header?
12522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12523 yes:no: )
12524 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12525 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
12527 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
12528 ac_header_preproc=yes
12530 no:yes:* )
12531 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12532 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12534 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
12536 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
12538 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12540 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
12542 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
12544 cat <<\_ASBOX
12545 ## ------------------------------------------ ##
12546 ## Report this to the AC_PACKAGE_NAME lists. ##
12547 ## ------------------------------------------ ##
12548 _ASBOX
12550 sed "s/^/$as_me: WARNING: /" >&2
12552 esac
12553 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12554 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12555 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12560 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12561 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12564 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12565 ac_have_func=yes
12567 cat >>confdefs.h <<\_ACEOF
12568 #define DGUX 1
12569 _ACEOF
12572 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12573 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12574 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-ldgc $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any gcc2 internal prototype to avoid an error. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 /* We use char because int might match the return type of a gcc2
12591 builtin and then its argument prototype would still apply. */
12592 char dg_sys_info ();
12594 main ()
12596 dg_sys_info ();
12598 return 0;
12600 _ACEOF
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12603 (eval $ac_link) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_lib_dgc_dg_sys_info=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_cv_lib_dgc_dg_sys_info=no
12630 rm -f conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12635 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12636 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_LIBDGC 1
12639 _ACEOF
12641 LIBS="-ldgc $LIBS"
12649 if test "${ac_cv_header_locale_h+set}" = set; then
12650 echo "$as_me:$LINENO: checking for locale.h" >&5
12651 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12652 if test "${ac_cv_header_locale_h+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12656 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12657 else
12658 # Is the header compilable?
12659 echo "$as_me:$LINENO: checking locale.h usability" >&5
12660 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12668 #include <locale.h>
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag"
12680 || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_header_compiler=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_header_compiler=no
12699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12701 echo "${ECHO_T}$ac_header_compiler" >&6
12703 # Is the header present?
12704 echo "$as_me:$LINENO: checking locale.h presence" >&5
12705 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h. */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 #include <locale.h>
12713 _ACEOF
12714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null; then
12722 if test -s conftest.err; then
12723 ac_cpp_err=$ac_c_preproc_warn_flag
12724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12725 else
12726 ac_cpp_err=
12728 else
12729 ac_cpp_err=yes
12731 if test -z "$ac_cpp_err"; then
12732 ac_header_preproc=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_header_preproc=no
12739 rm -f conftest.err conftest.$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 echo "${ECHO_T}$ac_header_preproc" >&6
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 yes:no: )
12746 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
12749 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
12750 ac_header_preproc=yes
12752 no:yes:* )
12753 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12754 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12756 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
12758 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
12760 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12762 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
12764 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
12766 cat <<\_ASBOX
12767 ## ------------------------------------------ ##
12768 ## Report this to the AC_PACKAGE_NAME lists. ##
12769 ## ------------------------------------------ ##
12770 _ASBOX
12772 sed "s/^/$as_me: WARNING: /" >&2
12774 esac
12775 echo "$as_me:$LINENO: checking for locale.h" >&5
12776 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12777 if test "${ac_cv_header_locale_h+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 ac_cv_header_locale_h=$ac_header_preproc
12782 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12783 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12789 for ac_func in setlocale
12791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12792 echo "$as_me:$LINENO: checking for $ac_func" >&5
12793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12794 if eval "test \"\${$as_ac_var+set}\" = set"; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805 #define $ac_func innocuous_$ac_func
12807 /* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char $ac_func (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12812 #ifdef __STDC__
12813 # include <limits.h>
12814 #else
12815 # include <assert.h>
12816 #endif
12818 #undef $ac_func
12820 /* Override any gcc2 internal prototype to avoid an error. */
12821 #ifdef __cplusplus
12822 extern "C"
12824 #endif
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12827 char $ac_func ();
12828 /* The GNU C library defines this for functions which it implements
12829 to always fail with ENOSYS. Some functions are actually named
12830 something starting with __ and the normal name is an alias. */
12831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12832 choke me
12833 #else
12834 char (*f) () = $ac_func;
12835 #endif
12836 #ifdef __cplusplus
12838 #endif
12841 main ()
12843 return f != $ac_func;
12845 return 0;
12847 _ACEOF
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 eval "$as_ac_var=yes"
12871 else
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 eval "$as_ac_var=no"
12877 rm -f conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12882 if test `eval echo '${'$as_ac_var'}'` = yes; then
12883 cat >>confdefs.h <<_ACEOF
12884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12885 _ACEOF
12888 done
12891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12893 # Irix 4.0.5F has the header but not the library.
12894 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12895 ac_have_func=yes
12897 cat >>confdefs.h <<\_ACEOF
12898 #define SVR4 1
12899 _ACEOF
12903 if test $ac_have_func = no; then
12904 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12905 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12906 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12907 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12911 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12912 else
12913 # Is the header compilable?
12914 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12915 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12916 cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h. */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12923 #include <inq_stats/cpustats.h>
12924 _ACEOF
12925 rm -f conftest.$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_header_compiler=yes
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_header_compiler=no
12954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12956 echo "${ECHO_T}$ac_header_compiler" >&6
12958 # Is the header present?
12959 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12960 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 #include <inq_stats/cpustats.h>
12968 _ACEOF
12969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } >/dev/null; then
12977 if test -s conftest.err; then
12978 ac_cpp_err=$ac_c_preproc_warn_flag
12979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12980 else
12981 ac_cpp_err=
12983 else
12984 ac_cpp_err=yes
12986 if test -z "$ac_cpp_err"; then
12987 ac_header_preproc=yes
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_header_preproc=no
12994 rm -f conftest.err conftest.$ac_ext
12995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12996 echo "${ECHO_T}$ac_header_preproc" >&6
12998 # So? What about this header?
12999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13000 yes:no: )
13001 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13002 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13004 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13005 ac_header_preproc=yes
13007 no:yes:* )
13008 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13009 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13011 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
13013 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13015 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13017 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
13019 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13021 cat <<\_ASBOX
13022 ## ------------------------------------------ ##
13023 ## Report this to the AC_PACKAGE_NAME lists. ##
13024 ## ------------------------------------------ ##
13025 _ASBOX
13027 sed "s/^/$as_me: WARNING: /" >&2
13029 esac
13030 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13037 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13038 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13041 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13042 ac_have_func=yes
13044 cat >>confdefs.h <<\_ACEOF
13045 #define UMAX 1
13046 _ACEOF
13049 cat >>confdefs.h <<\_ACEOF
13050 #define UMAX4_3 1
13051 _ACEOF
13058 if test $ac_have_func = no; then
13059 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13060 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13061 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13062 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13066 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13067 else
13068 # Is the header compilable?
13069 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13070 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 #include <sys/cpustats.h>
13079 _ACEOF
13080 rm -f conftest.$ac_objext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 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); } &&
13089 { ac_try='test -z "$ac_c_werror_flag"
13090 || test ! -s conftest.err'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest.$ac_objext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_header_compiler=yes
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_header_compiler=no
13109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13111 echo "${ECHO_T}$ac_header_compiler" >&6
13113 # Is the header present?
13114 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13115 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 #include <sys/cpustats.h>
13123 _ACEOF
13124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev/null; then
13132 if test -s conftest.err; then
13133 ac_cpp_err=$ac_c_preproc_warn_flag
13134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13135 else
13136 ac_cpp_err=
13138 else
13139 ac_cpp_err=yes
13141 if test -z "$ac_cpp_err"; then
13142 ac_header_preproc=yes
13143 else
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_preproc=no
13149 rm -f conftest.err conftest.$ac_ext
13150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6
13153 # So? What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 yes:no: )
13156 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13159 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc=yes
13162 no:yes:* )
13163 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13176 cat <<\_ASBOX
13177 ## ------------------------------------------ ##
13178 ## Report this to the AC_PACKAGE_NAME lists. ##
13179 ## ------------------------------------------ ##
13180 _ASBOX
13182 sed "s/^/$as_me: WARNING: /" >&2
13184 esac
13185 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13186 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13187 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13192 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13196 if test $ac_cv_header_sys_cpustats_h = yes; then
13197 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13198 #define UMAX 1
13199 _ACEOF
13206 if test $ac_have_func = no; then
13208 for ac_header in mach/mach.h
13210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219 else
13220 # Is the header compilable?
13221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13230 #include <$ac_header>
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_header_compiler=yes
13255 else
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_header_compiler=no
13261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6
13265 # Is the header present?
13266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13275 _ACEOF
13276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev/null; then
13284 if test -s conftest.err; then
13285 ac_cpp_err=$ac_c_preproc_warn_flag
13286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13287 else
13288 ac_cpp_err=
13290 else
13291 ac_cpp_err=yes
13293 if test -z "$ac_cpp_err"; then
13294 ac_header_preproc=yes
13295 else
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_header_preproc=no
13301 rm -f conftest.err conftest.$ac_ext
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13307 yes:no: )
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc=yes
13314 no:yes:* )
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13328 cat <<\_ASBOX
13329 ## ------------------------------------------ ##
13330 ## Report this to the AC_PACKAGE_NAME lists. ##
13331 ## ------------------------------------------ ##
13332 _ASBOX
13334 sed "s/^/$as_me: WARNING: /" >&2
13336 esac
13337 echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h <<_ACEOF
13350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351 _ACEOF
13355 done
13360 for ac_header in nlist.h
13362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371 else
13372 # Is the header compilable?
13373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 #include <$ac_header>
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest.$ac_objext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_header_compiler=yes
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_header_compiler=no
13413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13415 echo "${ECHO_T}$ac_header_compiler" >&6
13417 # Is the header present?
13418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <$ac_header>
13427 _ACEOF
13428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } >/dev/null; then
13436 if test -s conftest.err; then
13437 ac_cpp_err=$ac_c_preproc_warn_flag
13438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13439 else
13440 ac_cpp_err=
13442 else
13443 ac_cpp_err=yes
13445 if test -z "$ac_cpp_err"; then
13446 ac_header_preproc=yes
13447 else
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_header_preproc=no
13453 rm -f conftest.err conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13459 yes:no: )
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13464 ac_header_preproc=yes
13466 no:yes:* )
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13480 cat <<\_ASBOX
13481 ## ------------------------------------------ ##
13482 ## Report this to the AC_PACKAGE_NAME lists. ##
13483 ## ------------------------------------------ ##
13484 _ASBOX
13486 sed "s/^/$as_me: WARNING: /" >&2
13488 esac
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 eval "$as_ac_Header=\$ac_header_preproc"
13496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13501 cat >>confdefs.h <<_ACEOF
13502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13503 _ACEOF
13504 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13505 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13506 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <nlist.h>
13518 main ()
13520 static struct nlist ac_aggr;
13521 if (ac_aggr.n_un.n_name)
13522 return 0;
13524 return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_member_struct_nlist_n_un_n_name=yes
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <nlist.h>
13563 main ()
13565 static struct nlist ac_aggr;
13566 if (sizeof ac_aggr.n_un.n_name)
13567 return 0;
13569 return 0;
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_member_struct_nlist_n_un_n_name=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_member_struct_nlist_n_un_n_name=no
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13606 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13607 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13609 cat >>confdefs.h <<_ACEOF
13610 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13611 _ACEOF
13614 cat >>confdefs.h <<\_ACEOF
13615 #define NLIST_NAME_UNION 1
13616 _ACEOF
13623 done
13626 done
13629 # Some definitions of getloadavg require that the program be installed setgid.
13630 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13631 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13632 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13642 #ifdef LDAV_PRIVILEGED
13643 Yowza Am I SETGID yet
13644 #endif
13645 _ACEOF
13646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13647 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13648 ac_cv_func_getloadavg_setgid=yes
13649 else
13650 ac_cv_func_getloadavg_setgid=no
13652 rm -f conftest*
13655 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13656 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13657 if test $ac_cv_func_getloadavg_setgid = yes; then
13658 NEED_SETGID=true
13660 cat >>confdefs.h <<\_ACEOF
13661 #define GETLOADAVG_PRIVILEGED 1
13662 _ACEOF
13664 else
13665 NEED_SETGID=false
13668 if test $ac_cv_func_getloadavg_setgid = yes; then
13669 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13670 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13671 if test "${ac_cv_group_kmem+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13675 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13676 # If we got an error (system does not support symlinks), try without -L.
13677 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13678 ac_cv_group_kmem=`echo $ac_ls_output \
13679 | sed -ne 's/[ ][ ]*/ /g;
13680 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13681 / /s/.* //;p;'`
13684 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13685 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13686 KMEM_GROUP=$ac_cv_group_kmem
13688 if test "x$ac_save_LIBS" = x; then
13689 GETLOADAVG_LIBS=$LIBS
13690 else
13691 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13693 LIBS=$ac_save_LIBS
13697 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13698 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13699 if test "${ac_cv_sys_largefile_source+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 ac_cv_sys_largefile_source=no
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h. */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #include <stdio.h>
13711 main ()
13713 return !fseeko;
13715 return 0;
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest.$ac_objext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13741 else
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 #define _LARGEFILE_SOURCE 1
13752 #include <stdio.h>
13755 main ()
13757 return !fseeko;
13759 return 0;
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_sys_largefile_source=1
13785 else
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13795 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13796 if test "$ac_cv_sys_largefile_source" != no; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13800 _ACEOF
13803 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13804 # in glibc 2.1.3, but that breaks too many other things.
13805 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13807 echo "$as_me:$LINENO: checking for fseeko" >&5
13808 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13809 if test "${ac_cv_func_fseeko+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812 ac_cv_func_fseeko=no
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <stdio.h>
13821 main ()
13823 return fseeko && fseeko (stdin, 0, 0);
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_func_fseeko=yes
13851 else
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13856 rm -f conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13860 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13861 if test $ac_cv_func_fseeko != no; then
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_FSEEKO 1
13865 _ACEOF
13869 # UNIX98 PTYs.
13871 for ac_func in grantpt
13873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13874 echo "$as_me:$LINENO: checking for $ac_func" >&5
13875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_var+set}\" = set"; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13887 #define $ac_func innocuous_$ac_func
13889 /* System header to define __stub macros and hopefully few prototypes,
13890 which can conflict with char $ac_func (); below.
13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892 <limits.h> exists even on freestanding compilers. */
13894 #ifdef __STDC__
13895 # include <limits.h>
13896 #else
13897 # include <assert.h>
13898 #endif
13900 #undef $ac_func
13902 /* Override any gcc2 internal prototype to avoid an error. */
13903 #ifdef __cplusplus
13904 extern "C"
13906 #endif
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13909 char $ac_func ();
13910 /* The GNU C library defines this for functions which it implements
13911 to always fail with ENOSYS. Some functions are actually named
13912 something starting with __ and the normal name is an alias. */
13913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13914 choke me
13915 #else
13916 char (*f) () = $ac_func;
13917 #endif
13918 #ifdef __cplusplus
13920 #endif
13923 main ()
13925 return f != $ac_func;
13927 return 0;
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -z "$ac_c_werror_flag"
13940 || test ! -s conftest.err'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 eval "$as_ac_var=yes"
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 eval "$as_ac_var=no"
13959 rm -f conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13964 if test `eval echo '${'$as_ac_var'}'` = yes; then
13965 cat >>confdefs.h <<_ACEOF
13966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967 _ACEOF
13970 done
13973 # PTY-related GNU extensions.
13975 for ac_func in getpt
13977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13978 echo "$as_me:$LINENO: checking for $ac_func" >&5
13979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_var+set}\" = set"; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h. */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13991 #define $ac_func innocuous_$ac_func
13993 /* System header to define __stub macros and hopefully few prototypes,
13994 which can conflict with char $ac_func (); below.
13995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13996 <limits.h> exists even on freestanding compilers. */
13998 #ifdef __STDC__
13999 # include <limits.h>
14000 #else
14001 # include <assert.h>
14002 #endif
14004 #undef $ac_func
14006 /* Override any gcc2 internal prototype to avoid an error. */
14007 #ifdef __cplusplus
14008 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013 char $ac_func ();
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14018 choke me
14019 #else
14020 char (*f) () = $ac_func;
14021 #endif
14022 #ifdef __cplusplus
14024 #endif
14027 main ()
14029 return f != $ac_func;
14031 return 0;
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 eval "$as_ac_var=yes"
14057 else
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 eval "$as_ac_var=no"
14063 rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14068 if test `eval echo '${'$as_ac_var'}'` = yes; then
14069 cat >>confdefs.h <<_ACEOF
14070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14071 _ACEOF
14074 done
14077 # Check this now, so that we will NOT find the above functions in ncurses.
14078 # That is because we have not set up to link ncurses in lib-src.
14079 # It's better to believe a function is not available
14080 # than to expect to find it in ncurses.
14082 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14083 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14084 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087 ac_check_lib_save_LIBS=$LIBS
14088 LIBS="-lncurses $LIBS"
14089 cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h. */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14096 /* Override any gcc2 internal prototype to avoid an error. */
14097 #ifdef __cplusplus
14098 extern "C"
14099 #endif
14100 /* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102 char tparm ();
14104 main ()
14106 tparm ();
14108 return 0;
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag"
14121 || test ! -s conftest.err'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try='test -s conftest$ac_exeext'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_cv_lib_ncurses_tparm=yes
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ac_cv_lib_ncurses_tparm=no
14140 rm -f conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14144 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14145 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14146 if test $ac_cv_lib_ncurses_tparm = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_LIBNCURSES 1
14149 _ACEOF
14151 LIBS="-lncurses $LIBS"
14156 # Do we need the Hesiod library to provide the support routines?
14157 if test "$with_hesiod" = yes ; then
14158 # Don't set $LIBS here -- see comments above.
14159 resolv=no
14160 echo "$as_me:$LINENO: checking for res_send" >&5
14161 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14162 if test "${ac_cv_func_res_send+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
14172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14173 #define res_send innocuous_res_send
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char res_send (); below.
14177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178 <limits.h> exists even on freestanding compilers. */
14180 #ifdef __STDC__
14181 # include <limits.h>
14182 #else
14183 # include <assert.h>
14184 #endif
14186 #undef res_send
14188 /* Override any gcc2 internal prototype to avoid an error. */
14189 #ifdef __cplusplus
14190 extern "C"
14192 #endif
14193 /* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14195 char res_send ();
14196 /* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199 #if defined (__stub_res_send) || defined (__stub___res_send)
14200 choke me
14201 #else
14202 char (*f) () = res_send;
14203 #endif
14204 #ifdef __cplusplus
14206 #endif
14209 main ()
14211 return f != res_send;
14213 return 0;
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_func_res_send=yes
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_func_res_send=no
14245 rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14248 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14249 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14250 if test $ac_cv_func_res_send = yes; then
14252 else
14253 echo "$as_me:$LINENO: checking for __res_send" >&5
14254 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14255 if test "${ac_cv_func___res_send+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
14265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14266 #define __res_send innocuous___res_send
14268 /* System header to define __stub macros and hopefully few prototypes,
14269 which can conflict with char __res_send (); below.
14270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14271 <limits.h> exists even on freestanding compilers. */
14273 #ifdef __STDC__
14274 # include <limits.h>
14275 #else
14276 # include <assert.h>
14277 #endif
14279 #undef __res_send
14281 /* Override any gcc2 internal prototype to avoid an error. */
14282 #ifdef __cplusplus
14283 extern "C"
14285 #endif
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288 char __res_send ();
14289 /* The GNU C library defines this for functions which it implements
14290 to always fail with ENOSYS. Some functions are actually named
14291 something starting with __ and the normal name is an alias. */
14292 #if defined (__stub___res_send) || defined (__stub_____res_send)
14293 choke me
14294 #else
14295 char (*f) () = __res_send;
14296 #endif
14297 #ifdef __cplusplus
14299 #endif
14302 main ()
14304 return f != __res_send;
14306 return 0;
14308 _ACEOF
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_func___res_send=yes
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_cv_func___res_send=no
14338 rm -f conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14341 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14342 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14343 if test $ac_cv_func___res_send = yes; then
14345 else
14346 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14347 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14348 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 ac_check_lib_save_LIBS=$LIBS
14352 LIBS="-lresolv $LIBS"
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 /* Override any gcc2 internal prototype to avoid an error. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14366 char res_send ();
14368 main ()
14370 res_send ();
14372 return 0;
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest$ac_exeext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_lib_resolv_res_send=yes
14398 else
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_cv_lib_resolv_res_send=no
14404 rm -f conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14409 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14410 if test $ac_cv_lib_resolv_res_send = yes; then
14411 resolv=yes
14412 else
14413 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14414 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14415 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lresolv $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any gcc2 internal prototype to avoid an error. */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 /* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14433 char __res_send ();
14435 main ()
14437 __res_send ();
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
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); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_lib_resolv___res_send=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_cv_lib_resolv___res_send=no
14471 rm -f conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14476 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14477 if test $ac_cv_lib_resolv___res_send = yes; then
14478 resolv=yes
14487 if test "$resolv" = yes ; then
14488 RESOLVLIB=-lresolv
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_LIBRESOLV 1
14491 _ACEOF
14493 else
14494 RESOLVLIB=
14496 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14497 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14498 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define hes_getmailhost innocuous_hes_getmailhost
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char hes_getmailhost (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14516 #ifdef __STDC__
14517 # include <limits.h>
14518 #else
14519 # include <assert.h>
14520 #endif
14522 #undef hes_getmailhost
14524 /* Override any gcc2 internal prototype to avoid an error. */
14525 #ifdef __cplusplus
14526 extern "C"
14528 #endif
14529 /* We use char because int might match the return type of a gcc2
14530 builtin and then its argument prototype would still apply. */
14531 char hes_getmailhost ();
14532 /* The GNU C library defines this for functions which it implements
14533 to always fail with ENOSYS. Some functions are actually named
14534 something starting with __ and the normal name is an alias. */
14535 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14536 choke me
14537 #else
14538 char (*f) () = hes_getmailhost;
14539 #endif
14540 #ifdef __cplusplus
14542 #endif
14545 main ()
14547 return f != hes_getmailhost;
14549 return 0;
14551 _ACEOF
14552 rm -f conftest.$ac_objext conftest$ac_exeext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554 (eval $ac_link) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_func_hes_getmailhost=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_func_hes_getmailhost=no
14581 rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14584 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14585 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14586 if test $ac_cv_func_hes_getmailhost = yes; then
14588 else
14589 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14590 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14591 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lhesiod $RESOLVLIB $LIBS"
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any gcc2 internal prototype to avoid an error. */
14604 #ifdef __cplusplus
14605 extern "C"
14606 #endif
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14609 char hes_getmailhost ();
14611 main ()
14613 hes_getmailhost ();
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_lib_hesiod_hes_getmailhost=yes
14641 else
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ac_cv_lib_hesiod_hes_getmailhost=no
14647 rm -f conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14651 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14652 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14653 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_LIBHESIOD 1
14656 _ACEOF
14658 else
14666 # These tell us which Kerberos-related libraries to use.
14667 if test "${with_kerberos+set}" = set; then
14669 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14670 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14671 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lcom_err $LIBS"
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any gcc2 internal prototype to avoid an error. */
14684 #ifdef __cplusplus
14685 extern "C"
14686 #endif
14687 /* We use char because int might match the return type of a gcc2
14688 builtin and then its argument prototype would still apply. */
14689 char com_err ();
14691 main ()
14693 com_err ();
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
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); }; } &&
14714 { ac_try='test -s conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_lib_com_err_com_err=yes
14721 else
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_cv_lib_com_err_com_err=no
14727 rm -f conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14731 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14732 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14733 if test $ac_cv_lib_com_err_com_err = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBCOM_ERR 1
14736 _ACEOF
14738 LIBS="-lcom_err $LIBS"
14743 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14744 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14745 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lk5crypto $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any gcc2 internal prototype to avoid an error. */
14758 #ifdef __cplusplus
14759 extern "C"
14760 #endif
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763 char mit_des_cbc_encrypt ();
14765 main ()
14767 mit_des_cbc_encrypt ();
14769 return 0;
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774 (eval $ac_link) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14801 rm -f conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14805 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14806 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14807 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_LIBK5CRYPTO 1
14810 _ACEOF
14812 LIBS="-lk5crypto $LIBS"
14817 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14818 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14819 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lcrypto $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 #ifdef __cplusplus
14833 extern "C"
14834 #endif
14835 /* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14837 char mit_des_cbc_encrypt ();
14839 main ()
14841 mit_des_cbc_encrypt ();
14843 return 0;
14845 _ACEOF
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14848 (eval $ac_link) 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -z "$ac_c_werror_flag"
14856 || test ! -s conftest.err'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; } &&
14862 { ac_try='test -s conftest$ac_exeext'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14869 else
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14875 rm -f conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14877 LIBS=$ac_check_lib_save_LIBS
14879 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14880 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14881 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_LIBCRYPTO 1
14884 _ACEOF
14886 LIBS="-lcrypto $LIBS"
14891 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14892 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14893 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-lkrb5 $LIBS"
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char krb5_init_context ();
14913 main ()
14915 krb5_init_context ();
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest$ac_exeext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_cv_lib_krb5_krb5_init_context=yes
14943 else
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 ac_cv_lib_krb5_krb5_init_context=no
14949 rm -f conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14953 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14954 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14955 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_LIBKRB5 1
14958 _ACEOF
14960 LIBS="-lkrb5 $LIBS"
14964 if test "${with_kerberos5+set}" != set; then
14966 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14967 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14968 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 ac_check_lib_save_LIBS=$LIBS
14972 LIBS="-ldes425 $LIBS"
14973 cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h. */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14980 /* Override any gcc2 internal prototype to avoid an error. */
14981 #ifdef __cplusplus
14982 extern "C"
14983 #endif
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14986 char des_cbc_encrypt ();
14988 main ()
14990 des_cbc_encrypt ();
14992 return 0;
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_lib_des425_des_cbc_encrypt=yes
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_cv_lib_des425_des_cbc_encrypt=no
15024 rm -f conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15026 LIBS=$ac_check_lib_save_LIBS
15028 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15029 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15030 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_LIBDES425 1
15033 _ACEOF
15035 LIBS="-ldes425 $LIBS"
15037 else
15039 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15040 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15041 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044 ac_check_lib_save_LIBS=$LIBS
15045 LIBS="-ldes $LIBS"
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any gcc2 internal prototype to avoid an error. */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15059 char des_cbc_encrypt ();
15061 main ()
15063 des_cbc_encrypt ();
15065 return 0;
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag"
15078 || test ! -s conftest.err'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest$ac_exeext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_lib_des_des_cbc_encrypt=yes
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_cv_lib_des_des_cbc_encrypt=no
15097 rm -f conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
15099 LIBS=$ac_check_lib_save_LIBS
15101 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15102 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15103 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_LIBDES 1
15106 _ACEOF
15108 LIBS="-ldes $LIBS"
15115 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15116 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15117 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120 ac_check_lib_save_LIBS=$LIBS
15121 LIBS="-lkrb4 $LIBS"
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15129 /* Override any gcc2 internal prototype to avoid an error. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 /* We use char because int might match the return type of a gcc2
15134 builtin and then its argument prototype would still apply. */
15135 char krb_get_cred ();
15137 main ()
15139 krb_get_cred ();
15141 return 0;
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_krb4_krb_get_cred=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_krb4_krb_get_cred=no
15173 rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15178 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15179 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_LIBKRB4 1
15182 _ACEOF
15184 LIBS="-lkrb4 $LIBS"
15186 else
15188 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15189 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15190 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-lkrb $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 /* Override any gcc2 internal prototype to avoid an error. */
15203 #ifdef __cplusplus
15204 extern "C"
15205 #endif
15206 /* We use char because int might match the return type of a gcc2
15207 builtin and then its argument prototype would still apply. */
15208 char krb_get_cred ();
15210 main ()
15212 krb_get_cred ();
15214 return 0;
15216 _ACEOF
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15219 (eval $ac_link) 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag"
15227 || test ! -s conftest.err'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try='test -s conftest$ac_exeext'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_lib_krb_krb_get_cred=yes
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_cv_lib_krb_krb_get_cred=no
15246 rm -f conftest.err conftest.$ac_objext \
15247 conftest$ac_exeext conftest.$ac_ext
15248 LIBS=$ac_check_lib_save_LIBS
15250 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15251 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15252 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15253 cat >>confdefs.h <<_ACEOF
15254 #define HAVE_LIBKRB 1
15255 _ACEOF
15257 LIBS="-lkrb $LIBS"
15265 if test "${with_kerberos5+set}" = set; then
15267 for ac_header in krb5.h
15269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15271 echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15278 else
15279 # Is the header compilable?
15280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 $ac_includes_default
15289 #include <$ac_header>
15290 _ACEOF
15291 rm -f conftest.$ac_objext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_header_compiler=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_compiler=no
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322 echo "${ECHO_T}$ac_header_compiler" >&6
15324 # Is the header present?
15325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <$ac_header>
15334 _ACEOF
15335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null; then
15343 if test -s conftest.err; then
15344 ac_cpp_err=$ac_c_preproc_warn_flag
15345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15346 else
15347 ac_cpp_err=
15349 else
15350 ac_cpp_err=yes
15352 if test -z "$ac_cpp_err"; then
15353 ac_header_preproc=yes
15354 else
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 ac_header_preproc=no
15360 rm -f conftest.err conftest.$ac_ext
15361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15362 echo "${ECHO_T}$ac_header_preproc" >&6
15364 # So? What about this header?
15365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15366 yes:no: )
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15371 ac_header_preproc=yes
15373 no:yes:* )
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15387 cat <<\_ASBOX
15388 ## ------------------------------------------ ##
15389 ## Report this to the AC_PACKAGE_NAME lists. ##
15390 ## ------------------------------------------ ##
15391 _ASBOX
15393 sed "s/^/$as_me: WARNING: /" >&2
15395 esac
15396 echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401 eval "$as_ac_Header=\$ac_header_preproc"
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15408 cat >>confdefs.h <<_ACEOF
15409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15410 _ACEOF
15414 done
15416 else
15418 for ac_header in des.h
15420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15422 echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15429 else
15430 # Is the header compilable?
15431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h. */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 $ac_includes_default
15440 #include <$ac_header>
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -z "$ac_c_werror_flag"
15452 || test ! -s conftest.err'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_header_compiler=yes
15465 else
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_header_compiler=no
15471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15473 echo "${ECHO_T}$ac_header_compiler" >&6
15475 # Is the header present?
15476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 #include <$ac_header>
15485 _ACEOF
15486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } >/dev/null; then
15494 if test -s conftest.err; then
15495 ac_cpp_err=$ac_c_preproc_warn_flag
15496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15497 else
15498 ac_cpp_err=
15500 else
15501 ac_cpp_err=yes
15503 if test -z "$ac_cpp_err"; then
15504 ac_header_preproc=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_header_preproc=no
15511 rm -f conftest.err conftest.$ac_ext
15512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15513 echo "${ECHO_T}$ac_header_preproc" >&6
15515 # So? What about this header?
15516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15517 yes:no: )
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15522 ac_header_preproc=yes
15524 no:yes:* )
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15538 cat <<\_ASBOX
15539 ## ------------------------------------------ ##
15540 ## Report this to the AC_PACKAGE_NAME lists. ##
15541 ## ------------------------------------------ ##
15542 _ASBOX
15544 sed "s/^/$as_me: WARNING: /" >&2
15546 esac
15547 echo "$as_me:$LINENO: checking for $ac_header" >&5
15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 eval "$as_ac_Header=\$ac_header_preproc"
15554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 _ACEOF
15563 else
15565 for ac_header in kerberosIV/des.h
15567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15569 echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15576 else
15577 # Is the header compilable?
15578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15587 #include <$ac_header>
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_header_compiler=yes
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 ac_header_compiler=no
15618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620 echo "${ECHO_T}$ac_header_compiler" >&6
15622 # Is the header present?
15623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <$ac_header>
15632 _ACEOF
15633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } >/dev/null; then
15641 if test -s conftest.err; then
15642 ac_cpp_err=$ac_c_preproc_warn_flag
15643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15644 else
15645 ac_cpp_err=
15647 else
15648 ac_cpp_err=yes
15650 if test -z "$ac_cpp_err"; then
15651 ac_header_preproc=yes
15652 else
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_header_preproc=no
15658 rm -f conftest.err conftest.$ac_ext
15659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15660 echo "${ECHO_T}$ac_header_preproc" >&6
15662 # So? What about this header?
15663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664 yes:no:
15667 done
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15675 no:yes:* )
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15689 cat <<\_ASBOX
15690 ## ------------------------------------------ ##
15691 ## Report this to the AC_PACKAGE_NAME lists. ##
15692 ## ------------------------------------------ ##
15693 _ASBOX
15695 sed "s/^/$as_me: WARNING: /" >&2
15697 esac
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 eval "$as_ac_Header=\$ac_header_preproc"
15705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15712 _ACEOF
15714 else
15716 for ac_header in kerberos/des.h
15718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720 echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15727 else
15728 # Is the header compilable?
15729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 $ac_includes_default
15738 #include <$ac_header>
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
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); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_header_compiler=yes
15763 else
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 ac_header_compiler=no
15769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6
15773 # Is the header present?
15774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <$ac_header>
15783 _ACEOF
15784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev/null; then
15792 if test -s conftest.err; then
15793 ac_cpp_err=$ac_c_preproc_warn_flag
15794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795 else
15796 ac_cpp_err=
15798 else
15799 ac_cpp_err=yes
15801 if test -z "$ac_cpp_err"; then
15802 ac_header_preproc=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_header_preproc=no
15809 rm -f conftest.err conftest.$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 echo "${ECHO_T}$ac_header_preproc" >&6
15813 # So? What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 yes:no:
15818 done
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15826 no:yes:* )
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15840 cat <<\_ASBOX
15841 ## ------------------------------------------ ##
15842 ## Report this to the AC_PACKAGE_NAME lists. ##
15843 ## ------------------------------------------ ##
15844 _ASBOX
15846 sed "s/^/$as_me: WARNING: /" >&2
15848 esac
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854 eval "$as_ac_Header=\$ac_header_preproc"
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15863 _ACEOF
15867 done
15870 for ac_header in krb.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 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 $ac_includes_default
15892 #include <$ac_header>
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_c_werror_flag"
15904 || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_header_compiler=no
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15937 _ACEOF
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev/null; then
15946 if test -s conftest.err; then
15947 ac_cpp_err=$ac_c_preproc_warn_flag
15948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15949 else
15950 ac_cpp_err=
15952 else
15953 ac_cpp_err=yes
15955 if test -z "$ac_cpp_err"; then
15956 ac_header_preproc=yes
15957 else
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_header_preproc=no
15963 rm -f conftest.err conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965 echo "${ECHO_T}$ac_header_preproc" >&6
15967 # So? What about this header?
15968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969 yes:no: )
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15974 ac_header_preproc=yes
15976 no:yes:* )
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15990 cat <<\_ASBOX
15991 ## ------------------------------------------ ##
15992 ## Report this to the AC_PACKAGE_NAME lists. ##
15993 ## ------------------------------------------ ##
15994 _ASBOX
15996 sed "s/^/$as_me: WARNING: /" >&2
15998 esac
15999 echo "$as_me:$LINENO: checking for $ac_header" >&5
16000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 eval "$as_ac_Header=\$ac_header_preproc"
16006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16011 cat >>confdefs.h <<_ACEOF
16012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013 _ACEOF
16015 else
16017 for ac_header in kerberosIV/krb.h
16019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16021 echo "$as_me:$LINENO: checking for $ac_header" >&5
16022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16028 else
16029 # Is the header compilable?
16030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h. */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 $ac_includes_default
16039 #include <$ac_header>
16040 _ACEOF
16041 rm -f conftest.$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_header_compiler=yes
16064 else
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_compiler=no
16070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6
16074 # Is the header present?
16075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16084 _ACEOF
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null; then
16093 if test -s conftest.err; then
16094 ac_cpp_err=$ac_c_preproc_warn_flag
16095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16096 else
16097 ac_cpp_err=
16099 else
16100 ac_cpp_err=yes
16102 if test -z "$ac_cpp_err"; then
16103 ac_header_preproc=yes
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_header_preproc=no
16110 rm -f conftest.err conftest.$ac_ext
16111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6
16114 # So? What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116 yes:no:
16119 done
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
16127 no:yes:* )
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16141 cat <<\_ASBOX
16142 ## ------------------------------------------ ##
16143 ## Report this to the AC_PACKAGE_NAME lists. ##
16144 ## ------------------------------------------ ##
16145 _ASBOX
16147 sed "s/^/$as_me: WARNING: /" >&2
16149 esac
16150 echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155 eval "$as_ac_Header=\$ac_header_preproc"
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16162 cat >>confdefs.h <<_ACEOF
16163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164 _ACEOF
16166 else
16168 for ac_header in kerberos/krb.h
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16179 else
16180 # Is the header compilable?
16181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 #include <$ac_header>
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_header_compiler=no
16221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6
16225 # Is the header present?
16226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16235 _ACEOF
16236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev/null; then
16244 if test -s conftest.err; then
16245 ac_cpp_err=$ac_c_preproc_warn_flag
16246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16247 else
16248 ac_cpp_err=
16250 else
16251 ac_cpp_err=yes
16253 if test -z "$ac_cpp_err"; then
16254 ac_header_preproc=yes
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_header_preproc=no
16261 rm -f conftest.err conftest.$ac_ext
16262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16263 echo "${ECHO_T}$ac_header_preproc" >&6
16265 # So? What about this header?
16266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16267 yes:no:
16270 done
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc=yes
16278 no:yes:* )
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16292 cat <<\_ASBOX
16293 ## ------------------------------------------ ##
16294 ## Report this to the AC_PACKAGE_NAME lists. ##
16295 ## ------------------------------------------ ##
16296 _ASBOX
16298 sed "s/^/$as_me: WARNING: /" >&2
16300 esac
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 _ACEOF
16319 done
16323 for ac_header in com_err.h
16325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334 else
16335 # Is the header compilable?
16336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 #include <$ac_header>
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349 (eval $ac_compile) 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag"
16357 || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_compiler=no
16376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6
16380 # Is the header present?
16381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <$ac_header>
16390 _ACEOF
16391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev/null; then
16399 if test -s conftest.err; then
16400 ac_cpp_err=$ac_c_preproc_warn_flag
16401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16402 else
16403 ac_cpp_err=
16405 else
16406 ac_cpp_err=yes
16408 if test -z "$ac_cpp_err"; then
16409 ac_header_preproc=yes
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_header_preproc=no
16416 rm -f conftest.err conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16422 yes:no: )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
16429 no:yes:* )
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443 cat <<\_ASBOX
16444 ## ------------------------------------------ ##
16445 ## Report this to the AC_PACKAGE_NAME lists. ##
16446 ## ------------------------------------------ ##
16447 _ASBOX
16449 sed "s/^/$as_me: WARNING: /" >&2
16451 esac
16452 echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457 eval "$as_ac_Header=\$ac_header_preproc"
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16466 _ACEOF
16470 done
16474 # Solaris requires -lintl if you want strerror (which calls dgettext)
16475 # to return localized messages.
16477 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16478 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16479 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lintl $LIBS"
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16491 /* Override any gcc2 internal prototype to avoid an error. */
16492 #ifdef __cplusplus
16493 extern "C"
16494 #endif
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16497 char dgettext ();
16499 main ()
16501 dgettext ();
16503 return 0;
16505 _ACEOF
16506 rm -f conftest.$ac_objext conftest$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_lib_intl_dgettext=yes
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_lib_intl_dgettext=no
16535 rm -f conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16539 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16540 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16541 if test $ac_cv_lib_intl_dgettext = yes; then
16542 cat >>confdefs.h <<_ACEOF
16543 #define HAVE_LIBINTL 1
16544 _ACEOF
16546 LIBS="-lintl $LIBS"
16551 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16552 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16553 if test "${emacs_cv_localtime_cache+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 if test x$ac_cv_func_tzset = xyes; then
16557 if test "$cross_compiling" = yes; then
16558 # If we have tzset, assume the worst when cross-compiling.
16559 emacs_cv_localtime_cache=yes
16560 else
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 #include <time.h>
16568 extern char **environ;
16569 unset_TZ ()
16571 char **from, **to;
16572 for (to = from = environ; (*to = *from); from++)
16573 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16574 to++;
16576 char TZ_GMT0[] = "TZ=GMT0";
16577 char TZ_PST8[] = "TZ=PST8";
16578 main()
16580 time_t now = time ((time_t *) 0);
16581 int hour_GMT0, hour_unset;
16582 if (putenv (TZ_GMT0) != 0)
16583 exit (1);
16584 hour_GMT0 = localtime (&now)->tm_hour;
16585 unset_TZ ();
16586 hour_unset = localtime (&now)->tm_hour;
16587 if (putenv (TZ_PST8) != 0)
16588 exit (1);
16589 if (localtime (&now)->tm_hour == hour_GMT0)
16590 exit (1);
16591 unset_TZ ();
16592 if (localtime (&now)->tm_hour != hour_unset)
16593 exit (1);
16594 exit (0);
16596 _ACEOF
16597 rm -f conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 emacs_cv_localtime_cache=no
16609 else
16610 echo "$as_me: program exited with status $ac_status" >&5
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ( exit $ac_status )
16615 emacs_cv_localtime_cache=yes
16617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16619 else
16620 # If we lack tzset, report that localtime does not cache TZ,
16621 # since we can't invalidate the cache if we don't have tzset.
16622 emacs_cv_localtime_cache=no
16625 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16626 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16627 if test $emacs_cv_localtime_cache = yes; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define LOCALTIME_CACHE 1
16630 _ACEOF
16634 if test "x$HAVE_TIMEVAL" = xyes; then
16636 for ac_func in gettimeofday
16638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16641 if eval "test \"\${$as_ac_var+set}\" = set"; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16659 #ifdef __STDC__
16660 # include <limits.h>
16661 #else
16662 # include <assert.h>
16663 #endif
16665 #undef $ac_func
16667 /* Override any gcc2 internal prototype to avoid an error. */
16668 #ifdef __cplusplus
16669 extern "C"
16671 #endif
16672 /* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16674 char $ac_func ();
16675 /* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16679 choke me
16680 #else
16681 char (*f) () = $ac_func;
16682 #endif
16683 #ifdef __cplusplus
16685 #endif
16688 main ()
16690 return f != $ac_func;
16692 return 0;
16694 _ACEOF
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16697 (eval $ac_link) 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 eval "$as_ac_var=yes"
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 eval "$as_ac_var=no"
16724 rm -f conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16729 if test `eval echo '${'$as_ac_var'}'` = yes; then
16730 cat >>confdefs.h <<_ACEOF
16731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16732 _ACEOF
16735 done
16737 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16738 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16739 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h. */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16749 #ifdef TIME_WITH_SYS_TIME
16750 #include <sys/time.h>
16751 #include <time.h>
16752 #else
16753 #ifdef HAVE_SYS_TIME_H
16754 #include <sys/time.h>
16755 #else
16756 #include <time.h>
16757 #endif
16758 #endif
16760 main ()
16762 struct timeval time;
16763 gettimeofday (&time, 0);
16765 return 0;
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>conftest.er1
16771 ac_status=$?
16772 grep -v '^ *+' conftest.er1 >conftest.err
16773 rm -f conftest.er1
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -z "$ac_c_werror_flag"
16778 || test ! -s conftest.err'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest.$ac_objext'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 emacs_cv_gettimeofday_two_arguments=yes
16791 else
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 emacs_cv_gettimeofday_two_arguments=no
16797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16799 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16800 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16801 if test $emacs_cv_gettimeofday_two_arguments = no; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16804 _ACEOF
16809 if test "$ac_cv_func_gettimeofday" = yes; then
16810 echo "$as_me:$LINENO: checking for struct timezone" >&5
16811 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16812 if test "${emacs_cv_struct_timezone+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #include <sys/time.h>
16823 main ()
16825 struct timezone tz;
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 if test "$cross_compiling" = yes; then
16853 emacs_cv_struct_timezone=yes
16854 else
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 #ifdef TIME_WITH_SYS_TIME
16863 #include <sys/time.h>
16864 #include <time.h>
16865 #else
16866 #ifdef HAVE_SYS_TIME_H
16867 #include <sys/time.h>
16868 #else
16869 #include <time.h>
16870 #endif
16871 #endif
16872 main () {
16873 struct timeval time;
16874 struct timezone dummy;
16875 exit (gettimeofday (&time, &dummy));
16877 _ACEOF
16878 rm -f conftest$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 emacs_cv_struct_timezone=yes
16890 else
16891 echo "$as_me: program exited with status $ac_status" >&5
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 ( exit $ac_status )
16896 emacs_cv_struct_timezone=no
16898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 emacs_cv_struct_timezone=no
16906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16909 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16912 ok_so_far=yes
16913 echo "$as_me:$LINENO: checking for socket" >&5
16914 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16915 if test "${ac_cv_func_socket+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define socket innocuous_socket
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char socket (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16933 #ifdef __STDC__
16934 # include <limits.h>
16935 #else
16936 # include <assert.h>
16937 #endif
16939 #undef socket
16941 /* Override any gcc2 internal prototype to avoid an error. */
16942 #ifdef __cplusplus
16943 extern "C"
16945 #endif
16946 /* We use char because int might match the return type of a gcc2
16947 builtin and then its argument prototype would still apply. */
16948 char socket ();
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined (__stub_socket) || defined (__stub___socket)
16953 choke me
16954 #else
16955 char (*f) () = socket;
16956 #endif
16957 #ifdef __cplusplus
16959 #endif
16962 main ()
16964 return f != socket;
16966 return 0;
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971 (eval $ac_link) 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_func_socket=yes
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_func_socket=no
16998 rm -f conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17001 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17002 echo "${ECHO_T}$ac_cv_func_socket" >&6
17003 if test $ac_cv_func_socket = yes; then
17005 else
17006 ok_so_far=no
17009 if test $ok_so_far = yes; then
17010 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17011 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17012 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17013 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17017 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17018 else
17019 # Is the header compilable?
17020 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17021 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 $ac_includes_default
17029 #include <netinet/in.h>
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033 (eval $ac_compile) 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_header_compiler=yes
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_header_compiler=no
17060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17062 echo "${ECHO_T}$ac_header_compiler" >&6
17064 # Is the header present?
17065 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17066 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 #include <netinet/in.h>
17074 _ACEOF
17075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } >/dev/null; then
17083 if test -s conftest.err; then
17084 ac_cpp_err=$ac_c_preproc_warn_flag
17085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17086 else
17087 ac_cpp_err=
17089 else
17090 ac_cpp_err=yes
17092 if test -z "$ac_cpp_err"; then
17093 ac_header_preproc=yes
17094 else
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_header_preproc=no
17100 rm -f conftest.err conftest.$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102 echo "${ECHO_T}$ac_header_preproc" >&6
17104 # So? What about this header?
17105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17106 yes:no: )
17107 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17108 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17110 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17111 ac_header_preproc=yes
17113 no:yes:* )
17114 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17115 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17117 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
17119 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
17121 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17123 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
17125 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17127 cat <<\_ASBOX
17128 ## ------------------------------------------ ##
17129 ## Report this to the AC_PACKAGE_NAME lists. ##
17130 ## ------------------------------------------ ##
17131 _ASBOX
17133 sed "s/^/$as_me: WARNING: /" >&2
17135 esac
17136 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17137 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17138 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141 ac_cv_header_netinet_in_h=$ac_header_preproc
17143 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17144 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17147 if test $ac_cv_header_netinet_in_h = yes; then
17149 else
17150 ok_so_far=no
17155 if test $ok_so_far = yes; then
17156 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17157 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17158 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17159 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17163 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17164 else
17165 # Is the header compilable?
17166 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17167 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 $ac_includes_default
17175 #include <arpa/inet.h>
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_header_compiler=yes
17200 else
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_header_compiler=no
17206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17208 echo "${ECHO_T}$ac_header_compiler" >&6
17210 # Is the header present?
17211 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17212 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <arpa/inet.h>
17220 _ACEOF
17221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17223 ac_status=$?
17224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } >/dev/null; then
17229 if test -s conftest.err; then
17230 ac_cpp_err=$ac_c_preproc_warn_flag
17231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17232 else
17233 ac_cpp_err=
17235 else
17236 ac_cpp_err=yes
17238 if test -z "$ac_cpp_err"; then
17239 ac_header_preproc=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_header_preproc=no
17246 rm -f conftest.err conftest.$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17248 echo "${ECHO_T}$ac_header_preproc" >&6
17250 # So? What about this header?
17251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17252 yes:no: )
17253 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17254 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17256 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17257 ac_header_preproc=yes
17259 no:yes:* )
17260 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17261 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17263 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
17265 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
17267 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17269 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
17271 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17273 cat <<\_ASBOX
17274 ## ------------------------------------------ ##
17275 ## Report this to the AC_PACKAGE_NAME lists. ##
17276 ## ------------------------------------------ ##
17277 _ASBOX
17279 sed "s/^/$as_me: WARNING: /" >&2
17281 esac
17282 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17283 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17284 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287 ac_cv_header_arpa_inet_h=$ac_header_preproc
17289 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17290 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17293 if test $ac_cv_header_arpa_inet_h = yes; then
17295 else
17296 ok_so_far=no
17301 if test $ok_so_far = yes; then
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_INET_SOCKETS 1
17304 _ACEOF
17308 if test -f /usr/lpp/X11/bin/smt.exp; then
17309 cat >>confdefs.h <<\_ACEOF
17310 #define HAVE_AIX_SMT_EXP 1
17311 _ACEOF
17315 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17316 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17317 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17318 echo "$as_me:$LINENO: result: yes" >&5
17319 echo "${ECHO_T}yes" >&6
17320 cat >>confdefs.h <<\_ACEOF
17321 #define HAVE_DEV_PTMX 1
17322 _ACEOF
17324 else
17325 echo "$as_me:$LINENO: result: no" >&5
17326 echo "${ECHO_T}no" >&6
17329 echo "$as_me:$LINENO: checking for pid_t" >&5
17330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17331 if test "${ac_cv_type_pid_t+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17342 main ()
17344 if ((pid_t *) 0)
17345 return 0;
17346 if (sizeof (pid_t))
17347 return 0;
17349 return 0;
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_type_pid_t=yes
17375 else
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_type_pid_t=no
17381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17383 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17384 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17385 if test $ac_cv_type_pid_t = yes; then
17387 else
17389 cat >>confdefs.h <<_ACEOF
17390 #define pid_t int
17391 _ACEOF
17397 for ac_header in unistd.h vfork.h
17399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17401 echo "$as_me:$LINENO: checking for $ac_header" >&5
17402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17408 else
17409 # Is the header compilable?
17410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 #include <$ac_header>
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_header_compiler=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 ac_header_compiler=no
17450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17452 echo "${ECHO_T}$ac_header_compiler" >&6
17454 # Is the header present?
17455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <$ac_header>
17464 _ACEOF
17465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } >/dev/null; then
17473 if test -s conftest.err; then
17474 ac_cpp_err=$ac_c_preproc_warn_flag
17475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17476 else
17477 ac_cpp_err=
17479 else
17480 ac_cpp_err=yes
17482 if test -z "$ac_cpp_err"; then
17483 ac_header_preproc=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_preproc=no
17490 rm -f conftest.err conftest.$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17492 echo "${ECHO_T}$ac_header_preproc" >&6
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17496 yes:no: )
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17501 ac_header_preproc=yes
17503 no:yes:* )
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17517 cat <<\_ASBOX
17518 ## ------------------------------------------ ##
17519 ## Report this to the AC_PACKAGE_NAME lists. ##
17520 ## ------------------------------------------ ##
17521 _ASBOX
17523 sed "s/^/$as_me: WARNING: /" >&2
17525 esac
17526 echo "$as_me:$LINENO: checking for $ac_header" >&5
17527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531 eval "$as_ac_Header=\$ac_header_preproc"
17533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17540 _ACEOF
17544 done
17548 for ac_func in fork vfork
17550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17551 echo "$as_me:$LINENO: checking for $ac_func" >&5
17552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17553 if eval "test \"\${$as_ac_var+set}\" = set"; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17564 #define $ac_func innocuous_$ac_func
17566 /* System header to define __stub macros and hopefully few prototypes,
17567 which can conflict with char $ac_func (); below.
17568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17569 <limits.h> exists even on freestanding compilers. */
17571 #ifdef __STDC__
17572 # include <limits.h>
17573 #else
17574 # include <assert.h>
17575 #endif
17577 #undef $ac_func
17579 /* Override any gcc2 internal prototype to avoid an error. */
17580 #ifdef __cplusplus
17581 extern "C"
17583 #endif
17584 /* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17586 char $ac_func ();
17587 /* The GNU C library defines this for functions which it implements
17588 to always fail with ENOSYS. Some functions are actually named
17589 something starting with __ and the normal name is an alias. */
17590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17591 choke me
17592 #else
17593 char (*f) () = $ac_func;
17594 #endif
17595 #ifdef __cplusplus
17597 #endif
17600 main ()
17602 return f != $ac_func;
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 eval "$as_ac_var=yes"
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 eval "$as_ac_var=no"
17636 rm -f conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17644 _ACEOF
17647 done
17649 if test "x$ac_cv_func_fork" = xyes; then
17650 echo "$as_me:$LINENO: checking for working fork" >&5
17651 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17652 if test "${ac_cv_func_fork_works+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655 if test "$cross_compiling" = yes; then
17656 ac_cv_func_fork_works=cross
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* By Ruediger Kuhlmann. */
17660 #include <sys/types.h>
17661 #if HAVE_UNISTD_H
17662 # include <unistd.h>
17663 #endif
17664 /* Some systems only have a dummy stub for fork() */
17665 int main ()
17667 if (fork() < 0)
17668 exit (1);
17669 exit (0);
17671 _ACEOF
17672 rm -f conftest$ac_exeext
17673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17674 (eval $ac_link) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; }; then
17683 ac_cv_func_fork_works=yes
17684 else
17685 echo "$as_me: program exited with status $ac_status" >&5
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ( exit $ac_status )
17690 ac_cv_func_fork_works=no
17692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17695 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17696 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17698 else
17699 ac_cv_func_fork_works=$ac_cv_func_fork
17701 if test "x$ac_cv_func_fork_works" = xcross; then
17702 case $host in
17703 *-*-amigaos* | *-*-msdosdjgpp*)
17704 # Override, as these systems have only a dummy fork() stub
17705 ac_cv_func_fork_works=no
17708 ac_cv_func_fork_works=yes
17710 esac
17711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17712 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17714 ac_cv_func_vfork_works=$ac_cv_func_vfork
17715 if test "x$ac_cv_func_vfork" = xyes; then
17716 echo "$as_me:$LINENO: checking for working vfork" >&5
17717 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17718 if test "${ac_cv_func_vfork_works+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 if test "$cross_compiling" = yes; then
17722 ac_cv_func_vfork_works=cross
17723 else
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 /* Thanks to Paul Eggert for this test. */
17731 #include <stdio.h>
17732 #include <stdlib.h>
17733 #include <sys/types.h>
17734 #include <sys/stat.h>
17735 #include <sys/wait.h>
17736 #if HAVE_UNISTD_H
17737 # include <unistd.h>
17738 #endif
17739 #if HAVE_VFORK_H
17740 # include <vfork.h>
17741 #endif
17742 /* On some sparc systems, changes by the child to local and incoming
17743 argument registers are propagated back to the parent. The compiler
17744 is told about this with #include <vfork.h>, but some compilers
17745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17746 static variable whose address is put into a register that is
17747 clobbered by the vfork. */
17748 static void
17749 #ifdef __cplusplus
17750 sparc_address_test (int arg)
17751 # else
17752 sparc_address_test (arg) int arg;
17753 #endif
17755 static pid_t child;
17756 if (!child) {
17757 child = vfork ();
17758 if (child < 0) {
17759 perror ("vfork");
17760 _exit(2);
17762 if (!child) {
17763 arg = getpid();
17764 write(-1, "", 0);
17765 _exit (arg);
17771 main ()
17773 pid_t parent = getpid ();
17774 pid_t child;
17776 sparc_address_test (0);
17778 child = vfork ();
17780 if (child == 0) {
17781 /* Here is another test for sparc vfork register problems. This
17782 test uses lots of local variables, at least as many local
17783 variables as main has allocated so far including compiler
17784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17786 reuse the register of parent for one of the local variables,
17787 since it will think that parent can't possibly be used any more
17788 in this routine. Assigning to the local variable will thus
17789 munge parent in the parent process. */
17790 pid_t
17791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17793 /* Convince the compiler that p..p7 are live; otherwise, it might
17794 use the same hardware register for all 8 local variables. */
17795 if (p != p1 || p != p2 || p != p3 || p != p4
17796 || p != p5 || p != p6 || p != p7)
17797 _exit(1);
17799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17800 from child file descriptors. If the child closes a descriptor
17801 before it execs or exits, this munges the parent's descriptor
17802 as well. Test for this by closing stdout in the child. */
17803 _exit(close(fileno(stdout)) != 0);
17804 } else {
17805 int status;
17806 struct stat st;
17808 while (wait(&status) != child)
17810 exit(
17811 /* Was there some problem with vforking? */
17812 child < 0
17814 /* Did the child fail? (This shouldn't happen.) */
17815 || status
17817 /* Did the vfork/compiler bug occur? */
17818 || parent != getpid()
17820 /* Did the file descriptor bug occur? */
17821 || fstat(fileno(stdout), &st) != 0
17825 _ACEOF
17826 rm -f conftest$ac_exeext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828 (eval $ac_link) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 ac_cv_func_vfork_works=yes
17838 else
17839 echo "$as_me: program exited with status $ac_status" >&5
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ( exit $ac_status )
17844 ac_cv_func_vfork_works=no
17846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17849 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17850 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17853 if test "x$ac_cv_func_fork_works" = xcross; then
17854 ac_cv_func_vfork_works=$ac_cv_func_vfork
17855 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17856 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17859 if test "x$ac_cv_func_vfork_works" = xyes; then
17861 cat >>confdefs.h <<\_ACEOF
17862 #define HAVE_WORKING_VFORK 1
17863 _ACEOF
17865 else
17867 cat >>confdefs.h <<\_ACEOF
17868 #define vfork fork
17869 _ACEOF
17872 if test "x$ac_cv_func_fork_works" = xyes; then
17874 cat >>confdefs.h <<\_ACEOF
17875 #define HAVE_WORKING_FORK 1
17876 _ACEOF
17881 # Fixme: This should be replaced when we have autoconf 2.14.
17882 echo "$as_me:$LINENO: checking for size_t" >&5
17883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17884 if test "${ac_cv_type_size_t+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17895 main ()
17897 if ((size_t *) 0)
17898 return 0;
17899 if (sizeof (size_t))
17900 return 0;
17902 return 0;
17904 _ACEOF
17905 rm -f conftest.$ac_objext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17907 (eval $ac_compile) 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag"
17915 || test ! -s conftest.err'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest.$ac_objext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_type_size_t=yes
17928 else
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ac_cv_type_size_t=no
17934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17936 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17937 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17938 if test $ac_cv_type_size_t = yes; then
17940 else
17942 cat >>confdefs.h <<_ACEOF
17943 #define size_t unsigned
17944 _ACEOF
17949 # Set up the CFLAGS for real compilation, so we can substitute it.
17950 CFLAGS="$REAL_CFLAGS"
17951 CPPFLAGS="$REAL_CPPFLAGS"
17953 #### Find out which version of Emacs this is.
17954 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17955 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17956 if test x"${version}" = x; then
17957 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17958 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17959 { (exit 1); exit 1; }; }
17962 ### Specify what sort of things we'll be editing into Makefile and config.h.
17963 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17995 cat >>confdefs.h <<_ACEOF
17996 #define EMACS_CONFIGURATION "${canonical}"
17997 _ACEOF
17999 cat >>confdefs.h <<_ACEOF
18000 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18001 _ACEOF
18003 cat >>confdefs.h <<_ACEOF
18004 #define config_machfile "${machfile}"
18005 _ACEOF
18007 cat >>confdefs.h <<_ACEOF
18008 #define config_opsysfile "${opsysfile}"
18009 _ACEOF
18011 cat >>confdefs.h <<_ACEOF
18012 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18013 _ACEOF
18015 cat >>confdefs.h <<_ACEOF
18016 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18017 _ACEOF
18019 cat >>confdefs.h <<_ACEOF
18020 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18021 _ACEOF
18023 cat >>confdefs.h <<_ACEOF
18024 #define UNEXEC_SRC ${UNEXEC_SRC}
18025 _ACEOF
18028 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_X_WINDOWS 1
18031 _ACEOF
18034 if test "${USE_X_TOOLKIT}" != "none" ; then
18035 cat >>confdefs.h <<\_ACEOF
18036 #define USE_X_TOOLKIT 1
18037 _ACEOF
18040 if test "${HAVE_X11}" = "yes" ; then
18041 cat >>confdefs.h <<\_ACEOF
18042 #define HAVE_X11 1
18043 _ACEOF
18046 if test "${HAVE_XFREE386}" = "yes" ; then
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_XFREE386 1
18049 _ACEOF
18052 if test "${HAVE_MENUS}" = "yes" ; then
18053 cat >>confdefs.h <<\_ACEOF
18054 #define HAVE_MENUS 1
18055 _ACEOF
18058 if test "${GNU_MALLOC}" = "yes" ; then
18059 cat >>confdefs.h <<\_ACEOF
18060 #define GNU_MALLOC 1
18061 _ACEOF
18064 if test "${REL_ALLOC}" = "yes" ; then
18065 cat >>confdefs.h <<\_ACEOF
18066 #define REL_ALLOC 1
18067 _ACEOF
18071 #### Report on what we decided to do.
18072 echo "
18073 Configured for \`${canonical}'.
18075 Where should the build process find the source code? ${srcdir}
18076 What operating system and machine description files should Emacs use?
18077 \`${opsysfile}' and \`${machfile}'
18078 What compiler should emacs be built with? ${CC} ${CFLAGS}
18079 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18080 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18081 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18082 What window system should Emacs use? ${window_system}
18083 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18085 if test -n "${x_includes}"; then
18086 echo " Where do we find X Windows header files? ${x_includes}"
18087 else
18088 echo " Where do we find X Windows header files? Standard dirs"
18090 if test -n "${x_libraries}"; then
18091 echo " Where do we find X Windows libraries? ${x_libraries}"
18092 else
18093 echo " Where do we find X Windows libraries? Standard dirs"
18096 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18097 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18098 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18099 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18100 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18101 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18102 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18103 echo
18105 # Remove any trailing slashes in these variables.
18106 test "${prefix}" != NONE &&
18107 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18108 test "${exec_prefix}" != NONE &&
18109 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18111 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18112 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18113 ## from Makefile.c can correctly provide the arg `-traditional' to the
18114 ## C preprocessor.
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 yes..yes
18123 _ACEOF
18124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18125 $EGREP "yes..yes" >/dev/null 2>&1; then
18126 CPP_NEED_TRADITIONAL=no
18127 else
18128 CPP_NEED_TRADITIONAL=yes
18130 rm -f conftest*
18133 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 leim/Makefile"
18134 ac_config_commands="$ac_config_commands default"
18135 cat >confcache <<\_ACEOF
18136 # This file is a shell script that caches the results of configure
18137 # tests run on this system so they can be shared between configure
18138 # scripts and configure runs, see configure's option --config-cache.
18139 # It is not useful on other systems. If it contains results you don't
18140 # want to keep, you may remove or edit it.
18142 # config.status only pays attention to the cache file if you give it
18143 # the --recheck option to rerun configure.
18145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18147 # following values.
18149 _ACEOF
18151 # The following way of writing the cache mishandles newlines in values,
18152 # but we know of no workaround that is simple, portable, and efficient.
18153 # So, don't put newlines in cache variables' values.
18154 # Ultrix sh set writes to stderr and can't be redirected directly,
18155 # and sets the high bit in the cache file unless we assign to the vars.
18157 (set) 2>&1 |
18158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18159 *ac_space=\ *)
18160 # `set' does not quote correctly, so add quotes (double-quote
18161 # substitution turns \\\\ into \\, and sed turns \\ into \).
18162 sed -n \
18163 "s/'/'\\\\''/g;
18164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18167 # `set' quotes correctly as required by POSIX, so do not add quotes.
18168 sed -n \
18169 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18171 esac;
18173 sed '
18174 t clear
18175 : clear
18176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18177 t end
18178 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18179 : end' >>confcache
18180 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18181 if test -w $cache_file; then
18182 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18183 cat confcache >$cache_file
18184 else
18185 echo "not updating unwritable cache $cache_file"
18188 rm -f confcache
18190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18191 # Let make expand exec_prefix.
18192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18194 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18195 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18196 # trailing colons and then remove the whole line if VPATH becomes empty
18197 # (actually we leave an empty line to preserve line numbers).
18198 if test "x$srcdir" = x.; then
18199 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18200 s/:*\$(srcdir):*/:/;
18201 s/:*\${srcdir}:*/:/;
18202 s/:*@srcdir@:*/:/;
18203 s/^\([^=]*=[ ]*\):*/\1/;
18204 s/:*$//;
18205 s/^[^=]*=[ ]*$//;
18209 DEFS=-DHAVE_CONFIG_H
18211 ac_libobjs=
18212 ac_ltlibobjs=
18213 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18214 # 1. Remove the extension, and $U if already installed.
18215 ac_i=`echo "$ac_i" |
18216 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18217 # 2. Add them.
18218 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18219 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18220 done
18221 LIBOBJS=$ac_libobjs
18223 LTLIBOBJS=$ac_ltlibobjs
18227 : ${CONFIG_STATUS=./config.status}
18228 ac_clean_files_save=$ac_clean_files
18229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18230 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18231 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18232 cat >$CONFIG_STATUS <<_ACEOF
18233 #! $SHELL
18234 # Generated by $as_me.
18235 # Run this file to recreate the current configuration.
18236 # Compiler output produced by configure, useful for debugging
18237 # configure, is in config.log if it exists.
18239 debug=false
18240 ac_cs_recheck=false
18241 ac_cs_silent=false
18242 SHELL=\${CONFIG_SHELL-$SHELL}
18243 _ACEOF
18245 cat >>$CONFIG_STATUS <<\_ACEOF
18246 ## --------------------- ##
18247 ## M4sh Initialization. ##
18248 ## --------------------- ##
18250 # Be Bourne compatible
18251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18252 emulate sh
18253 NULLCMD=:
18254 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18255 # is contrary to our usage. Disable this feature.
18256 alias -g '${1+"$@"}'='"$@"'
18257 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18258 set -o posix
18260 DUALCASE=1; export DUALCASE # for MKS sh
18262 # Support unset when possible.
18263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18264 as_unset=unset
18265 else
18266 as_unset=false
18270 # Work around bugs in pre-3.0 UWIN ksh.
18271 $as_unset ENV MAIL MAILPATH
18272 PS1='$ '
18273 PS2='> '
18274 PS4='+ '
18276 # NLS nuisances.
18277 for as_var in \
18278 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18279 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18280 LC_TELEPHONE LC_TIME
18282 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18283 eval $as_var=C; export $as_var
18284 else
18285 $as_unset $as_var
18287 done
18289 # Required to use basename.
18290 if expr a : '\(a\)' >/dev/null 2>&1; then
18291 as_expr=expr
18292 else
18293 as_expr=false
18296 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18297 as_basename=basename
18298 else
18299 as_basename=false
18303 # Name of the executable.
18304 as_me=`$as_basename "$0" ||
18305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18306 X"$0" : 'X\(//\)$' \| \
18307 X"$0" : 'X\(/\)$' \| \
18308 . : '\(.\)' 2>/dev/null ||
18309 echo X/"$0" |
18310 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18311 /^X\/\(\/\/\)$/{ s//\1/; q; }
18312 /^X\/\(\/\).*/{ s//\1/; q; }
18313 s/.*/./; q'`
18316 # PATH needs CR, and LINENO needs CR and PATH.
18317 # Avoid depending upon Character Ranges.
18318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18321 as_cr_digits='0123456789'
18322 as_cr_alnum=$as_cr_Letters$as_cr_digits
18324 # The user is always right.
18325 if test "${PATH_SEPARATOR+set}" != set; then
18326 echo "#! /bin/sh" >conf$$.sh
18327 echo "exit 0" >>conf$$.sh
18328 chmod +x conf$$.sh
18329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18330 PATH_SEPARATOR=';'
18331 else
18332 PATH_SEPARATOR=:
18334 rm -f conf$$.sh
18338 as_lineno_1=$LINENO
18339 as_lineno_2=$LINENO
18340 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18341 test "x$as_lineno_1" != "x$as_lineno_2" &&
18342 test "x$as_lineno_3" = "x$as_lineno_2" || {
18343 # Find who we are. Look in the path if we contain no path at all
18344 # relative or not.
18345 case $0 in
18346 *[\\/]* ) as_myself=$0 ;;
18347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18348 for as_dir in $PATH
18350 IFS=$as_save_IFS
18351 test -z "$as_dir" && as_dir=.
18352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18353 done
18356 esac
18357 # We did not find ourselves, most probably we were run as `sh COMMAND'
18358 # in which case we are not to be found in the path.
18359 if test "x$as_myself" = x; then
18360 as_myself=$0
18362 if test ! -f "$as_myself"; then
18363 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18364 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18365 { (exit 1); exit 1; }; }
18367 case $CONFIG_SHELL in
18369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18370 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18372 IFS=$as_save_IFS
18373 test -z "$as_dir" && as_dir=.
18374 for as_base in sh bash ksh sh5; do
18375 case $as_dir in
18377 if ("$as_dir/$as_base" -c '
18378 as_lineno_1=$LINENO
18379 as_lineno_2=$LINENO
18380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18381 test "x$as_lineno_1" != "x$as_lineno_2" &&
18382 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18383 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18384 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18385 CONFIG_SHELL=$as_dir/$as_base
18386 export CONFIG_SHELL
18387 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18388 fi;;
18389 esac
18390 done
18391 done
18393 esac
18395 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18396 # uniformly replaced by the line number. The first 'sed' inserts a
18397 # line-number line before each line; the second 'sed' does the real
18398 # work. The second script uses 'N' to pair each line-number line
18399 # with the numbered line, and appends trailing '-' during
18400 # substitution so that $LINENO is not a special case at line end.
18401 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18402 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18403 sed '=' <$as_myself |
18404 sed '
18406 s,$,-,
18407 : loop
18408 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18409 t loop
18410 s,-$,,
18411 s,^['$as_cr_digits']*\n,,
18412 ' >$as_me.lineno &&
18413 chmod +x $as_me.lineno ||
18414 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18415 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18416 { (exit 1); exit 1; }; }
18418 # Don't try to exec as it changes $[0], causing all sort of problems
18419 # (the dirname of $[0] is not the place where we might find the
18420 # original and so on. Autoconf is especially sensible to this).
18421 . ./$as_me.lineno
18422 # Exit status is that of the last command.
18423 exit
18427 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18428 *c*,-n*) ECHO_N= ECHO_C='
18429 ' ECHO_T=' ' ;;
18430 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18431 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18432 esac
18434 if expr a : '\(a\)' >/dev/null 2>&1; then
18435 as_expr=expr
18436 else
18437 as_expr=false
18440 rm -f conf$$ conf$$.exe conf$$.file
18441 echo >conf$$.file
18442 if ln -s conf$$.file conf$$ 2>/dev/null; then
18443 # We could just check for DJGPP; but this test a) works b) is more generic
18444 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18445 if test -f conf$$.exe; then
18446 # Don't use ln at all; we don't have any links
18447 as_ln_s='cp -p'
18448 else
18449 as_ln_s='ln -s'
18451 elif ln conf$$.file conf$$ 2>/dev/null; then
18452 as_ln_s=ln
18453 else
18454 as_ln_s='cp -p'
18456 rm -f conf$$ conf$$.exe conf$$.file
18458 if mkdir -p . 2>/dev/null; then
18459 as_mkdir_p=:
18460 else
18461 test -d ./-p && rmdir ./-p
18462 as_mkdir_p=false
18465 as_executable_p="test -f"
18467 # Sed expression to map a string onto a valid CPP name.
18468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18470 # Sed expression to map a string onto a valid variable name.
18471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18474 # IFS
18475 # We need space, tab and new line, in precisely that order.
18476 as_nl='
18478 IFS=" $as_nl"
18480 # CDPATH.
18481 $as_unset CDPATH
18483 exec 6>&1
18485 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18486 # report actual input values of CONFIG_FILES etc. instead of their
18487 # values after options handling. Logging --version etc. is OK.
18488 exec 5>>config.log
18490 echo
18491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18492 ## Running $as_me. ##
18493 _ASBOX
18494 } >&5
18495 cat >&5 <<_CSEOF
18497 This file was extended by $as_me, which was
18498 generated by GNU Autoconf 2.59. Invocation command line was
18500 CONFIG_FILES = $CONFIG_FILES
18501 CONFIG_HEADERS = $CONFIG_HEADERS
18502 CONFIG_LINKS = $CONFIG_LINKS
18503 CONFIG_COMMANDS = $CONFIG_COMMANDS
18504 $ $0 $@
18506 _CSEOF
18507 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18508 echo >&5
18509 _ACEOF
18511 # Files that config.status was made for.
18512 if test -n "$ac_config_files"; then
18513 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18516 if test -n "$ac_config_headers"; then
18517 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18520 if test -n "$ac_config_links"; then
18521 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18524 if test -n "$ac_config_commands"; then
18525 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18528 cat >>$CONFIG_STATUS <<\_ACEOF
18530 ac_cs_usage="\
18531 \`$as_me' instantiates files from templates according to the
18532 current configuration.
18534 Usage: $0 [OPTIONS] [FILE]...
18536 -h, --help print this help, then exit
18537 -V, --version print version number, then exit
18538 -q, --quiet do not print progress messages
18539 -d, --debug don't remove temporary files
18540 --recheck update $as_me by reconfiguring in the same conditions
18541 --file=FILE[:TEMPLATE]
18542 instantiate the configuration file FILE
18543 --header=FILE[:TEMPLATE]
18544 instantiate the configuration header FILE
18546 Configuration files:
18547 $config_files
18549 Configuration headers:
18550 $config_headers
18552 Configuration commands:
18553 $config_commands
18555 Report bugs to <bug-autoconf@gnu.org>."
18556 _ACEOF
18558 cat >>$CONFIG_STATUS <<_ACEOF
18559 ac_cs_version="\\
18560 config.status
18561 configured by $0, generated by GNU Autoconf 2.59,
18562 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18564 Copyright (C) 2003 Free Software Foundation, Inc.
18565 This config.status script is free software; the Free Software Foundation
18566 gives unlimited permission to copy, distribute and modify it."
18567 srcdir=$srcdir
18568 INSTALL="$INSTALL"
18569 _ACEOF
18571 cat >>$CONFIG_STATUS <<\_ACEOF
18572 # If no file are specified by the user, then we need to provide default
18573 # value. By we need to know if files were specified by the user.
18574 ac_need_defaults=:
18575 while test $# != 0
18577 case $1 in
18578 --*=*)
18579 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18580 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18581 ac_shift=:
18584 ac_option=$1
18585 ac_optarg=$2
18586 ac_shift=shift
18588 *) # This is not an option, so the user has probably given explicit
18589 # arguments.
18590 ac_option=$1
18591 ac_need_defaults=false;;
18592 esac
18594 case $ac_option in
18595 # Handling of the options.
18596 _ACEOF
18597 cat >>$CONFIG_STATUS <<\_ACEOF
18598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18599 ac_cs_recheck=: ;;
18600 --version | --vers* | -V )
18601 echo "$ac_cs_version"; exit 0 ;;
18602 --he | --h)
18603 # Conflict between --help and --header
18604 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18605 Try \`$0 --help' for more information." >&5
18606 echo "$as_me: error: ambiguous option: $1
18607 Try \`$0 --help' for more information." >&2;}
18608 { (exit 1); exit 1; }; };;
18609 --help | --hel | -h )
18610 echo "$ac_cs_usage"; exit 0 ;;
18611 --debug | --d* | -d )
18612 debug=: ;;
18613 --file | --fil | --fi | --f )
18614 $ac_shift
18615 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18616 ac_need_defaults=false;;
18617 --header | --heade | --head | --hea )
18618 $ac_shift
18619 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18620 ac_need_defaults=false;;
18621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18623 ac_cs_silent=: ;;
18625 # This is an error.
18626 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18627 Try \`$0 --help' for more information." >&5
18628 echo "$as_me: error: unrecognized option: $1
18629 Try \`$0 --help' for more information." >&2;}
18630 { (exit 1); exit 1; }; } ;;
18632 *) ac_config_targets="$ac_config_targets $1" ;;
18634 esac
18635 shift
18636 done
18638 ac_configure_extra_args=
18640 if $ac_cs_silent; then
18641 exec 6>/dev/null
18642 ac_configure_extra_args="$ac_configure_extra_args --silent"
18645 _ACEOF
18646 cat >>$CONFIG_STATUS <<_ACEOF
18647 if \$ac_cs_recheck; then
18648 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18649 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18652 _ACEOF
18654 cat >>$CONFIG_STATUS <<_ACEOF
18656 # INIT-COMMANDS section.
18659 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18661 _ACEOF
18665 cat >>$CONFIG_STATUS <<\_ACEOF
18666 for ac_config_target in $ac_config_targets
18668 case "$ac_config_target" in
18669 # Handling of arguments.
18670 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18671 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18672 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18673 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18674 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18675 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18676 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18677 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18678 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18679 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18680 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18681 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18682 { (exit 1); exit 1; }; };;
18683 esac
18684 done
18686 # If the user did not use the arguments to specify the items to instantiate,
18687 # then the envvar interface is used. Set only those that are not.
18688 # We use the long form for the default assignment because of an extremely
18689 # bizarre bug on SunOS 4.1.3.
18690 if $ac_need_defaults; then
18691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18696 # Have a temporary directory for convenience. Make it in the build tree
18697 # simply because there is no reason to put it here, and in addition,
18698 # creating and moving files from /tmp can sometimes cause problems.
18699 # Create a temporary directory, and hook for its removal unless debugging.
18700 $debug ||
18702 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18703 trap '{ (exit 1); exit 1; }' 1 2 13 15
18706 # Create a (secure) tmp directory for tmp files.
18709 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18710 test -n "$tmp" && test -d "$tmp"
18711 } ||
18713 tmp=./confstat$$-$RANDOM
18714 (umask 077 && mkdir $tmp)
18715 } ||
18717 echo "$me: cannot create a temporary directory in ." >&2
18718 { (exit 1); exit 1; }
18721 _ACEOF
18723 cat >>$CONFIG_STATUS <<_ACEOF
18726 # CONFIG_FILES section.
18729 # No need to generate the scripts if there are no CONFIG_FILES.
18730 # This happens for instance when ./config.status config.h
18731 if test -n "\$CONFIG_FILES"; then
18732 # Protect against being on the right side of a sed subst in config.status.
18733 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18734 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18735 s,@SHELL@,$SHELL,;t t
18736 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18737 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18738 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18739 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18740 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18741 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18742 s,@exec_prefix@,$exec_prefix,;t t
18743 s,@prefix@,$prefix,;t t
18744 s,@program_transform_name@,$program_transform_name,;t t
18745 s,@bindir@,$bindir,;t t
18746 s,@sbindir@,$sbindir,;t t
18747 s,@libexecdir@,$libexecdir,;t t
18748 s,@datadir@,$datadir,;t t
18749 s,@sysconfdir@,$sysconfdir,;t t
18750 s,@sharedstatedir@,$sharedstatedir,;t t
18751 s,@localstatedir@,$localstatedir,;t t
18752 s,@libdir@,$libdir,;t t
18753 s,@includedir@,$includedir,;t t
18754 s,@oldincludedir@,$oldincludedir,;t t
18755 s,@infodir@,$infodir,;t t
18756 s,@mandir@,$mandir,;t t
18757 s,@build_alias@,$build_alias,;t t
18758 s,@host_alias@,$host_alias,;t t
18759 s,@target_alias@,$target_alias,;t t
18760 s,@DEFS@,$DEFS,;t t
18761 s,@ECHO_C@,$ECHO_C,;t t
18762 s,@ECHO_N@,$ECHO_N,;t t
18763 s,@ECHO_T@,$ECHO_T,;t t
18764 s,@LIBS@,$LIBS,;t t
18765 s,@build@,$build,;t t
18766 s,@build_cpu@,$build_cpu,;t t
18767 s,@build_vendor@,$build_vendor,;t t
18768 s,@build_os@,$build_os,;t t
18769 s,@host@,$host,;t t
18770 s,@host_cpu@,$host_cpu,;t t
18771 s,@host_vendor@,$host_vendor,;t t
18772 s,@host_os@,$host_os,;t t
18773 s,@CC@,$CC,;t t
18774 s,@CFLAGS@,$CFLAGS,;t t
18775 s,@LDFLAGS@,$LDFLAGS,;t t
18776 s,@CPPFLAGS@,$CPPFLAGS,;t t
18777 s,@ac_ct_CC@,$ac_ct_CC,;t t
18778 s,@EXEEXT@,$EXEEXT,;t t
18779 s,@OBJEXT@,$OBJEXT,;t t
18780 s,@LN_S@,$LN_S,;t t
18781 s,@CPP@,$CPP,;t t
18782 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18783 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18784 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18785 s,@YACC@,$YACC,;t t
18786 s,@RANLIB@,$RANLIB,;t t
18787 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18788 s,@EGREP@,$EGREP,;t t
18789 s,@LIBSOUND@,$LIBSOUND,;t t
18790 s,@SET_MAKE@,$SET_MAKE,;t t
18791 s,@ALLOCA@,$ALLOCA,;t t
18792 s,@liblockfile@,$liblockfile,;t t
18793 s,@LIBOBJS@,$LIBOBJS,;t t
18794 s,@LIBOBJS@,$LIBOBJS,;t t
18795 s,@NEED_SETGID@,$NEED_SETGID,;t t
18796 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18797 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18798 s,@version@,$version,;t t
18799 s,@configuration@,$configuration,;t t
18800 s,@canonical@,$canonical,;t t
18801 s,@srcdir@,$srcdir,;t t
18802 s,@lispdir@,$lispdir,;t t
18803 s,@locallisppath@,$locallisppath,;t t
18804 s,@lisppath@,$lisppath,;t t
18805 s,@x_default_search_path@,$x_default_search_path,;t t
18806 s,@etcdir@,$etcdir,;t t
18807 s,@archlibdir@,$archlibdir,;t t
18808 s,@docdir@,$docdir,;t t
18809 s,@bitmapdir@,$bitmapdir,;t t
18810 s,@c_switch_system@,$c_switch_system,;t t
18811 s,@c_switch_machine@,$c_switch_machine,;t t
18812 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18813 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18814 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18815 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18816 s,@machfile@,$machfile,;t t
18817 s,@opsysfile@,$opsysfile,;t t
18818 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18819 CEOF
18821 _ACEOF
18823 cat >>$CONFIG_STATUS <<\_ACEOF
18824 # Split the substitutions into bite-sized pieces for seds with
18825 # small command number limits, like on Digital OSF/1 and HP-UX.
18826 ac_max_sed_lines=48
18827 ac_sed_frag=1 # Number of current file.
18828 ac_beg=1 # First line for current file.
18829 ac_end=$ac_max_sed_lines # Line after last line for current file.
18830 ac_more_lines=:
18831 ac_sed_cmds=
18832 while $ac_more_lines; do
18833 if test $ac_beg -gt 1; then
18834 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18835 else
18836 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18838 if test ! -s $tmp/subs.frag; then
18839 ac_more_lines=false
18840 else
18841 # The purpose of the label and of the branching condition is to
18842 # speed up the sed processing (if there are no `@' at all, there
18843 # is no need to browse any of the substitutions).
18844 # These are the two extra sed commands mentioned above.
18845 (echo ':t
18846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18847 if test -z "$ac_sed_cmds"; then
18848 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18849 else
18850 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18852 ac_sed_frag=`expr $ac_sed_frag + 1`
18853 ac_beg=$ac_end
18854 ac_end=`expr $ac_end + $ac_max_sed_lines`
18856 done
18857 if test -z "$ac_sed_cmds"; then
18858 ac_sed_cmds=cat
18860 fi # test -n "$CONFIG_FILES"
18862 _ACEOF
18863 cat >>$CONFIG_STATUS <<\_ACEOF
18864 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18866 case $ac_file in
18867 - | *:- | *:-:* ) # input from stdin
18868 cat >$tmp/stdin
18869 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18871 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18873 * ) ac_file_in=$ac_file.in ;;
18874 esac
18876 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18877 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18879 X"$ac_file" : 'X\(//\)[^/]' \| \
18880 X"$ac_file" : 'X\(//\)$' \| \
18881 X"$ac_file" : 'X\(/\)' \| \
18882 . : '\(.\)' 2>/dev/null ||
18883 echo X"$ac_file" |
18884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18886 /^X\(\/\/\)$/{ s//\1/; q; }
18887 /^X\(\/\).*/{ s//\1/; q; }
18888 s/.*/./; q'`
18889 { if $as_mkdir_p; then
18890 mkdir -p "$ac_dir"
18891 else
18892 as_dir="$ac_dir"
18893 as_dirs=
18894 while test ! -d "$as_dir"; do
18895 as_dirs="$as_dir $as_dirs"
18896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18898 X"$as_dir" : 'X\(//\)[^/]' \| \
18899 X"$as_dir" : 'X\(//\)$' \| \
18900 X"$as_dir" : 'X\(/\)' \| \
18901 . : '\(.\)' 2>/dev/null ||
18902 echo X"$as_dir" |
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18905 /^X\(\/\/\)$/{ s//\1/; q; }
18906 /^X\(\/\).*/{ s//\1/; q; }
18907 s/.*/./; q'`
18908 done
18909 test ! -n "$as_dirs" || mkdir $as_dirs
18910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18912 { (exit 1); exit 1; }; }; }
18914 ac_builddir=.
18916 if test "$ac_dir" != .; then
18917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18918 # A "../" for each directory in $ac_dir_suffix.
18919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18920 else
18921 ac_dir_suffix= ac_top_builddir=
18924 case $srcdir in
18925 .) # No --srcdir option. We are building in place.
18926 ac_srcdir=.
18927 if test -z "$ac_top_builddir"; then
18928 ac_top_srcdir=.
18929 else
18930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18931 fi ;;
18932 [\\/]* | ?:[\\/]* ) # Absolute path.
18933 ac_srcdir=$srcdir$ac_dir_suffix;
18934 ac_top_srcdir=$srcdir ;;
18935 *) # Relative path.
18936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18938 esac
18940 # Do not use `cd foo && pwd` to compute absolute paths, because
18941 # the directories may not exist.
18942 case `pwd` in
18943 .) ac_abs_builddir="$ac_dir";;
18945 case "$ac_dir" in
18946 .) ac_abs_builddir=`pwd`;;
18947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18949 esac;;
18950 esac
18951 case $ac_abs_builddir in
18952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18954 case ${ac_top_builddir}. in
18955 .) ac_abs_top_builddir=$ac_abs_builddir;;
18956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18958 esac;;
18959 esac
18960 case $ac_abs_builddir in
18961 .) ac_abs_srcdir=$ac_srcdir;;
18963 case $ac_srcdir in
18964 .) ac_abs_srcdir=$ac_abs_builddir;;
18965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18967 esac;;
18968 esac
18969 case $ac_abs_builddir in
18970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18972 case $ac_top_srcdir in
18973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18976 esac;;
18977 esac
18980 case $INSTALL in
18981 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18982 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18983 esac
18985 if test x"$ac_file" != x-; then
18986 { echo "$as_me:$LINENO: creating $ac_file" >&5
18987 echo "$as_me: creating $ac_file" >&6;}
18988 rm -f "$ac_file"
18990 # Let's still pretend it is `configure' which instantiates (i.e., don't
18991 # use $as_me), people would be surprised to read:
18992 # /* config.h. Generated by config.status. */
18993 if test x"$ac_file" = x-; then
18994 configure_input=
18995 else
18996 configure_input="$ac_file. "
18998 configure_input=$configure_input"Generated from `echo $ac_file_in |
18999 sed 's,.*/,,'` by configure."
19001 # First look for the input files in the build tree, otherwise in the
19002 # src tree.
19003 ac_file_inputs=`IFS=:
19004 for f in $ac_file_in; do
19005 case $f in
19006 -) echo $tmp/stdin ;;
19007 [\\/$]*)
19008 # Absolute (can't be DOS-style, as IFS=:)
19009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19010 echo "$as_me: error: cannot find input file: $f" >&2;}
19011 { (exit 1); exit 1; }; }
19012 echo "$f";;
19013 *) # Relative
19014 if test -f "$f"; then
19015 # Build tree
19016 echo "$f"
19017 elif test -f "$srcdir/$f"; then
19018 # Source tree
19019 echo "$srcdir/$f"
19020 else
19021 # /dev/null tree
19022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19023 echo "$as_me: error: cannot find input file: $f" >&2;}
19024 { (exit 1); exit 1; }; }
19025 fi;;
19026 esac
19027 done` || { (exit 1); exit 1; }
19028 _ACEOF
19029 cat >>$CONFIG_STATUS <<_ACEOF
19030 sed "$ac_vpsub
19031 $extrasub
19032 _ACEOF
19033 cat >>$CONFIG_STATUS <<\_ACEOF
19035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19036 s,@configure_input@,$configure_input,;t t
19037 s,@srcdir@,$ac_srcdir,;t t
19038 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19039 s,@top_srcdir@,$ac_top_srcdir,;t t
19040 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19041 s,@builddir@,$ac_builddir,;t t
19042 s,@abs_builddir@,$ac_abs_builddir,;t t
19043 s,@top_builddir@,$ac_top_builddir,;t t
19044 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19045 s,@INSTALL@,$ac_INSTALL,;t t
19046 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19047 rm -f $tmp/stdin
19048 if test x"$ac_file" != x-; then
19049 mv $tmp/out $ac_file
19050 else
19051 cat $tmp/out
19052 rm -f $tmp/out
19055 done
19056 _ACEOF
19057 cat >>$CONFIG_STATUS <<\_ACEOF
19060 # CONFIG_HEADER section.
19063 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19064 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19066 # ac_d sets the value in "#define NAME VALUE" lines.
19067 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19068 ac_dB='[ ].*$,\1#\2'
19069 ac_dC=' '
19070 ac_dD=',;t'
19071 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19072 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19073 ac_uB='$,\1#\2define\3'
19074 ac_uC=' '
19075 ac_uD=',;t'
19077 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19079 case $ac_file in
19080 - | *:- | *:-:* ) # input from stdin
19081 cat >$tmp/stdin
19082 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19084 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19086 * ) ac_file_in=$ac_file.in ;;
19087 esac
19089 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19090 echo "$as_me: creating $ac_file" >&6;}
19092 # First look for the input files in the build tree, otherwise in the
19093 # src tree.
19094 ac_file_inputs=`IFS=:
19095 for f in $ac_file_in; do
19096 case $f in
19097 -) echo $tmp/stdin ;;
19098 [\\/$]*)
19099 # Absolute (can't be DOS-style, as IFS=:)
19100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19101 echo "$as_me: error: cannot find input file: $f" >&2;}
19102 { (exit 1); exit 1; }; }
19103 # Do quote $f, to prevent DOS paths from being IFS'd.
19104 echo "$f";;
19105 *) # Relative
19106 if test -f "$f"; then
19107 # Build tree
19108 echo "$f"
19109 elif test -f "$srcdir/$f"; then
19110 # Source tree
19111 echo "$srcdir/$f"
19112 else
19113 # /dev/null tree
19114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19115 echo "$as_me: error: cannot find input file: $f" >&2;}
19116 { (exit 1); exit 1; }; }
19117 fi;;
19118 esac
19119 done` || { (exit 1); exit 1; }
19120 # Remove the trailing spaces.
19121 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19123 _ACEOF
19125 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19126 # `conftest.undefs', that substitutes the proper values into
19127 # config.h.in to produce config.h. The first handles `#define'
19128 # templates, and the second `#undef' templates.
19129 # And first: Protect against being on the right side of a sed subst in
19130 # config.status. Protect against being in an unquoted here document
19131 # in config.status.
19132 rm -f conftest.defines conftest.undefs
19133 # Using a here document instead of a string reduces the quoting nightmare.
19134 # Putting comments in sed scripts is not portable.
19136 # `end' is used to avoid that the second main sed command (meant for
19137 # 0-ary CPP macros) applies to n-ary macro definitions.
19138 # See the Autoconf documentation for `clear'.
19139 cat >confdef2sed.sed <<\_ACEOF
19140 s/[\\&,]/\\&/g
19141 s,[\\$`],\\&,g
19142 t clear
19143 : clear
19144 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19145 t end
19146 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19147 : end
19148 _ACEOF
19149 # If some macros were called several times there might be several times
19150 # the same #defines, which is useless. Nevertheless, we may not want to
19151 # sort them, since we want the *last* AC-DEFINE to be honored.
19152 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19153 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19154 rm -f confdef2sed.sed
19156 # This sed command replaces #undef with comments. This is necessary, for
19157 # example, in the case of _POSIX_SOURCE, which is predefined and required
19158 # on some systems where configure will not decide to define it.
19159 cat >>conftest.undefs <<\_ACEOF
19160 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19161 _ACEOF
19163 # Break up conftest.defines because some shells have a limit on the size
19164 # of here documents, and old seds have small limits too (100 cmds).
19165 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19166 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19167 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19168 echo ' :' >>$CONFIG_STATUS
19169 rm -f conftest.tail
19170 while grep . conftest.defines >/dev/null
19172 # Write a limited-size here document to $tmp/defines.sed.
19173 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19174 # Speed up: don't consider the non `#define' lines.
19175 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19176 # Work around the forget-to-reset-the-flag bug.
19177 echo 't clr' >>$CONFIG_STATUS
19178 echo ': clr' >>$CONFIG_STATUS
19179 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19180 echo 'CEOF
19181 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19182 rm -f $tmp/in
19183 mv $tmp/out $tmp/in
19184 ' >>$CONFIG_STATUS
19185 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19186 rm -f conftest.defines
19187 mv conftest.tail conftest.defines
19188 done
19189 rm -f conftest.defines
19190 echo ' fi # grep' >>$CONFIG_STATUS
19191 echo >>$CONFIG_STATUS
19193 # Break up conftest.undefs because some shells have a limit on the size
19194 # of here documents, and old seds have small limits too (100 cmds).
19195 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19196 rm -f conftest.tail
19197 while grep . conftest.undefs >/dev/null
19199 # Write a limited-size here document to $tmp/undefs.sed.
19200 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19201 # Speed up: don't consider the non `#undef'
19202 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19203 # Work around the forget-to-reset-the-flag bug.
19204 echo 't clr' >>$CONFIG_STATUS
19205 echo ': clr' >>$CONFIG_STATUS
19206 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19207 echo 'CEOF
19208 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19209 rm -f $tmp/in
19210 mv $tmp/out $tmp/in
19211 ' >>$CONFIG_STATUS
19212 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19213 rm -f conftest.undefs
19214 mv conftest.tail conftest.undefs
19215 done
19216 rm -f conftest.undefs
19218 cat >>$CONFIG_STATUS <<\_ACEOF
19219 # Let's still pretend it is `configure' which instantiates (i.e., don't
19220 # use $as_me), people would be surprised to read:
19221 # /* config.h. Generated by config.status. */
19222 if test x"$ac_file" = x-; then
19223 echo "/* Generated by configure. */" >$tmp/config.h
19224 else
19225 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19227 cat $tmp/in >>$tmp/config.h
19228 rm -f $tmp/in
19229 if test x"$ac_file" != x-; then
19230 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19232 echo "$as_me: $ac_file is unchanged" >&6;}
19233 else
19234 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$ac_file" : 'X\(//\)[^/]' \| \
19237 X"$ac_file" : 'X\(//\)$' \| \
19238 X"$ac_file" : 'X\(/\)' \| \
19239 . : '\(.\)' 2>/dev/null ||
19240 echo X"$ac_file" |
19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19243 /^X\(\/\/\)$/{ s//\1/; q; }
19244 /^X\(\/\).*/{ s//\1/; q; }
19245 s/.*/./; q'`
19246 { if $as_mkdir_p; then
19247 mkdir -p "$ac_dir"
19248 else
19249 as_dir="$ac_dir"
19250 as_dirs=
19251 while test ! -d "$as_dir"; do
19252 as_dirs="$as_dir $as_dirs"
19253 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19255 X"$as_dir" : 'X\(//\)[^/]' \| \
19256 X"$as_dir" : 'X\(//\)$' \| \
19257 X"$as_dir" : 'X\(/\)' \| \
19258 . : '\(.\)' 2>/dev/null ||
19259 echo X"$as_dir" |
19260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19262 /^X\(\/\/\)$/{ s//\1/; q; }
19263 /^X\(\/\).*/{ s//\1/; q; }
19264 s/.*/./; q'`
19265 done
19266 test ! -n "$as_dirs" || mkdir $as_dirs
19267 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19268 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19269 { (exit 1); exit 1; }; }; }
19271 rm -f $ac_file
19272 mv $tmp/config.h $ac_file
19274 else
19275 cat $tmp/config.h
19276 rm -f $tmp/config.h
19278 done
19279 _ACEOF
19280 cat >>$CONFIG_STATUS <<\_ACEOF
19283 # CONFIG_COMMANDS section.
19285 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19286 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19287 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19288 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19289 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19290 X"$ac_dest" : 'X\(//\)[^/]' \| \
19291 X"$ac_dest" : 'X\(//\)$' \| \
19292 X"$ac_dest" : 'X\(/\)' \| \
19293 . : '\(.\)' 2>/dev/null ||
19294 echo X"$ac_dest" |
19295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19297 /^X\(\/\/\)$/{ s//\1/; q; }
19298 /^X\(\/\).*/{ s//\1/; q; }
19299 s/.*/./; q'`
19300 { if $as_mkdir_p; then
19301 mkdir -p "$ac_dir"
19302 else
19303 as_dir="$ac_dir"
19304 as_dirs=
19305 while test ! -d "$as_dir"; do
19306 as_dirs="$as_dir $as_dirs"
19307 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19309 X"$as_dir" : 'X\(//\)[^/]' \| \
19310 X"$as_dir" : 'X\(//\)$' \| \
19311 X"$as_dir" : 'X\(/\)' \| \
19312 . : '\(.\)' 2>/dev/null ||
19313 echo X"$as_dir" |
19314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19316 /^X\(\/\/\)$/{ s//\1/; q; }
19317 /^X\(\/\).*/{ s//\1/; q; }
19318 s/.*/./; q'`
19319 done
19320 test ! -n "$as_dirs" || mkdir $as_dirs
19321 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19323 { (exit 1); exit 1; }; }; }
19325 ac_builddir=.
19327 if test "$ac_dir" != .; then
19328 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19329 # A "../" for each directory in $ac_dir_suffix.
19330 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19331 else
19332 ac_dir_suffix= ac_top_builddir=
19335 case $srcdir in
19336 .) # No --srcdir option. We are building in place.
19337 ac_srcdir=.
19338 if test -z "$ac_top_builddir"; then
19339 ac_top_srcdir=.
19340 else
19341 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19342 fi ;;
19343 [\\/]* | ?:[\\/]* ) # Absolute path.
19344 ac_srcdir=$srcdir$ac_dir_suffix;
19345 ac_top_srcdir=$srcdir ;;
19346 *) # Relative path.
19347 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19348 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19349 esac
19351 # Do not use `cd foo && pwd` to compute absolute paths, because
19352 # the directories may not exist.
19353 case `pwd` in
19354 .) ac_abs_builddir="$ac_dir";;
19356 case "$ac_dir" in
19357 .) ac_abs_builddir=`pwd`;;
19358 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19359 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19360 esac;;
19361 esac
19362 case $ac_abs_builddir in
19363 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19365 case ${ac_top_builddir}. in
19366 .) ac_abs_top_builddir=$ac_abs_builddir;;
19367 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19368 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19369 esac;;
19370 esac
19371 case $ac_abs_builddir in
19372 .) ac_abs_srcdir=$ac_srcdir;;
19374 case $ac_srcdir in
19375 .) ac_abs_srcdir=$ac_abs_builddir;;
19376 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19377 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19378 esac;;
19379 esac
19380 case $ac_abs_builddir in
19381 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19383 case $ac_top_srcdir in
19384 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19385 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19386 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19387 esac;;
19388 esac
19391 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19392 echo "$as_me: executing $ac_dest commands" >&6;}
19393 case $ac_dest in
19394 default )
19396 ### Make the necessary directories, if they don't exist.
19397 for dir in etc lisp ; do
19398 test -d ${dir} || mkdir ${dir}
19399 done
19401 # Build src/Makefile from ${srcdir}/src/Makefile.c
19402 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19403 # This must be done after src/config.h is built, since we rely on that file.
19405 # Now get this: Some word that is part of the ${srcdir} directory name
19406 # or the ${configuration} value might, just might, happen to be an
19407 # identifier like `sun4' or `i386' or something, and be predefined by
19408 # the C preprocessor to some helpful value like 1, or maybe the empty
19409 # string. Needless to say consequent macro substitutions are less
19410 # than conducive to the makefile finding the correct directory.
19411 undefs="`echo $top_srcdir $configuration $canonical |
19412 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19413 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19416 echo creating src/epaths.h
19417 ${MAKE-make} epaths-force
19419 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19420 # `..' to `. .' unless invoked with -traditional
19422 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19423 CPPFLAGS="$CPPFLAGS -traditional"
19426 echo creating lib-src/Makefile
19427 ( cd lib-src
19428 rm -f junk.c junk1.c junk2.c
19429 sed -e '/start of cpp stuff/q' \
19430 < Makefile.c > junk1.c
19431 sed -e '1,/start of cpp stuff/d'\
19432 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19433 < Makefile.c > junk.c
19434 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
19435 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19436 cat junk1.c junk2.c > Makefile.new
19437 rm -f junk.c junk1.c junk2.c
19438 chmod 444 Makefile.new
19439 mv -f Makefile.new Makefile
19442 echo creating src/Makefile
19443 ( cd src
19444 rm -f junk.c junk1.c junk2.c
19445 sed -e '/start of cpp stuff/q' \
19446 < Makefile.c > junk1.c
19447 sed -e '1,/start of cpp stuff/d'\
19448 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19449 < Makefile.c > junk.c
19450 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
19451 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19452 cat junk1.c junk2.c > Makefile.new
19453 rm -f junk.c junk1.c junk2.c
19454 chmod 444 Makefile.new
19455 mv -f Makefile.new Makefile
19458 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
19459 echo creating src/.gdbinit
19460 echo source $top_srcdir/src/.gdbinit > src/.gdbinit
19463 # This is how we know whether to re-run configure in certain cases.
19464 touch src/config.stamp
19467 esac
19468 done
19469 _ACEOF
19471 cat >>$CONFIG_STATUS <<\_ACEOF
19473 { (exit 0); exit 0; }
19474 _ACEOF
19475 chmod +x $CONFIG_STATUS
19476 ac_clean_files=$ac_clean_files_save
19479 # configure is writing to config.log, and then calls config.status.
19480 # config.status does its own redirection, appending to config.log.
19481 # Unfortunately, on DOS this fails, as config.log is still kept open
19482 # by configure, so config.status won't be able to write to it; its
19483 # output is simply discarded. So we exec the FD to /dev/null,
19484 # effectively closing config.log, so it can be properly (re)opened and
19485 # appended to by config.status. When coming back to configure, we
19486 # need to make the FD available again.
19487 if test "$no_create" != yes; then
19488 ac_cs_success=:
19489 ac_config_status_args=
19490 test "$silent" = yes &&
19491 ac_config_status_args="$ac_config_status_args --quiet"
19492 exec 5>/dev/null
19493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19494 exec 5>>config.log
19495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19496 # would make configure fail if this is the last instruction.
19497 $ac_cs_success || { (exit 1); exit 1; }