*** empty log message ***
[emacs.git] / configure
blob7d87bb44a38ede56936c2d1b5c08a03c9abbe3bd
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 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-largefile omit support for large files
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-gcc don't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version 5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server host
872 --without-sound don't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CPP C preprocessor
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
900 _ACEOF
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 else
915 ac_dir_suffix= ac_top_builddir=
918 case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 esac
934 # Do not use `cd foo && pwd` to compute absolute paths, because
935 # the directories may not exist.
936 case `pwd` in
937 .) ac_abs_builddir="$ac_dir";;
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971 esac
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 cd $ac_popdir
989 done
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994 cat <<\_ACEOF
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000 exit 0
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1010 $ $0 $@
1012 _ACEOF
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 _ASUNAME
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1046 } >&5
1048 cat >&5 <<_ACEOF
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1055 _ACEOF
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1070 for ac_arg
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1117 echo
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 esac;
1140 echo
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1241 done
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1352 lispdir='${datadir}/emacs/${version}/lisp'
1353 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath='${locallisppath}:${lispdir}'
1356 etcdir='${datadir}/emacs/${version}/etc'
1357 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir='${datadir}/emacs/${version}/etc'
1359 gamedir='${localstatedir}/games/emacs'
1361 gameuser=games
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1366 withval="$with_gcc"
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1372 withval="$with_pop"
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define MAIL_USE_POP 1
1376 _ACEOF
1378 else :
1380 else
1381 cat >>confdefs.h <<\_ACEOF
1382 #define MAIL_USE_POP 1
1383 _ACEOF
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval="$with_kerberos"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define KERBEROS 1
1393 _ACEOF
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1403 with_kerberos=yes
1404 cat >>confdefs.h <<\_ACEOF
1405 #define KERBEROS 1
1406 _ACEOF
1411 cat >>confdefs.h <<\_ACEOF
1412 #define KERBEROS5 1
1413 _ACEOF
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval="$with_hesiod"
1421 cat >>confdefs.h <<\_ACEOF
1422 #define HESIOD 1
1423 _ACEOF
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval="$with_sound"
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye | yes ) val=athena ;;
1440 n | no ) val=no ;;
1441 l | lu | luc | luci | lucid ) val=lucid ;;
1442 a | at | ath | athe | athen | athena ) val=athena ;;
1443 m | mo | mot | moti | motif ) val=motif ;;
1444 g | gt | gtk ) val=gtk ;;
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1454 esac
1455 with_x_toolkit=$val
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1461 withval="$with_xpm"
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval="$with_jpeg"
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval="$with_tiff"
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1479 withval="$with_gif"
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1485 withval="$with_png"
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1491 withval="$with_gtk"
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval="$with_pkg_config_prog"
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval="$with_toolkit_scroll_bars"
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1509 withval="$with_xim"
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval="$with_carbon"
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval="$enable_carbon_app"
1521 carbon_appdir_x=${enableval}
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval="$enable_asserts"
1527 USE_XASSERTS=$enableval
1528 else
1529 USE_XASSERTS=no
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE=$enableval
1536 else
1537 USE_MAINTAINER_MODE=no
1539 if test $USE_MAINTAINER_MODE = yes; then
1540 MAINT=
1541 else
1542 MAINT=#
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1551 unset CDPATH
1552 case "${srcdir}" in
1553 /* ) ;;
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1561 then
1562 srcdir="$PWD"
1563 else
1564 srcdir="`(cd ${srcdir}; pwd)`"
1567 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1568 esac
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 canonical=$host
1672 configuration=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
1821 machine=macppc opsys=gnu-linux
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2073 hppa*-hp-hpux10* )
2074 machine=hp800 opsys=hpux10
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2118 s390-*-linux-gnu* )
2119 machine=ibms390 opsys=gnu-linux
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2134 machine=ibmrs6000 opsys=aix4-2
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS=-32
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2455 *-sunos5* | *-solaris* )
2456 opsys=sol2-6
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2470 *) ;;
2471 esac
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
2556 *-cygwin ) opsys=cygwin ;;
2557 *-lynxos* ) opsys=lynxos ;;
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2571 *-sco3.2v5* ) opsys=sco5
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2580 *-386bsd* ) opsys=386bsd ;;
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2593 machine=mips opsys=gnu-linux
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
2623 machine=amdx86-64 opsys=gnu-linux
2627 unported=yes
2629 esac
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2636 ### above.
2637 if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2664 unported=yes
2666 esac
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile="m/${machine}.h"
2680 opsysfile="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS="$CFLAGS"
2689 case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
2693 esac
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2730 else
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2773 CC=$ac_ct_CC
2774 else
2775 CC="$ac_cv_prog_CC"
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2853 CC=$ac_ct_CC
2854 else
2855 CC="$ac_cv_prog_CC"
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2953 done
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2989 else
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
2995 done
2997 CC=$ac_ct_CC
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3037 main ()
3041 return 0;
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059 # resort.
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063 ac_cv_exeext=
3064 # b.out is created by i960 compilers.
3065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3071 conftest.$ac_ext )
3072 # This is the source file.
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
3086 break;;
3087 esac
3088 done
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
3118 else
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 export ac_cv_exeext
3161 break;;
3162 * ) break;;
3163 esac
3164 done
3165 else
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212 done
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3250 return 0;
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_compiler_gnu=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 CFLAGS="-g"
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_g=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cv_prog_cc_g=no
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_prog_cc_stdc=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3384 return p[i];
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3412 main ()
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 return 0;
3418 _ACEOF
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452 break
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f conftest.err conftest.$ac_objext
3459 done
3460 rm -f conftest.$ac_ext conftest.$ac_objext
3461 CC=$ac_save_CC
3465 case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473 esac
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #ifndef __cplusplus
3481 choke me
3482 #endif
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
3507 '' \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3512 'void exit (int);'
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_declaration
3521 #include <stdlib.h>
3523 main ()
3525 exit (42);
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 continue
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_declaration
3568 main ()
3570 exit (42);
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 break
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 rm -f conftest*
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634 then
3635 CPP="$NON_GNU_CPP"
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643 then
3644 CC="$NON_GNU_CC"
3647 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $GCC_TEST_OPTIONS"
3652 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661 LN_S=$as_ln_s
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708 Syntax error
3709 _ACEOF
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721 else
3722 ac_cpp_err=
3724 else
3725 ac_cpp_err=yes
3727 if test -z "$ac_cpp_err"; then
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Broken: fails on valid input.
3734 continue
3736 rm -f conftest.err conftest.$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3759 else
3760 ac_cpp_err=
3762 else
3763 ac_cpp_err=yes
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767 continue
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 # Passes both tests.
3773 ac_preproc_ok=:
3774 break
3776 rm -f conftest.err conftest.$ac_ext
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3782 break
3785 done
3786 ac_cv_prog_CPP=$CPP
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815 Syntax error
3816 _ACEOF
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3828 else
3829 ac_cpp_err=
3831 else
3832 ac_cpp_err=yes
3834 if test -z "$ac_cpp_err"; then
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Broken: fails on valid input.
3841 continue
3843 rm -f conftest.err conftest.$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 else
3867 ac_cpp_err=
3869 else
3870 ac_cpp_err=yes
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874 continue
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Passes both tests.
3880 ac_preproc_ok=:
3881 break
3883 rm -f conftest.err conftest.$ac_ext
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then
3890 else
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3910 # AIX /bin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929 case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3933 /usr/ucb/* ) ;;
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3954 done
3955 done
3957 esac
3958 done
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL=$ac_cv_path_install
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4011 RANLIB=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB=$ac_ct_RANLIB
4060 else
4061 RANLIB="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4092 esac
4094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in /usr/sbin
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4131 esac
4133 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in /sbin
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4171 esac
4173 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4196 late_LDFLAGS=$LDFLAGS
4197 if test "$GCC" = yes; then
4198 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4199 else
4200 LDFLAGS="$LDFLAGS -znocombreloc"
4203 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4206 cat >conftest.$ac_ext <<_ACEOF
4207 main(){return 0;}
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 LDFLAGS=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4241 rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4245 echo "$as_me:$LINENO: checking for egrep" >&5
4246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247 if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251 then ac_cv_prog_egrep='grep -E'
4252 else ac_cv_prog_egrep='egrep'
4255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
4261 echo "$as_me:$LINENO: checking for AIX" >&5
4262 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #ifdef _AIX
4271 #endif
4273 _ACEOF
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "yes" >/dev/null 2>&1; then
4276 echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278 cat >>confdefs.h <<\_ACEOF
4279 #define _ALL_SOURCE 1
4280 _ACEOF
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4286 rm -f conftest*
4291 #### Extract some information from the operating system and machine files.
4293 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4294 - which libraries the lib-src programs will want, and
4295 - whether the GNU malloc routines are usable..." >&5
4296 echo "$as_me: checking the machine- and system-dependent files to find out
4297 - which libraries the lib-src programs will want, and
4298 - whether the GNU malloc routines are usable..." >&6;}
4300 ### First figure out CFLAGS (which we use for running the compiler here)
4301 ### and REAL_CFLAGS (which we use for real compilation).
4302 ### The two are the same except on a few systems, where they are made
4303 ### different to work around various lossages. For example,
4304 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4305 ### as implying static linking.
4307 ### If the CFLAGS env var is specified, we use that value
4308 ### instead of the default.
4310 ### It's not important that this name contain the PID; you can't run
4311 ### two configures in the same directory and have anything work
4312 ### anyway.
4313 tempcname="conftest.c"
4315 echo '
4316 #include "'${srcdir}'/src/'${opsysfile}'"
4317 #include "'${srcdir}'/src/'${machfile}'"
4318 #ifndef LIBS_MACHINE
4319 #define LIBS_MACHINE
4320 #endif
4321 #ifndef LIBS_SYSTEM
4322 #define LIBS_SYSTEM
4323 #endif
4324 #ifndef C_SWITCH_SYSTEM
4325 #define C_SWITCH_SYSTEM
4326 #endif
4327 #ifndef C_SWITCH_MACHINE
4328 #define C_SWITCH_MACHINE
4329 #endif
4330 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4331 configure___ c_switch_system=C_SWITCH_SYSTEM
4332 configure___ c_switch_machine=C_SWITCH_MACHINE
4334 #ifndef LIB_X11_LIB
4335 #define LIB_X11_LIB -lX11
4336 #endif
4338 #ifndef LIBX11_MACHINE
4339 #define LIBX11_MACHINE
4340 #endif
4342 #ifndef LIBX11_SYSTEM
4343 #define LIBX11_SYSTEM
4344 #endif
4345 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4347 #ifdef UNEXEC
4348 configure___ unexec=UNEXEC
4349 #else
4350 configure___ unexec=unexec.o
4351 #endif
4353 #ifdef SYSTEM_MALLOC
4354 configure___ system_malloc=yes
4355 #else
4356 configure___ system_malloc=no
4357 #endif
4359 #ifdef USE_MMAP_FOR_BUFFERS
4360 configure___ use_mmap_for_buffers=yes
4361 #else
4362 configure___ use_mmap_for_buffers=no
4363 #endif
4365 #ifndef C_DEBUG_SWITCH
4366 #define C_DEBUG_SWITCH -g
4367 #endif
4369 #ifndef C_OPTIMIZE_SWITCH
4370 #ifdef __GNUC__
4371 #define C_OPTIMIZE_SWITCH -O2
4372 #else
4373 #define C_OPTIMIZE_SWITCH -O
4374 #endif
4375 #endif
4377 #ifndef LD_SWITCH_MACHINE
4378 #define LD_SWITCH_MACHINE
4379 #endif
4381 #ifndef LD_SWITCH_SYSTEM
4382 #define LD_SWITCH_SYSTEM
4383 #endif
4385 #ifndef LD_SWITCH_X_SITE_AUX
4386 #define LD_SWITCH_X_SITE_AUX
4387 #endif
4389 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4390 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4392 #ifdef THIS_IS_CONFIGURE
4394 /* Get the CFLAGS for tests in configure. */
4395 #ifdef __GNUC__
4396 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4401 #else /* not THIS_IS_CONFIGURE */
4403 /* Get the CFLAGS for real compilation. */
4404 #ifdef __GNUC__
4405 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4406 #else
4407 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4408 #endif
4410 #endif /* not THIS_IS_CONFIGURE */
4411 ' > ${tempcname}
4413 # The value of CPP is a quoted variable reference, so we need to do this
4414 # to get its actual value...
4415 CPP=`eval "echo $CPP"`
4416 eval `${CPP} -Isrc ${tempcname} \
4417 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4418 if test "x$SPECIFIED_CFLAGS" = x; then
4419 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4420 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4421 else
4422 REAL_CFLAGS="$CFLAGS"
4424 rm ${tempcname}
4426 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4428 ### Make sure subsequent tests use flags consistent with the build flags.
4430 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4431 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4432 else
4433 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4439 cat >>confdefs.h <<\_ACEOF
4440 #define _GNU_SOURCE 1
4441 _ACEOF
4445 # Check whether --enable-largefile or --disable-largefile was given.
4446 if test "${enable_largefile+set}" = set; then
4447 enableval="$enable_largefile"
4450 if test "$enable_largefile" != no; then
4452 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4453 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4454 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 ac_cv_sys_largefile_CC=no
4458 if test "$GCC" != yes; then
4459 ac_save_CC=$CC
4460 while :; do
4461 # IRIX 6.2 and later do not support large files by default,
4462 # so use the C compiler's -n32 option if that helps.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 /* Check that off_t can represent 2**63 - 1 correctly.
4471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472 since some C++ compilers masquerading as C compilers
4473 incorrectly reject 9223372036854775807. */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476 && LARGE_OFF_T % 2147483647 == 1)
4477 ? 1 : -1];
4479 main ()
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 break
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4514 rm -f conftest.err conftest.$ac_objext
4515 CC="$CC -n32"
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_sys_largefile_CC=' -n32'; break
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4544 rm -f conftest.err conftest.$ac_objext
4545 break
4546 done
4547 CC=$ac_save_CC
4548 rm -f conftest.$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4552 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4553 if test "$ac_cv_sys_largefile_CC" != no; then
4554 CC=$CC$ac_cv_sys_largefile_CC
4557 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4558 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4559 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 while :; do
4563 ac_cv_sys_file_offset_bits=no
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 /* Check that off_t can represent 2**63 - 1 correctly.
4572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4573 since some C++ compilers masquerading as C compilers
4574 incorrectly reject 9223372036854775807. */
4575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4577 && LARGE_OFF_T % 2147483647 == 1)
4578 ? 1 : -1];
4580 main ()
4584 return 0;
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 break
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #define _FILE_OFFSET_BITS 64
4623 #include <sys/types.h>
4624 /* Check that off_t can represent 2**63 - 1 correctly.
4625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4626 since some C++ compilers masquerading as C compilers
4627 incorrectly reject 9223372036854775807. */
4628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4630 && LARGE_OFF_T % 2147483647 == 1)
4631 ? 1 : -1];
4633 main ()
4637 return 0;
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits=64; break
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 break
4670 done
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4678 _ACEOF
4681 rm -f conftest*
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 while :; do
4688 ac_cv_sys_large_files=no
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 break
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #define _LARGE_FILES 1
4748 #include <sys/types.h>
4749 /* Check that off_t can represent 2**63 - 1 correctly.
4750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4751 since some C++ compilers masquerading as C compilers
4752 incorrectly reject 9223372036854775807. */
4753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4755 && LARGE_OFF_T % 2147483647 == 1)
4756 ? 1 : -1];
4758 main ()
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_sys_large_files=1; break
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 break
4795 done
4797 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4798 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4799 if test "$ac_cv_sys_large_files" != no; then
4801 cat >>confdefs.h <<_ACEOF
4802 #define _LARGE_FILES $ac_cv_sys_large_files
4803 _ACEOF
4806 rm -f conftest*
4810 if test "${with_sound}" != "no"; then
4811 # Sound support for GNU/Linux and the free BSDs.
4812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4814 if test "${ac_cv_header_stdc+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <stdlib.h>
4824 #include <stdarg.h>
4825 #include <string.h>
4826 #include <float.h>
4829 main ()
4833 return 0;
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_header_stdc=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 ac_cv_header_stdc=no
4865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test $ac_cv_header_stdc = yes; then
4868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <string.h>
4877 _ACEOF
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "memchr" >/dev/null 2>&1; then
4881 else
4882 ac_cv_header_stdc=no
4884 rm -f conftest*
4888 if test $ac_cv_header_stdc = yes; then
4889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <stdlib.h>
4898 _ACEOF
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "free" >/dev/null 2>&1; then
4902 else
4903 ac_cv_header_stdc=no
4905 rm -f conftest*
4909 if test $ac_cv_header_stdc = yes; then
4910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4911 if test "$cross_compiling" = yes; then
4913 else
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <ctype.h>
4921 #if ((' ' & 0x0FF) == 0x020)
4922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4924 #else
4925 # define ISLOWER(c) \
4926 (('a' <= (c) && (c) <= 'i') \
4927 || ('j' <= (c) && (c) <= 'r') \
4928 || ('s' <= (c) && (c) <= 'z'))
4929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4930 #endif
4932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4934 main ()
4936 int i;
4937 for (i = 0; i < 256; i++)
4938 if (XOR (islower (i), ISLOWER (i))
4939 || toupper (i) != TOUPPER (i))
4940 exit(2);
4941 exit (0);
4943 _ACEOF
4944 rm -f conftest$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4956 else
4957 echo "$as_me: program exited with status $ac_status" >&5
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 ( exit $ac_status )
4962 ac_cv_header_stdc=no
4964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4970 if test $ac_cv_header_stdc = yes; then
4972 cat >>confdefs.h <<\_ACEOF
4973 #define STDC_HEADERS 1
4974 _ACEOF
4978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4988 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989 inttypes.h stdint.h unistd.h
4991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 echo "$as_me:$LINENO: checking for $ac_header" >&5
4993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5005 #include <$ac_header>
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_Header=yes"
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 eval "$as_ac_Header=no"
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043 _ACEOF
5047 done
5053 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5064 else
5065 # Is the header compilable?
5066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler=yes
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_header_compiler=no
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <$ac_header>
5120 _ACEOF
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null; then
5129 if test -s conftest.err; then
5130 ac_cpp_err=$ac_c_preproc_warn_flag
5131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5132 else
5133 ac_cpp_err=
5135 else
5136 ac_cpp_err=yes
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_header_preproc=no
5146 rm -f conftest.err conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5152 yes:no: )
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5157 ac_header_preproc=yes
5159 no:yes:* )
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5173 cat <<\_ASBOX
5174 ## ------------------------------------------ ##
5175 ## Report this to the AC_PACKAGE_NAME lists. ##
5176 ## ------------------------------------------ ##
5177 _ASBOX
5179 sed "s/^/$as_me: WARNING: /" >&2
5181 esac
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 eval "$as_ac_Header=\$ac_header_preproc"
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h <<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 _ACEOF
5200 done
5202 # Emulation library used on NetBSD.
5203 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5204 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5205 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 ac_check_lib_save_LIBS=$LIBS
5209 LIBS="-lossaudio $LIBS"
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5217 /* Override any gcc2 internal prototype to avoid an error. */
5218 #ifdef __cplusplus
5219 extern "C"
5220 #endif
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char _oss_ioctl ();
5225 main ()
5227 _oss_ioctl ();
5229 return 0;
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_lib_ossaudio__oss_ioctl=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_lib_ossaudio__oss_ioctl=no
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5266 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5267 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5268 LIBSOUND=-lossaudio
5269 else
5270 LIBSOUND=
5301 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5302 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5303 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5304 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5305 sys/utsname.h pwd.h
5307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309 echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5316 else
5317 # Is the header compilable?
5318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <$ac_header>
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_header_compiler=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_header_compiler=no
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5360 echo "${ECHO_T}$ac_header_compiler" >&6
5362 # Is the header present?
5363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <$ac_header>
5372 _ACEOF
5373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } >/dev/null; then
5381 if test -s conftest.err; then
5382 ac_cpp_err=$ac_c_preproc_warn_flag
5383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5384 else
5385 ac_cpp_err=
5387 else
5388 ac_cpp_err=yes
5390 if test -z "$ac_cpp_err"; then
5391 ac_header_preproc=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_header_preproc=no
5398 rm -f conftest.err conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6
5402 # So? What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404 yes:no: )
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409 ac_header_preproc=yes
5411 no:yes:* )
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 cat <<\_ASBOX
5426 ## ------------------------------------------ ##
5427 ## Report this to the AC_PACKAGE_NAME lists. ##
5428 ## ------------------------------------------ ##
5429 _ASBOX
5431 sed "s/^/$as_me: WARNING: /" >&2
5433 esac
5434 echo "$as_me:$LINENO: checking for $ac_header" >&5
5435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 eval "$as_ac_Header=\$ac_header_preproc"
5441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5446 cat >>confdefs.h <<_ACEOF
5447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5448 _ACEOF
5452 done
5455 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5456 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/personality.h>
5465 main ()
5467 personality (PER_LINUX32)
5469 return 0;
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -z "$ac_c_werror_flag"
5482 || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 emacs_cv_personality_linux32=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 emacs_cv_personality_linux32=no
5501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5505 if test $emacs_cv_personality_linux32 = yes; then
5507 cat >>confdefs.h <<\_ACEOF
5508 #define HAVE_PERSONALITY_LINUX32 1
5509 _ACEOF
5514 for ac_header in term.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <$ac_header>
5529 _ACEOF
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_c_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541 else
5542 ac_cpp_err=
5544 else
5545 ac_cpp_err=yes
5547 if test -z "$ac_cpp_err"; then
5548 eval "$as_ac_Header=yes"
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 eval "$as_ac_Header=no"
5555 rm -f conftest.err conftest.$ac_ext
5557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 _ACEOF
5566 done
5568 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5570 if test "${ac_cv_header_stdc+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <stdlib.h>
5580 #include <stdarg.h>
5581 #include <string.h>
5582 #include <float.h>
5585 main ()
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_header_stdc=yes
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ac_cv_header_stdc=no
5621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5623 if test $ac_cv_header_stdc = yes; then
5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <string.h>
5633 _ACEOF
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 $EGREP "memchr" >/dev/null 2>&1; then
5637 else
5638 ac_cv_header_stdc=no
5640 rm -f conftest*
5644 if test $ac_cv_header_stdc = yes; then
5645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <stdlib.h>
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "free" >/dev/null 2>&1; then
5658 else
5659 ac_cv_header_stdc=no
5661 rm -f conftest*
5665 if test $ac_cv_header_stdc = yes; then
5666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5667 if test "$cross_compiling" = yes; then
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 <ctype.h>
5677 #if ((' ' & 0x0FF) == 0x020)
5678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5680 #else
5681 # define ISLOWER(c) \
5682 (('a' <= (c) && (c) <= 'i') \
5683 || ('j' <= (c) && (c) <= 'r') \
5684 || ('s' <= (c) && (c) <= 'z'))
5685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5686 #endif
5688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5690 main ()
5692 int i;
5693 for (i = 0; i < 256; i++)
5694 if (XOR (islower (i), ISLOWER (i))
5695 || toupper (i) != TOUPPER (i))
5696 exit(2);
5697 exit (0);
5699 _ACEOF
5700 rm -f conftest$ac_exeext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702 (eval $ac_link) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5712 else
5713 echo "$as_me: program exited with status $ac_status" >&5
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 ( exit $ac_status )
5718 ac_cv_header_stdc=no
5720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5726 if test $ac_cv_header_stdc = yes; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define STDC_HEADERS 1
5730 _ACEOF
5734 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5736 if test "${ac_cv_header_time+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <sys/time.h>
5747 #include <time.h>
5750 main ()
5752 if ((struct tm *) 0)
5753 return 0;
5755 return 0;
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_header_time=yes
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_cv_header_time=no
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5790 echo "${ECHO_T}$ac_cv_header_time" >&6
5791 if test $ac_cv_header_time = yes; then
5793 cat >>confdefs.h <<\_ACEOF
5794 #define TIME_WITH_SYS_TIME 1
5795 _ACEOF
5799 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5800 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5801 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5812 main ()
5814 #ifndef sys_siglist
5815 char *p = (char *) sys_siglist;
5816 #endif
5819 return 0;
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_have_decl_sys_siglist=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 ac_cv_have_decl_sys_siglist=no
5851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5855 if test $ac_cv_have_decl_sys_siglist = yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_DECL_SYS_SIGLIST 1
5859 _ACEOF
5862 else
5863 cat >>confdefs.h <<_ACEOF
5864 #define HAVE_DECL_SYS_SIGLIST 0
5865 _ACEOF
5871 if test $ac_cv_have_decl_sys_siglist != yes; then
5872 # For Tru64, at least:
5873 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5886 main ()
5888 #ifndef __sys_siglist
5889 char *p = (char *) __sys_siglist;
5890 #endif
5893 return 0;
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_have_decl___sys_siglist=yes
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_cv_have_decl___sys_siglist=no
5925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5927 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5928 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5929 if test $ac_cv_have_decl___sys_siglist = yes; then
5931 cat >>confdefs.h <<_ACEOF
5932 #define HAVE_DECL___SYS_SIGLIST 1
5933 _ACEOF
5936 else
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_DECL___SYS_SIGLIST 0
5939 _ACEOF
5945 if test $ac_cv_have_decl___sys_siglist = yes; then
5947 cat >>confdefs.h <<\_ACEOF
5948 #define sys_siglist __sys_siglist
5949 _ACEOF
5953 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5954 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5955 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 #include <sys/wait.h>
5966 #ifndef WEXITSTATUS
5967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5968 #endif
5969 #ifndef WIFEXITED
5970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5971 #endif
5974 main ()
5976 int s;
5977 wait (&s);
5978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5980 return 0;
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_header_sys_wait_h=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_header_sys_wait_h=no
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6015 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6016 if test $ac_cv_header_sys_wait_h = yes; then
6018 cat >>confdefs.h <<\_ACEOF
6019 #define HAVE_SYS_WAIT_H 1
6020 _ACEOF
6025 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6026 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6027 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #ifdef TIME_WITH_SYS_TIME
6037 #include <sys/time.h>
6038 #include <time.h>
6039 #else
6040 #ifdef HAVE_SYS_TIME_H
6041 #include <sys/time.h>
6042 #else
6043 #include <time.h>
6044 #endif
6045 #endif
6046 #ifdef HAVE_UTIME_H
6047 #include <utime.h>
6048 #endif
6050 main ()
6052 static struct utimbuf x; x.actime = x.modtime;
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 emacs_cv_struct_utimbuf=yes
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 emacs_cv_struct_utimbuf=no
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6089 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6090 if test $emacs_cv_struct_utimbuf = yes; then
6092 cat >>confdefs.h <<\_ACEOF
6093 #define HAVE_STRUCT_UTIMBUF 1
6094 _ACEOF
6098 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6099 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6100 if test "${ac_cv_type_signal+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <sys/types.h>
6110 #include <signal.h>
6111 #ifdef signal
6112 # undef signal
6113 #endif
6114 #ifdef __cplusplus
6115 extern "C" void (*signal (int, void (*)(int)))(int);
6116 #else
6117 void (*signal ()) ();
6118 #endif
6121 main ()
6123 int i;
6125 return 0;
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 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_objext'
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 ac_cv_type_signal=void
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_cv_type_signal=int
6157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6160 echo "${ECHO_T}$ac_cv_type_signal" >&6
6162 cat >>confdefs.h <<_ACEOF
6163 #define RETSIGTYPE $ac_cv_type_signal
6164 _ACEOF
6168 echo "$as_me:$LINENO: checking for speed_t" >&5
6169 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6170 if test "${emacs_cv_speed_t+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <termios.h>
6181 main ()
6183 speed_t x = 1;
6185 return 0;
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 emacs_cv_speed_t=yes
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 emacs_cv_speed_t=no
6217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6220 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6221 if test $emacs_cv_speed_t = yes; then
6223 cat >>confdefs.h <<\_ACEOF
6224 #define HAVE_SPEED_T 1
6225 _ACEOF
6229 echo "$as_me:$LINENO: checking for struct timeval" >&5
6230 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_timeval+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #ifdef TIME_WITH_SYS_TIME
6241 #include <sys/time.h>
6242 #include <time.h>
6243 #else
6244 #ifdef HAVE_SYS_TIME_H
6245 #include <sys/time.h>
6246 #else
6247 #include <time.h>
6248 #endif
6249 #endif
6251 main ()
6253 static struct timeval x; x.tv_sec = x.tv_usec;
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 emacs_cv_struct_timeval=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 emacs_cv_struct_timeval=no
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6290 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6291 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6292 if test $emacs_cv_struct_timeval = yes; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define HAVE_TIMEVAL 1
6296 _ACEOF
6300 echo "$as_me:$LINENO: checking for struct exception" >&5
6301 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6302 if test "${emacs_cv_struct_exception+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <math.h>
6313 main ()
6315 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 emacs_cv_struct_exception=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 emacs_cv_struct_exception=no
6349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6352 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6353 HAVE_EXCEPTION=$emacs_cv_struct_exception
6354 if test $emacs_cv_struct_exception != yes; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define NO_MATHERR 1
6358 _ACEOF
6363 for ac_header in sys/socket.h
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374 else
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_header_compiler=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_header_compiler=no
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <$ac_header>
6430 _ACEOF
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null; then
6439 if test -s conftest.err; then
6440 ac_cpp_err=$ac_c_preproc_warn_flag
6441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6442 else
6443 ac_cpp_err=
6445 else
6446 ac_cpp_err=yes
6448 if test -z "$ac_cpp_err"; then
6449 ac_header_preproc=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_header_preproc=no
6456 rm -f conftest.err conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 yes:no: )
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc=yes
6469 no:yes:* )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6483 cat <<\_ASBOX
6484 ## ------------------------------------------ ##
6485 ## Report this to the AC_PACKAGE_NAME lists. ##
6486 ## ------------------------------------------ ##
6487 _ASBOX
6489 sed "s/^/$as_me: WARNING: /" >&2
6491 esac
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 eval "$as_ac_Header=\$ac_header_preproc"
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504 cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 _ACEOF
6510 done
6513 for ac_header in net/if.h
6515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6516 echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6528 #if HAVE_SYS_SOCKET_H
6529 #include <sys/socket.h>
6530 #endif
6532 #include <$ac_header>
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 eval "$as_ac_Header=yes"
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 eval "$as_ac_Header=no"
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6568 cat >>confdefs.h <<_ACEOF
6569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6570 _ACEOF
6574 done
6577 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6578 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6579 if test "${ac_cv_struct_tm+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <sys/types.h>
6589 #include <time.h>
6592 main ()
6594 struct tm *tp; tp->tm_sec;
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_struct_tm=time.h
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_cv_struct_tm=sys/time.h
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6631 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6632 if test $ac_cv_struct_tm = sys/time.h; then
6634 cat >>confdefs.h <<\_ACEOF
6635 #define TM_IN_SYS_TIME 1
6636 _ACEOF
6640 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6641 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6642 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h. */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6651 #include <sys/types.h>
6652 #include <$ac_cv_struct_tm>
6656 main ()
6658 static struct tm ac_aggr;
6659 if (ac_aggr.tm_zone)
6660 return 0;
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_member_struct_tm_tm_zone=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <$ac_cv_struct_tm>
6703 main ()
6705 static struct tm ac_aggr;
6706 if (sizeof ac_aggr.tm_zone)
6707 return 0;
6709 return 0;
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6714 (eval $ac_compile) 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag"
6722 || test ! -s conftest.err'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try='test -s conftest.$ac_objext'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_member_struct_tm_tm_zone=yes
6735 else
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_member_struct_tm_tm_zone=no
6741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6746 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6747 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_STRUCT_TM_TM_ZONE 1
6751 _ACEOF
6756 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_TM_ZONE 1
6760 _ACEOF
6762 else
6763 echo "$as_me:$LINENO: checking for tzname" >&5
6764 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6765 if test "${ac_cv_var_tzname+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <time.h>
6775 #ifndef tzname /* For SGI. */
6776 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6777 #endif
6780 main ()
6782 atoi(*tzname);
6784 return 0;
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_var_tzname=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_cv_var_tzname=no
6816 rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6819 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6820 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6821 if test $ac_cv_var_tzname = yes; then
6823 cat >>confdefs.h <<\_ACEOF
6824 #define HAVE_TZNAME 1
6825 _ACEOF
6830 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6831 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6832 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 #include <time.h>
6844 main ()
6846 static struct tm ac_aggr;
6847 if (ac_aggr.tm_gmtoff)
6848 return 0;
6850 return 0;
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_tm_tm_gmtoff=yes
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <time.h>
6889 main ()
6891 static struct tm ac_aggr;
6892 if (sizeof ac_aggr.tm_gmtoff)
6893 return 0;
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest.$ac_objext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_member_struct_tm_tm_gmtoff=yes
6921 else
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ac_cv_member_struct_tm_tm_gmtoff=no
6927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_TM_GMTOFF 1
6937 _ACEOF
6941 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6942 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6943 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6953 #if HAVE_SYS_SOCKET_H
6954 #include <sys/socket.h>
6955 #endif
6956 #if HAVE_NET_IF_H
6957 #include <net/if.h>
6958 #endif
6961 main ()
6963 static struct ifreq ac_aggr;
6964 if (ac_aggr.ifr_flags)
6965 return 0;
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest.$ac_objext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_member_struct_ifreq_ifr_flags=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #if HAVE_SYS_SOCKET_H
7005 #include <sys/socket.h>
7006 #endif
7007 #if HAVE_NET_IF_H
7008 #include <net/if.h>
7009 #endif
7012 main ()
7014 static struct ifreq ac_aggr;
7015 if (sizeof ac_aggr.ifr_flags)
7016 return 0;
7018 return 0;
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_member_struct_ifreq_ifr_flags=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_member_struct_ifreq_ifr_flags=no
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7055 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7056 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7060 _ACEOF
7064 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7065 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7066 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 #if HAVE_SYS_SOCKET_H
7077 #include <sys/socket.h>
7078 #endif
7079 #if HAVE_NET_IF_H
7080 #include <net/if.h>
7081 #endif
7084 main ()
7086 static struct ifreq ac_aggr;
7087 if (ac_aggr.ifr_hwaddr)
7088 return 0;
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 #if HAVE_SYS_SOCKET_H
7128 #include <sys/socket.h>
7129 #endif
7130 #if HAVE_NET_IF_H
7131 #include <net/if.h>
7132 #endif
7135 main ()
7137 static struct ifreq ac_aggr;
7138 if (sizeof ac_aggr.ifr_hwaddr)
7139 return 0;
7141 return 0;
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try='test -s conftest.$ac_objext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7178 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7179 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7183 _ACEOF
7187 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7188 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7189 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 $ac_includes_default
7199 #if HAVE_SYS_SOCKET_H
7200 #include <sys/socket.h>
7201 #endif
7202 #if HAVE_NET_IF_H
7203 #include <net/if.h>
7204 #endif
7207 main ()
7209 static struct ifreq ac_aggr;
7210 if (ac_aggr.ifr_netmask)
7211 return 0;
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_cv_member_struct_ifreq_ifr_netmask=yes
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 #if HAVE_SYS_SOCKET_H
7251 #include <sys/socket.h>
7252 #endif
7253 #if HAVE_NET_IF_H
7254 #include <net/if.h>
7255 #endif
7258 main ()
7260 static struct ifreq ac_aggr;
7261 if (sizeof ac_aggr.ifr_netmask)
7262 return 0;
7264 return 0;
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_c_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_member_struct_ifreq_ifr_netmask=yes
7290 else
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_cv_member_struct_ifreq_ifr_netmask=no
7296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7301 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7302 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7304 cat >>confdefs.h <<_ACEOF
7305 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7306 _ACEOF
7310 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7311 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7312 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7322 #if HAVE_SYS_SOCKET_H
7323 #include <sys/socket.h>
7324 #endif
7325 #if HAVE_NET_IF_H
7326 #include <net/if.h>
7327 #endif
7330 main ()
7332 static struct ifreq ac_aggr;
7333 if (ac_aggr.ifr_broadaddr)
7334 return 0;
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 #if HAVE_SYS_SOCKET_H
7374 #include <sys/socket.h>
7375 #endif
7376 #if HAVE_NET_IF_H
7377 #include <net/if.h>
7378 #endif
7381 main ()
7383 static struct ifreq ac_aggr;
7384 if (sizeof ac_aggr.ifr_broadaddr)
7385 return 0;
7387 return 0;
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7425 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7429 _ACEOF
7433 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7434 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7435 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 #if HAVE_SYS_SOCKET_H
7446 #include <sys/socket.h>
7447 #endif
7448 #if HAVE_NET_IF_H
7449 #include <net/if.h>
7450 #endif
7453 main ()
7455 static struct ifreq ac_aggr;
7456 if (ac_aggr.ifr_addr)
7457 return 0;
7459 return 0;
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464 (eval $ac_compile) 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest.$ac_objext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_member_struct_ifreq_ifr_addr=yes
7485 else
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 #if HAVE_SYS_SOCKET_H
7497 #include <sys/socket.h>
7498 #endif
7499 #if HAVE_NET_IF_H
7500 #include <net/if.h>
7501 #endif
7504 main ()
7506 static struct ifreq ac_aggr;
7507 if (sizeof ac_aggr.ifr_addr)
7508 return 0;
7510 return 0;
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_member_struct_ifreq_ifr_addr=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_member_struct_ifreq_ifr_addr=no
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7547 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7548 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7552 _ACEOF
7559 echo "$as_me:$LINENO: checking for function prototypes" >&5
7560 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7561 if test "$ac_cv_prog_cc_stdc" != no; then
7562 echo "$as_me:$LINENO: result: yes" >&5
7563 echo "${ECHO_T}yes" >&6
7565 cat >>confdefs.h <<\_ACEOF
7566 #define PROTOTYPES 1
7567 _ACEOF
7570 cat >>confdefs.h <<\_ACEOF
7571 #define __PROTOTYPES 1
7572 _ACEOF
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7579 echo "$as_me:$LINENO: checking for working volatile" >&5
7580 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7581 if test "${ac_cv_c_volatile+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7592 main ()
7595 volatile int x;
7596 int * volatile y;
7598 return 0;
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_c_volatile=yes
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_cv_c_volatile=no
7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7633 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7634 if test $ac_cv_c_volatile = no; then
7636 cat >>confdefs.h <<\_ACEOF
7637 #define volatile
7638 _ACEOF
7642 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7643 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7644 if test "${ac_cv_c_const+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7655 main ()
7657 /* FIXME: Include the comments suggested by Paul. */
7658 #ifndef __cplusplus
7659 /* Ultrix mips cc rejects this. */
7660 typedef int charset[2];
7661 const charset x;
7662 /* SunOS 4.1.1 cc rejects this. */
7663 char const *const *ccp;
7664 char **p;
7665 /* NEC SVR4.0.2 mips cc rejects this. */
7666 struct point {int x, y;};
7667 static struct point const zero = {0,0};
7668 /* AIX XL C 1.02.0.0 rejects this.
7669 It does not let you subtract one const X* pointer from another in
7670 an arm of an if-expression whose if-part is not a constant
7671 expression */
7672 const char *g = "string";
7673 ccp = &g + (g ? g-g : 0);
7674 /* HPUX 7.0 cc rejects these. */
7675 ++ccp;
7676 p = (char**) ccp;
7677 ccp = (char const *const *) p;
7678 { /* SCO 3.2v4 cc rejects this. */
7679 char *t;
7680 char const *s = 0 ? (char *) 0 : (char const *) 0;
7682 *t++ = 0;
7684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7685 int x[] = {25, 17};
7686 const int *foo = &x[0];
7687 ++foo;
7689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7690 typedef const int *iptr;
7691 iptr p = 0;
7692 ++p;
7694 { /* AIX XL C 1.02.0.0 rejects this saying
7695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7696 struct s { int j; const int *ap[3]; };
7697 struct s *b; b->j = 5;
7699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7700 const int foo = 10;
7702 #endif
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag"
7718 || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_c_const=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_cv_c_const=no
7737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7740 echo "${ECHO_T}$ac_cv_c_const" >&6
7741 if test $ac_cv_c_const = no; then
7743 cat >>confdefs.h <<\_ACEOF
7744 #define const
7745 _ACEOF
7749 echo "$as_me:$LINENO: checking for void * support" >&5
7750 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7751 if test "${emacs_cv_void_star+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7762 main ()
7764 void * foo;
7766 return 0;
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag"
7779 || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_void_star=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 emacs_cv_void_star=no
7798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7801 echo "${ECHO_T}$emacs_cv_void_star" >&6
7802 if test $emacs_cv_void_star = yes; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define POINTER_TYPE void
7805 _ACEOF
7807 else
7808 cat >>confdefs.h <<\_ACEOF
7809 #define POINTER_TYPE char
7810 _ACEOF
7818 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7821 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 cat >conftest.make <<\_ACEOF
7825 all:
7826 @echo 'ac_maketemp="$(MAKE)"'
7827 _ACEOF
7828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7829 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7830 if test -n "$ac_maketemp"; then
7831 eval ac_cv_prog_make_${ac_make}_set=yes
7832 else
7833 eval ac_cv_prog_make_${ac_make}_set=no
7835 rm -f conftest.make
7837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6
7840 SET_MAKE=
7841 else
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844 SET_MAKE="MAKE=${MAKE-make}"
7848 echo "$as_me:$LINENO: checking for long file names" >&5
7849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7850 if test "${ac_cv_sys_long_file_names+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 ac_cv_sys_long_file_names=yes
7854 # Test for long file names in all the places we know might matter:
7855 # . the current directory, where building will happen
7856 # $prefix/lib where we will be installing things
7857 # $exec_prefix/lib likewise
7858 # eval it to expand exec_prefix.
7859 # $TMPDIR if set, where it might want to write temporary files
7860 # if $TMPDIR is not set:
7861 # /tmp where it might want to write temporary files
7862 # /var/tmp likewise
7863 # /usr/tmp likewise
7864 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7865 ac_tmpdirs=$TMPDIR
7866 else
7867 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7869 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7870 test -d $ac_dir || continue
7871 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7872 ac_xdir=$ac_dir/cf$$
7873 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7874 ac_tf1=$ac_xdir/conftest9012345
7875 ac_tf2=$ac_xdir/conftest9012346
7876 (echo 1 >$ac_tf1) 2>/dev/null
7877 (echo 2 >$ac_tf2) 2>/dev/null
7878 ac_val=`cat $ac_tf1 2>/dev/null`
7879 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7880 ac_cv_sys_long_file_names=no
7881 rm -rf $ac_xdir 2>/dev/null
7882 break
7884 rm -rf $ac_xdir 2>/dev/null
7885 done
7887 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7889 if test $ac_cv_sys_long_file_names = yes; then
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_LONG_FILE_NAMES 1
7893 _ACEOF
7898 #### Choose a window system.
7900 echo "$as_me:$LINENO: checking for X" >&5
7901 echo $ECHO_N "checking for X... $ECHO_C" >&6
7904 # Check whether --with-x or --without-x was given.
7905 if test "${with_x+set}" = set; then
7906 withval="$with_x"
7909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7910 if test "x$with_x" = xno; then
7911 # The user explicitly disabled X.
7912 have_x=disabled
7913 else
7914 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7915 # Both variables are already set.
7916 have_x=yes
7917 else
7918 if test "${ac_cv_have_x+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 # One or both of the vars are not set, and there is no cached value.
7922 ac_x_includes=no ac_x_libraries=no
7923 rm -fr conftest.dir
7924 if mkdir conftest.dir; then
7925 cd conftest.dir
7926 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7927 cat >Imakefile <<'_ACEOF'
7928 acfindx:
7929 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7930 _ACEOF
7931 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7933 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7934 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7935 for ac_extension in a so sl; do
7936 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7937 test -f $ac_im_libdir/libX11.$ac_extension; then
7938 ac_im_usrlibdir=$ac_im_libdir; break
7940 done
7941 # Screen out bogus values from the imake configuration. They are
7942 # bogus both because they are the default anyway, and because
7943 # using them would break gcc on systems where it needs fixed includes.
7944 case $ac_im_incroot in
7945 /usr/include) ;;
7946 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7947 esac
7948 case $ac_im_usrlibdir in
7949 /usr/lib | /lib) ;;
7950 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7951 esac
7953 cd ..
7954 rm -fr conftest.dir
7957 # Standard set of common directories for X headers.
7958 # Check X11 before X11Rn because it is often a symlink to the current release.
7959 ac_x_header_dirs='
7960 /usr/X11/include
7961 /usr/X11R6/include
7962 /usr/X11R5/include
7963 /usr/X11R4/include
7965 /usr/include/X11
7966 /usr/include/X11R6
7967 /usr/include/X11R5
7968 /usr/include/X11R4
7970 /usr/local/X11/include
7971 /usr/local/X11R6/include
7972 /usr/local/X11R5/include
7973 /usr/local/X11R4/include
7975 /usr/local/include/X11
7976 /usr/local/include/X11R6
7977 /usr/local/include/X11R5
7978 /usr/local/include/X11R4
7980 /usr/X386/include
7981 /usr/x386/include
7982 /usr/XFree86/include/X11
7984 /usr/include
7985 /usr/local/include
7986 /usr/unsupported/include
7987 /usr/athena/include
7988 /usr/local/x11r5/include
7989 /usr/lpp/Xamples/include
7991 /usr/openwin/include
7992 /usr/openwin/share/include'
7994 if test "$ac_x_includes" = no; then
7995 # Guess where to find include files, by looking for Intrinsic.h.
7996 # First, try using that file with no special directory specified.
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <X11/Intrinsic.h>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8019 else
8020 ac_cpp_err=yes
8022 if test -z "$ac_cpp_err"; then
8023 # We can compile using X headers with no special include directory.
8024 ac_x_includes=
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 for ac_dir in $ac_x_header_dirs; do
8030 if test -r "$ac_dir/X11/Intrinsic.h"; then
8031 ac_x_includes=$ac_dir
8032 break
8034 done
8036 rm -f conftest.err conftest.$ac_ext
8037 fi # $ac_x_includes = no
8039 if test "$ac_x_libraries" = no; then
8040 # Check for the libraries.
8041 # See if we find them without any special options.
8042 # Don't add to $LIBS permanently.
8043 ac_save_LIBS=$LIBS
8044 LIBS="-lXt $LIBS"
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <X11/Intrinsic.h>
8053 main ()
8055 XtMalloc (0)
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 LIBS=$ac_save_LIBS
8083 # We can link X programs with no special library path.
8084 ac_x_libraries=
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 LIBS=$ac_save_LIBS
8090 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8092 # Don't even attempt the hair of trying to link an X program!
8093 for ac_extension in a so sl; do
8094 if test -r $ac_dir/libXt.$ac_extension; then
8095 ac_x_libraries=$ac_dir
8096 break 2
8098 done
8099 done
8101 rm -f conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi # $ac_x_libraries = no
8105 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8106 # Didn't find X anywhere. Cache the known absence of X.
8107 ac_cv_have_x="have_x=no"
8108 else
8109 # Record where we found X for the cache.
8110 ac_cv_have_x="have_x=yes \
8111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8116 eval "$ac_cv_have_x"
8117 fi # $with_x != no
8119 if test "$have_x" != yes; then
8120 echo "$as_me:$LINENO: result: $have_x" >&5
8121 echo "${ECHO_T}$have_x" >&6
8122 no_x=yes
8123 else
8124 # If each of the values was on the command line, it overrides each guess.
8125 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8126 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8127 # Update the cache value to reflect the command line values.
8128 ac_cv_have_x="have_x=yes \
8129 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8130 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8131 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8134 if test "$no_x" = yes; then
8135 window_system=none
8136 else
8137 window_system=x11
8140 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8141 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8142 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8143 x_default_search_path=""
8144 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8145 x_search_path="\
8146 ${x_library}/X11/%L/%T/%N%C%S:\
8147 ${x_library}/X11/%l/%T/%N%C%S:\
8148 ${x_library}/X11/%T/%N%C%S:\
8149 ${x_library}/X11/%L/%T/%N%S:\
8150 ${x_library}/X11/%l/%T/%N%S:\
8151 ${x_library}/X11/%T/%N%S"
8152 if test x"${x_default_search_path}" = x; then
8153 x_default_search_path=${x_search_path}
8154 else
8155 x_default_search_path="${x_search_path}:${x_default_search_path}"
8157 done
8159 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8160 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8163 if test x"${x_includes}" = x; then
8164 bitmapdir=/usr/include/X11/bitmaps
8165 else
8166 # accumulate include directories that have X11 bitmap subdirectories
8167 bmd_acc="dummyval"
8168 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8169 if test -d "${bmd}/X11/bitmaps"; then
8170 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8172 if test -d "${bmd}/bitmaps"; then
8173 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8175 done
8176 if test ${bmd_acc} != "dummyval"; then
8177 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8181 case "${window_system}" in
8182 x11 )
8183 HAVE_X_WINDOWS=yes
8184 HAVE_X11=yes
8185 case "${with_x_toolkit}" in
8186 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8187 motif ) USE_X_TOOLKIT=MOTIF ;;
8188 gtk ) with_gtk=yes
8189 USE_X_TOOLKIT=none ;;
8190 no ) USE_X_TOOLKIT=none ;;
8191 * ) USE_X_TOOLKIT=maybe ;;
8192 esac
8194 none )
8195 HAVE_X_WINDOWS=no
8196 HAVE_X11=no
8197 USE_X_TOOLKIT=none
8199 esac
8201 ### If we're using X11, we should use the X menu package.
8202 HAVE_MENUS=no
8203 case ${HAVE_X11} in
8204 yes ) HAVE_MENUS=yes ;;
8205 esac
8207 if test "${opsys}" = "hpux9"; then
8208 case "${x_libraries}" in
8209 *X11R4* )
8210 opsysfile="s/hpux9-x11r4.h"
8212 esac
8215 if test "${opsys}" = "hpux9shr"; then
8216 case "${x_libraries}" in
8217 *X11R4* )
8218 opsysfile="s/hpux9shxr4.h"
8220 esac
8223 ### Compute the unexec source name from the object name.
8224 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8226 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8227 # Assume not, until told otherwise.
8228 GNU_MALLOC=yes
8229 doug_lea_malloc=yes
8230 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8231 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8232 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8243 #define malloc_get_state innocuous_malloc_get_state
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char malloc_get_state (); below.
8247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8248 <limits.h> exists even on freestanding compilers. */
8250 #ifdef __STDC__
8251 # include <limits.h>
8252 #else
8253 # include <assert.h>
8254 #endif
8256 #undef malloc_get_state
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 #ifdef __cplusplus
8260 extern "C"
8262 #endif
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8265 char malloc_get_state ();
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8270 choke me
8271 #else
8272 char (*f) () = malloc_get_state;
8273 #endif
8274 #ifdef __cplusplus
8276 #endif
8279 main ()
8281 return f != malloc_get_state;
8283 return 0;
8285 _ACEOF
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag"
8296 || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_func_malloc_get_state=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_func_malloc_get_state=no
8315 rm -f conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8319 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8320 if test $ac_cv_func_malloc_get_state = yes; then
8322 else
8323 doug_lea_malloc=no
8326 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8327 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8328 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8339 #define malloc_set_state innocuous_malloc_set_state
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char malloc_set_state (); below.
8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 <limits.h> exists even on freestanding compilers. */
8346 #ifdef __STDC__
8347 # include <limits.h>
8348 #else
8349 # include <assert.h>
8350 #endif
8352 #undef malloc_set_state
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 #ifdef __cplusplus
8356 extern "C"
8358 #endif
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8361 char malloc_set_state ();
8362 /* The GNU C library defines this for functions which it implements
8363 to always fail with ENOSYS. Some functions are actually named
8364 something starting with __ and the normal name is an alias. */
8365 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8366 choke me
8367 #else
8368 char (*f) () = malloc_set_state;
8369 #endif
8370 #ifdef __cplusplus
8372 #endif
8375 main ()
8377 return f != malloc_set_state;
8379 return 0;
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_func_malloc_set_state=yes
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_func_malloc_set_state=no
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8415 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8416 if test $ac_cv_func_malloc_set_state = yes; then
8418 else
8419 doug_lea_malloc=no
8422 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8423 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8424 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 extern void (* __after_morecore_hook)();
8435 main ()
8437 __after_morecore_hook = 0
8439 return 0;
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 emacs_cv_var___after_morecore_hook=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 emacs_cv_var___after_morecore_hook=no
8471 rm -f conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8474 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8475 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8476 if test $emacs_cv_var___after_morecore_hook = no; then
8477 doug_lea_malloc=no
8479 if test "${system_malloc}" = "yes"; then
8480 GNU_MALLOC=no
8481 GNU_MALLOC_reason="
8482 (The GNU allocators don't work with this system configuration.)"
8484 if test "$doug_lea_malloc" = "yes" ; then
8485 if test "$GNU_MALLOC" = yes ; then
8486 GNU_MALLOC_reason="
8487 (Using Doug Lea's new malloc from the GNU C Library.)"
8490 cat >>confdefs.h <<\_ACEOF
8491 #define DOUG_LEA_MALLOC 1
8492 _ACEOF
8496 if test x"${REL_ALLOC}" = x; then
8497 REL_ALLOC=${GNU_MALLOC}
8503 for ac_header in stdlib.h unistd.h
8505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 else
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 #include <$ac_header>
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_header_compiler=no
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558 echo "${ECHO_T}$ac_header_compiler" >&6
8560 # Is the header present?
8561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <$ac_header>
8570 _ACEOF
8571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev/null; then
8579 if test -s conftest.err; then
8580 ac_cpp_err=$ac_c_preproc_warn_flag
8581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8582 else
8583 ac_cpp_err=
8585 else
8586 ac_cpp_err=yes
8588 if test -z "$ac_cpp_err"; then
8589 ac_header_preproc=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_header_preproc=no
8596 rm -f conftest.err conftest.$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8602 yes:no: )
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8607 ac_header_preproc=yes
8609 no:yes:* )
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8623 cat <<\_ASBOX
8624 ## ------------------------------------------ ##
8625 ## Report this to the AC_PACKAGE_NAME lists. ##
8626 ## ------------------------------------------ ##
8627 _ASBOX
8629 sed "s/^/$as_me: WARNING: /" >&2
8631 esac
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 eval "$as_ac_Header=\$ac_header_preproc"
8639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646 _ACEOF
8650 done
8653 for ac_func in getpagesize
8655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 echo "$as_me:$LINENO: checking for $ac_func" >&5
8657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658 if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8676 #ifdef __STDC__
8677 # include <limits.h>
8678 #else
8679 # include <assert.h>
8680 #endif
8682 #undef $ac_func
8684 /* Override any gcc2 internal prototype to avoid an error. */
8685 #ifdef __cplusplus
8686 extern "C"
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691 char $ac_func ();
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 choke me
8697 #else
8698 char (*f) () = $ac_func;
8699 #endif
8700 #ifdef __cplusplus
8702 #endif
8705 main ()
8707 return f != $ac_func;
8709 return 0;
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 _ACEOF
8752 done
8754 echo "$as_me:$LINENO: checking for working mmap" >&5
8755 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8756 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 if test "$cross_compiling" = yes; then
8760 ac_cv_func_mmap_fixed_mapped=no
8761 else
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 /* malloc might have been renamed as rpl_malloc. */
8770 #undef malloc
8772 /* Thanks to Mike Haertel and Jim Avera for this test.
8773 Here is a matrix of mmap possibilities:
8774 mmap private not fixed
8775 mmap private fixed at somewhere currently unmapped
8776 mmap private fixed at somewhere already mapped
8777 mmap shared not fixed
8778 mmap shared fixed at somewhere currently unmapped
8779 mmap shared fixed at somewhere already mapped
8780 For private mappings, we should verify that changes cannot be read()
8781 back from the file, nor mmap's back from the file at a different
8782 address. (There have been systems where private was not correctly
8783 implemented like the infamous i386 svr4.0, and systems where the
8784 VM page cache was not coherent with the file system buffer cache
8785 like early versions of FreeBSD and possibly contemporary NetBSD.)
8786 For shared mappings, we should conversely verify that changes get
8787 propagated back to all the places they're supposed to be.
8789 Grep wants private fixed already mapped.
8790 The main things grep needs to know about mmap are:
8791 * does it exist and is it safe to write into the mmap'd area
8792 * how to use it (BSD variants) */
8794 #include <fcntl.h>
8795 #include <sys/mman.h>
8797 #if !STDC_HEADERS && !HAVE_STDLIB_H
8798 char *malloc ();
8799 #endif
8801 /* This mess was copied from the GNU getpagesize.h. */
8802 #if !HAVE_GETPAGESIZE
8803 /* Assume that all systems that can run configure have sys/param.h. */
8804 # if !HAVE_SYS_PARAM_H
8805 # define HAVE_SYS_PARAM_H 1
8806 # endif
8808 # ifdef _SC_PAGESIZE
8809 # define getpagesize() sysconf(_SC_PAGESIZE)
8810 # else /* no _SC_PAGESIZE */
8811 # if HAVE_SYS_PARAM_H
8812 # include <sys/param.h>
8813 # ifdef EXEC_PAGESIZE
8814 # define getpagesize() EXEC_PAGESIZE
8815 # else /* no EXEC_PAGESIZE */
8816 # ifdef NBPG
8817 # define getpagesize() NBPG * CLSIZE
8818 # ifndef CLSIZE
8819 # define CLSIZE 1
8820 # endif /* no CLSIZE */
8821 # else /* no NBPG */
8822 # ifdef NBPC
8823 # define getpagesize() NBPC
8824 # else /* no NBPC */
8825 # ifdef PAGESIZE
8826 # define getpagesize() PAGESIZE
8827 # endif /* PAGESIZE */
8828 # endif /* no NBPC */
8829 # endif /* no NBPG */
8830 # endif /* no EXEC_PAGESIZE */
8831 # else /* no HAVE_SYS_PARAM_H */
8832 # define getpagesize() 8192 /* punt totally */
8833 # endif /* no HAVE_SYS_PARAM_H */
8834 # endif /* no _SC_PAGESIZE */
8836 #endif /* no HAVE_GETPAGESIZE */
8839 main ()
8841 char *data, *data2, *data3;
8842 int i, pagesize;
8843 int fd;
8845 pagesize = getpagesize ();
8847 /* First, make a file with some known garbage in it. */
8848 data = (char *) malloc (pagesize);
8849 if (!data)
8850 exit (1);
8851 for (i = 0; i < pagesize; ++i)
8852 *(data + i) = rand ();
8853 umask (0);
8854 fd = creat ("conftest.mmap", 0600);
8855 if (fd < 0)
8856 exit (1);
8857 if (write (fd, data, pagesize) != pagesize)
8858 exit (1);
8859 close (fd);
8861 /* Next, try to mmap the file at a fixed address which already has
8862 something else allocated at it. If we can, also make sure that
8863 we see the same garbage. */
8864 fd = open ("conftest.mmap", O_RDWR);
8865 if (fd < 0)
8866 exit (1);
8867 data2 = (char *) malloc (2 * pagesize);
8868 if (!data2)
8869 exit (1);
8870 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8873 exit (1);
8874 for (i = 0; i < pagesize; ++i)
8875 if (*(data + i) != *(data2 + i))
8876 exit (1);
8878 /* Finally, make sure that changes to the mapped area do not
8879 percolate back to the file as seen by read(). (This is a bug on
8880 some variants of i386 svr4.0.) */
8881 for (i = 0; i < pagesize; ++i)
8882 *(data2 + i) = *(data2 + i) + 1;
8883 data3 = (char *) malloc (pagesize);
8884 if (!data3)
8885 exit (1);
8886 if (read (fd, data3, pagesize) != pagesize)
8887 exit (1);
8888 for (i = 0; i < pagesize; ++i)
8889 if (*(data + i) != *(data3 + i))
8890 exit (1);
8891 close (fd);
8892 exit (0);
8894 _ACEOF
8895 rm -f conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_func_mmap_fixed_mapped=yes
8907 else
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ( exit $ac_status )
8913 ac_cv_func_mmap_fixed_mapped=no
8915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8919 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_MMAP 1
8924 _ACEOF
8927 rm -f conftest.mmap
8929 if test $use_mmap_for_buffers = yes; then
8930 REL_ALLOC=no
8933 LIBS="$libsrc_libs $LIBS"
8936 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8937 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-ldnet $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char dnet_ntoa ();
8958 main ()
8960 dnet_ntoa ();
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dnet_dnet_ntoa=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_lib_dnet_dnet_ntoa=no
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define HAVE_LIBDNET 1
9003 _ACEOF
9005 LIBS="-ldnet $LIBS"
9010 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9011 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9012 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lXbsd $LIBS"
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9026 main ()
9028 main ();
9030 return 0;
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_Xbsd_main=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9060 ac_cv_lib_Xbsd_main=no
9062 rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9068 if test $ac_cv_lib_Xbsd_main = yes; then
9069 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9074 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9075 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9076 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 ac_check_lib_save_LIBS=$LIBS
9080 LIBS="-lpthreads $LIBS"
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any gcc2 internal prototype to avoid an error. */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9094 char cma_open ();
9096 main ()
9098 cma_open ();
9100 return 0;
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_pthreads_cma_open=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_lib_pthreads_cma_open=no
9132 rm -f conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 LIBS=$ac_check_lib_save_LIBS
9136 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9137 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9138 if test $ac_cv_lib_pthreads_cma_open = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_LIBPTHREADS 1
9141 _ACEOF
9143 LIBS="-lpthreads $LIBS"
9148 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9149 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9150 if test -d /usr/X386/include; then
9151 HAVE_XFREE386=yes
9152 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9153 else
9154 HAVE_XFREE386=no
9156 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9157 echo "${ECHO_T}$HAVE_XFREE386" >&6
9160 case ${host_os} in
9161 aix*)
9162 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9163 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9164 if test "${gdb_cv_bigtoc+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9168 case $GCC in
9169 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9170 *) gdb_cv_bigtoc=-bbigtoc ;;
9171 esac
9173 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9182 main ()
9184 int i;
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 gdb_cv_bigtoc=
9218 rm -f conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9223 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9225 esac
9227 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9228 # used for the tests that follow. We set them back to REAL_CFLAGS and
9229 # REAL_CPPFLAGS later on.
9231 REAL_CPPFLAGS="$CPPFLAGS"
9233 if test "${HAVE_X11}" = "yes"; then
9234 DEFS="$C_SWITCH_X_SITE $DEFS"
9235 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9236 LIBS="$LIBX $LIBS"
9237 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9238 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9240 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9241 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9242 # but it's more convenient here to set LD_RUN_PATH
9243 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9244 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9245 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9246 export LD_RUN_PATH
9249 if test "${opsys}" = "gnu-linux"; then
9250 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9251 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9260 main ()
9262 XOpenDisplay ("foo");
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag"
9277 || test ! -s conftest.err'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; } &&
9283 { ac_try='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 xlinux_first_failure=no
9290 else
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 xlinux_first_failure=yes
9296 rm -f conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 if test "${xlinux_first_failure}" = "yes"; then
9299 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9300 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9301 OLD_CPPFLAGS="$CPPFLAGS"
9302 OLD_LIBS="$LIBS"
9303 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9304 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9305 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9306 LIBS="$LIBS -b i486-linuxaout"
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9315 main ()
9317 XOpenDisplay ("foo");
9319 return 0;
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 xlinux_second_failure=no
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349 xlinux_second_failure=yes
9351 rm -f conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 if test "${xlinux_second_failure}" = "yes"; then
9354 # If we get the same failure with -b, there is no use adding -b.
9355 # So take it out. This plays safe.
9356 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9357 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9358 CPPFLAGS="$OLD_CPPFLAGS"
9359 LIBS="$OLD_LIBS"
9360 echo "$as_me:$LINENO: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9362 else
9363 echo "$as_me:$LINENO: result: yes" >&5
9364 echo "${ECHO_T}yes" >&6
9366 else
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9372 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9373 # header files included from there.
9374 echo "$as_me:$LINENO: checking for Xkb" >&5
9375 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <X11/Xlib.h>
9383 #include <X11/XKBlib.h>
9385 main ()
9387 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 emacs_xkb=yes
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 emacs_xkb=no
9421 rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9424 echo "${ECHO_T}$emacs_xkb" >&6
9425 if test $emacs_xkb = yes; then
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_XKBGETKEYBOARD 1
9429 _ACEOF
9437 for ac_func in XrmSetDatabase XScreenResourceString \
9438 XScreenNumberOfScreen XSetWMProtocols
9440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9441 echo "$as_me:$LINENO: checking for $ac_func" >&5
9442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_var+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9454 #define $ac_func innocuous_$ac_func
9456 /* System header to define __stub macros and hopefully few prototypes,
9457 which can conflict with char $ac_func (); below.
9458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9459 <limits.h> exists even on freestanding compilers. */
9461 #ifdef __STDC__
9462 # include <limits.h>
9463 #else
9464 # include <assert.h>
9465 #endif
9467 #undef $ac_func
9469 /* Override any gcc2 internal prototype to avoid an error. */
9470 #ifdef __cplusplus
9471 extern "C"
9473 #endif
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9476 char $ac_func ();
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9481 choke me
9482 #else
9483 char (*f) () = $ac_func;
9484 #endif
9485 #ifdef __cplusplus
9487 #endif
9490 main ()
9492 return f != $ac_func;
9494 return 0;
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -z "$ac_c_werror_flag"
9507 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 eval "$as_ac_var=yes"
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 eval "$as_ac_var=no"
9526 rm -f conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9531 if test `eval echo '${'$as_ac_var'}'` = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9534 _ACEOF
9537 done
9541 if test "${window_system}" = "x11"; then
9542 echo "$as_me:$LINENO: checking X11 version 6" >&5
9543 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9544 if test "${emacs_cv_x11_version_6+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <X11/Xlib.h>
9555 main ()
9557 #if XlibSpecificationRelease < 6
9558 fail;
9559 #endif
9562 return 0;
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 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); } &&
9574 { ac_try='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 emacs_cv_x11_version_6=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 emacs_cv_x11_version_6=no
9594 rm -f conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9598 if test $emacs_cv_x11_version_6 = yes; then
9599 echo "$as_me:$LINENO: result: 6 or newer" >&5
9600 echo "${ECHO_T}6 or newer" >&6
9602 cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_X11R6 1
9604 _ACEOF
9606 else
9607 echo "$as_me:$LINENO: result: before 6" >&5
9608 echo "${ECHO_T}before 6" >&6
9612 if test "${window_system}" = "x11"; then
9613 echo "$as_me:$LINENO: checking X11 version 5" >&5
9614 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9615 if test "${emacs_cv_x11_version_5+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <X11/Xlib.h>
9626 main ()
9628 #if XlibSpecificationRelease < 5
9629 fail;
9630 #endif
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 emacs_cv_x11_version_5=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 emacs_cv_x11_version_5=no
9665 rm -f conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9669 if test $emacs_cv_x11_version_5 = yes; then
9670 echo "$as_me:$LINENO: result: 5 or newer" >&5
9671 echo "${ECHO_T}5 or newer" >&6
9672 HAVE_X11R5=yes
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_X11R5 1
9676 _ACEOF
9678 else
9679 HAVE_X11R5=no
9680 echo "$as_me:$LINENO: result: before 5" >&5
9681 echo "${ECHO_T}before 5" >&6
9687 HAVE_GTK=no
9688 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9689 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9690 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9691 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9692 { (exit 1); exit 1; }; };
9694 GLIB_REQUIRED=2.0.1
9695 GTK_REQUIRED=2.0.1
9696 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9698 if test "X${with_pkg_config_prog}" != X; then
9699 PKG_CONFIG="${with_pkg_config_prog}"
9702 succeeded=no
9704 if test -z "$PKG_CONFIG"; then
9705 # Extract the first word of "pkg-config", so it can be a program name with args.
9706 set dummy pkg-config; ac_word=$2
9707 echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 case $PKG_CONFIG in
9713 [\\/]* | ?:[\\/]*)
9714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9728 done
9729 done
9731 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9733 esac
9735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9737 if test -n "$PKG_CONFIG"; then
9738 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9739 echo "${ECHO_T}$PKG_CONFIG" >&6
9740 else
9741 echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9747 if test "$PKG_CONFIG" = "no" ; then
9748 echo "*** The pkg-config script could not be found. Make sure it is"
9749 echo "*** in your path, or give the full path to pkg-config with"
9750 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9751 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9752 else
9753 PKG_CONFIG_MIN_VERSION=0.9.0
9754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9755 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9756 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9758 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${ECHO_T}yes" >&6
9761 succeeded=yes
9763 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9764 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9765 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9766 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9767 echo "${ECHO_T}$GTK_CFLAGS" >&6
9769 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9770 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9771 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9772 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9773 echo "${ECHO_T}$GTK_LIBS" >&6
9774 else
9775 GTK_CFLAGS=""
9776 GTK_LIBS=""
9777 ## If we have a custom action on failure, don't print errors, but
9778 ## do set a variable so people can do so.
9779 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9780 echo $GTK_PKG_ERRORS
9785 else
9786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9791 if test $succeeded = yes; then
9793 else
9794 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9795 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9796 { (exit 1); exit 1; }; }
9801 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS="$CFLAGS $GTK_CFLAGS"
9803 LIBS="$GTK_LIBS $LIBS"
9804 HAVE_GTK=yes
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_GTK 1
9808 _ACEOF
9810 USE_X_TOOLKIT=none
9812 if test "$with_toolkit_scroll_bars" != no; then
9813 with_toolkit_scroll_bars=yes
9816 HAVE_GTK_MULTIDISPLAY=no
9818 for ac_func in gdk_display_open
9820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9821 echo "$as_me:$LINENO: checking for $ac_func" >&5
9822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_var+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9834 #define $ac_func innocuous_$ac_func
9836 /* System header to define __stub macros and hopefully few prototypes,
9837 which can conflict with char $ac_func (); below.
9838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 <limits.h> exists even on freestanding compilers. */
9841 #ifdef __STDC__
9842 # include <limits.h>
9843 #else
9844 # include <assert.h>
9845 #endif
9847 #undef $ac_func
9849 /* Override any gcc2 internal prototype to avoid an error. */
9850 #ifdef __cplusplus
9851 extern "C"
9853 #endif
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856 char $ac_func ();
9857 /* The GNU C library defines this for functions which it implements
9858 to always fail with ENOSYS. Some functions are actually named
9859 something starting with __ and the normal name is an alias. */
9860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9861 choke me
9862 #else
9863 char (*f) () = $ac_func;
9864 #endif
9865 #ifdef __cplusplus
9867 #endif
9870 main ()
9872 return f != $ac_func;
9874 return 0;
9876 _ACEOF
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag"
9887 || test ! -s conftest.err'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 eval "$as_ac_var=yes"
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 eval "$as_ac_var=no"
9906 rm -f conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9911 if test `eval echo '${'$as_ac_var'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9914 _ACEOF
9915 HAVE_GTK_MULTIDISPLAY=yes
9917 done
9919 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_GTK_MULTIDISPLAY 1
9923 _ACEOF
9926 HAVE_GTK_FILE_SELECTION=no
9928 for ac_func in gtk_file_selection_new
9930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9931 echo "$as_me:$LINENO: checking for $ac_func" >&5
9932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9933 if eval "test \"\${$as_ac_var+set}\" = set"; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9944 #define $ac_func innocuous_$ac_func
9946 /* System header to define __stub macros and hopefully few prototypes,
9947 which can conflict with char $ac_func (); below.
9948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949 <limits.h> exists even on freestanding compilers. */
9951 #ifdef __STDC__
9952 # include <limits.h>
9953 #else
9954 # include <assert.h>
9955 #endif
9957 #undef $ac_func
9959 /* Override any gcc2 internal prototype to avoid an error. */
9960 #ifdef __cplusplus
9961 extern "C"
9963 #endif
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966 char $ac_func ();
9967 /* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
9970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9971 choke me
9972 #else
9973 char (*f) () = $ac_func;
9974 #endif
9975 #ifdef __cplusplus
9977 #endif
9980 main ()
9982 return f != $ac_func;
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 eval "$as_ac_var=yes"
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 eval "$as_ac_var=no"
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10025 HAVE_GTK_FILE_SELECTION=yes
10027 done
10030 HAVE_GTK_FILE_CHOOSER=no
10032 for ac_func in gtk_file_chooser_dialog_new
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_var+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10061 #undef $ac_func
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 #ifdef __cplusplus
10065 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char $ac_func ();
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075 choke me
10076 #else
10077 char (*f) () = $ac_func;
10078 #endif
10079 #ifdef __cplusplus
10081 #endif
10084 main ()
10086 return f != $ac_func;
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 eval "$as_ac_var=yes"
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 eval "$as_ac_var=no"
10120 rm -f conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10125 if test `eval echo '${'$as_ac_var'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 _ACEOF
10129 HAVE_GTK_FILE_CHOOSER=yes
10131 done
10134 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10135 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10137 cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_GTK_FILE_BOTH 1
10139 _ACEOF
10143 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10144 HAVE_GTK_AND_PTHREAD=no
10146 for ac_header in pthread.h
10148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 else
10158 # Is the header compilable?
10159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 #include <$ac_header>
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_header_compiler=yes
10193 else
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_header_compiler=no
10199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201 echo "${ECHO_T}$ac_header_compiler" >&6
10203 # Is the header present?
10204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <$ac_header>
10213 _ACEOF
10214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } >/dev/null; then
10222 if test -s conftest.err; then
10223 ac_cpp_err=$ac_c_preproc_warn_flag
10224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10225 else
10226 ac_cpp_err=
10228 else
10229 ac_cpp_err=yes
10231 if test -z "$ac_cpp_err"; then
10232 ac_header_preproc=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_header_preproc=no
10239 rm -f conftest.err conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6
10243 # So? What about this header?
10244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10245 yes:no: )
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10250 ac_header_preproc=yes
10252 no:yes:* )
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10266 cat <<\_ASBOX
10267 ## ------------------------------------------ ##
10268 ## Report this to the AC_PACKAGE_NAME lists. ##
10269 ## ------------------------------------------ ##
10270 _ASBOX
10272 sed "s/^/$as_me: WARNING: /" >&2
10274 esac
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 eval "$as_ac_Header=\$ac_header_preproc"
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10287 cat >>confdefs.h <<_ACEOF
10288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10289 _ACEOF
10293 done
10295 if test "$ac_cv_header_pthread_h"; then
10296 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10297 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10298 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lpthread $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10316 char pthread_self ();
10318 main ()
10320 pthread_self ();
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_lib_pthread_pthread_self=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_lib_pthread_pthread_self=no
10354 rm -f conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10360 if test $ac_cv_lib_pthread_pthread_self = yes; then
10361 HAVE_GTK_AND_PTHREAD=yes
10365 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10366 GTK_LIBS="$GTK_LIBS -lpthread"
10368 cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_GTK_AND_PTHREAD 1
10370 _ACEOF
10376 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10377 if test x"${HAVE_X11R5}" = xyes; then
10378 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10379 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10380 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h. */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10390 #include <X11/Intrinsic.h>
10391 #include <X11/Xaw/Simple.h>
10393 main ()
10397 return 0;
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 emacs_cv_x11_version_5_with_xaw=yes
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 emacs_cv_x11_version_5_with_xaw=no
10429 rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10433 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10434 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10435 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10436 USE_X_TOOLKIT=LUCID
10437 else
10438 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10439 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10440 USE_X_TOOLKIT=none
10442 else
10443 USE_X_TOOLKIT=none
10447 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10449 if test "${USE_X_TOOLKIT}" != "none"; then
10450 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10451 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10452 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <X11/Intrinsic.h>
10463 main ()
10465 #if XtSpecificationRelease < 6
10466 fail;
10467 #endif
10470 return 0;
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 emacs_cv_x11_toolkit_version_6=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 emacs_cv_x11_toolkit_version_6=no
10502 rm -f conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10506 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10507 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10508 echo "$as_me:$LINENO: result: 6 or newer" >&5
10509 echo "${ECHO_T}6 or newer" >&6
10511 cat >>confdefs.h <<\_ACEOF
10512 #define HAVE_X11XTR6 1
10513 _ACEOF
10515 else
10516 echo "$as_me:$LINENO: result: before 6" >&5
10517 echo "${ECHO_T}before 6" >&6
10520 OLDLIBS="$LIBS"
10521 if test x$HAVE_X11XTR6 = xyes; then
10522 LIBS="-lXt -lSM -lICE $LIBS"
10523 else
10524 LIBS="-lXt $LIBS"
10527 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10528 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10529 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-lXmu $LIBS"
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any gcc2 internal prototype to avoid an error. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547 char XmuConvertStandardSelection ();
10549 main ()
10551 XmuConvertStandardSelection ();
10553 return 0;
10555 _ACEOF
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>conftest.er1
10559 ac_status=$?
10560 grep -v '^ *+' conftest.er1 >conftest.err
10561 rm -f conftest.er1
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10579 else
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10585 rm -f conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LIBS=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10590 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10591 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_LIBXMU 1
10594 _ACEOF
10596 LIBS="-lXmu $LIBS"
10600 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10603 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10604 if test "${HAVE_X11}" = "yes"; then
10605 if test "${USE_X_TOOLKIT}" != "none"; then
10607 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10608 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10609 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 ac_check_lib_save_LIBS=$LIBS
10613 LIBS="-lXext $LIBS"
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10621 /* Override any gcc2 internal prototype to avoid an error. */
10622 #ifdef __cplusplus
10623 extern "C"
10624 #endif
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627 char XShapeQueryExtension ();
10629 main ()
10631 XShapeQueryExtension ();
10633 return 0;
10635 _ACEOF
10636 rm -f conftest.$ac_objext conftest$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638 (eval $ac_link) 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_c_werror_flag"
10646 || test ! -s conftest.err'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_lib_Xext_XShapeQueryExtension=yes
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_cv_lib_Xext_XShapeQueryExtension=no
10665 rm -f conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10670 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10671 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_LIBXEXT 1
10674 _ACEOF
10676 LIBS="-lXext $LIBS"
10683 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10684 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10685 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10686 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 #include <Xm/Xm.h>
10697 main ()
10699 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10700 int x = 5;
10701 #else
10702 Motif version prior to 2.1.
10703 #endif
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 emacs_cv_motif_version_2_1=yes
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 emacs_cv_motif_version_2_1=no
10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10740 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10741 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10742 if test $emacs_cv_motif_version_2_1 = yes; then
10743 HAVE_LIBXP=no
10745 cat >>confdefs.h <<\_ACEOF
10746 #define HAVE_MOTIF_2_1 1
10747 _ACEOF
10749 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10750 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10751 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lXp $LIBS"
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10763 /* Override any gcc2 internal prototype to avoid an error. */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 /* We use char because int might match the return type of a gcc2
10768 builtin and then its argument prototype would still apply. */
10769 char XpCreateContext ();
10771 main ()
10773 XpCreateContext ();
10775 return 0;
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag"
10788 || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_Xp_XpCreateContext=yes
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_lib_Xp_XpCreateContext=no
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10812 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10813 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10814 HAVE_LIBXP=yes
10817 if test ${HAVE_LIBXP} = yes; then
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_LIBXP 1
10821 _ACEOF
10824 else
10825 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10826 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10827 if test "${emacs_cv_lesstif+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 # We put this in CFLAGS temporarily to precede other -I options
10831 # that might be in CFLAGS temporarily.
10832 # We put this in CPPFLAGS where it precedes the other -I options.
10833 OLD_CPPFLAGS=$CPPFLAGS
10834 OLD_CFLAGS=$CFLAGS
10835 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10836 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10845 main ()
10847 int x = 5;
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 emacs_cv_lesstif=yes
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 emacs_cv_lesstif=no
10881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10883 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10884 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10885 if test $emacs_cv_lesstif = yes; then
10886 # Make sure this -I option remains in CPPFLAGS after it is set
10887 # back to REAL_CPPFLAGS.
10888 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10889 # have those other -I options anyway. Ultimately, having this
10890 # directory ultimately in CPPFLAGS will be enough.
10891 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10892 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10893 else
10894 CFLAGS=$OLD_CFLAGS
10895 CPPFLAGS=$OLD_CPPFLAGS
10900 ### Is -lXaw3d available?
10901 HAVE_XAW3D=no
10902 if test "${HAVE_X11}" = "yes"; then
10903 if test "${USE_X_TOOLKIT}" != "none"; then
10904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 #include <X11/Xaw3d/Scrollbar.h>
10916 _ACEOF
10917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } >/dev/null; then
10925 if test -s conftest.err; then
10926 ac_cpp_err=$ac_c_preproc_warn_flag
10927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10928 else
10929 ac_cpp_err=
10931 else
10932 ac_cpp_err=yes
10934 if test -z "$ac_cpp_err"; then
10935 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10936 else
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10942 rm -f conftest.err conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10945 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10946 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10947 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10948 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10949 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-lXaw3d $LIBS"
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10961 /* Override any gcc2 internal prototype to avoid an error. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10967 char XawScrollbarSetThumb ();
10969 main ()
10971 XawScrollbarSetThumb ();
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978 (eval $ac_link) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag"
10986 || test ! -s conftest.err'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11005 rm -f conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11010 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11011 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11012 HAVE_XAW3D=yes
11018 if test "${HAVE_XAW3D}" = "yes"; then
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_XAW3D 1
11022 _ACEOF
11030 USE_TOOLKIT_SCROLL_BARS=no
11031 if test "${with_toolkit_scroll_bars}" != "no"; then
11032 if test "${USE_X_TOOLKIT}" != "none"; then
11033 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define USE_TOOLKIT_SCROLL_BARS 1
11036 _ACEOF
11038 HAVE_XAW3D=no
11039 USE_TOOLKIT_SCROLL_BARS=yes
11040 elif test "${HAVE_XAW3D}" = "yes"; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define USE_TOOLKIT_SCROLL_BARS 1
11043 _ACEOF
11045 USE_TOOLKIT_SCROLL_BARS=yes
11047 elif test "${HAVE_GTK}" = "yes"; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define USE_TOOLKIT_SCROLL_BARS 1
11050 _ACEOF
11052 USE_TOOLKIT_SCROLL_BARS=yes
11056 cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h. */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11063 #include <X11/Xlib.h>
11064 #include <X11/Xresource.h>
11066 main ()
11068 XIMProc callback;
11070 return 0;
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 HAVE_XIM=yes
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_XIM 1
11099 _ACEOF
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 HAVE_XIM=no
11107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11110 if test "${with_xim}" != "no"; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define USE_XIM 1
11114 _ACEOF
11119 if test "${HAVE_XIM}" != "no"; then
11120 late_CFLAGS=$CFLAGS
11121 if test "$GCC" = yes; then
11122 CFLAGS="$CFLAGS --pedantic-errors"
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11131 #include <X11/Xlib.h>
11132 #include <X11/Xresource.h>
11134 main ()
11136 Display *display;
11137 XrmDatabase db;
11138 char *res_name;
11139 char *res_class;
11140 XIMProc callback;
11141 XPointer *client_data;
11142 #ifndef __GNUC__
11143 /* If we're not using GCC, it's probably not XFree86, and this is
11144 probably right, but we can't use something like --pedantic-errors. */
11145 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11146 char*, XIMProc, XPointer*);
11147 #endif
11148 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11149 client_data);
11151 return 0;
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest.$ac_objext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 emacs_cv_arg6_star=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 if test "$emacs_cv_arg6_star" = yes; then
11185 cat >>confdefs.h <<\_ACEOF
11186 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11187 _ACEOF
11189 else
11190 cat >>confdefs.h <<\_ACEOF
11191 #define XRegisterIMInstantiateCallback_arg6 XPointer
11192 _ACEOF
11195 CFLAGS=$late_CFLAGS
11198 ### Use -lXpm if available, unless `--with-xpm=no'.
11199 HAVE_XPM=no
11200 if test "${HAVE_X11}" = "yes"; then
11201 if test "${with_xpm}" != "no"; then
11202 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11203 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11204 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11205 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11209 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11210 else
11211 # Is the header compilable?
11212 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11213 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 #include <X11/xpm.h>
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_header_compiler=no
11252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254 echo "${ECHO_T}$ac_header_compiler" >&6
11256 # Is the header present?
11257 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11258 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <X11/xpm.h>
11266 _ACEOF
11267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null; then
11275 if test -s conftest.err; then
11276 ac_cpp_err=$ac_c_preproc_warn_flag
11277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11278 else
11279 ac_cpp_err=
11281 else
11282 ac_cpp_err=yes
11284 if test -z "$ac_cpp_err"; then
11285 ac_header_preproc=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_header_preproc=no
11292 rm -f conftest.err conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294 echo "${ECHO_T}$ac_header_preproc" >&6
11296 # So? What about this header?
11297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 yes:no: )
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11302 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc=yes
11305 no:yes:* )
11306 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11311 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11313 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11315 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11317 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11319 cat <<\_ASBOX
11320 ## ------------------------------------------ ##
11321 ## Report this to the AC_PACKAGE_NAME lists. ##
11322 ## ------------------------------------------ ##
11323 _ASBOX
11325 sed "s/^/$as_me: WARNING: /" >&2
11327 esac
11328 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11329 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11330 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 ac_cv_header_X11_xpm_h=$ac_header_preproc
11335 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11336 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11339 if test $ac_cv_header_X11_xpm_h = yes; then
11340 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11341 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11342 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-lXpm -lX11 $LIBS"
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11354 /* Override any gcc2 internal prototype to avoid an error. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char XpmReadFileToPixmap ();
11362 main ()
11364 XpmReadFileToPixmap ();
11366 return 0;
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11392 else
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11396 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11398 rm -f conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11402 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11403 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11404 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11405 HAVE_XPM=yes
11411 if test "${HAVE_XPM}" = "yes"; then
11412 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11413 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 #include "X11/xpm.h"
11421 #ifndef XpmReturnAllocPixels
11422 no_return_alloc_pixels
11423 #endif
11425 _ACEOF
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11428 HAVE_XPM=no
11429 else
11430 HAVE_XPM=yes
11432 rm -f conftest*
11435 if test "${HAVE_XPM}" = "yes"; then
11436 echo "$as_me:$LINENO: result: yes" >&5
11437 echo "${ECHO_T}yes" >&6
11438 else
11439 echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6
11445 if test "${HAVE_XPM}" = "yes"; then
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_XPM 1
11449 _ACEOF
11454 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11455 HAVE_JPEG=no
11456 if test "${HAVE_X11}" = "yes"; then
11457 if test "${with_jpeg}" != "no"; then
11458 if test "${ac_cv_header_jerror_h+set}" = set; then
11459 echo "$as_me:$LINENO: checking for jerror.h" >&5
11460 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11461 if test "${ac_cv_header_jerror_h+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11465 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11466 else
11467 # Is the header compilable?
11468 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11469 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 #include <jerror.h>
11478 _ACEOF
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag"
11489 || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_header_compiler=yes
11502 else
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_compiler=no
11508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11510 echo "${ECHO_T}$ac_header_compiler" >&6
11512 # Is the header present?
11513 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11514 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <jerror.h>
11522 _ACEOF
11523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null; then
11531 if test -s conftest.err; then
11532 ac_cpp_err=$ac_c_preproc_warn_flag
11533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534 else
11535 ac_cpp_err=
11537 else
11538 ac_cpp_err=yes
11540 if test -z "$ac_cpp_err"; then
11541 ac_header_preproc=yes
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_header_preproc=no
11548 rm -f conftest.err conftest.$ac_ext
11549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6
11552 # So? What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554 yes:no: )
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11561 no:yes:* )
11562 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11575 cat <<\_ASBOX
11576 ## ------------------------------------------ ##
11577 ## Report this to the AC_PACKAGE_NAME lists. ##
11578 ## ------------------------------------------ ##
11579 _ASBOX
11581 sed "s/^/$as_me: WARNING: /" >&2
11583 esac
11584 echo "$as_me:$LINENO: checking for jerror.h" >&5
11585 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11586 if test "${ac_cv_header_jerror_h+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 ac_cv_header_jerror_h=$ac_header_preproc
11591 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11592 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11595 if test $ac_cv_header_jerror_h = yes; then
11596 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11597 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11598 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-ljpeg $LIBS"
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 /* Override any gcc2 internal prototype to avoid an error. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11616 char jpeg_destroy_compress ();
11618 main ()
11620 jpeg_destroy_compress ();
11622 return 0;
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag"
11635 || test ! -s conftest.err'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11654 rm -f conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11659 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11660 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11661 HAVE_JPEG=yes
11670 if test "${HAVE_JPEG}" = "yes"; then
11671 cat >>confdefs.h <<\_ACEOF
11672 #define HAVE_JPEG 1
11673 _ACEOF
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 #include <jpeglib.h>
11682 version=JPEG_LIB_VERSION
11684 _ACEOF
11685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11686 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_JPEG 1
11689 _ACEOF
11691 else
11692 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11693 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11694 HAVE_JPEG=no
11696 rm -f conftest*
11701 ### Use -lpng if available, unless `--with-png=no'.
11702 HAVE_PNG=no
11703 if test "${HAVE_X11}" = "yes"; then
11704 if test "${with_png}" != "no"; then
11705 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11706 # in /usr/include/libpng.
11709 for ac_header in png.h libpng/png.h
11711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11713 echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11720 else
11721 # Is the header compilable?
11722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11731 #include <$ac_header>
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -z "$ac_c_werror_flag"
11743 || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_header_compiler=yes
11756 else
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 ac_header_compiler=no
11762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6
11766 # Is the header present?
11767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <$ac_header>
11776 _ACEOF
11777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } >/dev/null; then
11785 if test -s conftest.err; then
11786 ac_cpp_err=$ac_c_preproc_warn_flag
11787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11788 else
11789 ac_cpp_err=
11791 else
11792 ac_cpp_err=yes
11794 if test -z "$ac_cpp_err"; then
11795 ac_header_preproc=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_header_preproc=no
11802 rm -f conftest.err conftest.$ac_ext
11803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11804 echo "${ECHO_T}$ac_header_preproc" >&6
11806 # So? What about this header?
11807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11808 yes:no: )
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11813 ac_header_preproc=yes
11815 no:yes:* )
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11829 cat <<\_ASBOX
11830 ## ------------------------------------------ ##
11831 ## Report this to the AC_PACKAGE_NAME lists. ##
11832 ## ------------------------------------------ ##
11833 _ASBOX
11835 sed "s/^/$as_me: WARNING: /" >&2
11837 esac
11838 echo "$as_me:$LINENO: checking for $ac_header" >&5
11839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 eval "$as_ac_Header=\$ac_header_preproc"
11845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11850 cat >>confdefs.h <<_ACEOF
11851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11852 _ACEOF
11856 done
11858 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11859 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11860 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11861 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lpng -lz -lm $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 #ifdef __cplusplus
11875 extern "C"
11876 #endif
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char png_get_channels ();
11881 main ()
11883 png_get_channels ();
11885 return 0;
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_png_png_get_channels=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 ac_cv_lib_png_png_get_channels=no
11917 rm -f conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11922 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11923 if test $ac_cv_lib_png_png_get_channels = yes; then
11924 HAVE_PNG=yes
11930 if test "${HAVE_PNG}" = "yes"; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_PNG 1
11934 _ACEOF
11939 ### Use -ltiff if available, unless `--with-tiff=no'.
11940 HAVE_TIFF=no
11941 if test "${HAVE_X11}" = "yes"; then
11942 if test "${with_tiff}" != "no"; then
11943 if test "${ac_cv_header_tiffio_h+set}" = set; then
11944 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11945 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11946 if test "${ac_cv_header_tiffio_h+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11950 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11951 else
11952 # Is the header compilable?
11953 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11954 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <tiffio.h>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_header_compiler=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_header_compiler=no
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11995 echo "${ECHO_T}$ac_header_compiler" >&6
11997 # Is the header present?
11998 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11999 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 #include <tiffio.h>
12007 _ACEOF
12008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev/null; then
12016 if test -s conftest.err; then
12017 ac_cpp_err=$ac_c_preproc_warn_flag
12018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12019 else
12020 ac_cpp_err=
12022 else
12023 ac_cpp_err=yes
12025 if test -z "$ac_cpp_err"; then
12026 ac_header_preproc=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_header_preproc=no
12033 rm -f conftest.err conftest.$ac_ext
12034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12035 echo "${ECHO_T}$ac_header_preproc" >&6
12037 # So? What about this header?
12038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12039 yes:no: )
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12041 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12043 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12044 ac_header_preproc=yes
12046 no:yes:* )
12047 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12048 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12050 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12052 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12054 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12058 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12060 cat <<\_ASBOX
12061 ## ------------------------------------------ ##
12062 ## Report this to the AC_PACKAGE_NAME lists. ##
12063 ## ------------------------------------------ ##
12064 _ASBOX
12066 sed "s/^/$as_me: WARNING: /" >&2
12068 esac
12069 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12070 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12071 if test "${ac_cv_header_tiffio_h+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074 ac_cv_header_tiffio_h=$ac_header_preproc
12076 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12077 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12080 if test $ac_cv_header_tiffio_h = yes; then
12081 tifflibs="-lz -lm"
12082 # At least one tiff package requires the jpeg library.
12083 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12084 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12085 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12086 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 ac_check_lib_save_LIBS=$LIBS
12090 LIBS="-ltiff $tifflibs $LIBS"
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12098 /* Override any gcc2 internal prototype to avoid an error. */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104 char TIFFGetVersion ();
12106 main ()
12108 TIFFGetVersion ();
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_lib_tiff_TIFFGetVersion=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_lib_tiff_TIFFGetVersion=no
12142 rm -f conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144 LIBS=$ac_check_lib_save_LIBS
12146 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12147 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12148 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12149 HAVE_TIFF=yes
12157 if test "${HAVE_TIFF}" = "yes"; then
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_TIFF 1
12161 _ACEOF
12166 ### Use -lgif if available, unless `--with-gif=no'.
12167 HAVE_GIF=no
12168 if test "${HAVE_X11}" = "yes"; then
12169 if test "${with_gif}" != "no"; then
12170 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12171 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12172 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12173 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12177 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12178 else
12179 # Is the header compilable?
12180 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12181 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 #include <gif_lib.h>
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_header_compiler=yes
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_header_compiler=no
12220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222 echo "${ECHO_T}$ac_header_compiler" >&6
12224 # Is the header present?
12225 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12226 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 #include <gif_lib.h>
12234 _ACEOF
12235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } >/dev/null; then
12243 if test -s conftest.err; then
12244 ac_cpp_err=$ac_c_preproc_warn_flag
12245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12246 else
12247 ac_cpp_err=
12249 else
12250 ac_cpp_err=yes
12252 if test -z "$ac_cpp_err"; then
12253 ac_header_preproc=yes
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_header_preproc=no
12260 rm -f conftest.err conftest.$ac_ext
12261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12262 echo "${ECHO_T}$ac_header_preproc" >&6
12264 # So? What about this header?
12265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12266 yes:no: )
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12268 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12270 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12271 ac_header_preproc=yes
12273 no:yes:* )
12274 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12275 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12277 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12279 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12281 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12283 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12285 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12287 cat <<\_ASBOX
12288 ## ------------------------------------------ ##
12289 ## Report this to the AC_PACKAGE_NAME lists. ##
12290 ## ------------------------------------------ ##
12291 _ASBOX
12293 sed "s/^/$as_me: WARNING: /" >&2
12295 esac
12296 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12297 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12298 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 ac_cv_header_gif_lib_h=$ac_header_preproc
12303 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12304 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12307 if test $ac_cv_header_gif_lib_h = yes; then
12308 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12309 # Earlier versions can crash Emacs.
12310 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12311 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12312 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-lungif $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 /* We use char because int might match the return type of a gcc2
12329 builtin and then its argument prototype would still apply. */
12330 char EGifPutExtensionLast ();
12332 main ()
12334 EGifPutExtensionLast ();
12336 return 0;
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag"
12349 || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12362 else
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_cv_lib_ungif_EGifPutExtensionLast=no
12368 rm -f conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12373 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12374 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12375 HAVE_GIF=yes
12383 if test "${HAVE_GIF}" = "yes"; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_GIF 1
12387 _ACEOF
12392 ### Use Mac OS X Carbon API to implement GUI.
12393 HAVE_CARBON=no
12394 if test "${with_carbon}" != "no"; then
12395 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12396 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12397 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12398 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12402 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12403 else
12404 # Is the header compilable?
12405 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12406 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12414 #include <Carbon/Carbon.h>
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_header_compiler=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_header_compiler=no
12445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6
12449 # Is the header present?
12450 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12451 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #include <Carbon/Carbon.h>
12459 _ACEOF
12460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } >/dev/null; then
12468 if test -s conftest.err; then
12469 ac_cpp_err=$ac_c_preproc_warn_flag
12470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12471 else
12472 ac_cpp_err=
12474 else
12475 ac_cpp_err=yes
12477 if test -z "$ac_cpp_err"; then
12478 ac_header_preproc=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 ac_header_preproc=no
12485 rm -f conftest.err conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12487 echo "${ECHO_T}$ac_header_preproc" >&6
12489 # So? What about this header?
12490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12491 yes:no: )
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12495 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12496 ac_header_preproc=yes
12498 no:yes:* )
12499 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12500 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12502 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12504 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12506 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12508 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12510 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12512 cat <<\_ASBOX
12513 ## ------------------------------------------ ##
12514 ## Report this to the AC_PACKAGE_NAME lists. ##
12515 ## ------------------------------------------ ##
12516 _ASBOX
12518 sed "s/^/$as_me: WARNING: /" >&2
12520 esac
12521 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12522 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12528 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12532 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12533 HAVE_CARBON=yes
12539 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12540 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12541 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12542 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12546 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12547 else
12548 # Is the header compilable?
12549 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12550 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_includes_default
12558 #include <malloc/malloc.h>
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_header_compiler=yes
12583 else
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ac_header_compiler=no
12589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12591 echo "${ECHO_T}$ac_header_compiler" >&6
12593 # Is the header present?
12594 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12595 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include <malloc/malloc.h>
12603 _ACEOF
12604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } >/dev/null; then
12612 if test -s conftest.err; then
12613 ac_cpp_err=$ac_c_preproc_warn_flag
12614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12615 else
12616 ac_cpp_err=
12618 else
12619 ac_cpp_err=yes
12621 if test -z "$ac_cpp_err"; then
12622 ac_header_preproc=yes
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_header_preproc=no
12629 rm -f conftest.err conftest.$ac_ext
12630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12631 echo "${ECHO_T}$ac_header_preproc" >&6
12633 # So? What about this header?
12634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12635 yes:no: )
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12640 ac_header_preproc=yes
12642 no:yes:* )
12643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12644 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12654 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12656 cat <<\_ASBOX
12657 ## ------------------------------------------ ##
12658 ## Report this to the AC_PACKAGE_NAME lists. ##
12659 ## ------------------------------------------ ##
12660 _ASBOX
12662 sed "s/^/$as_me: WARNING: /" >&2
12664 esac
12665 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12666 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12667 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12672 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12673 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12676 if test $ac_cv_header_malloc_malloc_h = yes; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_MALLOC_MALLOC_H 1
12680 _ACEOF
12686 if test "${HAVE_CARBON}" = "yes"; then
12688 cat >>confdefs.h <<\_ACEOF
12689 #define HAVE_CARBON 1
12690 _ACEOF
12692 window_system=mac
12693 ## Specify the install directory
12694 carbon_appdir=
12695 if test "${carbon_appdir_x}" != ""; then
12696 case ${carbon_appdir_x} in
12697 y | ye | yes) carbon_appdir=/Applications ;;
12698 * ) carbon_appdir=${carbon_appdir_x} ;;
12699 esac
12701 # We also have mouse menus.
12702 HAVE_MENUS=yes
12705 ### Use session management (-lSM -lICE) if available
12706 HAVE_X_SM=no
12707 if test "${HAVE_X11}" = "yes"; then
12708 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12709 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12710 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12715 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12716 else
12717 # Is the header compilable?
12718 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12719 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h. */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 #include <X11/SM/SMlib.h>
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_header_compiler=yes
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ac_header_compiler=no
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6
12762 # Is the header present?
12763 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12764 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <X11/SM/SMlib.h>
12772 _ACEOF
12773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev/null; then
12781 if test -s conftest.err; then
12782 ac_cpp_err=$ac_c_preproc_warn_flag
12783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12784 else
12785 ac_cpp_err=
12787 else
12788 ac_cpp_err=yes
12790 if test -z "$ac_cpp_err"; then
12791 ac_header_preproc=yes
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_header_preproc=no
12798 rm -f conftest.err conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800 echo "${ECHO_T}$ac_header_preproc" >&6
12802 # So? What about this header?
12803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804 yes:no: )
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12808 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12809 ac_header_preproc=yes
12811 no:yes:* )
12812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12813 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12815 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12817 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12819 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12821 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12823 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12825 cat <<\_ASBOX
12826 ## ------------------------------------------ ##
12827 ## Report this to the AC_PACKAGE_NAME lists. ##
12828 ## ------------------------------------------ ##
12829 _ASBOX
12831 sed "s/^/$as_me: WARNING: /" >&2
12833 esac
12834 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12835 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12836 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12841 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12842 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12845 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12846 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12847 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12848 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-lSM -lICE $LIBS"
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any gcc2 internal prototype to avoid an error. */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12866 char SmcOpenConnection ();
12868 main ()
12870 SmcOpenConnection ();
12872 return 0;
12874 _ACEOF
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag"
12885 || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_lib_SM_SmcOpenConnection=yes
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_lib_SM_SmcOpenConnection=no
12904 rm -f conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 LIBS=$ac_check_lib_save_LIBS
12908 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12909 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12910 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12911 HAVE_X_SM=yes
12918 if test "${HAVE_X_SM}" = "yes"; then
12920 cat >>confdefs.h <<\_ACEOF
12921 #define HAVE_X_SM 1
12922 _ACEOF
12924 case "$LIBS" in
12925 *-lSM*) ;;
12926 *) LIBS="-lSM -lICE $LIBS" ;;
12927 esac
12931 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12932 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12933 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12934 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 #include <netdb.h>
12945 main ()
12947 return h_errno;
12949 return 0;
12951 _ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag"
12962 || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 emacs_cv_netdb_declares_h_errno=yes
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 emacs_cv_netdb_declares_h_errno=no
12981 rm -f conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12984 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12985 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12986 if test $emacs_cv_netdb_declares_h_errno = yes; then
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_H_ERRNO 1
12990 _ACEOF
12994 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12995 # for constant arguments. Useless!
12996 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12997 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12998 if test "${ac_cv_working_alloca_h+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <alloca.h>
13009 main ()
13011 char *p = (char *) alloca (2 * sizeof (int));
13013 return 0;
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_working_alloca_h=yes
13039 else
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_cv_working_alloca_h=no
13045 rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13049 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13050 if test $ac_cv_working_alloca_h = yes; then
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_ALLOCA_H 1
13054 _ACEOF
13058 echo "$as_me:$LINENO: checking for alloca" >&5
13059 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13060 if test "${ac_cv_func_alloca_works+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 #ifdef __GNUC__
13070 # define alloca __builtin_alloca
13071 #else
13072 # ifdef _MSC_VER
13073 # include <malloc.h>
13074 # define alloca _alloca
13075 # else
13076 # if HAVE_ALLOCA_H
13077 # include <alloca.h>
13078 # else
13079 # ifdef _AIX
13080 #pragma alloca
13081 # else
13082 # ifndef alloca /* predefined by HP cc +Olibcalls */
13083 char *alloca ();
13084 # endif
13085 # endif
13086 # endif
13087 # endif
13088 #endif
13091 main ()
13093 char *p = (char *) alloca (1);
13095 return 0;
13097 _ACEOF
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100 (eval $ac_link) 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try='test -z "$ac_c_werror_flag"
13108 || test ! -s conftest.err'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_func_alloca_works=yes
13121 else
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 ac_cv_func_alloca_works=no
13127 rm -f conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13130 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13131 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13133 if test $ac_cv_func_alloca_works = yes; then
13135 cat >>confdefs.h <<\_ACEOF
13136 #define HAVE_ALLOCA 1
13137 _ACEOF
13139 else
13140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13141 # that cause trouble. Some versions do not even contain alloca or
13142 # contain a buggy version. If you still want to use their alloca,
13143 # use ar to extract alloca.o from them instead of compiling alloca.c.
13145 ALLOCA=alloca.$ac_objext
13147 cat >>confdefs.h <<\_ACEOF
13148 #define C_ALLOCA 1
13149 _ACEOF
13152 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13153 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13154 if test "${ac_cv_os_cray+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #if defined(CRAY) && ! defined(CRAY2)
13164 webecray
13165 #else
13166 wenotbecray
13167 #endif
13169 _ACEOF
13170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13171 $EGREP "webecray" >/dev/null 2>&1; then
13172 ac_cv_os_cray=yes
13173 else
13174 ac_cv_os_cray=no
13176 rm -f conftest*
13179 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13180 echo "${ECHO_T}$ac_cv_os_cray" >&6
13181 if test $ac_cv_os_cray = yes; then
13182 for ac_func in _getb67 GETB67 getb67; do
13183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13184 echo "$as_me:$LINENO: checking for $ac_func" >&5
13185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_var+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13197 #define $ac_func innocuous_$ac_func
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char $ac_func (); below.
13201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13202 <limits.h> exists even on freestanding compilers. */
13204 #ifdef __STDC__
13205 # include <limits.h>
13206 #else
13207 # include <assert.h>
13208 #endif
13210 #undef $ac_func
13212 /* Override any gcc2 internal prototype to avoid an error. */
13213 #ifdef __cplusplus
13214 extern "C"
13216 #endif
13217 /* We use char because int might match the return type of a gcc2
13218 builtin and then its argument prototype would still apply. */
13219 char $ac_func ();
13220 /* The GNU C library defines this for functions which it implements
13221 to always fail with ENOSYS. Some functions are actually named
13222 something starting with __ and the normal name is an alias. */
13223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13224 choke me
13225 #else
13226 char (*f) () = $ac_func;
13227 #endif
13228 #ifdef __cplusplus
13230 #endif
13233 main ()
13235 return f != $ac_func;
13237 return 0;
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 eval "$as_ac_var=yes"
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 eval "$as_ac_var=no"
13269 rm -f conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13274 if test `eval echo '${'$as_ac_var'}'` = yes; then
13276 cat >>confdefs.h <<_ACEOF
13277 #define CRAY_STACKSEG_END $ac_func
13278 _ACEOF
13280 break
13283 done
13286 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13287 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13288 if test "${ac_cv_c_stack_direction+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 if test "$cross_compiling" = yes; then
13292 ac_cv_c_stack_direction=0
13293 else
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h. */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 find_stack_direction ()
13303 static char *addr = 0;
13304 auto char dummy;
13305 if (addr == 0)
13307 addr = &dummy;
13308 return find_stack_direction ();
13310 else
13311 return (&dummy > addr) ? 1 : -1;
13315 main ()
13317 exit (find_stack_direction () < 0);
13319 _ACEOF
13320 rm -f conftest$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322 (eval $ac_link) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_c_stack_direction=1
13332 else
13333 echo "$as_me: program exited with status $ac_status" >&5
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13337 ( exit $ac_status )
13338 ac_cv_c_stack_direction=-1
13340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13343 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13344 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13346 cat >>confdefs.h <<_ACEOF
13347 #define STACK_DIRECTION $ac_cv_c_stack_direction
13348 _ACEOF
13354 # fmod, logb, and frexp are found in -lm on most systems.
13355 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13357 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13358 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13359 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lm $LIBS"
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13377 char sqrt ();
13379 main ()
13381 sqrt ();
13383 return 0;
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_m_sqrt=yes
13409 else
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_lib_m_sqrt=no
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13420 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13421 if test $ac_cv_lib_m_sqrt = yes; then
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_LIBM 1
13424 _ACEOF
13426 LIBS="-lm $LIBS"
13431 # Check for mail-locking functions in a "mail" library. Probably this should
13432 # have the same check as for liblockfile below.
13434 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13435 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13436 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439 ac_check_lib_save_LIBS=$LIBS
13440 LIBS="-lmail $LIBS"
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h. */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13448 /* Override any gcc2 internal prototype to avoid an error. */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 /* We use char because int might match the return type of a gcc2
13453 builtin and then its argument prototype would still apply. */
13454 char maillock ();
13456 main ()
13458 maillock ();
13460 return 0;
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_cv_lib_mail_maillock=yes
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_cv_lib_mail_maillock=no
13492 rm -f conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13496 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13497 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13498 if test $ac_cv_lib_mail_maillock = yes; then
13499 cat >>confdefs.h <<_ACEOF
13500 #define HAVE_LIBMAIL 1
13501 _ACEOF
13503 LIBS="-lmail $LIBS"
13508 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13509 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13510 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513 ac_check_lib_save_LIBS=$LIBS
13514 LIBS="-llockfile $LIBS"
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13522 /* Override any gcc2 internal prototype to avoid an error. */
13523 #ifdef __cplusplus
13524 extern "C"
13525 #endif
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13528 char maillock ();
13530 main ()
13532 maillock ();
13534 return 0;
13536 _ACEOF
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_lib_lockfile_maillock=yes
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_lib_lockfile_maillock=no
13566 rm -f conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13570 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13571 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13572 if test $ac_cv_lib_lockfile_maillock = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_LIBLOCKFILE 1
13575 _ACEOF
13577 LIBS="-llockfile $LIBS"
13581 # If we have the shared liblockfile, assume we must use it for mail
13582 # locking (e.g. Debian). If we couldn't link against liblockfile
13583 # (no liblockfile.a installed), ensure that we don't need to.
13584 if test "$ac_cv_lib_lockfile_maillock" = no; then
13585 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13586 set dummy liblockfile.so; ac_word=$2
13587 echo "$as_me:$LINENO: checking for $ac_word" >&5
13588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13589 if test "${ac_cv_prog_liblockfile+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 if test -n "$liblockfile"; then
13593 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13597 for as_dir in $as_dummy
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_liblockfile="yes"
13604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13607 done
13608 done
13610 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13613 liblockfile=$ac_cv_prog_liblockfile
13614 if test -n "$liblockfile"; then
13615 echo "$as_me:$LINENO: result: $liblockfile" >&5
13616 echo "${ECHO_T}$liblockfile" >&6
13617 else
13618 echo "$as_me:$LINENO: result: no" >&5
13619 echo "${ECHO_T}no" >&6
13622 if test $ac_cv_prog_liblockfile = yes; then
13623 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13624 This probably means that movemail could lose mail.
13625 There may be a \`development' package to install containing liblockfile." >&5
13626 echo "$as_me: error: Shared liblockfile found but can't link against it.
13627 This probably means that movemail could lose mail.
13628 There may be a \`development' package to install containing liblockfile." >&2;}
13629 { (exit 1); exit 1; }; }
13630 else :
13634 for ac_func in touchlock
13636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13637 echo "$as_me:$LINENO: checking for $ac_func" >&5
13638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13639 if eval "test \"\${$as_ac_var+set}\" = set"; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13650 #define $ac_func innocuous_$ac_func
13652 /* System header to define __stub macros and hopefully few prototypes,
13653 which can conflict with char $ac_func (); below.
13654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13655 <limits.h> exists even on freestanding compilers. */
13657 #ifdef __STDC__
13658 # include <limits.h>
13659 #else
13660 # include <assert.h>
13661 #endif
13663 #undef $ac_func
13665 /* Override any gcc2 internal prototype to avoid an error. */
13666 #ifdef __cplusplus
13667 extern "C"
13669 #endif
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13672 char $ac_func ();
13673 /* The GNU C library defines this for functions which it implements
13674 to always fail with ENOSYS. Some functions are actually named
13675 something starting with __ and the normal name is an alias. */
13676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13677 choke me
13678 #else
13679 char (*f) () = $ac_func;
13680 #endif
13681 #ifdef __cplusplus
13683 #endif
13686 main ()
13688 return f != $ac_func;
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>conftest.er1
13696 ac_status=$?
13697 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 eval "$as_ac_var=yes"
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 eval "$as_ac_var=no"
13722 rm -f conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13727 if test `eval echo '${'$as_ac_var'}'` = yes; then
13728 cat >>confdefs.h <<_ACEOF
13729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13730 _ACEOF
13733 done
13736 for ac_header in maillock.h
13738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo "$as_me:$LINENO: checking for $ac_header" >&5
13741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13747 else
13748 # Is the header compilable?
13749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 $ac_includes_default
13758 #include <$ac_header>
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -z "$ac_c_werror_flag"
13770 || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest.$ac_objext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_header_compiler=yes
13783 else
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ac_header_compiler=no
13789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13791 echo "${ECHO_T}$ac_header_compiler" >&6
13793 # Is the header present?
13794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #include <$ac_header>
13803 _ACEOF
13804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null; then
13812 if test -s conftest.err; then
13813 ac_cpp_err=$ac_c_preproc_warn_flag
13814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13815 else
13816 ac_cpp_err=
13818 else
13819 ac_cpp_err=yes
13821 if test -z "$ac_cpp_err"; then
13822 ac_header_preproc=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ac_header_preproc=no
13829 rm -f conftest.err conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13835 yes:no: )
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc=yes
13842 no:yes:* )
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13856 cat <<\_ASBOX
13857 ## ------------------------------------------ ##
13858 ## Report this to the AC_PACKAGE_NAME lists. ##
13859 ## ------------------------------------------ ##
13860 _ASBOX
13862 sed "s/^/$as_me: WARNING: /" >&2
13864 esac
13865 echo "$as_me:$LINENO: checking for $ac_header" >&5
13866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870 eval "$as_ac_Header=\$ac_header_preproc"
13872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13877 cat >>confdefs.h <<_ACEOF
13878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13879 _ACEOF
13883 done
13953 for ac_func in gethostname getdomainname dup2 \
13954 rename closedir mkdir rmdir sysinfo getrusage \
13955 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13956 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13957 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13958 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13959 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13960 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13961 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13964 echo "$as_me:$LINENO: checking for $ac_func" >&5
13965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_var+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h. */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13977 #define $ac_func innocuous_$ac_func
13979 /* System header to define __stub macros and hopefully few prototypes,
13980 which can conflict with char $ac_func (); below.
13981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982 <limits.h> exists even on freestanding compilers. */
13984 #ifdef __STDC__
13985 # include <limits.h>
13986 #else
13987 # include <assert.h>
13988 #endif
13990 #undef $ac_func
13992 /* Override any gcc2 internal prototype to avoid an error. */
13993 #ifdef __cplusplus
13994 extern "C"
13996 #endif
13997 /* We use char because int might match the return type of a gcc2
13998 builtin and then its argument prototype would still apply. */
13999 char $ac_func ();
14000 /* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14004 choke me
14005 #else
14006 char (*f) () = $ac_func;
14007 #endif
14008 #ifdef __cplusplus
14010 #endif
14013 main ()
14015 return f != $ac_func;
14017 return 0;
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$as_ac_var=yes"
14043 else
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 eval "$as_ac_var=no"
14049 rm -f conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14054 if test `eval echo '${'$as_ac_var'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14057 _ACEOF
14060 done
14064 for ac_header in sys/un.h
14066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14068 echo "$as_me:$LINENO: checking for $ac_header" >&5
14069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14075 else
14076 # Is the header compilable?
14077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 $ac_includes_default
14086 #include <$ac_header>
14087 _ACEOF
14088 rm -f conftest.$ac_objext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14090 (eval $ac_compile) 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest.$ac_objext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_header_compiler=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_header_compiler=no
14117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14119 echo "${ECHO_T}$ac_header_compiler" >&6
14121 # Is the header present?
14122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <$ac_header>
14131 _ACEOF
14132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } >/dev/null; then
14140 if test -s conftest.err; then
14141 ac_cpp_err=$ac_c_preproc_warn_flag
14142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14143 else
14144 ac_cpp_err=
14146 else
14147 ac_cpp_err=yes
14149 if test -z "$ac_cpp_err"; then
14150 ac_header_preproc=yes
14151 else
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_header_preproc=no
14157 rm -f conftest.err conftest.$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14159 echo "${ECHO_T}$ac_header_preproc" >&6
14161 # So? What about this header?
14162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14163 yes:no: )
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14168 ac_header_preproc=yes
14170 no:yes:* )
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14184 cat <<\_ASBOX
14185 ## ------------------------------------------ ##
14186 ## Report this to the AC_PACKAGE_NAME lists. ##
14187 ## ------------------------------------------ ##
14188 _ASBOX
14190 sed "s/^/$as_me: WARNING: /" >&2
14192 esac
14193 echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 eval "$as_ac_Header=\$ac_header_preproc"
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14207 _ACEOF
14211 done
14217 for ac_header in stdlib.h sys/time.h unistd.h
14219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14228 else
14229 # Is the header compilable?
14230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 $ac_includes_default
14239 #include <$ac_header>
14240 _ACEOF
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag"
14251 || test ! -s conftest.err'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; } &&
14257 { ac_try='test -s conftest.$ac_objext'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14263 ac_header_compiler=yes
14264 else
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 ac_header_compiler=no
14270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14272 echo "${ECHO_T}$ac_header_compiler" >&6
14274 # Is the header present?
14275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <$ac_header>
14284 _ACEOF
14285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev/null; then
14293 if test -s conftest.err; then
14294 ac_cpp_err=$ac_c_preproc_warn_flag
14295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14296 else
14297 ac_cpp_err=
14299 else
14300 ac_cpp_err=yes
14302 if test -z "$ac_cpp_err"; then
14303 ac_header_preproc=yes
14304 else
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 ac_header_preproc=no
14310 rm -f conftest.err conftest.$ac_ext
14311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14312 echo "${ECHO_T}$ac_header_preproc" >&6
14314 # So? What about this header?
14315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14316 yes:no: )
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14321 ac_header_preproc=yes
14323 no:yes:* )
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14337 cat <<\_ASBOX
14338 ## ------------------------------------------ ##
14339 ## Report this to the AC_PACKAGE_NAME lists. ##
14340 ## ------------------------------------------ ##
14341 _ASBOX
14343 sed "s/^/$as_me: WARNING: /" >&2
14345 esac
14346 echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 eval "$as_ac_Header=\$ac_header_preproc"
14353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14358 cat >>confdefs.h <<_ACEOF
14359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14360 _ACEOF
14364 done
14367 for ac_func in alarm
14369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_func" >&5
14371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_var+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14383 #define $ac_func innocuous_$ac_func
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func (); below.
14387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388 <limits.h> exists even on freestanding compilers. */
14390 #ifdef __STDC__
14391 # include <limits.h>
14392 #else
14393 # include <assert.h>
14394 #endif
14396 #undef $ac_func
14398 /* Override any gcc2 internal prototype to avoid an error. */
14399 #ifdef __cplusplus
14400 extern "C"
14402 #endif
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14405 char $ac_func ();
14406 /* The GNU C library defines this for functions which it implements
14407 to always fail with ENOSYS. Some functions are actually named
14408 something starting with __ and the normal name is an alias. */
14409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14410 choke me
14411 #else
14412 char (*f) () = $ac_func;
14413 #endif
14414 #ifdef __cplusplus
14416 #endif
14419 main ()
14421 return f != $ac_func;
14423 return 0;
14425 _ACEOF
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14428 (eval $ac_link) 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest$ac_exeext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 eval "$as_ac_var=yes"
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 eval "$as_ac_var=no"
14455 rm -f conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14460 if test `eval echo '${'$as_ac_var'}'` = yes; then
14461 cat >>confdefs.h <<_ACEOF
14462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14463 _ACEOF
14466 done
14468 echo "$as_me:$LINENO: checking for working mktime" >&5
14469 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14470 if test "${ac_cv_func_working_mktime+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 if test "$cross_compiling" = yes; then
14474 ac_cv_func_working_mktime=no
14475 else
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 /* Test program from Paul Eggert and Tony Leneis. */
14483 #if TIME_WITH_SYS_TIME
14484 # include <sys/time.h>
14485 # include <time.h>
14486 #else
14487 # if HAVE_SYS_TIME_H
14488 # include <sys/time.h>
14489 # else
14490 # include <time.h>
14491 # endif
14492 #endif
14494 #if HAVE_STDLIB_H
14495 # include <stdlib.h>
14496 #endif
14498 #if HAVE_UNISTD_H
14499 # include <unistd.h>
14500 #endif
14502 #if !HAVE_ALARM
14503 # define alarm(X) /* empty */
14504 #endif
14506 /* Work around redefinition to rpl_putenv by other config tests. */
14507 #undef putenv
14509 static time_t time_t_max;
14510 static time_t time_t_min;
14512 /* Values we'll use to set the TZ environment variable. */
14513 static char *tz_strings[] = {
14514 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14515 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14517 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14519 /* Fail if mktime fails to convert a date in the spring-forward gap.
14520 Based on a problem report from Andreas Jaeger. */
14521 static void
14522 spring_forward_gap ()
14524 /* glibc (up to about 1998-10-07) failed this test. */
14525 struct tm tm;
14527 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14528 instead of "TZ=America/Vancouver" in order to detect the bug even
14529 on systems that don't support the Olson extension, or don't have the
14530 full zoneinfo tables installed. */
14531 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14533 tm.tm_year = 98;
14534 tm.tm_mon = 3;
14535 tm.tm_mday = 5;
14536 tm.tm_hour = 2;
14537 tm.tm_min = 0;
14538 tm.tm_sec = 0;
14539 tm.tm_isdst = -1;
14540 if (mktime (&tm) == (time_t)-1)
14541 exit (1);
14544 static void
14545 mktime_test1 (now)
14546 time_t now;
14548 struct tm *lt;
14549 if ((lt = localtime (&now)) && mktime (lt) != now)
14550 exit (1);
14553 static void
14554 mktime_test (now)
14555 time_t now;
14557 mktime_test1 (now);
14558 mktime_test1 ((time_t) (time_t_max - now));
14559 mktime_test1 ((time_t) (time_t_min + now));
14562 static void
14563 irix_6_4_bug ()
14565 /* Based on code from Ariel Faigon. */
14566 struct tm tm;
14567 tm.tm_year = 96;
14568 tm.tm_mon = 3;
14569 tm.tm_mday = 0;
14570 tm.tm_hour = 0;
14571 tm.tm_min = 0;
14572 tm.tm_sec = 0;
14573 tm.tm_isdst = -1;
14574 mktime (&tm);
14575 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14576 exit (1);
14579 static void
14580 bigtime_test (j)
14581 int j;
14583 struct tm tm;
14584 time_t now;
14585 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14586 now = mktime (&tm);
14587 if (now != (time_t) -1)
14589 struct tm *lt = localtime (&now);
14590 if (! (lt
14591 && lt->tm_year == tm.tm_year
14592 && lt->tm_mon == tm.tm_mon
14593 && lt->tm_mday == tm.tm_mday
14594 && lt->tm_hour == tm.tm_hour
14595 && lt->tm_min == tm.tm_min
14596 && lt->tm_sec == tm.tm_sec
14597 && lt->tm_yday == tm.tm_yday
14598 && lt->tm_wday == tm.tm_wday
14599 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14600 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14601 exit (1);
14606 main ()
14608 time_t t, delta;
14609 int i, j;
14611 /* This test makes some buggy mktime implementations loop.
14612 Give up after 60 seconds; a mktime slower than that
14613 isn't worth using anyway. */
14614 alarm (60);
14616 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14617 continue;
14618 time_t_max--;
14619 if ((time_t) -1 < 0)
14620 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14621 continue;
14622 delta = time_t_max / 997; /* a suitable prime number */
14623 for (i = 0; i < N_STRINGS; i++)
14625 if (tz_strings[i])
14626 putenv (tz_strings[i]);
14628 for (t = 0; t <= time_t_max - delta; t += delta)
14629 mktime_test (t);
14630 mktime_test ((time_t) 1);
14631 mktime_test ((time_t) (60 * 60));
14632 mktime_test ((time_t) (60 * 60 * 24));
14634 for (j = 1; 0 < j; j *= 2)
14635 bigtime_test (j);
14636 bigtime_test (j - 1);
14638 irix_6_4_bug ();
14639 spring_forward_gap ();
14640 exit (0);
14642 _ACEOF
14643 rm -f conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_func_working_mktime=yes
14655 else
14656 echo "$as_me: program exited with status $ac_status" >&5
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ( exit $ac_status )
14661 ac_cv_func_working_mktime=no
14663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14667 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14668 if test $ac_cv_func_working_mktime = no; then
14669 case $LIBOBJS in
14670 "mktime.$ac_objext" | \
14671 *" mktime.$ac_objext" | \
14672 "mktime.$ac_objext "* | \
14673 *" mktime.$ac_objext "* ) ;;
14674 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14675 esac
14679 if test "$ac_cv_func_working_mktime" = no; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define BROKEN_MKTIME 1
14683 _ACEOF
14687 ac_have_func=no # yes means we've found a way to get the load average.
14689 # Make sure getloadavg.c is where it belongs, at configure-time.
14690 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14691 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14692 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14693 { (exit 1); exit 1; }; }
14695 ac_save_LIBS=$LIBS
14697 # Check for getloadavg, but be sure not to touch the cache variable.
14698 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14699 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14700 if test "${ac_cv_func_getloadavg+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14711 #define getloadavg innocuous_getloadavg
14713 /* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char getloadavg (); below.
14715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716 <limits.h> exists even on freestanding compilers. */
14718 #ifdef __STDC__
14719 # include <limits.h>
14720 #else
14721 # include <assert.h>
14722 #endif
14724 #undef getloadavg
14726 /* Override any gcc2 internal prototype to avoid an error. */
14727 #ifdef __cplusplus
14728 extern "C"
14730 #endif
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char getloadavg ();
14734 /* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14738 choke me
14739 #else
14740 char (*f) () = getloadavg;
14741 #endif
14742 #ifdef __cplusplus
14744 #endif
14747 main ()
14749 return f != getloadavg;
14751 return 0;
14753 _ACEOF
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag"
14764 || test ! -s conftest.err'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest$ac_exeext'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_cv_func_getloadavg=yes
14777 else
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 ac_cv_func_getloadavg=no
14783 rm -f conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext conftest.$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14787 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14788 if test $ac_cv_func_getloadavg = yes; then
14789 exit 0
14790 else
14791 exit 1
14793 ) && ac_have_func=yes
14795 # On HPUX9, an unprivileged user can get load averages through this function.
14797 for ac_func in pstat_getdynamic
14799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 echo "$as_me:$LINENO: checking for $ac_func" >&5
14801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14802 if eval "test \"\${$as_ac_var+set}\" = set"; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14813 #define $ac_func innocuous_$ac_func
14815 /* System header to define __stub macros and hopefully few prototypes,
14816 which can conflict with char $ac_func (); below.
14817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14818 <limits.h> exists even on freestanding compilers. */
14820 #ifdef __STDC__
14821 # include <limits.h>
14822 #else
14823 # include <assert.h>
14824 #endif
14826 #undef $ac_func
14828 /* Override any gcc2 internal prototype to avoid an error. */
14829 #ifdef __cplusplus
14830 extern "C"
14832 #endif
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14835 char $ac_func ();
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14840 choke me
14841 #else
14842 char (*f) () = $ac_func;
14843 #endif
14844 #ifdef __cplusplus
14846 #endif
14849 main ()
14851 return f != $ac_func;
14853 return 0;
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 eval "$as_ac_var=yes"
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 eval "$as_ac_var=no"
14885 rm -f conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891 cat >>confdefs.h <<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14893 _ACEOF
14896 done
14899 # Solaris has libkstat which does not require root.
14901 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14902 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14903 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906 ac_check_lib_save_LIBS=$LIBS
14907 LIBS="-lkstat $LIBS"
14908 cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h. */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14915 /* Override any gcc2 internal prototype to avoid an error. */
14916 #ifdef __cplusplus
14917 extern "C"
14918 #endif
14919 /* We use char because int might match the return type of a gcc2
14920 builtin and then its argument prototype would still apply. */
14921 char kstat_open ();
14923 main ()
14925 kstat_open ();
14927 return 0;
14929 _ACEOF
14930 rm -f conftest.$ac_objext conftest$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_lib_kstat_kstat_open=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 ac_cv_lib_kstat_kstat_open=no
14959 rm -f conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 LIBS=$ac_check_lib_save_LIBS
14963 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14964 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14965 if test $ac_cv_lib_kstat_kstat_open = yes; then
14966 cat >>confdefs.h <<_ACEOF
14967 #define HAVE_LIBKSTAT 1
14968 _ACEOF
14970 LIBS="-lkstat $LIBS"
14974 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14976 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14977 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14978 # to get the right answer into the cache.
14979 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14980 if test $ac_have_func = no; then
14981 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14982 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14983 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lelf $LIBS"
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14995 /* Override any gcc2 internal prototype to avoid an error. */
14996 #ifdef __cplusplus
14997 extern "C"
14998 #endif
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char elf_begin ();
15003 main ()
15005 elf_begin ();
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_lib_elf_elf_begin=yes
15033 else
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_cv_lib_elf_elf_begin=no
15039 rm -f conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15041 LIBS=$ac_check_lib_save_LIBS
15043 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15044 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15045 if test $ac_cv_lib_elf_elf_begin = yes; then
15046 LIBS="-lelf $LIBS"
15050 if test $ac_have_func = no; then
15051 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15052 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15053 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 ac_check_lib_save_LIBS=$LIBS
15057 LIBS="-lkvm $LIBS"
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 /* Override any gcc2 internal prototype to avoid an error. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15071 char kvm_open ();
15073 main ()
15075 kvm_open ();
15077 return 0;
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_lib_kvm_kvm_open=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_lib_kvm_kvm_open=no
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15114 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15115 if test $ac_cv_lib_kvm_kvm_open = yes; then
15116 LIBS="-lkvm $LIBS"
15119 # Check for the 4.4BSD definition of getloadavg.
15120 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15121 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15122 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125 ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lutil $LIBS"
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h. */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15134 /* Override any gcc2 internal prototype to avoid an error. */
15135 #ifdef __cplusplus
15136 extern "C"
15137 #endif
15138 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */
15140 char getloadavg ();
15142 main ()
15144 getloadavg ();
15146 return 0;
15148 _ACEOF
15149 rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest$ac_exeext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_lib_util_getloadavg=yes
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_cv_lib_util_getloadavg=no
15178 rm -f conftest.err conftest.$ac_objext \
15179 conftest$ac_exeext conftest.$ac_ext
15180 LIBS=$ac_check_lib_save_LIBS
15182 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15183 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15184 if test $ac_cv_lib_util_getloadavg = yes; then
15185 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15190 if test $ac_have_func = no; then
15191 # There is a commonly available library for RS/6000 AIX.
15192 # Since it is not a standard part of AIX, it might be installed locally.
15193 ac_getloadavg_LIBS=$LIBS
15194 LIBS="-L/usr/local/lib $LIBS"
15195 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15196 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15197 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lgetloadavg $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 /* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
15215 char getloadavg ();
15217 main ()
15219 getloadavg ();
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15226 (eval $ac_link) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_lib_getloadavg_getloadavg=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_cv_lib_getloadavg_getloadavg=no
15253 rm -f conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 LIBS=$ac_check_lib_save_LIBS
15257 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15258 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15259 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15260 LIBS="-lgetloadavg $LIBS"
15261 else
15262 LIBS=$ac_getloadavg_LIBS
15267 # Make sure it is really in the library, if we think we found it,
15268 # otherwise set up the replacement function.
15270 for ac_func in getloadavg
15272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273 echo "$as_me:$LINENO: checking for $ac_func" >&5
15274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_var+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15286 #define $ac_func innocuous_$ac_func
15288 /* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char $ac_func (); below.
15290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15291 <limits.h> exists even on freestanding compilers. */
15293 #ifdef __STDC__
15294 # include <limits.h>
15295 #else
15296 # include <assert.h>
15297 #endif
15299 #undef $ac_func
15301 /* Override any gcc2 internal prototype to avoid an error. */
15302 #ifdef __cplusplus
15303 extern "C"
15305 #endif
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15308 char $ac_func ();
15309 /* The GNU C library defines this for functions which it implements
15310 to always fail with ENOSYS. Some functions are actually named
15311 something starting with __ and the normal name is an alias. */
15312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15313 choke me
15314 #else
15315 char (*f) () = $ac_func;
15316 #endif
15317 #ifdef __cplusplus
15319 #endif
15322 main ()
15324 return f != $ac_func;
15326 return 0;
15328 _ACEOF
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag"
15339 || test ! -s conftest.err'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest$ac_exeext'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 eval "$as_ac_var=yes"
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 eval "$as_ac_var=no"
15358 rm -f conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15366 _ACEOF
15368 else
15369 case $LIBOBJS in
15370 "getloadavg.$ac_objext" | \
15371 *" getloadavg.$ac_objext" | \
15372 "getloadavg.$ac_objext "* | \
15373 *" getloadavg.$ac_objext "* ) ;;
15374 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15375 esac
15378 cat >>confdefs.h <<\_ACEOF
15379 #define C_GETLOADAVG 1
15380 _ACEOF
15382 # Figure out what our getloadavg.c needs.
15383 ac_have_func=no
15384 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15385 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15386 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15391 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15392 else
15393 # Is the header compilable?
15394 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15395 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 $ac_includes_default
15403 #include <sys/dg_sys_info.h>
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407 (eval $ac_compile) 2>conftest.er1
15408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_header_compiler=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_header_compiler=no
15434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6
15438 # Is the header present?
15439 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15440 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <sys/dg_sys_info.h>
15448 _ACEOF
15449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } >/dev/null; then
15457 if test -s conftest.err; then
15458 ac_cpp_err=$ac_c_preproc_warn_flag
15459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15460 else
15461 ac_cpp_err=
15463 else
15464 ac_cpp_err=yes
15466 if test -z "$ac_cpp_err"; then
15467 ac_header_preproc=yes
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_preproc=no
15474 rm -f conftest.err conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15476 echo "${ECHO_T}$ac_header_preproc" >&6
15478 # So? What about this header?
15479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15480 yes:no: )
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15484 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15485 ac_header_preproc=yes
15487 no:yes:* )
15488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15493 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15499 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15501 cat <<\_ASBOX
15502 ## ------------------------------------------ ##
15503 ## Report this to the AC_PACKAGE_NAME lists. ##
15504 ## ------------------------------------------ ##
15505 _ASBOX
15507 sed "s/^/$as_me: WARNING: /" >&2
15509 esac
15510 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15511 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15512 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15518 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15521 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15522 ac_have_func=yes
15524 cat >>confdefs.h <<\_ACEOF
15525 #define DGUX 1
15526 _ACEOF
15529 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15530 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15531 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534 ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-ldgc $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15543 /* Override any gcc2 internal prototype to avoid an error. */
15544 #ifdef __cplusplus
15545 extern "C"
15546 #endif
15547 /* We use char because int might match the return type of a gcc2
15548 builtin and then its argument prototype would still apply. */
15549 char dg_sys_info ();
15551 main ()
15553 dg_sys_info ();
15555 return 0;
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag"
15568 || test ! -s conftest.err'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_lib_dgc_dg_sys_info=yes
15581 else
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_cv_lib_dgc_dg_sys_info=no
15587 rm -f conftest.err conftest.$ac_objext \
15588 conftest$ac_exeext conftest.$ac_ext
15589 LIBS=$ac_check_lib_save_LIBS
15591 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15592 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15593 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_LIBDGC 1
15596 _ACEOF
15598 LIBS="-ldgc $LIBS"
15606 if test "${ac_cv_header_locale_h+set}" = set; then
15607 echo "$as_me:$LINENO: checking for locale.h" >&5
15608 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15609 if test "${ac_cv_header_locale_h+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15613 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15614 else
15615 # Is the header compilable?
15616 echo "$as_me:$LINENO: checking locale.h usability" >&5
15617 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <locale.h>
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_header_compiler=yes
15650 else
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_header_compiler=no
15656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658 echo "${ECHO_T}$ac_header_compiler" >&6
15660 # Is the header present?
15661 echo "$as_me:$LINENO: checking locale.h presence" >&5
15662 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <locale.h>
15670 _ACEOF
15671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev/null; then
15679 if test -s conftest.err; then
15680 ac_cpp_err=$ac_c_preproc_warn_flag
15681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15682 else
15683 ac_cpp_err=
15685 else
15686 ac_cpp_err=yes
15688 if test -z "$ac_cpp_err"; then
15689 ac_header_preproc=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_header_preproc=no
15696 rm -f conftest.err conftest.$ac_ext
15697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15698 echo "${ECHO_T}$ac_header_preproc" >&6
15700 # So? What about this header?
15701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 yes:no: )
15703 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15704 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15706 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15707 ac_header_preproc=yes
15709 no:yes:* )
15710 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15711 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15713 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15715 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15717 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15719 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15721 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15723 cat <<\_ASBOX
15724 ## ------------------------------------------ ##
15725 ## Report this to the AC_PACKAGE_NAME lists. ##
15726 ## ------------------------------------------ ##
15727 _ASBOX
15729 sed "s/^/$as_me: WARNING: /" >&2
15731 esac
15732 echo "$as_me:$LINENO: checking for locale.h" >&5
15733 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15734 if test "${ac_cv_header_locale_h+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 ac_cv_header_locale_h=$ac_header_preproc
15739 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15740 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15746 for ac_func in setlocale
15748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15749 echo "$as_me:$LINENO: checking for $ac_func" >&5
15750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15751 if eval "test \"\${$as_ac_var+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15762 #define $ac_func innocuous_$ac_func
15764 /* System header to define __stub macros and hopefully few prototypes,
15765 which can conflict with char $ac_func (); below.
15766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15767 <limits.h> exists even on freestanding compilers. */
15769 #ifdef __STDC__
15770 # include <limits.h>
15771 #else
15772 # include <assert.h>
15773 #endif
15775 #undef $ac_func
15777 /* Override any gcc2 internal prototype to avoid an error. */
15778 #ifdef __cplusplus
15779 extern "C"
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 char (*f) () = $ac_func;
15792 #endif
15793 #ifdef __cplusplus
15795 #endif
15798 main ()
15800 return f != $ac_func;
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest$ac_exeext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 eval "$as_ac_var=yes"
15828 else
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15832 eval "$as_ac_var=no"
15834 rm -f conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15842 _ACEOF
15845 done
15848 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15849 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15850 # Irix 4.0.5F has the header but not the library.
15851 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15852 ac_have_func=yes
15854 cat >>confdefs.h <<\_ACEOF
15855 #define SVR4 1
15856 _ACEOF
15860 if test $ac_have_func = no; then
15861 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15862 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15863 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15864 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15868 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15869 else
15870 # Is the header compilable?
15871 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15872 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h. */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 $ac_includes_default
15880 #include <inq_stats/cpustats.h>
15881 _ACEOF
15882 rm -f conftest.$ac_objext
15883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15884 (eval $ac_compile) 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -z "$ac_c_werror_flag"
15892 || test ! -s conftest.err'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 ac_header_compiler=yes
15905 else
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15909 ac_header_compiler=no
15911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15913 echo "${ECHO_T}$ac_header_compiler" >&6
15915 # Is the header present?
15916 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15917 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <inq_stats/cpustats.h>
15925 _ACEOF
15926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } >/dev/null; then
15934 if test -s conftest.err; then
15935 ac_cpp_err=$ac_c_preproc_warn_flag
15936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15937 else
15938 ac_cpp_err=
15940 else
15941 ac_cpp_err=yes
15943 if test -z "$ac_cpp_err"; then
15944 ac_header_preproc=yes
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_header_preproc=no
15951 rm -f conftest.err conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15953 echo "${ECHO_T}$ac_header_preproc" >&6
15955 # So? What about this header?
15956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 yes:no: )
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15961 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15962 ac_header_preproc=yes
15964 no:yes:* )
15965 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15966 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15972 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15974 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15976 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15978 cat <<\_ASBOX
15979 ## ------------------------------------------ ##
15980 ## Report this to the AC_PACKAGE_NAME lists. ##
15981 ## ------------------------------------------ ##
15982 _ASBOX
15984 sed "s/^/$as_me: WARNING: /" >&2
15986 esac
15987 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15988 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15989 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15994 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15998 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15999 ac_have_func=yes
16001 cat >>confdefs.h <<\_ACEOF
16002 #define UMAX 1
16003 _ACEOF
16006 cat >>confdefs.h <<\_ACEOF
16007 #define UMAX4_3 1
16008 _ACEOF
16015 if test $ac_have_func = no; then
16016 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16017 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16018 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16019 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16023 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16024 else
16025 # Is the header compilable?
16026 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16027 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 $ac_includes_default
16035 #include <sys/cpustats.h>
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest.$ac_objext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_header_compiler=yes
16060 else
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ac_header_compiler=no
16066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6
16070 # Is the header present?
16071 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16072 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <sys/cpustats.h>
16080 _ACEOF
16081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev/null; then
16089 if test -s conftest.err; then
16090 ac_cpp_err=$ac_c_preproc_warn_flag
16091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16092 else
16093 ac_cpp_err=
16095 else
16096 ac_cpp_err=yes
16098 if test -z "$ac_cpp_err"; then
16099 ac_header_preproc=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_header_preproc=no
16106 rm -f conftest.err conftest.$ac_ext
16107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16112 yes:no: )
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16116 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16117 ac_header_preproc=yes
16119 no:yes:* )
16120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16121 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16123 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16125 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16127 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16131 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16133 cat <<\_ASBOX
16134 ## ------------------------------------------ ##
16135 ## Report this to the AC_PACKAGE_NAME lists. ##
16136 ## ------------------------------------------ ##
16137 _ASBOX
16139 sed "s/^/$as_me: WARNING: /" >&2
16141 esac
16142 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16143 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16144 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16150 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16153 if test $ac_cv_header_sys_cpustats_h = yes; then
16154 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16155 #define UMAX 1
16156 _ACEOF
16163 if test $ac_have_func = no; then
16165 for ac_header in mach/mach.h
16167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16169 echo "$as_me:$LINENO: checking for $ac_header" >&5
16170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16176 else
16177 # Is the header compilable?
16178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_header_compiler=yes
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_header_compiler=no
16218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6
16222 # Is the header present?
16223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <$ac_header>
16232 _ACEOF
16233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } >/dev/null; then
16241 if test -s conftest.err; then
16242 ac_cpp_err=$ac_c_preproc_warn_flag
16243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16244 else
16245 ac_cpp_err=
16247 else
16248 ac_cpp_err=yes
16250 if test -z "$ac_cpp_err"; then
16251 ac_header_preproc=yes
16252 else
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_header_preproc=no
16258 rm -f conftest.err conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16260 echo "${ECHO_T}$ac_header_preproc" >&6
16262 # So? What about this header?
16263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16264 yes:no: )
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16269 ac_header_preproc=yes
16271 no:yes:* )
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16285 cat <<\_ASBOX
16286 ## ------------------------------------------ ##
16287 ## Report this to the AC_PACKAGE_NAME lists. ##
16288 ## ------------------------------------------ ##
16289 _ASBOX
16291 sed "s/^/$as_me: WARNING: /" >&2
16293 esac
16294 echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299 eval "$as_ac_Header=\$ac_header_preproc"
16301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 _ACEOF
16312 done
16317 for ac_header in nlist.h
16319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16321 echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16328 else
16329 # Is the header compilable?
16330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16332 cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h. */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 $ac_includes_default
16339 #include <$ac_header>
16340 _ACEOF
16341 rm -f conftest.$ac_objext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343 (eval $ac_compile) 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16363 ac_header_compiler=yes
16364 else
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 ac_header_compiler=no
16370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6
16374 # Is the header present?
16375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16384 _ACEOF
16385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } >/dev/null; then
16393 if test -s conftest.err; then
16394 ac_cpp_err=$ac_c_preproc_warn_flag
16395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16396 else
16397 ac_cpp_err=
16399 else
16400 ac_cpp_err=yes
16402 if test -z "$ac_cpp_err"; then
16403 ac_header_preproc=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_header_preproc=no
16410 rm -f conftest.err conftest.$ac_ext
16411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16412 echo "${ECHO_T}$ac_header_preproc" >&6
16414 # So? What about this header?
16415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16416 yes:no: )
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16421 ac_header_preproc=yes
16423 no:yes:* )
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16437 cat <<\_ASBOX
16438 ## ------------------------------------------ ##
16439 ## Report this to the AC_PACKAGE_NAME lists. ##
16440 ## ------------------------------------------ ##
16441 _ASBOX
16443 sed "s/^/$as_me: WARNING: /" >&2
16445 esac
16446 echo "$as_me:$LINENO: checking for $ac_header" >&5
16447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451 eval "$as_ac_Header=\$ac_header_preproc"
16453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16460 _ACEOF
16461 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16462 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16463 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 #include <nlist.h>
16475 main ()
16477 static struct nlist ac_aggr;
16478 if (ac_aggr.n_un.n_name)
16479 return 0;
16481 return 0;
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486 (eval $ac_compile) 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try='test -z "$ac_c_werror_flag"
16494 || test ! -s conftest.err'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_member_struct_nlist_n_un_n_name=yes
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 #include <nlist.h>
16520 main ()
16522 static struct nlist ac_aggr;
16523 if (sizeof ac_aggr.n_un.n_name)
16524 return 0;
16526 return 0;
16528 _ACEOF
16529 rm -f conftest.$ac_objext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16531 (eval $ac_compile) 2>conftest.er1
16532 ac_status=$?
16533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_cv_member_struct_nlist_n_un_n_name=yes
16552 else
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ac_cv_member_struct_nlist_n_un_n_name=no
16558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16563 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16564 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16568 _ACEOF
16571 cat >>confdefs.h <<\_ACEOF
16572 #define NLIST_NAME_UNION 1
16573 _ACEOF
16580 done
16583 done
16586 # Some definitions of getloadavg require that the program be installed setgid.
16587 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16588 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16589 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16599 #ifdef LDAV_PRIVILEGED
16600 Yowza Am I SETGID yet
16601 #endif
16602 _ACEOF
16603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16604 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16605 ac_cv_func_getloadavg_setgid=yes
16606 else
16607 ac_cv_func_getloadavg_setgid=no
16609 rm -f conftest*
16612 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16613 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16614 if test $ac_cv_func_getloadavg_setgid = yes; then
16615 NEED_SETGID=true
16617 cat >>confdefs.h <<\_ACEOF
16618 #define GETLOADAVG_PRIVILEGED 1
16619 _ACEOF
16621 else
16622 NEED_SETGID=false
16625 if test $ac_cv_func_getloadavg_setgid = yes; then
16626 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16627 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16628 if test "${ac_cv_group_kmem+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16632 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16633 # If we got an error (system does not support symlinks), try without -L.
16634 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16635 ac_cv_group_kmem=`echo $ac_ls_output \
16636 | sed -ne 's/[ ][ ]*/ /g;
16637 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16638 / /s/.* //;p;'`
16641 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16642 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16643 KMEM_GROUP=$ac_cv_group_kmem
16645 if test "x$ac_save_LIBS" = x; then
16646 GETLOADAVG_LIBS=$LIBS
16647 else
16648 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16650 LIBS=$ac_save_LIBS
16654 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16655 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16656 if test "${ac_cv_sys_largefile_source+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659 while :; do
16660 ac_cv_sys_largefile_source=no
16661 cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h. */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <stdio.h>
16669 main ()
16671 return !fseeko;
16673 return 0;
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678 (eval $ac_compile) 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 break
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 #define _LARGEFILE_SOURCE 1
16712 #include <stdio.h>
16714 main ()
16716 return !fseeko;
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_sys_largefile_source=1; break
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750 break
16751 done
16753 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16754 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16755 if test "$ac_cv_sys_largefile_source" != no; then
16757 cat >>confdefs.h <<_ACEOF
16758 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16759 _ACEOF
16762 rm -f conftest*
16764 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16765 # in glibc 2.1.3, but that breaks too many other things.
16766 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16767 echo "$as_me:$LINENO: checking for fseeko" >&5
16768 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16769 if test "${ac_cv_func_fseeko+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 #include <stdio.h>
16780 main ()
16782 return fseeko && fseeko (stdin, 0, 0);
16784 return 0;
16786 _ACEOF
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16789 (eval $ac_link) 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_func_fseeko=yes
16810 else
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 ac_cv_func_fseeko=no
16816 rm -f conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16820 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16821 if test $ac_cv_func_fseeko = yes; then
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_FSEEKO 1
16825 _ACEOF
16830 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16831 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16832 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835 # Use it with a single arg.
16836 cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 $ac_includes_default
16844 main ()
16846 getpgrp (0);
16848 return 0;
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853 (eval $ac_compile) 2>conftest.er1
16854 ac_status=$?
16855 grep -v '^ *+' conftest.er1 >conftest.err
16856 rm -f conftest.er1
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -z "$ac_c_werror_flag"
16861 || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_func_getpgrp_void=no
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_func_getpgrp_void=yes
16880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16883 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16884 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16885 if test $ac_cv_func_getpgrp_void = yes; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define GETPGRP_VOID 1
16889 _ACEOF
16895 for ac_func in strftime
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16924 #undef $ac_func
16926 /* Override any gcc2 internal prototype to avoid an error. */
16927 #ifdef __cplusplus
16928 extern "C"
16930 #endif
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16933 char $ac_func ();
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 choke me
16939 #else
16940 char (*f) () = $ac_func;
16941 #endif
16942 #ifdef __cplusplus
16944 #endif
16947 main ()
16949 return f != $ac_func;
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 eval "$as_ac_var=no"
16983 rm -f conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16991 _ACEOF
16993 else
16994 # strftime is in -lintl on SCO UNIX.
16995 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16996 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16997 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000 ac_check_lib_save_LIBS=$LIBS
17001 LIBS="-lintl $LIBS"
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 /* Override any gcc2 internal prototype to avoid an error. */
17010 #ifdef __cplusplus
17011 extern "C"
17012 #endif
17013 /* We use char because int might match the return type of a gcc2
17014 builtin and then its argument prototype would still apply. */
17015 char strftime ();
17017 main ()
17019 strftime ();
17021 return 0;
17023 _ACEOF
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17026 (eval $ac_link) 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -z "$ac_c_werror_flag"
17034 || test ! -s conftest.err'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; } &&
17040 { ac_try='test -s conftest$ac_exeext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_lib_intl_strftime=yes
17047 else
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_lib_intl_strftime=no
17053 rm -f conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17057 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17059 if test $ac_cv_lib_intl_strftime = yes; then
17060 cat >>confdefs.h <<\_ACEOF
17061 #define HAVE_STRFTIME 1
17062 _ACEOF
17064 LIBS="-lintl $LIBS"
17068 done
17071 # UNIX98 PTYs.
17073 for ac_func in grantpt
17075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17076 echo "$as_me:$LINENO: checking for $ac_func" >&5
17077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17078 if eval "test \"\${$as_ac_var+set}\" = set"; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17089 #define $ac_func innocuous_$ac_func
17091 /* System header to define __stub macros and hopefully few prototypes,
17092 which can conflict with char $ac_func (); below.
17093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17094 <limits.h> exists even on freestanding compilers. */
17096 #ifdef __STDC__
17097 # include <limits.h>
17098 #else
17099 # include <assert.h>
17100 #endif
17102 #undef $ac_func
17104 /* Override any gcc2 internal prototype to avoid an error. */
17105 #ifdef __cplusplus
17106 extern "C"
17108 #endif
17109 /* We use char because int might match the return type of a gcc2
17110 builtin and then its argument prototype would still apply. */
17111 char $ac_func ();
17112 /* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17116 choke me
17117 #else
17118 char (*f) () = $ac_func;
17119 #endif
17120 #ifdef __cplusplus
17122 #endif
17125 main ()
17127 return f != $ac_func;
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 eval "$as_ac_var=yes"
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 eval "$as_ac_var=no"
17161 rm -f conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17166 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169 _ACEOF
17172 done
17175 # PTY-related GNU extensions.
17177 for ac_func in getpt
17179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17180 echo "$as_me:$LINENO: checking for $ac_func" >&5
17181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17182 if eval "test \"\${$as_ac_var+set}\" = set"; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17193 #define $ac_func innocuous_$ac_func
17195 /* System header to define __stub macros and hopefully few prototypes,
17196 which can conflict with char $ac_func (); below.
17197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17198 <limits.h> exists even on freestanding compilers. */
17200 #ifdef __STDC__
17201 # include <limits.h>
17202 #else
17203 # include <assert.h>
17204 #endif
17206 #undef $ac_func
17208 /* Override any gcc2 internal prototype to avoid an error. */
17209 #ifdef __cplusplus
17210 extern "C"
17212 #endif
17213 /* We use char because int might match the return type of a gcc2
17214 builtin and then its argument prototype would still apply. */
17215 char $ac_func ();
17216 /* The GNU C library defines this for functions which it implements
17217 to always fail with ENOSYS. Some functions are actually named
17218 something starting with __ and the normal name is an alias. */
17219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17220 choke me
17221 #else
17222 char (*f) () = $ac_func;
17223 #endif
17224 #ifdef __cplusplus
17226 #endif
17229 main ()
17231 return f != $ac_func;
17233 return 0;
17235 _ACEOF
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17238 (eval $ac_link) 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -z "$ac_c_werror_flag"
17246 || test ! -s conftest.err'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest$ac_exeext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 eval "$as_ac_var=yes"
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 eval "$as_ac_var=no"
17265 rm -f conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17270 if test `eval echo '${'$as_ac_var'}'` = yes; then
17271 cat >>confdefs.h <<_ACEOF
17272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17273 _ACEOF
17276 done
17279 # Check this now, so that we will NOT find the above functions in ncurses.
17280 # That is because we have not set up to link ncurses in lib-src.
17281 # It's better to believe a function is not available
17282 # than to expect to find it in ncurses.
17284 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17285 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17286 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-lncurses $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17298 /* Override any gcc2 internal prototype to avoid an error. */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17304 char tparm ();
17306 main ()
17308 tparm ();
17310 return 0;
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_ncurses_tparm=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_lib_ncurses_tparm=no
17342 rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17347 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17348 if test $ac_cv_lib_ncurses_tparm = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_LIBNCURSES 1
17351 _ACEOF
17353 LIBS="-lncurses $LIBS"
17358 # Do we need the Hesiod library to provide the support routines?
17359 if test "$with_hesiod" = yes ; then
17360 # Don't set $LIBS here -- see comments above.
17361 resolv=no
17362 echo "$as_me:$LINENO: checking for res_send" >&5
17363 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17364 if test "${ac_cv_func_res_send+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17375 #define res_send innocuous_res_send
17377 /* System header to define __stub macros and hopefully few prototypes,
17378 which can conflict with char res_send (); below.
17379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17380 <limits.h> exists even on freestanding compilers. */
17382 #ifdef __STDC__
17383 # include <limits.h>
17384 #else
17385 # include <assert.h>
17386 #endif
17388 #undef res_send
17390 /* Override any gcc2 internal prototype to avoid an error. */
17391 #ifdef __cplusplus
17392 extern "C"
17394 #endif
17395 /* We use char because int might match the return type of a gcc2
17396 builtin and then its argument prototype would still apply. */
17397 char res_send ();
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined (__stub_res_send) || defined (__stub___res_send)
17402 choke me
17403 #else
17404 char (*f) () = res_send;
17405 #endif
17406 #ifdef __cplusplus
17408 #endif
17411 main ()
17413 return f != res_send;
17415 return 0;
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag"
17428 || test ! -s conftest.err'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_func_res_send=yes
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ac_cv_func_res_send=no
17447 rm -f conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17450 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17451 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17452 if test $ac_cv_func_res_send = yes; then
17454 else
17455 echo "$as_me:$LINENO: checking for __res_send" >&5
17456 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17457 if test "${ac_cv_func___res_send+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define __res_send innocuous___res_send
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char __res_send (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17475 #ifdef __STDC__
17476 # include <limits.h>
17477 #else
17478 # include <assert.h>
17479 #endif
17481 #undef __res_send
17483 /* Override any gcc2 internal prototype to avoid an error. */
17484 #ifdef __cplusplus
17485 extern "C"
17487 #endif
17488 /* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17490 char __res_send ();
17491 /* The GNU C library defines this for functions which it implements
17492 to always fail with ENOSYS. Some functions are actually named
17493 something starting with __ and the normal name is an alias. */
17494 #if defined (__stub___res_send) || defined (__stub_____res_send)
17495 choke me
17496 #else
17497 char (*f) () = __res_send;
17498 #endif
17499 #ifdef __cplusplus
17501 #endif
17504 main ()
17506 return f != __res_send;
17508 return 0;
17510 _ACEOF
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>conftest.er1
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -z "$ac_c_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest$ac_exeext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_func___res_send=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_func___res_send=no
17540 rm -f conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17543 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17544 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17545 if test $ac_cv_func___res_send = yes; then
17547 else
17548 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17549 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17550 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553 ac_check_lib_save_LIBS=$LIBS
17554 LIBS="-lresolv $LIBS"
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17562 /* Override any gcc2 internal prototype to avoid an error. */
17563 #ifdef __cplusplus
17564 extern "C"
17565 #endif
17566 /* We use char because int might match the return type of a gcc2
17567 builtin and then its argument prototype would still apply. */
17568 char res_send ();
17570 main ()
17572 res_send ();
17574 return 0;
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579 (eval $ac_link) 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_lib_resolv_res_send=yes
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_lib_resolv_res_send=no
17606 rm -f conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS=$ac_check_lib_save_LIBS
17610 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17611 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17612 if test $ac_cv_lib_resolv_res_send = yes; then
17613 resolv=yes
17614 else
17615 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17616 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17617 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620 ac_check_lib_save_LIBS=$LIBS
17621 LIBS="-lresolv $LIBS"
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17629 /* Override any gcc2 internal prototype to avoid an error. */
17630 #ifdef __cplusplus
17631 extern "C"
17632 #endif
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17635 char __res_send ();
17637 main ()
17639 __res_send ();
17641 return 0;
17643 _ACEOF
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest$ac_exeext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_lib_resolv___res_send=yes
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_cv_lib_resolv___res_send=no
17673 rm -f conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17678 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17679 if test $ac_cv_lib_resolv___res_send = yes; then
17680 resolv=yes
17689 if test "$resolv" = yes ; then
17690 RESOLVLIB=-lresolv
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_LIBRESOLV 1
17694 _ACEOF
17696 else
17697 RESOLVLIB=
17699 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17700 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17701 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17712 #define hes_getmailhost innocuous_hes_getmailhost
17714 /* System header to define __stub macros and hopefully few prototypes,
17715 which can conflict with char hes_getmailhost (); below.
17716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717 <limits.h> exists even on freestanding compilers. */
17719 #ifdef __STDC__
17720 # include <limits.h>
17721 #else
17722 # include <assert.h>
17723 #endif
17725 #undef hes_getmailhost
17727 /* Override any gcc2 internal prototype to avoid an error. */
17728 #ifdef __cplusplus
17729 extern "C"
17731 #endif
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17734 char hes_getmailhost ();
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17739 choke me
17740 #else
17741 char (*f) () = hes_getmailhost;
17742 #endif
17743 #ifdef __cplusplus
17745 #endif
17748 main ()
17750 return f != hes_getmailhost;
17752 return 0;
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17757 (eval $ac_link) 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_c_werror_flag"
17765 || test ! -s conftest.err'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest$ac_exeext'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_func_hes_getmailhost=yes
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_cv_func_hes_getmailhost=no
17784 rm -f conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17787 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17788 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17789 if test $ac_cv_func_hes_getmailhost = yes; then
17791 else
17792 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17793 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17794 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797 ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-lhesiod $RESOLVLIB $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any gcc2 internal prototype to avoid an error. */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17812 char hes_getmailhost ();
17814 main ()
17816 hes_getmailhost ();
17818 return 0;
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag"
17831 || test ! -s conftest.err'
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); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_lib_hesiod_hes_getmailhost=yes
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_lib_hesiod_hes_getmailhost=no
17850 rm -f conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
17852 LIBS=$ac_check_lib_save_LIBS
17854 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17855 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17856 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17858 cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_LIBHESIOD 1
17860 _ACEOF
17862 else
17870 # These tell us which Kerberos-related libraries to use.
17871 if test "${with_kerberos+set}" = set; then
17873 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17874 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17875 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878 ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-lcom_err $LIBS"
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 /* Override any gcc2 internal prototype to avoid an error. */
17888 #ifdef __cplusplus
17889 extern "C"
17890 #endif
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17893 char com_err ();
17895 main ()
17897 com_err ();
17899 return 0;
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_com_err_com_err=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_com_err_com_err=no
17931 rm -f conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17936 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17937 if test $ac_cv_lib_com_err_com_err = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_LIBCOM_ERR 1
17940 _ACEOF
17942 LIBS="-lcom_err $LIBS"
17947 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17948 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17949 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952 ac_check_lib_save_LIBS=$LIBS
17953 LIBS="-lk5crypto $LIBS"
17954 cat >conftest.$ac_ext <<_ACEOF
17955 /* confdefs.h. */
17956 _ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17961 /* Override any gcc2 internal prototype to avoid an error. */
17962 #ifdef __cplusplus
17963 extern "C"
17964 #endif
17965 /* We use char because int might match the return type of a gcc2
17966 builtin and then its argument prototype would still apply. */
17967 char mit_des_cbc_encrypt ();
17969 main ()
17971 mit_des_cbc_encrypt ();
17973 return 0;
17975 _ACEOF
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag"
17986 || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17999 else
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18003 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18005 rm -f conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 LIBS=$ac_check_lib_save_LIBS
18009 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18010 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18011 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define HAVE_LIBK5CRYPTO 1
18014 _ACEOF
18016 LIBS="-lk5crypto $LIBS"
18021 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18022 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18023 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 ac_check_lib_save_LIBS=$LIBS
18027 LIBS="-lcrypto $LIBS"
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18035 /* Override any gcc2 internal prototype to avoid an error. */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 /* We use char because int might match the return type of a gcc2
18040 builtin and then its argument prototype would still apply. */
18041 char mit_des_cbc_encrypt ();
18043 main ()
18045 mit_des_cbc_encrypt ();
18047 return 0;
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18079 rm -f conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081 LIBS=$ac_check_lib_save_LIBS
18083 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18084 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18085 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_LIBCRYPTO 1
18088 _ACEOF
18090 LIBS="-lcrypto $LIBS"
18095 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18096 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18097 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100 ac_check_lib_save_LIBS=$LIBS
18101 LIBS="-lkrb5 $LIBS"
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18109 /* Override any gcc2 internal prototype to avoid an error. */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 /* We use char because int might match the return type of a gcc2
18114 builtin and then its argument prototype would still apply. */
18115 char krb5_init_context ();
18117 main ()
18119 krb5_init_context ();
18121 return 0;
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>conftest.er1
18127 ac_status=$?
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -z "$ac_c_werror_flag"
18134 || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try='test -s conftest$ac_exeext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_lib_krb5_krb5_init_context=yes
18147 else
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 ac_cv_lib_krb5_krb5_init_context=no
18153 rm -f conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18155 LIBS=$ac_check_lib_save_LIBS
18157 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18158 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18159 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18160 cat >>confdefs.h <<_ACEOF
18161 #define HAVE_LIBKRB5 1
18162 _ACEOF
18164 LIBS="-lkrb5 $LIBS"
18168 if test "${with_kerberos5+set}" != set; then
18170 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18171 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18172 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175 ac_check_lib_save_LIBS=$LIBS
18176 LIBS="-ldes425 $LIBS"
18177 cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h. */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18184 /* Override any gcc2 internal prototype to avoid an error. */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 /* We use char because int might match the return type of a gcc2
18189 builtin and then its argument prototype would still apply. */
18190 char des_cbc_encrypt ();
18192 main ()
18194 des_cbc_encrypt ();
18196 return 0;
18198 _ACEOF
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest$ac_exeext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_des425_des_cbc_encrypt=yes
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_des425_des_cbc_encrypt=no
18228 rm -f conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18230 LIBS=$ac_check_lib_save_LIBS
18232 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18233 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18234 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18235 cat >>confdefs.h <<_ACEOF
18236 #define HAVE_LIBDES425 1
18237 _ACEOF
18239 LIBS="-ldes425 $LIBS"
18241 else
18243 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18244 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18245 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-ldes $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any gcc2 internal prototype to avoid an error. */
18258 #ifdef __cplusplus
18259 extern "C"
18260 #endif
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18263 char des_cbc_encrypt ();
18265 main ()
18267 des_cbc_encrypt ();
18269 return 0;
18271 _ACEOF
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274 (eval $ac_link) 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest$ac_exeext'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_lib_des_des_cbc_encrypt=yes
18295 else
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_lib_des_des_cbc_encrypt=no
18301 rm -f conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18305 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18306 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18307 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define HAVE_LIBDES 1
18310 _ACEOF
18312 LIBS="-ldes $LIBS"
18319 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18320 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18321 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324 ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lkrb4 $LIBS"
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h. */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18333 /* Override any gcc2 internal prototype to avoid an error. */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 /* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
18339 char krb_get_cred ();
18341 main ()
18343 krb_get_cred ();
18345 return 0;
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18351 ac_status=$?
18352 grep -v '^ *+' conftest.er1 >conftest.err
18353 rm -f conftest.er1
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag"
18358 || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest$ac_exeext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_lib_krb4_krb_get_cred=yes
18371 else
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 ac_cv_lib_krb4_krb_get_cred=no
18377 rm -f conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18381 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18382 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18383 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18384 cat >>confdefs.h <<_ACEOF
18385 #define HAVE_LIBKRB4 1
18386 _ACEOF
18388 LIBS="-lkrb4 $LIBS"
18390 else
18392 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18393 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18394 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397 ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-lkrb $LIBS"
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18406 /* Override any gcc2 internal prototype to avoid an error. */
18407 #ifdef __cplusplus
18408 extern "C"
18409 #endif
18410 /* We use char because int might match the return type of a gcc2
18411 builtin and then its argument prototype would still apply. */
18412 char krb_get_cred ();
18414 main ()
18416 krb_get_cred ();
18418 return 0;
18420 _ACEOF
18421 rm -f conftest.$ac_objext conftest$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_lib_krb_krb_get_cred=yes
18444 else
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_cv_lib_krb_krb_get_cred=no
18450 rm -f conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18454 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18455 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18456 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18457 cat >>confdefs.h <<_ACEOF
18458 #define HAVE_LIBKRB 1
18459 _ACEOF
18461 LIBS="-lkrb $LIBS"
18469 if test "${with_kerberos5+set}" = set; then
18471 for ac_header in krb5.h
18473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18475 echo "$as_me:$LINENO: checking for $ac_header" >&5
18476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18482 else
18483 # Is the header compilable?
18484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h. */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18493 #include <$ac_header>
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497 (eval $ac_compile) 2>conftest.er1
18498 ac_status=$?
18499 grep -v '^ *+' conftest.er1 >conftest.err
18500 rm -f conftest.er1
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag"
18505 || test ! -s conftest.err'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest.$ac_objext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_header_compiler=yes
18518 else
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_header_compiler=no
18524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18526 echo "${ECHO_T}$ac_header_compiler" >&6
18528 # Is the header present?
18529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h. */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 #include <$ac_header>
18538 _ACEOF
18539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } >/dev/null; then
18547 if test -s conftest.err; then
18548 ac_cpp_err=$ac_c_preproc_warn_flag
18549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18550 else
18551 ac_cpp_err=
18553 else
18554 ac_cpp_err=yes
18556 if test -z "$ac_cpp_err"; then
18557 ac_header_preproc=yes
18558 else
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_header_preproc=no
18564 rm -f conftest.err conftest.$ac_ext
18565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18566 echo "${ECHO_T}$ac_header_preproc" >&6
18568 # So? What about this header?
18569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18570 yes:no: )
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18575 ac_header_preproc=yes
18577 no:yes:* )
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18591 cat <<\_ASBOX
18592 ## ------------------------------------------ ##
18593 ## Report this to the AC_PACKAGE_NAME lists. ##
18594 ## ------------------------------------------ ##
18595 _ASBOX
18597 sed "s/^/$as_me: WARNING: /" >&2
18599 esac
18600 echo "$as_me:$LINENO: checking for $ac_header" >&5
18601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605 eval "$as_ac_Header=\$ac_header_preproc"
18607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18612 cat >>confdefs.h <<_ACEOF
18613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18614 _ACEOF
18618 done
18620 else
18622 for ac_header in des.h
18624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18626 echo "$as_me:$LINENO: checking for $ac_header" >&5
18627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18633 else
18634 # Is the header compilable?
18635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 $ac_includes_default
18644 #include <$ac_header>
18645 _ACEOF
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_header_compiler=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 ac_header_compiler=no
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18677 echo "${ECHO_T}$ac_header_compiler" >&6
18679 # Is the header present?
18680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include <$ac_header>
18689 _ACEOF
18690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } >/dev/null; then
18698 if test -s conftest.err; then
18699 ac_cpp_err=$ac_c_preproc_warn_flag
18700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18701 else
18702 ac_cpp_err=
18704 else
18705 ac_cpp_err=yes
18707 if test -z "$ac_cpp_err"; then
18708 ac_header_preproc=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_header_preproc=no
18715 rm -f conftest.err conftest.$ac_ext
18716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18717 echo "${ECHO_T}$ac_header_preproc" >&6
18719 # So? What about this header?
18720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18721 yes:no: )
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18726 ac_header_preproc=yes
18728 no:yes:* )
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18742 cat <<\_ASBOX
18743 ## ------------------------------------------ ##
18744 ## Report this to the AC_PACKAGE_NAME lists. ##
18745 ## ------------------------------------------ ##
18746 _ASBOX
18748 sed "s/^/$as_me: WARNING: /" >&2
18750 esac
18751 echo "$as_me:$LINENO: checking for $ac_header" >&5
18752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 eval "$as_ac_Header=\$ac_header_preproc"
18758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18763 cat >>confdefs.h <<_ACEOF
18764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18765 _ACEOF
18767 else
18769 for ac_header in kerberosIV/des.h
18771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18773 echo "$as_me:$LINENO: checking for $ac_header" >&5
18774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18780 else
18781 # Is the header compilable?
18782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_header_compiler=yes
18816 else
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_header_compiler=no
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6
18826 # Is the header present?
18827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #include <$ac_header>
18836 _ACEOF
18837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev/null; then
18845 if test -s conftest.err; then
18846 ac_cpp_err=$ac_c_preproc_warn_flag
18847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18848 else
18849 ac_cpp_err=
18851 else
18852 ac_cpp_err=yes
18854 if test -z "$ac_cpp_err"; then
18855 ac_header_preproc=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 ac_header_preproc=no
18862 rm -f conftest.err conftest.$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6
18866 # So? What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18868 yes:no: )
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18873 ac_header_preproc=yes
18875 no:yes:* )
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18889 cat <<\_ASBOX
18890 ## ------------------------------------------ ##
18891 ## Report this to the AC_PACKAGE_NAME lists. ##
18892 ## ------------------------------------------ ##
18893 _ASBOX
18895 sed "s/^/$as_me: WARNING: /" >&2
18897 esac
18898 echo "$as_me:$LINENO: checking for $ac_header" >&5
18899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 eval "$as_ac_Header=\$ac_header_preproc"
18905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18910 cat >>confdefs.h <<_ACEOF
18911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18912 _ACEOF
18914 else
18916 for ac_header in kerberos/des.h
18918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920 echo "$as_me:$LINENO: checking for $ac_header" >&5
18921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18927 else
18928 # Is the header compilable?
18929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 $ac_includes_default
18938 #include <$ac_header>
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_header_compiler=yes
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_header_compiler=no
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6
18973 # Is the header present?
18974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <$ac_header>
18983 _ACEOF
18984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } >/dev/null; then
18992 if test -s conftest.err; then
18993 ac_cpp_err=$ac_c_preproc_warn_flag
18994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18995 else
18996 ac_cpp_err=
18998 else
18999 ac_cpp_err=yes
19001 if test -z "$ac_cpp_err"; then
19002 ac_header_preproc=yes
19003 else
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_preproc=no
19009 rm -f conftest.err conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19015 yes:no: )
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19020 ac_header_preproc=yes
19022 no:yes:* )
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19036 cat <<\_ASBOX
19037 ## ------------------------------------------ ##
19038 ## Report this to the AC_PACKAGE_NAME lists. ##
19039 ## ------------------------------------------ ##
19040 _ASBOX
19042 sed "s/^/$as_me: WARNING: /" >&2
19044 esac
19045 echo "$as_me:$LINENO: checking for $ac_header" >&5
19046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 else
19050 eval "$as_ac_Header=\$ac_header_preproc"
19052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 _ACEOF
19063 done
19067 done
19071 done
19074 for ac_header in krb.h
19076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19078 echo "$as_me:$LINENO: checking for $ac_header" >&5
19079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19085 else
19086 # Is the header compilable?
19087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 #include <$ac_header>
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_header_compiler=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_header_compiler=no
19127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19129 echo "${ECHO_T}$ac_header_compiler" >&6
19131 # Is the header present?
19132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 #include <$ac_header>
19141 _ACEOF
19142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } >/dev/null; then
19150 if test -s conftest.err; then
19151 ac_cpp_err=$ac_c_preproc_warn_flag
19152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19153 else
19154 ac_cpp_err=
19156 else
19157 ac_cpp_err=yes
19159 if test -z "$ac_cpp_err"; then
19160 ac_header_preproc=yes
19161 else
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_header_preproc=no
19167 rm -f conftest.err conftest.$ac_ext
19168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19169 echo "${ECHO_T}$ac_header_preproc" >&6
19171 # So? What about this header?
19172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19173 yes:no: )
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19178 ac_header_preproc=yes
19180 no:yes:* )
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19194 cat <<\_ASBOX
19195 ## ------------------------------------------ ##
19196 ## Report this to the AC_PACKAGE_NAME lists. ##
19197 ## ------------------------------------------ ##
19198 _ASBOX
19200 sed "s/^/$as_me: WARNING: /" >&2
19202 esac
19203 echo "$as_me:$LINENO: checking for $ac_header" >&5
19204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208 eval "$as_ac_Header=\$ac_header_preproc"
19210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19217 _ACEOF
19219 else
19221 for ac_header in kerberosIV/krb.h
19223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225 echo "$as_me:$LINENO: checking for $ac_header" >&5
19226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19232 else
19233 # Is the header compilable?
19234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19243 #include <$ac_header>
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_c_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_header_compiler=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_header_compiler=no
19274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19276 echo "${ECHO_T}$ac_header_compiler" >&6
19278 # Is the header present?
19279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <$ac_header>
19288 _ACEOF
19289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev/null; then
19297 if test -s conftest.err; then
19298 ac_cpp_err=$ac_c_preproc_warn_flag
19299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300 else
19301 ac_cpp_err=
19303 else
19304 ac_cpp_err=yes
19306 if test -z "$ac_cpp_err"; then
19307 ac_header_preproc=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_header_preproc=no
19314 rm -f conftest.err conftest.$ac_ext
19315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19316 echo "${ECHO_T}$ac_header_preproc" >&6
19318 # So? What about this header?
19319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19320 yes:no: )
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19325 ac_header_preproc=yes
19327 no:yes:* )
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19341 cat <<\_ASBOX
19342 ## ------------------------------------------ ##
19343 ## Report this to the AC_PACKAGE_NAME lists. ##
19344 ## ------------------------------------------ ##
19345 _ASBOX
19347 sed "s/^/$as_me: WARNING: /" >&2
19349 esac
19350 echo "$as_me:$LINENO: checking for $ac_header" >&5
19351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355 eval "$as_ac_Header=\$ac_header_preproc"
19357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19364 _ACEOF
19366 else
19368 for ac_header in kerberos/krb.h
19370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19372 echo "$as_me:$LINENO: checking for $ac_header" >&5
19373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19379 else
19380 # Is the header compilable?
19381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h. */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 $ac_includes_default
19390 #include <$ac_header>
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_header_compiler=yes
19415 else
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_header_compiler=no
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19423 echo "${ECHO_T}$ac_header_compiler" >&6
19425 # Is the header present?
19426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 #include <$ac_header>
19435 _ACEOF
19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } >/dev/null; then
19444 if test -s conftest.err; then
19445 ac_cpp_err=$ac_c_preproc_warn_flag
19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19447 else
19448 ac_cpp_err=
19450 else
19451 ac_cpp_err=yes
19453 if test -z "$ac_cpp_err"; then
19454 ac_header_preproc=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ac_header_preproc=no
19461 rm -f conftest.err conftest.$ac_ext
19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19463 echo "${ECHO_T}$ac_header_preproc" >&6
19465 # So? What about this header?
19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19467 yes:no: )
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19472 ac_header_preproc=yes
19474 no:yes:* )
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19488 cat <<\_ASBOX
19489 ## ------------------------------------------ ##
19490 ## Report this to the AC_PACKAGE_NAME lists. ##
19491 ## ------------------------------------------ ##
19492 _ASBOX
19494 sed "s/^/$as_me: WARNING: /" >&2
19496 esac
19497 echo "$as_me:$LINENO: checking for $ac_header" >&5
19498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502 eval "$as_ac_Header=\$ac_header_preproc"
19504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19511 _ACEOF
19515 done
19519 done
19523 done
19527 for ac_header in com_err.h
19529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo "$as_me:$LINENO: checking for $ac_header" >&5
19532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19538 else
19539 # Is the header compilable?
19540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 $ac_includes_default
19549 #include <$ac_header>
19550 _ACEOF
19551 rm -f conftest.$ac_objext
19552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19553 (eval $ac_compile) 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 { ac_try='test -z "$ac_c_werror_flag"
19561 || test ! -s conftest.err'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; } &&
19567 { ac_try='test -s conftest.$ac_objext'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_header_compiler=yes
19574 else
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_header_compiler=no
19580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19582 echo "${ECHO_T}$ac_header_compiler" >&6
19584 # Is the header present?
19585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <$ac_header>
19594 _ACEOF
19595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } >/dev/null; then
19603 if test -s conftest.err; then
19604 ac_cpp_err=$ac_c_preproc_warn_flag
19605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19606 else
19607 ac_cpp_err=
19609 else
19610 ac_cpp_err=yes
19612 if test -z "$ac_cpp_err"; then
19613 ac_header_preproc=yes
19614 else
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_header_preproc=no
19620 rm -f conftest.err conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19622 echo "${ECHO_T}$ac_header_preproc" >&6
19624 # So? What about this header?
19625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19626 yes:no: )
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19631 ac_header_preproc=yes
19633 no:yes:* )
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19647 cat <<\_ASBOX
19648 ## ------------------------------------------ ##
19649 ## Report this to the AC_PACKAGE_NAME lists. ##
19650 ## ------------------------------------------ ##
19651 _ASBOX
19653 sed "s/^/$as_me: WARNING: /" >&2
19655 esac
19656 echo "$as_me:$LINENO: checking for $ac_header" >&5
19657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661 eval "$as_ac_Header=\$ac_header_preproc"
19663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19670 _ACEOF
19674 done
19678 # Solaris requires -lintl if you want strerror (which calls dgettext)
19679 # to return localized messages.
19681 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19682 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19683 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 ac_check_lib_save_LIBS=$LIBS
19687 LIBS="-lintl $LIBS"
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any gcc2 internal prototype to avoid an error. */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 /* We use char because int might match the return type of a gcc2
19700 builtin and then its argument prototype would still apply. */
19701 char dgettext ();
19703 main ()
19705 dgettext ();
19707 return 0;
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19713 ac_status=$?
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_lib_intl_dgettext=yes
19733 else
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_lib_intl_dgettext=no
19739 rm -f conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19744 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19745 if test $ac_cv_lib_intl_dgettext = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBINTL 1
19748 _ACEOF
19750 LIBS="-lintl $LIBS"
19755 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19756 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19757 if test "${emacs_cv_localtime_cache+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760 if test x$ac_cv_func_tzset = xyes; then
19761 if test "$cross_compiling" = yes; then
19762 # If we have tzset, assume the worst when cross-compiling.
19763 emacs_cv_localtime_cache=yes
19764 else
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 #include <time.h>
19772 extern char **environ;
19773 unset_TZ ()
19775 char **from, **to;
19776 for (to = from = environ; (*to = *from); from++)
19777 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19778 to++;
19780 char TZ_GMT0[] = "TZ=GMT0";
19781 char TZ_PST8[] = "TZ=PST8";
19782 main()
19784 time_t now = time ((time_t *) 0);
19785 int hour_GMT0, hour_unset;
19786 if (putenv (TZ_GMT0) != 0)
19787 exit (1);
19788 hour_GMT0 = localtime (&now)->tm_hour;
19789 unset_TZ ();
19790 hour_unset = localtime (&now)->tm_hour;
19791 if (putenv (TZ_PST8) != 0)
19792 exit (1);
19793 if (localtime (&now)->tm_hour == hour_GMT0)
19794 exit (1);
19795 unset_TZ ();
19796 if (localtime (&now)->tm_hour != hour_unset)
19797 exit (1);
19798 exit (0);
19800 _ACEOF
19801 rm -f conftest$ac_exeext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19803 (eval $ac_link) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 emacs_cv_localtime_cache=no
19813 else
19814 echo "$as_me: program exited with status $ac_status" >&5
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ( exit $ac_status )
19819 emacs_cv_localtime_cache=yes
19821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19823 else
19824 # If we lack tzset, report that localtime does not cache TZ,
19825 # since we can't invalidate the cache if we don't have tzset.
19826 emacs_cv_localtime_cache=no
19829 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19830 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19831 if test $emacs_cv_localtime_cache = yes; then
19833 cat >>confdefs.h <<\_ACEOF
19834 #define LOCALTIME_CACHE 1
19835 _ACEOF
19839 if test "x$HAVE_TIMEVAL" = xyes; then
19841 for ac_func in gettimeofday
19843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19844 echo "$as_me:$LINENO: checking for $ac_func" >&5
19845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19846 if eval "test \"\${$as_ac_var+set}\" = set"; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19857 #define $ac_func innocuous_$ac_func
19859 /* System header to define __stub macros and hopefully few prototypes,
19860 which can conflict with char $ac_func (); below.
19861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19862 <limits.h> exists even on freestanding compilers. */
19864 #ifdef __STDC__
19865 # include <limits.h>
19866 #else
19867 # include <assert.h>
19868 #endif
19870 #undef $ac_func
19872 /* Override any gcc2 internal prototype to avoid an error. */
19873 #ifdef __cplusplus
19874 extern "C"
19876 #endif
19877 /* We use char because int might match the return type of a gcc2
19878 builtin and then its argument prototype would still apply. */
19879 char $ac_func ();
19880 /* The GNU C library defines this for functions which it implements
19881 to always fail with ENOSYS. Some functions are actually named
19882 something starting with __ and the normal name is an alias. */
19883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19884 choke me
19885 #else
19886 char (*f) () = $ac_func;
19887 #endif
19888 #ifdef __cplusplus
19890 #endif
19893 main ()
19895 return f != $ac_func;
19897 return 0;
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902 (eval $ac_link) 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 eval "$as_ac_var=yes"
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 eval "$as_ac_var=no"
19929 rm -f conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19934 if test `eval echo '${'$as_ac_var'}'` = yes; then
19935 cat >>confdefs.h <<_ACEOF
19936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19937 _ACEOF
19940 done
19942 if test $ac_cv_func_gettimeofday = yes; then
19943 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19944 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19945 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19955 #ifdef TIME_WITH_SYS_TIME
19956 #include <sys/time.h>
19957 #include <time.h>
19958 #else
19959 #ifdef HAVE_SYS_TIME_H
19960 #include <sys/time.h>
19961 #else
19962 #include <time.h>
19963 #endif
19964 #endif
19966 main ()
19968 struct timeval time;
19969 gettimeofday (&time, 0);
19971 return 0;
19973 _ACEOF
19974 rm -f conftest.$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976 (eval $ac_compile) 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 emacs_cv_gettimeofday_two_arguments=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 emacs_cv_gettimeofday_two_arguments=no
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20006 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20007 if test $emacs_cv_gettimeofday_two_arguments = no; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20011 _ACEOF
20017 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20018 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20019 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20020 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <sys/types.h>
20030 #include <$ac_cv_struct_tm>
20034 main ()
20036 static struct tm ac_aggr;
20037 if (ac_aggr.tm_zone)
20038 return 0;
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20045 (eval $ac_compile) 2>conftest.er1
20046 ac_status=$?
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_c_werror_flag"
20053 || test ! -s conftest.err'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest.$ac_objext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_member_struct_tm_tm_zone=yes
20066 else
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <sys/types.h>
20077 #include <$ac_cv_struct_tm>
20081 main ()
20083 static struct tm ac_aggr;
20084 if (sizeof ac_aggr.tm_zone)
20085 return 0;
20087 return 0;
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092 (eval $ac_compile) 2>conftest.er1
20093 ac_status=$?
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_c_werror_flag"
20100 || test ! -s conftest.err'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_member_struct_tm_tm_zone=yes
20113 else
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_member_struct_tm_tm_zone=no
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20124 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20125 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20127 cat >>confdefs.h <<_ACEOF
20128 #define HAVE_STRUCT_TM_TM_ZONE 1
20129 _ACEOF
20134 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_TM_ZONE 1
20138 _ACEOF
20140 else
20141 echo "$as_me:$LINENO: checking for tzname" >&5
20142 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20143 if test "${ac_cv_var_tzname+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <time.h>
20153 #ifndef tzname /* For SGI. */
20154 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20155 #endif
20158 main ()
20160 atoi(*tzname);
20162 return 0;
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20167 (eval $ac_link) 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } &&
20174 { ac_try='test -z "$ac_c_werror_flag"
20175 || test ! -s conftest.err'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_var_tzname=yes
20188 else
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_cv_var_tzname=no
20194 rm -f conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20197 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20198 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20199 if test $ac_cv_var_tzname = yes; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_TZNAME 1
20203 _ACEOF
20209 if test "$ac_cv_func_gettimeofday" = yes; then
20210 echo "$as_me:$LINENO: checking for struct timezone" >&5
20211 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20212 if test "${emacs_cv_struct_timezone+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <sys/time.h>
20223 main ()
20225 struct timezone tz;
20227 return 0;
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 if test "$cross_compiling" = yes; then
20253 emacs_cv_struct_timezone=yes
20254 else
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 #ifdef TIME_WITH_SYS_TIME
20263 #include <sys/time.h>
20264 #include <time.h>
20265 #else
20266 #ifdef HAVE_SYS_TIME_H
20267 #include <sys/time.h>
20268 #else
20269 #include <time.h>
20270 #endif
20271 #endif
20272 main () {
20273 struct timeval time;
20274 struct timezone dummy;
20275 exit (gettimeofday (&time, &dummy));
20277 _ACEOF
20278 rm -f conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280 (eval $ac_link) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 emacs_cv_struct_timezone=yes
20290 else
20291 echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ( exit $ac_status )
20296 emacs_cv_struct_timezone=no
20298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20300 else
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 emacs_cv_struct_timezone=no
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20309 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20312 ok_so_far=yes
20313 echo "$as_me:$LINENO: checking for socket" >&5
20314 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20315 if test "${ac_cv_func_socket+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20326 #define socket innocuous_socket
20328 /* System header to define __stub macros and hopefully few prototypes,
20329 which can conflict with char socket (); below.
20330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 <limits.h> exists even on freestanding compilers. */
20333 #ifdef __STDC__
20334 # include <limits.h>
20335 #else
20336 # include <assert.h>
20337 #endif
20339 #undef socket
20341 /* Override any gcc2 internal prototype to avoid an error. */
20342 #ifdef __cplusplus
20343 extern "C"
20345 #endif
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20348 char socket ();
20349 /* The GNU C library defines this for functions which it implements
20350 to always fail with ENOSYS. Some functions are actually named
20351 something starting with __ and the normal name is an alias. */
20352 #if defined (__stub_socket) || defined (__stub___socket)
20353 choke me
20354 #else
20355 char (*f) () = socket;
20356 #endif
20357 #ifdef __cplusplus
20359 #endif
20362 main ()
20364 return f != socket;
20366 return 0;
20368 _ACEOF
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371 (eval $ac_link) 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest$ac_exeext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_func_socket=yes
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_cv_func_socket=no
20398 rm -f conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20402 echo "${ECHO_T}$ac_cv_func_socket" >&6
20403 if test $ac_cv_func_socket = yes; then
20405 else
20406 ok_so_far=no
20409 if test $ok_so_far = yes; then
20410 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20411 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20412 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20413 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20417 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20418 else
20419 # Is the header compilable?
20420 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20421 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20429 #include <netinet/in.h>
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_header_compiler=yes
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_header_compiler=no
20460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20462 echo "${ECHO_T}$ac_header_compiler" >&6
20464 # Is the header present?
20465 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20466 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <netinet/in.h>
20474 _ACEOF
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null; then
20483 if test -s conftest.err; then
20484 ac_cpp_err=$ac_c_preproc_warn_flag
20485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20486 else
20487 ac_cpp_err=
20489 else
20490 ac_cpp_err=yes
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc=yes
20494 else
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_header_preproc=no
20500 rm -f conftest.err conftest.$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20502 echo "${ECHO_T}$ac_header_preproc" >&6
20504 # So? What about this header?
20505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20506 yes:no: )
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20508 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20510 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20511 ac_header_preproc=yes
20513 no:yes:* )
20514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20515 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20517 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20519 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20521 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20523 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20525 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20527 cat <<\_ASBOX
20528 ## ------------------------------------------ ##
20529 ## Report this to the AC_PACKAGE_NAME lists. ##
20530 ## ------------------------------------------ ##
20531 _ASBOX
20533 sed "s/^/$as_me: WARNING: /" >&2
20535 esac
20536 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20537 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20538 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 ac_cv_header_netinet_in_h=$ac_header_preproc
20543 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20544 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20547 if test $ac_cv_header_netinet_in_h = yes; then
20549 else
20550 ok_so_far=no
20555 if test $ok_so_far = yes; then
20556 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20557 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20558 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20559 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20563 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20564 else
20565 # Is the header compilable?
20566 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20567 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 #include <arpa/inet.h>
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_header_compiler=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_header_compiler=no
20606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608 echo "${ECHO_T}$ac_header_compiler" >&6
20610 # Is the header present?
20611 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20612 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <arpa/inet.h>
20620 _ACEOF
20621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } >/dev/null; then
20629 if test -s conftest.err; then
20630 ac_cpp_err=$ac_c_preproc_warn_flag
20631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20632 else
20633 ac_cpp_err=
20635 else
20636 ac_cpp_err=yes
20638 if test -z "$ac_cpp_err"; then
20639 ac_header_preproc=yes
20640 else
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_header_preproc=no
20646 rm -f conftest.err conftest.$ac_ext
20647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20648 echo "${ECHO_T}$ac_header_preproc" >&6
20650 # So? What about this header?
20651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20652 yes:no: )
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20656 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20657 ac_header_preproc=yes
20659 no:yes:* )
20660 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20661 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20663 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20665 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20667 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20669 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20671 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20673 cat <<\_ASBOX
20674 ## ------------------------------------------ ##
20675 ## Report this to the AC_PACKAGE_NAME lists. ##
20676 ## ------------------------------------------ ##
20677 _ASBOX
20679 sed "s/^/$as_me: WARNING: /" >&2
20681 esac
20682 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20683 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20684 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 else
20687 ac_cv_header_arpa_inet_h=$ac_header_preproc
20689 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20690 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20693 if test $ac_cv_header_arpa_inet_h = yes; then
20695 else
20696 ok_so_far=no
20701 if test $ok_so_far = yes; then
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_INET_SOCKETS 1
20705 _ACEOF
20710 for ac_header in sys/ioctl.h
20712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20714 echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20721 else
20722 # Is the header compilable?
20723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h. */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20732 #include <$ac_header>
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag"
20744 || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_header_compiler=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_header_compiler=no
20763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20765 echo "${ECHO_T}$ac_header_compiler" >&6
20767 # Is the header present?
20768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <$ac_header>
20777 _ACEOF
20778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev/null; then
20786 if test -s conftest.err; then
20787 ac_cpp_err=$ac_c_preproc_warn_flag
20788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20789 else
20790 ac_cpp_err=
20792 else
20793 ac_cpp_err=yes
20795 if test -z "$ac_cpp_err"; then
20796 ac_header_preproc=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_header_preproc=no
20803 rm -f conftest.err conftest.$ac_ext
20804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20805 echo "${ECHO_T}$ac_header_preproc" >&6
20807 # So? What about this header?
20808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20809 yes:no: )
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20814 ac_header_preproc=yes
20816 no:yes:* )
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20830 cat <<\_ASBOX
20831 ## ------------------------------------------ ##
20832 ## Report this to the AC_PACKAGE_NAME lists. ##
20833 ## ------------------------------------------ ##
20834 _ASBOX
20836 sed "s/^/$as_me: WARNING: /" >&2
20838 esac
20839 echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 eval "$as_ac_Header=\$ac_header_preproc"
20846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20851 cat >>confdefs.h <<_ACEOF
20852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20853 _ACEOF
20857 done
20860 if test -f /usr/lpp/X11/bin/smt.exp; then
20862 cat >>confdefs.h <<\_ACEOF
20863 #define HAVE_AIX_SMT_EXP 1
20864 _ACEOF
20868 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20869 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20870 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20871 echo "$as_me:$LINENO: result: yes" >&5
20872 echo "${ECHO_T}yes" >&6
20874 cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_DEV_PTMX 1
20876 _ACEOF
20878 else
20879 echo "$as_me:$LINENO: result: no" >&5
20880 echo "${ECHO_T}no" >&6
20883 echo "$as_me:$LINENO: checking for pid_t" >&5
20884 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20885 if test "${ac_cv_type_pid_t+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 $ac_includes_default
20896 main ()
20898 if ((pid_t *) 0)
20899 return 0;
20900 if (sizeof (pid_t))
20901 return 0;
20903 return 0;
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_type_pid_t=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_type_pid_t=no
20935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20937 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20938 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20939 if test $ac_cv_type_pid_t = yes; then
20941 else
20943 cat >>confdefs.h <<_ACEOF
20944 #define pid_t int
20945 _ACEOF
20951 for ac_header in unistd.h vfork.h
20953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20955 echo "$as_me:$LINENO: checking for $ac_header" >&5
20956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20962 else
20963 # Is the header compilable?
20964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20973 #include <$ac_header>
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest.$ac_objext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_header_compiler=yes
20998 else
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_header_compiler=no
21004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21006 echo "${ECHO_T}$ac_header_compiler" >&6
21008 # Is the header present?
21009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <$ac_header>
21018 _ACEOF
21019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } >/dev/null; then
21027 if test -s conftest.err; then
21028 ac_cpp_err=$ac_c_preproc_warn_flag
21029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21030 else
21031 ac_cpp_err=
21033 else
21034 ac_cpp_err=yes
21036 if test -z "$ac_cpp_err"; then
21037 ac_header_preproc=yes
21038 else
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_header_preproc=no
21044 rm -f conftest.err conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21046 echo "${ECHO_T}$ac_header_preproc" >&6
21048 # So? What about this header?
21049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21050 yes:no: )
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21055 ac_header_preproc=yes
21057 no:yes:* )
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21071 cat <<\_ASBOX
21072 ## ------------------------------------------ ##
21073 ## Report this to the AC_PACKAGE_NAME lists. ##
21074 ## ------------------------------------------ ##
21075 _ASBOX
21077 sed "s/^/$as_me: WARNING: /" >&2
21079 esac
21080 echo "$as_me:$LINENO: checking for $ac_header" >&5
21081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085 eval "$as_ac_Header=\$ac_header_preproc"
21087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21092 cat >>confdefs.h <<_ACEOF
21093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21094 _ACEOF
21098 done
21102 for ac_func in fork vfork
21104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21105 echo "$as_me:$LINENO: checking for $ac_func" >&5
21106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21107 if eval "test \"\${$as_ac_var+set}\" = set"; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118 #define $ac_func innocuous_$ac_func
21120 /* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21125 #ifdef __STDC__
21126 # include <limits.h>
21127 #else
21128 # include <assert.h>
21129 #endif
21131 #undef $ac_func
21133 /* Override any gcc2 internal prototype to avoid an error. */
21134 #ifdef __cplusplus
21135 extern "C"
21137 #endif
21138 /* We use char because int might match the return type of a gcc2
21139 builtin and then its argument prototype would still apply. */
21140 char $ac_func ();
21141 /* The GNU C library defines this for functions which it implements
21142 to always fail with ENOSYS. Some functions are actually named
21143 something starting with __ and the normal name is an alias. */
21144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21145 choke me
21146 #else
21147 char (*f) () = $ac_func;
21148 #endif
21149 #ifdef __cplusplus
21151 #endif
21154 main ()
21156 return f != $ac_func;
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21163 (eval $ac_link) 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 eval "$as_ac_var=yes"
21184 else
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 eval "$as_ac_var=no"
21190 rm -f conftest.err conftest.$ac_objext \
21191 conftest$ac_exeext conftest.$ac_ext
21193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21195 if test `eval echo '${'$as_ac_var'}'` = yes; then
21196 cat >>confdefs.h <<_ACEOF
21197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21198 _ACEOF
21201 done
21203 if test "x$ac_cv_func_fork" = xyes; then
21204 echo "$as_me:$LINENO: checking for working fork" >&5
21205 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21206 if test "${ac_cv_func_fork_works+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209 if test "$cross_compiling" = yes; then
21210 ac_cv_func_fork_works=cross
21211 else
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* By Ruediger Kuhlmann. */
21214 #include <sys/types.h>
21215 #if HAVE_UNISTD_H
21216 # include <unistd.h>
21217 #endif
21218 /* Some systems only have a dummy stub for fork() */
21219 int main ()
21221 if (fork() < 0)
21222 exit (1);
21223 exit (0);
21225 _ACEOF
21226 rm -f conftest$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228 (eval $ac_link) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_cv_func_fork_works=yes
21238 else
21239 echo "$as_me: program exited with status $ac_status" >&5
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ( exit $ac_status )
21244 ac_cv_func_fork_works=no
21246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21249 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21250 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21252 else
21253 ac_cv_func_fork_works=$ac_cv_func_fork
21255 if test "x$ac_cv_func_fork_works" = xcross; then
21256 case $host in
21257 *-*-amigaos* | *-*-msdosdjgpp*)
21258 # Override, as these systems have only a dummy fork() stub
21259 ac_cv_func_fork_works=no
21262 ac_cv_func_fork_works=yes
21264 esac
21265 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21266 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21268 ac_cv_func_vfork_works=$ac_cv_func_vfork
21269 if test "x$ac_cv_func_vfork" = xyes; then
21270 echo "$as_me:$LINENO: checking for working vfork" >&5
21271 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21272 if test "${ac_cv_func_vfork_works+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275 if test "$cross_compiling" = yes; then
21276 ac_cv_func_vfork_works=cross
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Thanks to Paul Eggert for this test. */
21285 #include <stdio.h>
21286 #include <stdlib.h>
21287 #include <sys/types.h>
21288 #include <sys/stat.h>
21289 #include <sys/wait.h>
21290 #if HAVE_UNISTD_H
21291 # include <unistd.h>
21292 #endif
21293 #if HAVE_VFORK_H
21294 # include <vfork.h>
21295 #endif
21296 /* On some sparc systems, changes by the child to local and incoming
21297 argument registers are propagated back to the parent. The compiler
21298 is told about this with #include <vfork.h>, but some compilers
21299 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21300 static variable whose address is put into a register that is
21301 clobbered by the vfork. */
21302 static void
21303 #ifdef __cplusplus
21304 sparc_address_test (int arg)
21305 # else
21306 sparc_address_test (arg) int arg;
21307 #endif
21309 static pid_t child;
21310 if (!child) {
21311 child = vfork ();
21312 if (child < 0) {
21313 perror ("vfork");
21314 _exit(2);
21316 if (!child) {
21317 arg = getpid();
21318 write(-1, "", 0);
21319 _exit (arg);
21325 main ()
21327 pid_t parent = getpid ();
21328 pid_t child;
21330 sparc_address_test (0);
21332 child = vfork ();
21334 if (child == 0) {
21335 /* Here is another test for sparc vfork register problems. This
21336 test uses lots of local variables, at least as many local
21337 variables as main has allocated so far including compiler
21338 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21339 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21340 reuse the register of parent for one of the local variables,
21341 since it will think that parent can't possibly be used any more
21342 in this routine. Assigning to the local variable will thus
21343 munge parent in the parent process. */
21344 pid_t
21345 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21346 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21347 /* Convince the compiler that p..p7 are live; otherwise, it might
21348 use the same hardware register for all 8 local variables. */
21349 if (p != p1 || p != p2 || p != p3 || p != p4
21350 || p != p5 || p != p6 || p != p7)
21351 _exit(1);
21353 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21354 from child file descriptors. If the child closes a descriptor
21355 before it execs or exits, this munges the parent's descriptor
21356 as well. Test for this by closing stdout in the child. */
21357 _exit(close(fileno(stdout)) != 0);
21358 } else {
21359 int status;
21360 struct stat st;
21362 while (wait(&status) != child)
21364 exit(
21365 /* Was there some problem with vforking? */
21366 child < 0
21368 /* Did the child fail? (This shouldn't happen.) */
21369 || status
21371 /* Did the vfork/compiler bug occur? */
21372 || parent != getpid()
21374 /* Did the file descriptor bug occur? */
21375 || fstat(fileno(stdout), &st) != 0
21379 _ACEOF
21380 rm -f conftest$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_func_vfork_works=yes
21392 else
21393 echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ( exit $ac_status )
21398 ac_cv_func_vfork_works=no
21400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21403 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21404 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21407 if test "x$ac_cv_func_fork_works" = xcross; then
21408 ac_cv_func_vfork_works=$ac_cv_func_vfork
21409 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21410 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21413 if test "x$ac_cv_func_vfork_works" = xyes; then
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_WORKING_VFORK 1
21417 _ACEOF
21419 else
21421 cat >>confdefs.h <<\_ACEOF
21422 #define vfork fork
21423 _ACEOF
21426 if test "x$ac_cv_func_fork_works" = xyes; then
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_WORKING_FORK 1
21430 _ACEOF
21435 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21436 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21437 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h. */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <langinfo.h>
21448 main ()
21450 char* cs = nl_langinfo(CODESET);
21452 return 0;
21454 _ACEOF
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21457 (eval $ac_link) 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
21464 { ac_try='test -z "$ac_c_werror_flag"
21465 || test ! -s conftest.err'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } &&
21471 { ac_try='test -s conftest$ac_exeext'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 emacs_cv_langinfo_codeset=yes
21478 else
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 emacs_cv_langinfo_codeset=no
21484 rm -f conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21488 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21489 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21490 if test $emacs_cv_langinfo_codeset = yes; then
21492 cat >>confdefs.h <<\_ACEOF
21493 #define HAVE_LANGINFO_CODESET 1
21494 _ACEOF
21498 echo "$as_me:$LINENO: checking for size_t" >&5
21499 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21500 if test "${ac_cv_type_size_t+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503 cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h. */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 $ac_includes_default
21511 main ()
21513 if ((size_t *) 0)
21514 return 0;
21515 if (sizeof (size_t))
21516 return 0;
21518 return 0;
21520 _ACEOF
21521 rm -f conftest.$ac_objext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21523 (eval $ac_compile) 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -z "$ac_c_werror_flag"
21531 || test ! -s conftest.err'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try='test -s conftest.$ac_objext'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ac_cv_type_size_t=yes
21544 else
21545 echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 ac_cv_type_size_t=no
21550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21552 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21553 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21554 if test $ac_cv_type_size_t = yes; then
21556 cat >>confdefs.h <<_ACEOF
21557 #define HAVE_SIZE_T 1
21558 _ACEOF
21564 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21565 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21566 if test "${ac_cv_type_mbstate_t+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 # include <wchar.h>
21578 main ()
21580 mbstate_t x; return sizeof x;
21582 return 0;
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21587 (eval $ac_compile) 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
21594 { ac_try='test -z "$ac_c_werror_flag"
21595 || test ! -s conftest.err'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try='test -s conftest.$ac_objext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_type_mbstate_t=yes
21608 else
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_cv_type_mbstate_t=no
21614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21616 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21617 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21618 if test $ac_cv_type_mbstate_t = yes; then
21620 cat >>confdefs.h <<\_ACEOF
21621 #define HAVE_MBSTATE_T 1
21622 _ACEOF
21624 else
21626 cat >>confdefs.h <<\_ACEOF
21627 #define mbstate_t int
21628 _ACEOF
21632 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21633 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21634 if test "${emacs_cv_c_restrict+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637 cat >conftest.$ac_ext <<_ACEOF
21638 /* confdefs.h. */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 void fred (int *restrict x);
21645 main ()
21649 return 0;
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 emacs_cv_c_restrict=yes
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 void fred (int *__restrict x);
21687 main ()
21691 return 0;
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21696 (eval $ac_compile) 2>conftest.er1
21697 ac_status=$?
21698 grep -v '^ *+' conftest.er1 >conftest.err
21699 rm -f conftest.er1
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try='test -s conftest.$ac_objext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 emacs_cv_c_restrict=__restrict
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 emacs_cv_c_restrict=no
21723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21727 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21728 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21729 case "$emacs_cv_c_restrict" in
21730 yes) emacs_restrict=restrict;;
21731 no) emacs_restrict="";;
21732 *) emacs_restrict="$emacs_cv_c_restrict";;
21733 esac
21734 if test "$emacs_restrict" != __restrict; then
21736 cat >>confdefs.h <<_ACEOF
21737 #define __restrict $emacs_restrict
21738 _ACEOF
21742 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21743 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21744 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747 cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h. */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 void fred (int x[__restrict]);
21755 main ()
21759 return 0;
21761 _ACEOF
21762 rm -f conftest.$ac_objext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21764 (eval $ac_compile) 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag"
21772 || test ! -s conftest.err'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; } &&
21778 { ac_try='test -s conftest.$ac_objext'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; }; then
21784 emacs_cv_c_restrict_arr=yes
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 emacs_cv_c_restrict_arr=no
21791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21794 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21795 if test "$emacs_cv_c_restrict_arr" = yes; then
21797 cat >>confdefs.h <<\_ACEOF
21798 #define __restrict_arr __restrict
21799 _ACEOF
21805 # Set up the CFLAGS for real compilation, so we can substitute it.
21806 CFLAGS="$REAL_CFLAGS"
21807 CPPFLAGS="$REAL_CPPFLAGS"
21809 #### Find out which version of Emacs this is.
21810 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21811 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21812 if test x"${version}" = x; then
21813 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21814 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21815 { (exit 1); exit 1; }; }
21818 ### Specify what sort of things we'll be editing into Makefile and config.h.
21819 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21855 cat >>confdefs.h <<_ACEOF
21856 #define EMACS_CONFIGURATION "${canonical}"
21857 _ACEOF
21860 cat >>confdefs.h <<_ACEOF
21861 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21862 _ACEOF
21865 cat >>confdefs.h <<_ACEOF
21866 #define config_machfile "${machfile}"
21867 _ACEOF
21870 cat >>confdefs.h <<_ACEOF
21871 #define config_opsysfile "${opsysfile}"
21872 _ACEOF
21875 cat >>confdefs.h <<_ACEOF
21876 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21877 _ACEOF
21880 cat >>confdefs.h <<_ACEOF
21881 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21882 _ACEOF
21885 cat >>confdefs.h <<_ACEOF
21886 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21887 _ACEOF
21890 cat >>confdefs.h <<_ACEOF
21891 #define UNEXEC_SRC ${UNEXEC_SRC}
21892 _ACEOF
21895 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21897 cat >>confdefs.h <<\_ACEOF
21898 #define HAVE_X_WINDOWS 1
21899 _ACEOF
21902 if test "${USE_X_TOOLKIT}" != "none" ; then
21904 cat >>confdefs.h <<\_ACEOF
21905 #define USE_X_TOOLKIT 1
21906 _ACEOF
21909 if test "${HAVE_X11}" = "yes" ; then
21911 cat >>confdefs.h <<\_ACEOF
21912 #define HAVE_X11 1
21913 _ACEOF
21916 if test "${HAVE_XFREE386}" = "yes" ; then
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_XFREE386 1
21920 _ACEOF
21923 if test "${HAVE_MENUS}" = "yes" ; then
21925 cat >>confdefs.h <<\_ACEOF
21926 #define HAVE_MENUS 1
21927 _ACEOF
21930 if test "${GNU_MALLOC}" = "yes" ; then
21932 cat >>confdefs.h <<\_ACEOF
21933 #define GNU_MALLOC 1
21934 _ACEOF
21937 if test "${REL_ALLOC}" = "yes" ; then
21939 cat >>confdefs.h <<\_ACEOF
21940 #define REL_ALLOC 1
21941 _ACEOF
21949 #### Report on what we decided to do.
21950 #### Report GTK as a toolkit, even if it doesn't use Xt.
21951 #### It makes printing result more understandable as using GTK sets
21952 #### toolkit_scroll_bars to yes by default.
21953 if test "${HAVE_GTK}" = "yes"; then
21954 USE_X_TOOLKIT=GTK
21957 echo "
21958 Configured for \`${canonical}'.
21960 Where should the build process find the source code? ${srcdir}
21961 What operating system and machine description files should Emacs use?
21962 \`${opsysfile}' and \`${machfile}'
21963 What compiler should emacs be built with? ${CC} ${CFLAGS}
21964 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21965 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21966 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21967 What window system should Emacs use? ${window_system}
21968 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21970 if test -n "${x_includes}"; then
21971 echo " Where do we find X Windows header files? ${x_includes}"
21972 else
21973 echo " Where do we find X Windows header files? Standard dirs"
21975 if test -n "${x_libraries}"; then
21976 echo " Where do we find X Windows libraries? ${x_libraries}"
21977 else
21978 echo " Where do we find X Windows libraries? Standard dirs"
21981 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21982 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21983 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21984 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21985 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21986 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21987 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21988 echo
21990 if test $USE_XASSERTS = yes; then
21991 echo " Compiling with asserts turned on."
21992 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21993 echo
21998 # Remove any trailing slashes in these variables.
21999 test "${prefix}" != NONE &&
22000 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22001 test "${exec_prefix}" != NONE &&
22002 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22004 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22005 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22006 ## from Makefile.c can correctly provide the arg `-traditional' to the
22007 ## C preprocessor.
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 yes..yes
22016 _ACEOF
22017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22018 $EGREP "yes..yes" >/dev/null 2>&1; then
22019 CPP_NEED_TRADITIONAL=no
22020 else
22021 CPP_NEED_TRADITIONAL=yes
22023 rm -f conftest*
22026 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
22027 ac_config_commands="$ac_config_commands default"
22028 cat >confcache <<\_ACEOF
22029 # This file is a shell script that caches the results of configure
22030 # tests run on this system so they can be shared between configure
22031 # scripts and configure runs, see configure's option --config-cache.
22032 # It is not useful on other systems. If it contains results you don't
22033 # want to keep, you may remove or edit it.
22035 # config.status only pays attention to the cache file if you give it
22036 # the --recheck option to rerun configure.
22038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22040 # following values.
22042 _ACEOF
22044 # The following way of writing the cache mishandles newlines in values,
22045 # but we know of no workaround that is simple, portable, and efficient.
22046 # So, don't put newlines in cache variables' values.
22047 # Ultrix sh set writes to stderr and can't be redirected directly,
22048 # and sets the high bit in the cache file unless we assign to the vars.
22050 (set) 2>&1 |
22051 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22052 *ac_space=\ *)
22053 # `set' does not quote correctly, so add quotes (double-quote
22054 # substitution turns \\\\ into \\, and sed turns \\ into \).
22055 sed -n \
22056 "s/'/'\\\\''/g;
22057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22060 # `set' quotes correctly as required by POSIX, so do not add quotes.
22061 sed -n \
22062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22064 esac;
22066 sed '
22067 t clear
22068 : clear
22069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22070 t end
22071 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22072 : end' >>confcache
22073 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22074 if test -w $cache_file; then
22075 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22076 cat confcache >$cache_file
22077 else
22078 echo "not updating unwritable cache $cache_file"
22081 rm -f confcache
22083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22084 # Let make expand exec_prefix.
22085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22087 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22088 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22089 # trailing colons and then remove the whole line if VPATH becomes empty
22090 # (actually we leave an empty line to preserve line numbers).
22091 if test "x$srcdir" = x.; then
22092 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22093 s/:*\$(srcdir):*/:/;
22094 s/:*\${srcdir}:*/:/;
22095 s/:*@srcdir@:*/:/;
22096 s/^\([^=]*=[ ]*\):*/\1/;
22097 s/:*$//;
22098 s/^[^=]*=[ ]*$//;
22102 DEFS=-DHAVE_CONFIG_H
22104 ac_libobjs=
22105 ac_ltlibobjs=
22106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22107 # 1. Remove the extension, and $U if already installed.
22108 ac_i=`echo "$ac_i" |
22109 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22110 # 2. Add them.
22111 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22112 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22113 done
22114 LIBOBJS=$ac_libobjs
22116 LTLIBOBJS=$ac_ltlibobjs
22120 : ${CONFIG_STATUS=./config.status}
22121 ac_clean_files_save=$ac_clean_files
22122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22123 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22124 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22125 cat >$CONFIG_STATUS <<_ACEOF
22126 #! $SHELL
22127 # Generated by $as_me.
22128 # Run this file to recreate the current configuration.
22129 # Compiler output produced by configure, useful for debugging
22130 # configure, is in config.log if it exists.
22132 debug=false
22133 ac_cs_recheck=false
22134 ac_cs_silent=false
22135 SHELL=\${CONFIG_SHELL-$SHELL}
22136 _ACEOF
22138 cat >>$CONFIG_STATUS <<\_ACEOF
22139 ## --------------------- ##
22140 ## M4sh Initialization. ##
22141 ## --------------------- ##
22143 # Be Bourne compatible
22144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22145 emulate sh
22146 NULLCMD=:
22147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22148 # is contrary to our usage. Disable this feature.
22149 alias -g '${1+"$@"}'='"$@"'
22150 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22151 set -o posix
22153 DUALCASE=1; export DUALCASE # for MKS sh
22155 # Support unset when possible.
22156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22157 as_unset=unset
22158 else
22159 as_unset=false
22163 # Work around bugs in pre-3.0 UWIN ksh.
22164 $as_unset ENV MAIL MAILPATH
22165 PS1='$ '
22166 PS2='> '
22167 PS4='+ '
22169 # NLS nuisances.
22170 for as_var in \
22171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22173 LC_TELEPHONE LC_TIME
22175 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22176 eval $as_var=C; export $as_var
22177 else
22178 $as_unset $as_var
22180 done
22182 # Required to use basename.
22183 if expr a : '\(a\)' >/dev/null 2>&1; then
22184 as_expr=expr
22185 else
22186 as_expr=false
22189 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22190 as_basename=basename
22191 else
22192 as_basename=false
22196 # Name of the executable.
22197 as_me=`$as_basename "$0" ||
22198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22199 X"$0" : 'X\(//\)$' \| \
22200 X"$0" : 'X\(/\)$' \| \
22201 . : '\(.\)' 2>/dev/null ||
22202 echo X/"$0" |
22203 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22204 /^X\/\(\/\/\)$/{ s//\1/; q; }
22205 /^X\/\(\/\).*/{ s//\1/; q; }
22206 s/.*/./; q'`
22209 # PATH needs CR, and LINENO needs CR and PATH.
22210 # Avoid depending upon Character Ranges.
22211 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22214 as_cr_digits='0123456789'
22215 as_cr_alnum=$as_cr_Letters$as_cr_digits
22217 # The user is always right.
22218 if test "${PATH_SEPARATOR+set}" != set; then
22219 echo "#! /bin/sh" >conf$$.sh
22220 echo "exit 0" >>conf$$.sh
22221 chmod +x conf$$.sh
22222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22223 PATH_SEPARATOR=';'
22224 else
22225 PATH_SEPARATOR=:
22227 rm -f conf$$.sh
22231 as_lineno_1=$LINENO
22232 as_lineno_2=$LINENO
22233 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22234 test "x$as_lineno_1" != "x$as_lineno_2" &&
22235 test "x$as_lineno_3" = "x$as_lineno_2" || {
22236 # Find who we are. Look in the path if we contain no path at all
22237 # relative or not.
22238 case $0 in
22239 *[\\/]* ) as_myself=$0 ;;
22240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241 for as_dir in $PATH
22243 IFS=$as_save_IFS
22244 test -z "$as_dir" && as_dir=.
22245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22246 done
22249 esac
22250 # We did not find ourselves, most probably we were run as `sh COMMAND'
22251 # in which case we are not to be found in the path.
22252 if test "x$as_myself" = x; then
22253 as_myself=$0
22255 if test ! -f "$as_myself"; then
22256 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22257 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22258 { (exit 1); exit 1; }; }
22260 case $CONFIG_SHELL in
22262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22263 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22265 IFS=$as_save_IFS
22266 test -z "$as_dir" && as_dir=.
22267 for as_base in sh bash ksh sh5; do
22268 case $as_dir in
22270 if ("$as_dir/$as_base" -c '
22271 as_lineno_1=$LINENO
22272 as_lineno_2=$LINENO
22273 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22274 test "x$as_lineno_1" != "x$as_lineno_2" &&
22275 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22276 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22277 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22278 CONFIG_SHELL=$as_dir/$as_base
22279 export CONFIG_SHELL
22280 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22281 fi;;
22282 esac
22283 done
22284 done
22286 esac
22288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22289 # uniformly replaced by the line number. The first 'sed' inserts a
22290 # line-number line before each line; the second 'sed' does the real
22291 # work. The second script uses 'N' to pair each line-number line
22292 # with the numbered line, and appends trailing '-' during
22293 # substitution so that $LINENO is not a special case at line end.
22294 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22295 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22296 sed '=' <$as_myself |
22297 sed '
22299 s,$,-,
22300 : loop
22301 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22302 t loop
22303 s,-$,,
22304 s,^['$as_cr_digits']*\n,,
22305 ' >$as_me.lineno &&
22306 chmod +x $as_me.lineno ||
22307 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22308 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22309 { (exit 1); exit 1; }; }
22311 # Don't try to exec as it changes $[0], causing all sort of problems
22312 # (the dirname of $[0] is not the place where we might find the
22313 # original and so on. Autoconf is especially sensible to this).
22314 . ./$as_me.lineno
22315 # Exit status is that of the last command.
22316 exit
22320 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22321 *c*,-n*) ECHO_N= ECHO_C='
22322 ' ECHO_T=' ' ;;
22323 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22324 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22325 esac
22327 if expr a : '\(a\)' >/dev/null 2>&1; then
22328 as_expr=expr
22329 else
22330 as_expr=false
22333 rm -f conf$$ conf$$.exe conf$$.file
22334 echo >conf$$.file
22335 if ln -s conf$$.file conf$$ 2>/dev/null; then
22336 # We could just check for DJGPP; but this test a) works b) is more generic
22337 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22338 if test -f conf$$.exe; then
22339 # Don't use ln at all; we don't have any links
22340 as_ln_s='cp -p'
22341 else
22342 as_ln_s='ln -s'
22344 elif ln conf$$.file conf$$ 2>/dev/null; then
22345 as_ln_s=ln
22346 else
22347 as_ln_s='cp -p'
22349 rm -f conf$$ conf$$.exe conf$$.file
22351 if mkdir -p . 2>/dev/null; then
22352 as_mkdir_p=:
22353 else
22354 test -d ./-p && rmdir ./-p
22355 as_mkdir_p=false
22358 as_executable_p="test -f"
22360 # Sed expression to map a string onto a valid CPP name.
22361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22363 # Sed expression to map a string onto a valid variable name.
22364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22367 # IFS
22368 # We need space, tab and new line, in precisely that order.
22369 as_nl='
22371 IFS=" $as_nl"
22373 # CDPATH.
22374 $as_unset CDPATH
22376 exec 6>&1
22378 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22379 # report actual input values of CONFIG_FILES etc. instead of their
22380 # values after options handling. Logging --version etc. is OK.
22381 exec 5>>config.log
22383 echo
22384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22385 ## Running $as_me. ##
22386 _ASBOX
22387 } >&5
22388 cat >&5 <<_CSEOF
22390 This file was extended by $as_me, which was
22391 generated by GNU Autoconf 2.59. Invocation command line was
22393 CONFIG_FILES = $CONFIG_FILES
22394 CONFIG_HEADERS = $CONFIG_HEADERS
22395 CONFIG_LINKS = $CONFIG_LINKS
22396 CONFIG_COMMANDS = $CONFIG_COMMANDS
22397 $ $0 $@
22399 _CSEOF
22400 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22401 echo >&5
22402 _ACEOF
22404 # Files that config.status was made for.
22405 if test -n "$ac_config_files"; then
22406 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22409 if test -n "$ac_config_headers"; then
22410 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22413 if test -n "$ac_config_links"; then
22414 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22417 if test -n "$ac_config_commands"; then
22418 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22423 ac_cs_usage="\
22424 \`$as_me' instantiates files from templates according to the
22425 current configuration.
22427 Usage: $0 [OPTIONS] [FILE]...
22429 -h, --help print this help, then exit
22430 -V, --version print version number, then exit
22431 -q, --quiet do not print progress messages
22432 -d, --debug don't remove temporary files
22433 --recheck update $as_me by reconfiguring in the same conditions
22434 --file=FILE[:TEMPLATE]
22435 instantiate the configuration file FILE
22436 --header=FILE[:TEMPLATE]
22437 instantiate the configuration header FILE
22439 Configuration files:
22440 $config_files
22442 Configuration headers:
22443 $config_headers
22445 Configuration commands:
22446 $config_commands
22448 Report bugs to <bug-autoconf@gnu.org>."
22449 _ACEOF
22451 cat >>$CONFIG_STATUS <<_ACEOF
22452 ac_cs_version="\\
22453 config.status
22454 configured by $0, generated by GNU Autoconf 2.59,
22455 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22457 Copyright (C) 2003 Free Software Foundation, Inc.
22458 This config.status script is free software; the Free Software Foundation
22459 gives unlimited permission to copy, distribute and modify it."
22460 srcdir=$srcdir
22461 INSTALL="$INSTALL"
22462 _ACEOF
22464 cat >>$CONFIG_STATUS <<\_ACEOF
22465 # If no file are specified by the user, then we need to provide default
22466 # value. By we need to know if files were specified by the user.
22467 ac_need_defaults=:
22468 while test $# != 0
22470 case $1 in
22471 --*=*)
22472 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22473 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22474 ac_shift=:
22477 ac_option=$1
22478 ac_optarg=$2
22479 ac_shift=shift
22481 *) # This is not an option, so the user has probably given explicit
22482 # arguments.
22483 ac_option=$1
22484 ac_need_defaults=false;;
22485 esac
22487 case $ac_option in
22488 # Handling of the options.
22489 _ACEOF
22490 cat >>$CONFIG_STATUS <<\_ACEOF
22491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22492 ac_cs_recheck=: ;;
22493 --version | --vers* | -V )
22494 echo "$ac_cs_version"; exit 0 ;;
22495 --he | --h)
22496 # Conflict between --help and --header
22497 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22498 Try \`$0 --help' for more information." >&5
22499 echo "$as_me: error: ambiguous option: $1
22500 Try \`$0 --help' for more information." >&2;}
22501 { (exit 1); exit 1; }; };;
22502 --help | --hel | -h )
22503 echo "$ac_cs_usage"; exit 0 ;;
22504 --debug | --d* | -d )
22505 debug=: ;;
22506 --file | --fil | --fi | --f )
22507 $ac_shift
22508 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22509 ac_need_defaults=false;;
22510 --header | --heade | --head | --hea )
22511 $ac_shift
22512 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22513 ac_need_defaults=false;;
22514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22516 ac_cs_silent=: ;;
22518 # This is an error.
22519 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22520 Try \`$0 --help' for more information." >&5
22521 echo "$as_me: error: unrecognized option: $1
22522 Try \`$0 --help' for more information." >&2;}
22523 { (exit 1); exit 1; }; } ;;
22525 *) ac_config_targets="$ac_config_targets $1" ;;
22527 esac
22528 shift
22529 done
22531 ac_configure_extra_args=
22533 if $ac_cs_silent; then
22534 exec 6>/dev/null
22535 ac_configure_extra_args="$ac_configure_extra_args --silent"
22538 _ACEOF
22539 cat >>$CONFIG_STATUS <<_ACEOF
22540 if \$ac_cs_recheck; then
22541 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22542 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22545 _ACEOF
22547 cat >>$CONFIG_STATUS <<_ACEOF
22549 # INIT-COMMANDS section.
22552 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22554 _ACEOF
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559 for ac_config_target in $ac_config_targets
22561 case "$ac_config_target" in
22562 # Handling of arguments.
22563 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22564 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22565 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22566 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22567 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22568 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22569 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22570 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22571 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22572 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22573 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22574 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22575 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22576 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22577 { (exit 1); exit 1; }; };;
22578 esac
22579 done
22581 # If the user did not use the arguments to specify the items to instantiate,
22582 # then the envvar interface is used. Set only those that are not.
22583 # We use the long form for the default assignment because of an extremely
22584 # bizarre bug on SunOS 4.1.3.
22585 if $ac_need_defaults; then
22586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22591 # Have a temporary directory for convenience. Make it in the build tree
22592 # simply because there is no reason to put it here, and in addition,
22593 # creating and moving files from /tmp can sometimes cause problems.
22594 # Create a temporary directory, and hook for its removal unless debugging.
22595 $debug ||
22597 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22598 trap '{ (exit 1); exit 1; }' 1 2 13 15
22601 # Create a (secure) tmp directory for tmp files.
22604 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22605 test -n "$tmp" && test -d "$tmp"
22606 } ||
22608 tmp=./confstat$$-$RANDOM
22609 (umask 077 && mkdir $tmp)
22610 } ||
22612 echo "$me: cannot create a temporary directory in ." >&2
22613 { (exit 1); exit 1; }
22616 _ACEOF
22618 cat >>$CONFIG_STATUS <<_ACEOF
22621 # CONFIG_FILES section.
22624 # No need to generate the scripts if there are no CONFIG_FILES.
22625 # This happens for instance when ./config.status config.h
22626 if test -n "\$CONFIG_FILES"; then
22627 # Protect against being on the right side of a sed subst in config.status.
22628 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22629 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22630 s,@SHELL@,$SHELL,;t t
22631 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22632 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22633 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22634 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22635 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22636 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22637 s,@exec_prefix@,$exec_prefix,;t t
22638 s,@prefix@,$prefix,;t t
22639 s,@program_transform_name@,$program_transform_name,;t t
22640 s,@bindir@,$bindir,;t t
22641 s,@sbindir@,$sbindir,;t t
22642 s,@libexecdir@,$libexecdir,;t t
22643 s,@datadir@,$datadir,;t t
22644 s,@sysconfdir@,$sysconfdir,;t t
22645 s,@sharedstatedir@,$sharedstatedir,;t t
22646 s,@localstatedir@,$localstatedir,;t t
22647 s,@libdir@,$libdir,;t t
22648 s,@includedir@,$includedir,;t t
22649 s,@oldincludedir@,$oldincludedir,;t t
22650 s,@infodir@,$infodir,;t t
22651 s,@mandir@,$mandir,;t t
22652 s,@build_alias@,$build_alias,;t t
22653 s,@host_alias@,$host_alias,;t t
22654 s,@target_alias@,$target_alias,;t t
22655 s,@DEFS@,$DEFS,;t t
22656 s,@ECHO_C@,$ECHO_C,;t t
22657 s,@ECHO_N@,$ECHO_N,;t t
22658 s,@ECHO_T@,$ECHO_T,;t t
22659 s,@LIBS@,$LIBS,;t t
22660 s,@MAINT@,$MAINT,;t t
22661 s,@build@,$build,;t t
22662 s,@build_cpu@,$build_cpu,;t t
22663 s,@build_vendor@,$build_vendor,;t t
22664 s,@build_os@,$build_os,;t t
22665 s,@host@,$host,;t t
22666 s,@host_cpu@,$host_cpu,;t t
22667 s,@host_vendor@,$host_vendor,;t t
22668 s,@host_os@,$host_os,;t t
22669 s,@CC@,$CC,;t t
22670 s,@CFLAGS@,$CFLAGS,;t t
22671 s,@LDFLAGS@,$LDFLAGS,;t t
22672 s,@CPPFLAGS@,$CPPFLAGS,;t t
22673 s,@ac_ct_CC@,$ac_ct_CC,;t t
22674 s,@EXEEXT@,$EXEEXT,;t t
22675 s,@OBJEXT@,$OBJEXT,;t t
22676 s,@LN_S@,$LN_S,;t t
22677 s,@CPP@,$CPP,;t t
22678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22681 s,@RANLIB@,$RANLIB,;t t
22682 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22683 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22684 s,@EGREP@,$EGREP,;t t
22685 s,@LIBSOUND@,$LIBSOUND,;t t
22686 s,@SET_MAKE@,$SET_MAKE,;t t
22687 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22688 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22689 s,@GTK_LIBS@,$GTK_LIBS,;t t
22690 s,@ALLOCA@,$ALLOCA,;t t
22691 s,@liblockfile@,$liblockfile,;t t
22692 s,@LIBOBJS@,$LIBOBJS,;t t
22693 s,@NEED_SETGID@,$NEED_SETGID,;t t
22694 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22695 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22696 s,@version@,$version,;t t
22697 s,@configuration@,$configuration,;t t
22698 s,@canonical@,$canonical,;t t
22699 s,@srcdir@,$srcdir,;t t
22700 s,@lispdir@,$lispdir,;t t
22701 s,@locallisppath@,$locallisppath,;t t
22702 s,@lisppath@,$lisppath,;t t
22703 s,@x_default_search_path@,$x_default_search_path,;t t
22704 s,@etcdir@,$etcdir,;t t
22705 s,@archlibdir@,$archlibdir,;t t
22706 s,@docdir@,$docdir,;t t
22707 s,@bitmapdir@,$bitmapdir,;t t
22708 s,@gamedir@,$gamedir,;t t
22709 s,@gameuser@,$gameuser,;t t
22710 s,@c_switch_system@,$c_switch_system,;t t
22711 s,@c_switch_machine@,$c_switch_machine,;t t
22712 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22713 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22714 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22715 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22716 s,@machfile@,$machfile,;t t
22717 s,@opsysfile@,$opsysfile,;t t
22718 s,@carbon_appdir@,$carbon_appdir,;t t
22719 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22720 CEOF
22722 _ACEOF
22724 cat >>$CONFIG_STATUS <<\_ACEOF
22725 # Split the substitutions into bite-sized pieces for seds with
22726 # small command number limits, like on Digital OSF/1 and HP-UX.
22727 ac_max_sed_lines=48
22728 ac_sed_frag=1 # Number of current file.
22729 ac_beg=1 # First line for current file.
22730 ac_end=$ac_max_sed_lines # Line after last line for current file.
22731 ac_more_lines=:
22732 ac_sed_cmds=
22733 while $ac_more_lines; do
22734 if test $ac_beg -gt 1; then
22735 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22736 else
22737 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22739 if test ! -s $tmp/subs.frag; then
22740 ac_more_lines=false
22741 else
22742 # The purpose of the label and of the branching condition is to
22743 # speed up the sed processing (if there are no `@' at all, there
22744 # is no need to browse any of the substitutions).
22745 # These are the two extra sed commands mentioned above.
22746 (echo ':t
22747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22748 if test -z "$ac_sed_cmds"; then
22749 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22750 else
22751 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22753 ac_sed_frag=`expr $ac_sed_frag + 1`
22754 ac_beg=$ac_end
22755 ac_end=`expr $ac_end + $ac_max_sed_lines`
22757 done
22758 if test -z "$ac_sed_cmds"; then
22759 ac_sed_cmds=cat
22761 fi # test -n "$CONFIG_FILES"
22763 _ACEOF
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22767 case $ac_file in
22768 - | *:- | *:-:* ) # input from stdin
22769 cat >$tmp/stdin
22770 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22772 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22774 * ) ac_file_in=$ac_file.in ;;
22775 esac
22777 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22778 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22780 X"$ac_file" : 'X\(//\)[^/]' \| \
22781 X"$ac_file" : 'X\(//\)$' \| \
22782 X"$ac_file" : 'X\(/\)' \| \
22783 . : '\(.\)' 2>/dev/null ||
22784 echo X"$ac_file" |
22785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22787 /^X\(\/\/\)$/{ s//\1/; q; }
22788 /^X\(\/\).*/{ s//\1/; q; }
22789 s/.*/./; q'`
22790 { if $as_mkdir_p; then
22791 mkdir -p "$ac_dir"
22792 else
22793 as_dir="$ac_dir"
22794 as_dirs=
22795 while test ! -d "$as_dir"; do
22796 as_dirs="$as_dir $as_dirs"
22797 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22799 X"$as_dir" : 'X\(//\)[^/]' \| \
22800 X"$as_dir" : 'X\(//\)$' \| \
22801 X"$as_dir" : 'X\(/\)' \| \
22802 . : '\(.\)' 2>/dev/null ||
22803 echo X"$as_dir" |
22804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22806 /^X\(\/\/\)$/{ s//\1/; q; }
22807 /^X\(\/\).*/{ s//\1/; q; }
22808 s/.*/./; q'`
22809 done
22810 test ! -n "$as_dirs" || mkdir $as_dirs
22811 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22812 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22813 { (exit 1); exit 1; }; }; }
22815 ac_builddir=.
22817 if test "$ac_dir" != .; then
22818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22819 # A "../" for each directory in $ac_dir_suffix.
22820 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22821 else
22822 ac_dir_suffix= ac_top_builddir=
22825 case $srcdir in
22826 .) # No --srcdir option. We are building in place.
22827 ac_srcdir=.
22828 if test -z "$ac_top_builddir"; then
22829 ac_top_srcdir=.
22830 else
22831 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22832 fi ;;
22833 [\\/]* | ?:[\\/]* ) # Absolute path.
22834 ac_srcdir=$srcdir$ac_dir_suffix;
22835 ac_top_srcdir=$srcdir ;;
22836 *) # Relative path.
22837 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22838 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22839 esac
22841 # Do not use `cd foo && pwd` to compute absolute paths, because
22842 # the directories may not exist.
22843 case `pwd` in
22844 .) ac_abs_builddir="$ac_dir";;
22846 case "$ac_dir" in
22847 .) ac_abs_builddir=`pwd`;;
22848 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22849 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22850 esac;;
22851 esac
22852 case $ac_abs_builddir in
22853 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22855 case ${ac_top_builddir}. in
22856 .) ac_abs_top_builddir=$ac_abs_builddir;;
22857 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22858 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22859 esac;;
22860 esac
22861 case $ac_abs_builddir in
22862 .) ac_abs_srcdir=$ac_srcdir;;
22864 case $ac_srcdir in
22865 .) ac_abs_srcdir=$ac_abs_builddir;;
22866 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22867 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22868 esac;;
22869 esac
22870 case $ac_abs_builddir in
22871 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22873 case $ac_top_srcdir in
22874 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22875 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22876 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22877 esac;;
22878 esac
22881 case $INSTALL in
22882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22883 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22884 esac
22886 if test x"$ac_file" != x-; then
22887 { echo "$as_me:$LINENO: creating $ac_file" >&5
22888 echo "$as_me: creating $ac_file" >&6;}
22889 rm -f "$ac_file"
22891 # Let's still pretend it is `configure' which instantiates (i.e., don't
22892 # use $as_me), people would be surprised to read:
22893 # /* config.h. Generated by config.status. */
22894 if test x"$ac_file" = x-; then
22895 configure_input=
22896 else
22897 configure_input="$ac_file. "
22899 configure_input=$configure_input"Generated from `echo $ac_file_in |
22900 sed 's,.*/,,'` by configure."
22902 # First look for the input files in the build tree, otherwise in the
22903 # src tree.
22904 ac_file_inputs=`IFS=:
22905 for f in $ac_file_in; do
22906 case $f in
22907 -) echo $tmp/stdin ;;
22908 [\\/$]*)
22909 # Absolute (can't be DOS-style, as IFS=:)
22910 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22911 echo "$as_me: error: cannot find input file: $f" >&2;}
22912 { (exit 1); exit 1; }; }
22913 echo "$f";;
22914 *) # Relative
22915 if test -f "$f"; then
22916 # Build tree
22917 echo "$f"
22918 elif test -f "$srcdir/$f"; then
22919 # Source tree
22920 echo "$srcdir/$f"
22921 else
22922 # /dev/null tree
22923 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22924 echo "$as_me: error: cannot find input file: $f" >&2;}
22925 { (exit 1); exit 1; }; }
22926 fi;;
22927 esac
22928 done` || { (exit 1); exit 1; }
22929 _ACEOF
22930 cat >>$CONFIG_STATUS <<_ACEOF
22931 sed "$ac_vpsub
22932 $extrasub
22933 _ACEOF
22934 cat >>$CONFIG_STATUS <<\_ACEOF
22936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22937 s,@configure_input@,$configure_input,;t t
22938 s,@srcdir@,$ac_srcdir,;t t
22939 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22940 s,@top_srcdir@,$ac_top_srcdir,;t t
22941 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22942 s,@builddir@,$ac_builddir,;t t
22943 s,@abs_builddir@,$ac_abs_builddir,;t t
22944 s,@top_builddir@,$ac_top_builddir,;t t
22945 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22946 s,@INSTALL@,$ac_INSTALL,;t t
22947 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22948 rm -f $tmp/stdin
22949 if test x"$ac_file" != x-; then
22950 mv $tmp/out $ac_file
22951 else
22952 cat $tmp/out
22953 rm -f $tmp/out
22956 done
22957 _ACEOF
22958 cat >>$CONFIG_STATUS <<\_ACEOF
22961 # CONFIG_HEADER section.
22964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22967 # ac_d sets the value in "#define NAME VALUE" lines.
22968 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22969 ac_dB='[ ].*$,\1#\2'
22970 ac_dC=' '
22971 ac_dD=',;t'
22972 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22973 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22974 ac_uB='$,\1#\2define\3'
22975 ac_uC=' '
22976 ac_uD=',;t'
22978 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22980 case $ac_file in
22981 - | *:- | *:-:* ) # input from stdin
22982 cat >$tmp/stdin
22983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22987 * ) ac_file_in=$ac_file.in ;;
22988 esac
22990 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22991 echo "$as_me: creating $ac_file" >&6;}
22993 # First look for the input files in the build tree, otherwise in the
22994 # src tree.
22995 ac_file_inputs=`IFS=:
22996 for f in $ac_file_in; do
22997 case $f in
22998 -) echo $tmp/stdin ;;
22999 [\\/$]*)
23000 # Absolute (can't be DOS-style, as IFS=:)
23001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23002 echo "$as_me: error: cannot find input file: $f" >&2;}
23003 { (exit 1); exit 1; }; }
23004 # Do quote $f, to prevent DOS paths from being IFS'd.
23005 echo "$f";;
23006 *) # Relative
23007 if test -f "$f"; then
23008 # Build tree
23009 echo "$f"
23010 elif test -f "$srcdir/$f"; then
23011 # Source tree
23012 echo "$srcdir/$f"
23013 else
23014 # /dev/null tree
23015 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23016 echo "$as_me: error: cannot find input file: $f" >&2;}
23017 { (exit 1); exit 1; }; }
23018 fi;;
23019 esac
23020 done` || { (exit 1); exit 1; }
23021 # Remove the trailing spaces.
23022 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23024 _ACEOF
23026 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23027 # `conftest.undefs', that substitutes the proper values into
23028 # config.h.in to produce config.h. The first handles `#define'
23029 # templates, and the second `#undef' templates.
23030 # And first: Protect against being on the right side of a sed subst in
23031 # config.status. Protect against being in an unquoted here document
23032 # in config.status.
23033 rm -f conftest.defines conftest.undefs
23034 # Using a here document instead of a string reduces the quoting nightmare.
23035 # Putting comments in sed scripts is not portable.
23037 # `end' is used to avoid that the second main sed command (meant for
23038 # 0-ary CPP macros) applies to n-ary macro definitions.
23039 # See the Autoconf documentation for `clear'.
23040 cat >confdef2sed.sed <<\_ACEOF
23041 s/[\\&,]/\\&/g
23042 s,[\\$`],\\&,g
23043 t clear
23044 : clear
23045 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23046 t end
23047 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23048 : end
23049 _ACEOF
23050 # If some macros were called several times there might be several times
23051 # the same #defines, which is useless. Nevertheless, we may not want to
23052 # sort them, since we want the *last* AC-DEFINE to be honored.
23053 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23054 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23055 rm -f confdef2sed.sed
23057 # This sed command replaces #undef with comments. This is necessary, for
23058 # example, in the case of _POSIX_SOURCE, which is predefined and required
23059 # on some systems where configure will not decide to define it.
23060 cat >>conftest.undefs <<\_ACEOF
23061 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23062 _ACEOF
23064 # Break up conftest.defines because some shells have a limit on the size
23065 # of here documents, and old seds have small limits too (100 cmds).
23066 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23067 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23068 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23069 echo ' :' >>$CONFIG_STATUS
23070 rm -f conftest.tail
23071 while grep . conftest.defines >/dev/null
23073 # Write a limited-size here document to $tmp/defines.sed.
23074 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23075 # Speed up: don't consider the non `#define' lines.
23076 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23077 # Work around the forget-to-reset-the-flag bug.
23078 echo 't clr' >>$CONFIG_STATUS
23079 echo ': clr' >>$CONFIG_STATUS
23080 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23081 echo 'CEOF
23082 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23083 rm -f $tmp/in
23084 mv $tmp/out $tmp/in
23085 ' >>$CONFIG_STATUS
23086 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23087 rm -f conftest.defines
23088 mv conftest.tail conftest.defines
23089 done
23090 rm -f conftest.defines
23091 echo ' fi # grep' >>$CONFIG_STATUS
23092 echo >>$CONFIG_STATUS
23094 # Break up conftest.undefs because some shells have a limit on the size
23095 # of here documents, and old seds have small limits too (100 cmds).
23096 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23097 rm -f conftest.tail
23098 while grep . conftest.undefs >/dev/null
23100 # Write a limited-size here document to $tmp/undefs.sed.
23101 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23102 # Speed up: don't consider the non `#undef'
23103 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23104 # Work around the forget-to-reset-the-flag bug.
23105 echo 't clr' >>$CONFIG_STATUS
23106 echo ': clr' >>$CONFIG_STATUS
23107 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23108 echo 'CEOF
23109 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23110 rm -f $tmp/in
23111 mv $tmp/out $tmp/in
23112 ' >>$CONFIG_STATUS
23113 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23114 rm -f conftest.undefs
23115 mv conftest.tail conftest.undefs
23116 done
23117 rm -f conftest.undefs
23119 cat >>$CONFIG_STATUS <<\_ACEOF
23120 # Let's still pretend it is `configure' which instantiates (i.e., don't
23121 # use $as_me), people would be surprised to read:
23122 # /* config.h. Generated by config.status. */
23123 if test x"$ac_file" = x-; then
23124 echo "/* Generated by configure. */" >$tmp/config.h
23125 else
23126 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23128 cat $tmp/in >>$tmp/config.h
23129 rm -f $tmp/in
23130 if test x"$ac_file" != x-; then
23131 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23132 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23133 echo "$as_me: $ac_file is unchanged" >&6;}
23134 else
23135 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23137 X"$ac_file" : 'X\(//\)[^/]' \| \
23138 X"$ac_file" : 'X\(//\)$' \| \
23139 X"$ac_file" : 'X\(/\)' \| \
23140 . : '\(.\)' 2>/dev/null ||
23141 echo X"$ac_file" |
23142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23144 /^X\(\/\/\)$/{ s//\1/; q; }
23145 /^X\(\/\).*/{ s//\1/; q; }
23146 s/.*/./; q'`
23147 { if $as_mkdir_p; then
23148 mkdir -p "$ac_dir"
23149 else
23150 as_dir="$ac_dir"
23151 as_dirs=
23152 while test ! -d "$as_dir"; do
23153 as_dirs="$as_dir $as_dirs"
23154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23156 X"$as_dir" : 'X\(//\)[^/]' \| \
23157 X"$as_dir" : 'X\(//\)$' \| \
23158 X"$as_dir" : 'X\(/\)' \| \
23159 . : '\(.\)' 2>/dev/null ||
23160 echo X"$as_dir" |
23161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23163 /^X\(\/\/\)$/{ s//\1/; q; }
23164 /^X\(\/\).*/{ s//\1/; q; }
23165 s/.*/./; q'`
23166 done
23167 test ! -n "$as_dirs" || mkdir $as_dirs
23168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23170 { (exit 1); exit 1; }; }; }
23172 rm -f $ac_file
23173 mv $tmp/config.h $ac_file
23175 else
23176 cat $tmp/config.h
23177 rm -f $tmp/config.h
23179 done
23180 _ACEOF
23181 cat >>$CONFIG_STATUS <<\_ACEOF
23184 # CONFIG_COMMANDS section.
23186 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23187 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23188 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23189 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23190 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191 X"$ac_dest" : 'X\(//\)[^/]' \| \
23192 X"$ac_dest" : 'X\(//\)$' \| \
23193 X"$ac_dest" : 'X\(/\)' \| \
23194 . : '\(.\)' 2>/dev/null ||
23195 echo X"$ac_dest" |
23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198 /^X\(\/\/\)$/{ s//\1/; q; }
23199 /^X\(\/\).*/{ s//\1/; q; }
23200 s/.*/./; q'`
23201 { if $as_mkdir_p; then
23202 mkdir -p "$ac_dir"
23203 else
23204 as_dir="$ac_dir"
23205 as_dirs=
23206 while test ! -d "$as_dir"; do
23207 as_dirs="$as_dir $as_dirs"
23208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23210 X"$as_dir" : 'X\(//\)[^/]' \| \
23211 X"$as_dir" : 'X\(//\)$' \| \
23212 X"$as_dir" : 'X\(/\)' \| \
23213 . : '\(.\)' 2>/dev/null ||
23214 echo X"$as_dir" |
23215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23217 /^X\(\/\/\)$/{ s//\1/; q; }
23218 /^X\(\/\).*/{ s//\1/; q; }
23219 s/.*/./; q'`
23220 done
23221 test ! -n "$as_dirs" || mkdir $as_dirs
23222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23224 { (exit 1); exit 1; }; }; }
23226 ac_builddir=.
23228 if test "$ac_dir" != .; then
23229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23230 # A "../" for each directory in $ac_dir_suffix.
23231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23232 else
23233 ac_dir_suffix= ac_top_builddir=
23236 case $srcdir in
23237 .) # No --srcdir option. We are building in place.
23238 ac_srcdir=.
23239 if test -z "$ac_top_builddir"; then
23240 ac_top_srcdir=.
23241 else
23242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23243 fi ;;
23244 [\\/]* | ?:[\\/]* ) # Absolute path.
23245 ac_srcdir=$srcdir$ac_dir_suffix;
23246 ac_top_srcdir=$srcdir ;;
23247 *) # Relative path.
23248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23250 esac
23252 # Do not use `cd foo && pwd` to compute absolute paths, because
23253 # the directories may not exist.
23254 case `pwd` in
23255 .) ac_abs_builddir="$ac_dir";;
23257 case "$ac_dir" in
23258 .) ac_abs_builddir=`pwd`;;
23259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23260 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23261 esac;;
23262 esac
23263 case $ac_abs_builddir in
23264 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23266 case ${ac_top_builddir}. in
23267 .) ac_abs_top_builddir=$ac_abs_builddir;;
23268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23270 esac;;
23271 esac
23272 case $ac_abs_builddir in
23273 .) ac_abs_srcdir=$ac_srcdir;;
23275 case $ac_srcdir in
23276 .) ac_abs_srcdir=$ac_abs_builddir;;
23277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23279 esac;;
23280 esac
23281 case $ac_abs_builddir in
23282 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23284 case $ac_top_srcdir in
23285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23288 esac;;
23289 esac
23292 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23293 echo "$as_me: executing $ac_dest commands" >&6;}
23294 case $ac_dest in
23295 default )
23297 ### Make the necessary directories, if they don't exist.
23298 for dir in etc lisp ; do
23299 test -d ${dir} || mkdir ${dir}
23300 done
23302 # Build src/Makefile from ${srcdir}/src/Makefile.c
23303 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23304 # This must be done after src/config.h is built, since we rely on that file.
23306 # Now get this: Some word that is part of the ${srcdir} directory name
23307 # or the ${configuration} value might, just might, happen to be an
23308 # identifier like `sun4' or `i386' or something, and be predefined by
23309 # the C preprocessor to some helpful value like 1, or maybe the empty
23310 # string. Needless to say consequent macro substitutions are less
23311 # than conducive to the makefile finding the correct directory.
23312 undefs="`echo $top_srcdir $configuration $canonical |
23313 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23314 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23317 echo creating src/epaths.h
23318 ${MAKE-make} epaths-force
23320 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23321 # `..' to `. .' unless invoked with -traditional
23323 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23324 CPPFLAGS="$CPPFLAGS -traditional"
23327 echo creating lib-src/Makefile
23328 ( cd lib-src
23329 rm -f junk.c junk1.c junk2.c
23330 sed -e '/start of cpp stuff/q' \
23331 < Makefile.c > junk1.c
23332 sed -e '1,/start of cpp stuff/d'\
23333 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23334 < Makefile.c > junk.c
23335 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23336 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23337 cat junk1.c junk2.c > Makefile.new
23338 rm -f junk.c junk1.c junk2.c
23339 chmod 444 Makefile.new
23340 mv -f Makefile.new Makefile
23343 echo creating src/Makefile
23344 ( cd src
23345 rm -f junk.c junk1.c junk2.c
23346 sed -e '/start of cpp stuff/q' \
23347 < Makefile.c > junk1.c
23348 sed -e '1,/start of cpp stuff/d'\
23349 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23350 < Makefile.c > junk.c
23351 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23352 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23353 cat junk1.c junk2.c > Makefile.new
23354 rm -f junk.c junk1.c junk2.c
23355 chmod 444 Makefile.new
23356 mv -f Makefile.new Makefile
23359 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23360 echo creating src/.gdbinit
23361 echo source $srcdir/src/.gdbinit > src/.gdbinit
23364 # This is how we know whether to re-run configure in certain cases.
23365 touch src/config.stamp
23368 esac
23369 done
23370 _ACEOF
23372 cat >>$CONFIG_STATUS <<\_ACEOF
23374 { (exit 0); exit 0; }
23375 _ACEOF
23376 chmod +x $CONFIG_STATUS
23377 ac_clean_files=$ac_clean_files_save
23380 # configure is writing to config.log, and then calls config.status.
23381 # config.status does its own redirection, appending to config.log.
23382 # Unfortunately, on DOS this fails, as config.log is still kept open
23383 # by configure, so config.status won't be able to write to it; its
23384 # output is simply discarded. So we exec the FD to /dev/null,
23385 # effectively closing config.log, so it can be properly (re)opened and
23386 # appended to by config.status. When coming back to configure, we
23387 # need to make the FD available again.
23388 if test "$no_create" != yes; then
23389 ac_cs_success=:
23390 ac_config_status_args=
23391 test "$silent" = yes &&
23392 ac_config_status_args="$ac_config_status_args --quiet"
23393 exec 5>/dev/null
23394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23395 exec 5>>config.log
23396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23397 # would make configure fail if this is the last instruction.
23398 $ac_cs_success || { (exit 1); exit 1; }