*** empty log message ***
[emacs.git] / configure
blob32a9d4d94a66e80ff39b4dce2ccfeb73ad48284e
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=
5300 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5301 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5302 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5303 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5304 sys/utsname.h
5306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo "$as_me:$LINENO: checking for $ac_header" >&5
5309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5315 else
5316 # Is the header compilable?
5317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5326 #include <$ac_header>
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_header_compiler=yes
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_header_compiler=no
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6
5361 # Is the header present?
5362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383 else
5384 ac_cpp_err=
5386 else
5387 ac_cpp_err=yes
5389 if test -z "$ac_cpp_err"; then
5390 ac_header_preproc=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_header_preproc=no
5397 rm -f conftest.err conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 yes:no: )
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc=yes
5410 no:yes:* )
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5424 cat <<\_ASBOX
5425 ## ------------------------------------------ ##
5426 ## Report this to the AC_PACKAGE_NAME lists. ##
5427 ## ------------------------------------------ ##
5428 _ASBOX
5430 sed "s/^/$as_me: WARNING: /" >&2
5432 esac
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 eval "$as_ac_Header=\$ac_header_preproc"
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5451 done
5454 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5455 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <sys/personality.h>
5464 main ()
5466 personality (PER_LINUX32)
5468 return 0;
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 emacs_cv_personality_linux32=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 emacs_cv_personality_linux32=no
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5502 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5504 if test $emacs_cv_personality_linux32 = yes; then
5506 cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_PERSONALITY_LINUX32 1
5508 _ACEOF
5513 for ac_header in term.h
5515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <$ac_header>
5528 _ACEOF
5529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5540 else
5541 ac_cpp_err=
5543 else
5544 ac_cpp_err=yes
5546 if test -z "$ac_cpp_err"; then
5547 eval "$as_ac_Header=yes"
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 eval "$as_ac_Header=no"
5554 rm -f conftest.err conftest.$ac_ext
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559 cat >>confdefs.h <<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5565 done
5567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5569 if test "${ac_cv_header_stdc+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <stdlib.h>
5579 #include <stdarg.h>
5580 #include <string.h>
5581 #include <float.h>
5584 main ()
5588 return 0;
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_header_stdc=yes
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_cv_header_stdc=no
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5622 if test $ac_cv_header_stdc = yes; then
5623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <string.h>
5632 _ACEOF
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev/null 2>&1; then
5636 else
5637 ac_cv_header_stdc=no
5639 rm -f conftest*
5643 if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <stdlib.h>
5653 _ACEOF
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev/null 2>&1; then
5657 else
5658 ac_cv_header_stdc=no
5660 rm -f conftest*
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then
5668 else
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <ctype.h>
5676 #if ((' ' & 0x0FF) == 0x020)
5677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5679 #else
5680 # define ISLOWER(c) \
5681 (('a' <= (c) && (c) <= 'i') \
5682 || ('j' <= (c) && (c) <= 'r') \
5683 || ('s' <= (c) && (c) <= 'z'))
5684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5685 #endif
5687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5689 main ()
5691 int i;
5692 for (i = 0; i < 256; i++)
5693 if (XOR (islower (i), ISLOWER (i))
5694 || toupper (i) != TOUPPER (i))
5695 exit(2);
5696 exit (0);
5698 _ACEOF
5699 rm -f conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5711 else
5712 echo "$as_me: program exited with status $ac_status" >&5
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 ( exit $ac_status )
5717 ac_cv_header_stdc=no
5719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5724 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5725 if test $ac_cv_header_stdc = yes; then
5727 cat >>confdefs.h <<\_ACEOF
5728 #define STDC_HEADERS 1
5729 _ACEOF
5733 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5735 if test "${ac_cv_header_time+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 #include <sys/time.h>
5746 #include <time.h>
5749 main ()
5751 if ((struct tm *) 0)
5752 return 0;
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_header_time=yes
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_header_time=no
5786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5789 echo "${ECHO_T}$ac_cv_header_time" >&6
5790 if test $ac_cv_header_time = yes; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TIME_WITH_SYS_TIME 1
5794 _ACEOF
5798 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5799 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5800 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5811 main ()
5813 #ifndef sys_siglist
5814 char *p = (char *) sys_siglist;
5815 #endif
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_have_decl_sys_siglist=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_cv_have_decl_sys_siglist=no
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5853 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5854 if test $ac_cv_have_decl_sys_siglist = yes; then
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_DECL_SYS_SIGLIST 1
5858 _ACEOF
5861 else
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE_DECL_SYS_SIGLIST 0
5864 _ACEOF
5870 if test $ac_cv_have_decl_sys_siglist != yes; then
5871 # For Tru64, at least:
5872 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5873 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5874 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5885 main ()
5887 #ifndef __sys_siglist
5888 char *p = (char *) __sys_siglist;
5889 #endif
5892 return 0;
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_have_decl___sys_siglist=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_cv_have_decl___sys_siglist=no
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5927 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5928 if test $ac_cv_have_decl___sys_siglist = yes; then
5930 cat >>confdefs.h <<_ACEOF
5931 #define HAVE_DECL___SYS_SIGLIST 1
5932 _ACEOF
5935 else
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_DECL___SYS_SIGLIST 0
5938 _ACEOF
5944 if test $ac_cv_have_decl___sys_siglist = yes; then
5946 cat >>confdefs.h <<\_ACEOF
5947 #define sys_siglist __sys_siglist
5948 _ACEOF
5952 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5953 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5954 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <sys/wait.h>
5965 #ifndef WEXITSTATUS
5966 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5967 #endif
5968 #ifndef WIFEXITED
5969 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5970 #endif
5973 main ()
5975 int s;
5976 wait (&s);
5977 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5979 return 0;
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_header_sys_wait_h=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 ac_cv_header_sys_wait_h=no
6011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6014 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6015 if test $ac_cv_header_sys_wait_h = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_SYS_WAIT_H 1
6019 _ACEOF
6024 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6025 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6026 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #ifdef TIME_WITH_SYS_TIME
6036 #include <sys/time.h>
6037 #include <time.h>
6038 #else
6039 #ifdef HAVE_SYS_TIME_H
6040 #include <sys/time.h>
6041 #else
6042 #include <time.h>
6043 #endif
6044 #endif
6045 #ifdef HAVE_UTIME_H
6046 #include <utime.h>
6047 #endif
6049 main ()
6051 static struct utimbuf x; x.actime = x.modtime;
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 emacs_cv_struct_utimbuf=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 emacs_cv_struct_utimbuf=no
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6088 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6089 if test $emacs_cv_struct_utimbuf = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_STRUCT_UTIMBUF 1
6093 _ACEOF
6097 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6098 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6099 if test "${ac_cv_type_signal+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <sys/types.h>
6109 #include <signal.h>
6110 #ifdef signal
6111 # undef signal
6112 #endif
6113 #ifdef __cplusplus
6114 extern "C" void (*signal (int, void (*)(int)))(int);
6115 #else
6116 void (*signal ()) ();
6117 #endif
6120 main ()
6122 int i;
6124 return 0;
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_type_signal=void
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_cv_type_signal=int
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6159 echo "${ECHO_T}$ac_cv_type_signal" >&6
6161 cat >>confdefs.h <<_ACEOF
6162 #define RETSIGTYPE $ac_cv_type_signal
6163 _ACEOF
6167 echo "$as_me:$LINENO: checking for speed_t" >&5
6168 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6169 if test "${emacs_cv_speed_t+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <termios.h>
6180 main ()
6182 speed_t x = 1;
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_speed_t=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 emacs_cv_speed_t=no
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6219 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6220 if test $emacs_cv_speed_t = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SPEED_T 1
6224 _ACEOF
6228 echo "$as_me:$LINENO: checking for struct timeval" >&5
6229 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6230 if test "${emacs_cv_struct_timeval+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #ifdef TIME_WITH_SYS_TIME
6240 #include <sys/time.h>
6241 #include <time.h>
6242 #else
6243 #ifdef HAVE_SYS_TIME_H
6244 #include <sys/time.h>
6245 #else
6246 #include <time.h>
6247 #endif
6248 #endif
6250 main ()
6252 static struct timeval x; x.tv_sec = x.tv_usec;
6254 return 0;
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 emacs_cv_struct_timeval=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 emacs_cv_struct_timeval=no
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6289 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6290 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6291 if test $emacs_cv_struct_timeval = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define HAVE_TIMEVAL 1
6295 _ACEOF
6299 echo "$as_me:$LINENO: checking for struct exception" >&5
6300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6301 if test "${emacs_cv_struct_exception+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <math.h>
6312 main ()
6314 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6316 return 0;
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 emacs_cv_struct_exception=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 emacs_cv_struct_exception=no
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6351 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6352 HAVE_EXCEPTION=$emacs_cv_struct_exception
6353 if test $emacs_cv_struct_exception != yes; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define NO_MATHERR 1
6357 _ACEOF
6362 for ac_header in sys/socket.h
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 else
6374 # Is the header compilable?
6375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 #include <$ac_header>
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_header_compiler=no
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6429 _ACEOF
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441 else
6442 ac_cpp_err=
6444 else
6445 ac_cpp_err=yes
6447 if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_preproc=no
6455 rm -f conftest.err conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 yes:no: )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6468 no:yes:* )
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482 cat <<\_ASBOX
6483 ## ------------------------------------------ ##
6484 ## Report this to the AC_PACKAGE_NAME lists. ##
6485 ## ------------------------------------------ ##
6486 _ASBOX
6488 sed "s/^/$as_me: WARNING: /" >&2
6490 esac
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6509 done
6512 for ac_header in net/if.h
6514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #if HAVE_SYS_SOCKET_H
6528 #include <sys/socket.h>
6529 #endif
6531 #include <$ac_header>
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535 (eval $ac_compile) 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -z "$ac_c_werror_flag"
6543 || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 eval "$as_ac_Header=yes"
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 eval "$as_ac_Header=no"
6562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6573 done
6576 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6577 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6578 if test "${ac_cv_struct_tm+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <time.h>
6591 main ()
6593 struct tm *tp; tp->tm_sec;
6595 return 0;
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -z "$ac_c_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_struct_tm=time.h
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_struct_tm=sys/time.h
6627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6630 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6631 if test $ac_cv_struct_tm = sys/time.h; then
6633 cat >>confdefs.h <<\_ACEOF
6634 #define TM_IN_SYS_TIME 1
6635 _ACEOF
6639 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6640 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6641 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6651 #include <$ac_cv_struct_tm>
6655 main ()
6657 static struct tm ac_aggr;
6658 if (ac_aggr.tm_zone)
6659 return 0;
6661 return 0;
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_member_struct_tm_tm_zone=yes
6687 else
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 #include <$ac_cv_struct_tm>
6702 main ()
6704 static struct tm ac_aggr;
6705 if (sizeof ac_aggr.tm_zone)
6706 return 0;
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_member_struct_tm_tm_zone=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_member_struct_tm_tm_zone=no
6740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6745 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6746 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_STRUCT_TM_TM_ZONE 1
6750 _ACEOF
6755 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_TM_ZONE 1
6759 _ACEOF
6761 else
6762 echo "$as_me:$LINENO: checking for tzname" >&5
6763 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6764 if test "${ac_cv_var_tzname+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <time.h>
6774 #ifndef tzname /* For SGI. */
6775 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6776 #endif
6779 main ()
6781 atoi(*tzname);
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788 (eval $ac_link) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_var_tzname=yes
6809 else
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 ac_cv_var_tzname=no
6815 rm -f conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6819 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6820 if test $ac_cv_var_tzname = yes; then
6822 cat >>confdefs.h <<\_ACEOF
6823 #define HAVE_TZNAME 1
6824 _ACEOF
6829 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6830 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6831 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 #include <time.h>
6843 main ()
6845 static struct tm ac_aggr;
6846 if (ac_aggr.tm_gmtoff)
6847 return 0;
6849 return 0;
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_member_struct_tm_tm_gmtoff=yes
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <time.h>
6888 main ()
6890 static struct tm ac_aggr;
6891 if (sizeof ac_aggr.tm_gmtoff)
6892 return 0;
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_member_struct_tm_tm_gmtoff=yes
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_cv_member_struct_tm_tm_gmtoff=no
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_TM_GMTOFF 1
6936 _ACEOF
6940 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6952 #if HAVE_SYS_SOCKET_H
6953 #include <sys/socket.h>
6954 #endif
6955 #if HAVE_NET_IF_H
6956 #include <net/if.h>
6957 #endif
6960 main ()
6962 static struct ifreq ac_aggr;
6963 if (ac_aggr.ifr_flags)
6964 return 0;
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_member_struct_ifreq_ifr_flags=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 #if HAVE_SYS_SOCKET_H
7004 #include <sys/socket.h>
7005 #endif
7006 #if HAVE_NET_IF_H
7007 #include <net/if.h>
7008 #endif
7011 main ()
7013 static struct ifreq ac_aggr;
7014 if (sizeof ac_aggr.ifr_flags)
7015 return 0;
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_member_struct_ifreq_ifr_flags=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_member_struct_ifreq_ifr_flags=no
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7054 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7055 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7059 _ACEOF
7063 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7064 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7065 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 #if HAVE_SYS_SOCKET_H
7076 #include <sys/socket.h>
7077 #endif
7078 #if HAVE_NET_IF_H
7079 #include <net/if.h>
7080 #endif
7083 main ()
7085 static struct ifreq ac_aggr;
7086 if (ac_aggr.ifr_hwaddr)
7087 return 0;
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #if HAVE_SYS_SOCKET_H
7127 #include <sys/socket.h>
7128 #endif
7129 #if HAVE_NET_IF_H
7130 #include <net/if.h>
7131 #endif
7134 main ()
7136 static struct ifreq ac_aggr;
7137 if (sizeof ac_aggr.ifr_hwaddr)
7138 return 0;
7140 return 0;
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7177 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7178 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7180 cat >>confdefs.h <<_ACEOF
7181 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7182 _ACEOF
7186 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7187 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7188 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7198 #if HAVE_SYS_SOCKET_H
7199 #include <sys/socket.h>
7200 #endif
7201 #if HAVE_NET_IF_H
7202 #include <net/if.h>
7203 #endif
7206 main ()
7208 static struct ifreq ac_aggr;
7209 if (ac_aggr.ifr_netmask)
7210 return 0;
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_member_struct_ifreq_ifr_netmask=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 #if HAVE_SYS_SOCKET_H
7250 #include <sys/socket.h>
7251 #endif
7252 #if HAVE_NET_IF_H
7253 #include <net/if.h>
7254 #endif
7257 main ()
7259 static struct ifreq ac_aggr;
7260 if (sizeof ac_aggr.ifr_netmask)
7261 return 0;
7263 return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_member_struct_ifreq_ifr_netmask=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_cv_member_struct_ifreq_ifr_netmask=no
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7300 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7301 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7303 cat >>confdefs.h <<_ACEOF
7304 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7305 _ACEOF
7309 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7310 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7311 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #if HAVE_SYS_SOCKET_H
7322 #include <sys/socket.h>
7323 #endif
7324 #if HAVE_NET_IF_H
7325 #include <net/if.h>
7326 #endif
7329 main ()
7331 static struct ifreq ac_aggr;
7332 if (ac_aggr.ifr_broadaddr)
7333 return 0;
7335 return 0;
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7372 #if HAVE_SYS_SOCKET_H
7373 #include <sys/socket.h>
7374 #endif
7375 #if HAVE_NET_IF_H
7376 #include <net/if.h>
7377 #endif
7380 main ()
7382 static struct ifreq ac_aggr;
7383 if (sizeof ac_aggr.ifr_broadaddr)
7384 return 0;
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7424 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7428 _ACEOF
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7446 #endif
7447 #if HAVE_NET_IF_H
7448 #include <net/if.h>
7449 #endif
7452 main ()
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_addr)
7456 return 0;
7458 return 0;
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_addr=yes
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7497 #endif
7498 #if HAVE_NET_IF_H
7499 #include <net/if.h>
7500 #endif
7503 main ()
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_addr)
7507 return 0;
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_addr=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_addr=no
7541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7551 _ACEOF
7558 echo "$as_me:$LINENO: checking for function prototypes" >&5
7559 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7560 if test "$ac_cv_prog_cc_stdc" != no; then
7561 echo "$as_me:$LINENO: result: yes" >&5
7562 echo "${ECHO_T}yes" >&6
7564 cat >>confdefs.h <<\_ACEOF
7565 #define PROTOTYPES 1
7566 _ACEOF
7569 cat >>confdefs.h <<\_ACEOF
7570 #define __PROTOTYPES 1
7571 _ACEOF
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7578 echo "$as_me:$LINENO: checking for working volatile" >&5
7579 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7580 if test "${ac_cv_c_volatile+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7591 main ()
7594 volatile int x;
7595 int * volatile y;
7597 return 0;
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_c_volatile=yes
7623 else
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_cv_c_volatile=no
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7631 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7632 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7633 if test $ac_cv_c_volatile = no; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define volatile
7637 _ACEOF
7641 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7643 if test "${ac_cv_c_const+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7654 main ()
7656 /* FIXME: Include the comments suggested by Paul. */
7657 #ifndef __cplusplus
7658 /* Ultrix mips cc rejects this. */
7659 typedef int charset[2];
7660 const charset x;
7661 /* SunOS 4.1.1 cc rejects this. */
7662 char const *const *ccp;
7663 char **p;
7664 /* NEC SVR4.0.2 mips cc rejects this. */
7665 struct point {int x, y;};
7666 static struct point const zero = {0,0};
7667 /* AIX XL C 1.02.0.0 rejects this.
7668 It does not let you subtract one const X* pointer from another in
7669 an arm of an if-expression whose if-part is not a constant
7670 expression */
7671 const char *g = "string";
7672 ccp = &g + (g ? g-g : 0);
7673 /* HPUX 7.0 cc rejects these. */
7674 ++ccp;
7675 p = (char**) ccp;
7676 ccp = (char const *const *) p;
7677 { /* SCO 3.2v4 cc rejects this. */
7678 char *t;
7679 char const *s = 0 ? (char *) 0 : (char const *) 0;
7681 *t++ = 0;
7683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7684 int x[] = {25, 17};
7685 const int *foo = &x[0];
7686 ++foo;
7688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7689 typedef const int *iptr;
7690 iptr p = 0;
7691 ++p;
7693 { /* AIX XL C 1.02.0.0 rejects this saying
7694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7695 struct s { int j; const int *ap[3]; };
7696 struct s *b; b->j = 5;
7698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7699 const int foo = 10;
7701 #endif
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_c_const=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_cv_c_const=no
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7739 echo "${ECHO_T}$ac_cv_c_const" >&6
7740 if test $ac_cv_c_const = no; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define const
7744 _ACEOF
7748 echo "$as_me:$LINENO: checking for void * support" >&5
7749 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7750 if test "${emacs_cv_void_star+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7761 main ()
7763 void * foo;
7765 return 0;
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 emacs_cv_void_star=yes
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 emacs_cv_void_star=no
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7800 echo "${ECHO_T}$emacs_cv_void_star" >&6
7801 if test $emacs_cv_void_star = yes; then
7802 cat >>confdefs.h <<\_ACEOF
7803 #define POINTER_TYPE void
7804 _ACEOF
7806 else
7807 cat >>confdefs.h <<\_ACEOF
7808 #define POINTER_TYPE char
7809 _ACEOF
7817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 cat >conftest.make <<\_ACEOF
7824 all:
7825 @echo 'ac_maketemp="$(MAKE)"'
7826 _ACEOF
7827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7829 if test -n "$ac_maketemp"; then
7830 eval ac_cv_prog_make_${ac_make}_set=yes
7831 else
7832 eval ac_cv_prog_make_${ac_make}_set=no
7834 rm -f conftest.make
7836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7837 echo "$as_me:$LINENO: result: yes" >&5
7838 echo "${ECHO_T}yes" >&6
7839 SET_MAKE=
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6
7843 SET_MAKE="MAKE=${MAKE-make}"
7847 echo "$as_me:$LINENO: checking for long file names" >&5
7848 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7849 if test "${ac_cv_sys_long_file_names+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 ac_cv_sys_long_file_names=yes
7853 # Test for long file names in all the places we know might matter:
7854 # . the current directory, where building will happen
7855 # $prefix/lib where we will be installing things
7856 # $exec_prefix/lib likewise
7857 # eval it to expand exec_prefix.
7858 # $TMPDIR if set, where it might want to write temporary files
7859 # if $TMPDIR is not set:
7860 # /tmp where it might want to write temporary files
7861 # /var/tmp likewise
7862 # /usr/tmp likewise
7863 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7864 ac_tmpdirs=$TMPDIR
7865 else
7866 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7868 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7869 test -d $ac_dir || continue
7870 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7871 ac_xdir=$ac_dir/cf$$
7872 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7873 ac_tf1=$ac_xdir/conftest9012345
7874 ac_tf2=$ac_xdir/conftest9012346
7875 (echo 1 >$ac_tf1) 2>/dev/null
7876 (echo 2 >$ac_tf2) 2>/dev/null
7877 ac_val=`cat $ac_tf1 2>/dev/null`
7878 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7879 ac_cv_sys_long_file_names=no
7880 rm -rf $ac_xdir 2>/dev/null
7881 break
7883 rm -rf $ac_xdir 2>/dev/null
7884 done
7886 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7887 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7888 if test $ac_cv_sys_long_file_names = yes; then
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_LONG_FILE_NAMES 1
7892 _ACEOF
7897 #### Choose a window system.
7899 echo "$as_me:$LINENO: checking for X" >&5
7900 echo $ECHO_N "checking for X... $ECHO_C" >&6
7903 # Check whether --with-x or --without-x was given.
7904 if test "${with_x+set}" = set; then
7905 withval="$with_x"
7908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7909 if test "x$with_x" = xno; then
7910 # The user explicitly disabled X.
7911 have_x=disabled
7912 else
7913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7914 # Both variables are already set.
7915 have_x=yes
7916 else
7917 if test "${ac_cv_have_x+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 # One or both of the vars are not set, and there is no cached value.
7921 ac_x_includes=no ac_x_libraries=no
7922 rm -fr conftest.dir
7923 if mkdir conftest.dir; then
7924 cd conftest.dir
7925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7926 cat >Imakefile <<'_ACEOF'
7927 acfindx:
7928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7929 _ACEOF
7930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7934 for ac_extension in a so sl; do
7935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7936 test -f $ac_im_libdir/libX11.$ac_extension; then
7937 ac_im_usrlibdir=$ac_im_libdir; break
7939 done
7940 # Screen out bogus values from the imake configuration. They are
7941 # bogus both because they are the default anyway, and because
7942 # using them would break gcc on systems where it needs fixed includes.
7943 case $ac_im_incroot in
7944 /usr/include) ;;
7945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7946 esac
7947 case $ac_im_usrlibdir in
7948 /usr/lib | /lib) ;;
7949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7950 esac
7952 cd ..
7953 rm -fr conftest.dir
7956 # Standard set of common directories for X headers.
7957 # Check X11 before X11Rn because it is often a symlink to the current release.
7958 ac_x_header_dirs='
7959 /usr/X11/include
7960 /usr/X11R6/include
7961 /usr/X11R5/include
7962 /usr/X11R4/include
7964 /usr/include/X11
7965 /usr/include/X11R6
7966 /usr/include/X11R5
7967 /usr/include/X11R4
7969 /usr/local/X11/include
7970 /usr/local/X11R6/include
7971 /usr/local/X11R5/include
7972 /usr/local/X11R4/include
7974 /usr/local/include/X11
7975 /usr/local/include/X11R6
7976 /usr/local/include/X11R5
7977 /usr/local/include/X11R4
7979 /usr/X386/include
7980 /usr/x386/include
7981 /usr/XFree86/include/X11
7983 /usr/include
7984 /usr/local/include
7985 /usr/unsupported/include
7986 /usr/athena/include
7987 /usr/local/x11r5/include
7988 /usr/lpp/Xamples/include
7990 /usr/openwin/include
7991 /usr/openwin/share/include'
7993 if test "$ac_x_includes" = no; then
7994 # Guess where to find include files, by looking for Intrinsic.h.
7995 # First, try using that file with no special directory specified.
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <X11/Intrinsic.h>
8003 _ACEOF
8004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev/null; then
8012 if test -s conftest.err; then
8013 ac_cpp_err=$ac_c_preproc_warn_flag
8014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8015 else
8016 ac_cpp_err=
8018 else
8019 ac_cpp_err=yes
8021 if test -z "$ac_cpp_err"; then
8022 # We can compile using X headers with no special include directory.
8023 ac_x_includes=
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 for ac_dir in $ac_x_header_dirs; do
8029 if test -r "$ac_dir/X11/Intrinsic.h"; then
8030 ac_x_includes=$ac_dir
8031 break
8033 done
8035 rm -f conftest.err conftest.$ac_ext
8036 fi # $ac_x_includes = no
8038 if test "$ac_x_libraries" = no; then
8039 # Check for the libraries.
8040 # See if we find them without any special options.
8041 # Don't add to $LIBS permanently.
8042 ac_save_LIBS=$LIBS
8043 LIBS="-lXt $LIBS"
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Intrinsic.h>
8052 main ()
8054 XtMalloc (0)
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 LIBS=$ac_save_LIBS
8082 # We can link X programs with no special library path.
8083 ac_x_libraries=
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 LIBS=$ac_save_LIBS
8089 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8091 # Don't even attempt the hair of trying to link an X program!
8092 for ac_extension in a so sl; do
8093 if test -r $ac_dir/libXt.$ac_extension; then
8094 ac_x_libraries=$ac_dir
8095 break 2
8097 done
8098 done
8100 rm -f conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 fi # $ac_x_libraries = no
8104 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8105 # Didn't find X anywhere. Cache the known absence of X.
8106 ac_cv_have_x="have_x=no"
8107 else
8108 # Record where we found X for the cache.
8109 ac_cv_have_x="have_x=yes \
8110 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8115 eval "$ac_cv_have_x"
8116 fi # $with_x != no
8118 if test "$have_x" != yes; then
8119 echo "$as_me:$LINENO: result: $have_x" >&5
8120 echo "${ECHO_T}$have_x" >&6
8121 no_x=yes
8122 else
8123 # If each of the values was on the command line, it overrides each guess.
8124 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8125 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8126 # Update the cache value to reflect the command line values.
8127 ac_cv_have_x="have_x=yes \
8128 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8129 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8130 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8133 if test "$no_x" = yes; then
8134 window_system=none
8135 else
8136 window_system=x11
8139 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8140 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8141 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8142 x_default_search_path=""
8143 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8144 x_search_path="\
8145 ${x_library}/X11/%L/%T/%N%C%S:\
8146 ${x_library}/X11/%l/%T/%N%C%S:\
8147 ${x_library}/X11/%T/%N%C%S:\
8148 ${x_library}/X11/%L/%T/%N%S:\
8149 ${x_library}/X11/%l/%T/%N%S:\
8150 ${x_library}/X11/%T/%N%S"
8151 if test x"${x_default_search_path}" = x; then
8152 x_default_search_path=${x_search_path}
8153 else
8154 x_default_search_path="${x_search_path}:${x_default_search_path}"
8156 done
8158 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8159 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8162 if test x"${x_includes}" = x; then
8163 bitmapdir=/usr/include/X11/bitmaps
8164 else
8165 # accumulate include directories that have X11 bitmap subdirectories
8166 bmd_acc="dummyval"
8167 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8168 if test -d "${bmd}/X11/bitmaps"; then
8169 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8171 if test -d "${bmd}/bitmaps"; then
8172 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8174 done
8175 if test ${bmd_acc} != "dummyval"; then
8176 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8180 case "${window_system}" in
8181 x11 )
8182 HAVE_X_WINDOWS=yes
8183 HAVE_X11=yes
8184 case "${with_x_toolkit}" in
8185 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8186 motif ) USE_X_TOOLKIT=MOTIF ;;
8187 gtk ) with_gtk=yes
8188 USE_X_TOOLKIT=none ;;
8189 no ) USE_X_TOOLKIT=none ;;
8190 * ) USE_X_TOOLKIT=maybe ;;
8191 esac
8193 none )
8194 HAVE_X_WINDOWS=no
8195 HAVE_X11=no
8196 USE_X_TOOLKIT=none
8198 esac
8200 ### If we're using X11, we should use the X menu package.
8201 HAVE_MENUS=no
8202 case ${HAVE_X11} in
8203 yes ) HAVE_MENUS=yes ;;
8204 esac
8206 if test "${opsys}" = "hpux9"; then
8207 case "${x_libraries}" in
8208 *X11R4* )
8209 opsysfile="s/hpux9-x11r4.h"
8211 esac
8214 if test "${opsys}" = "hpux9shr"; then
8215 case "${x_libraries}" in
8216 *X11R4* )
8217 opsysfile="s/hpux9shxr4.h"
8219 esac
8222 ### Compute the unexec source name from the object name.
8223 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8225 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8226 # Assume not, until told otherwise.
8227 GNU_MALLOC=yes
8228 doug_lea_malloc=yes
8229 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8230 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8231 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8242 #define malloc_get_state innocuous_malloc_get_state
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char malloc_get_state (); below.
8246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8247 <limits.h> exists even on freestanding compilers. */
8249 #ifdef __STDC__
8250 # include <limits.h>
8251 #else
8252 # include <assert.h>
8253 #endif
8255 #undef malloc_get_state
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 #ifdef __cplusplus
8259 extern "C"
8261 #endif
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8264 char malloc_get_state ();
8265 /* The GNU C library defines this for functions which it implements
8266 to always fail with ENOSYS. Some functions are actually named
8267 something starting with __ and the normal name is an alias. */
8268 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8269 choke me
8270 #else
8271 char (*f) () = malloc_get_state;
8272 #endif
8273 #ifdef __cplusplus
8275 #endif
8278 main ()
8280 return f != malloc_get_state;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_func_malloc_get_state=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_cv_func_malloc_get_state=no
8314 rm -f conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8318 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8319 if test $ac_cv_func_malloc_get_state = yes; then
8321 else
8322 doug_lea_malloc=no
8325 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8326 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8327 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define malloc_set_state innocuous_malloc_set_state
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char malloc_set_state (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8345 #ifdef __STDC__
8346 # include <limits.h>
8347 #else
8348 # include <assert.h>
8349 #endif
8351 #undef malloc_set_state
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 #ifdef __cplusplus
8355 extern "C"
8357 #endif
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8360 char malloc_set_state ();
8361 /* The GNU C library defines this for functions which it implements
8362 to always fail with ENOSYS. Some functions are actually named
8363 something starting with __ and the normal name is an alias. */
8364 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8365 choke me
8366 #else
8367 char (*f) () = malloc_set_state;
8368 #endif
8369 #ifdef __cplusplus
8371 #endif
8374 main ()
8376 return f != malloc_set_state;
8378 return 0;
8380 _ACEOF
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_func_malloc_set_state=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_func_malloc_set_state=no
8410 rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8414 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8415 if test $ac_cv_func_malloc_set_state = yes; then
8417 else
8418 doug_lea_malloc=no
8421 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8422 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8423 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 extern void (* __after_morecore_hook)();
8434 main ()
8436 __after_morecore_hook = 0
8438 return 0;
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 emacs_cv_var___after_morecore_hook=yes
8464 else
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 emacs_cv_var___after_morecore_hook=no
8470 rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8474 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8475 if test $emacs_cv_var___after_morecore_hook = no; then
8476 doug_lea_malloc=no
8478 if test "${system_malloc}" = "yes"; then
8479 GNU_MALLOC=no
8480 GNU_MALLOC_reason="
8481 (The GNU allocators don't work with this system configuration.)"
8483 if test "$doug_lea_malloc" = "yes" ; then
8484 if test "$GNU_MALLOC" = yes ; then
8485 GNU_MALLOC_reason="
8486 (Using Doug Lea's new malloc from the GNU C Library.)"
8489 cat >>confdefs.h <<\_ACEOF
8490 #define DOUG_LEA_MALLOC 1
8491 _ACEOF
8495 if test x"${REL_ALLOC}" = x; then
8496 REL_ALLOC=${GNU_MALLOC}
8502 for ac_header in stdlib.h unistd.h
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo "$as_me:$LINENO: checking for $ac_header" >&5
8507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 else
8514 # Is the header compilable?
8515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_header_compiler=no
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <$ac_header>
8569 _ACEOF
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev/null; then
8578 if test -s conftest.err; then
8579 ac_cpp_err=$ac_c_preproc_warn_flag
8580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8581 else
8582 ac_cpp_err=
8584 else
8585 ac_cpp_err=yes
8587 if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_preproc=no
8595 rm -f conftest.err conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8599 # So? What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8622 cat <<\_ASBOX
8623 ## ------------------------------------------ ##
8624 ## Report this to the AC_PACKAGE_NAME lists. ##
8625 ## ------------------------------------------ ##
8626 _ASBOX
8628 sed "s/^/$as_me: WARNING: /" >&2
8630 esac
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 eval "$as_ac_Header=\$ac_header_preproc"
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645 _ACEOF
8649 done
8652 for ac_func in getpagesize
8654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655 echo "$as_me:$LINENO: checking for $ac_func" >&5
8656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_var+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8668 #define $ac_func innocuous_$ac_func
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char $ac_func (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8675 #ifdef __STDC__
8676 # include <limits.h>
8677 #else
8678 # include <assert.h>
8679 #endif
8681 #undef $ac_func
8683 /* Override any gcc2 internal prototype to avoid an error. */
8684 #ifdef __cplusplus
8685 extern "C"
8687 #endif
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690 char $ac_func ();
8691 /* The GNU C library defines this for functions which it implements
8692 to always fail with ENOSYS. Some functions are actually named
8693 something starting with __ and the normal name is an alias. */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8695 choke me
8696 #else
8697 char (*f) () = $ac_func;
8698 #endif
8699 #ifdef __cplusplus
8701 #endif
8704 main ()
8706 return f != $ac_func;
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_var=yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_var=no"
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8748 _ACEOF
8751 done
8753 echo "$as_me:$LINENO: checking for working mmap" >&5
8754 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_mmap_fixed_mapped=no
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 /* malloc might have been renamed as rpl_malloc. */
8769 #undef malloc
8771 /* Thanks to Mike Haertel and Jim Avera for this test.
8772 Here is a matrix of mmap possibilities:
8773 mmap private not fixed
8774 mmap private fixed at somewhere currently unmapped
8775 mmap private fixed at somewhere already mapped
8776 mmap shared not fixed
8777 mmap shared fixed at somewhere currently unmapped
8778 mmap shared fixed at somewhere already mapped
8779 For private mappings, we should verify that changes cannot be read()
8780 back from the file, nor mmap's back from the file at a different
8781 address. (There have been systems where private was not correctly
8782 implemented like the infamous i386 svr4.0, and systems where the
8783 VM page cache was not coherent with the file system buffer cache
8784 like early versions of FreeBSD and possibly contemporary NetBSD.)
8785 For shared mappings, we should conversely verify that changes get
8786 propagated back to all the places they're supposed to be.
8788 Grep wants private fixed already mapped.
8789 The main things grep needs to know about mmap are:
8790 * does it exist and is it safe to write into the mmap'd area
8791 * how to use it (BSD variants) */
8793 #include <fcntl.h>
8794 #include <sys/mman.h>
8796 #if !STDC_HEADERS && !HAVE_STDLIB_H
8797 char *malloc ();
8798 #endif
8800 /* This mess was copied from the GNU getpagesize.h. */
8801 #if !HAVE_GETPAGESIZE
8802 /* Assume that all systems that can run configure have sys/param.h. */
8803 # if !HAVE_SYS_PARAM_H
8804 # define HAVE_SYS_PARAM_H 1
8805 # endif
8807 # ifdef _SC_PAGESIZE
8808 # define getpagesize() sysconf(_SC_PAGESIZE)
8809 # else /* no _SC_PAGESIZE */
8810 # if HAVE_SYS_PARAM_H
8811 # include <sys/param.h>
8812 # ifdef EXEC_PAGESIZE
8813 # define getpagesize() EXEC_PAGESIZE
8814 # else /* no EXEC_PAGESIZE */
8815 # ifdef NBPG
8816 # define getpagesize() NBPG * CLSIZE
8817 # ifndef CLSIZE
8818 # define CLSIZE 1
8819 # endif /* no CLSIZE */
8820 # else /* no NBPG */
8821 # ifdef NBPC
8822 # define getpagesize() NBPC
8823 # else /* no NBPC */
8824 # ifdef PAGESIZE
8825 # define getpagesize() PAGESIZE
8826 # endif /* PAGESIZE */
8827 # endif /* no NBPC */
8828 # endif /* no NBPG */
8829 # endif /* no EXEC_PAGESIZE */
8830 # else /* no HAVE_SYS_PARAM_H */
8831 # define getpagesize() 8192 /* punt totally */
8832 # endif /* no HAVE_SYS_PARAM_H */
8833 # endif /* no _SC_PAGESIZE */
8835 #endif /* no HAVE_GETPAGESIZE */
8838 main ()
8840 char *data, *data2, *data3;
8841 int i, pagesize;
8842 int fd;
8844 pagesize = getpagesize ();
8846 /* First, make a file with some known garbage in it. */
8847 data = (char *) malloc (pagesize);
8848 if (!data)
8849 exit (1);
8850 for (i = 0; i < pagesize; ++i)
8851 *(data + i) = rand ();
8852 umask (0);
8853 fd = creat ("conftest.mmap", 0600);
8854 if (fd < 0)
8855 exit (1);
8856 if (write (fd, data, pagesize) != pagesize)
8857 exit (1);
8858 close (fd);
8860 /* Next, try to mmap the file at a fixed address which already has
8861 something else allocated at it. If we can, also make sure that
8862 we see the same garbage. */
8863 fd = open ("conftest.mmap", O_RDWR);
8864 if (fd < 0)
8865 exit (1);
8866 data2 = (char *) malloc (2 * pagesize);
8867 if (!data2)
8868 exit (1);
8869 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8872 exit (1);
8873 for (i = 0; i < pagesize; ++i)
8874 if (*(data + i) != *(data2 + i))
8875 exit (1);
8877 /* Finally, make sure that changes to the mapped area do not
8878 percolate back to the file as seen by read(). (This is a bug on
8879 some variants of i386 svr4.0.) */
8880 for (i = 0; i < pagesize; ++i)
8881 *(data2 + i) = *(data2 + i) + 1;
8882 data3 = (char *) malloc (pagesize);
8883 if (!data3)
8884 exit (1);
8885 if (read (fd, data3, pagesize) != pagesize)
8886 exit (1);
8887 for (i = 0; i < pagesize; ++i)
8888 if (*(data + i) != *(data3 + i))
8889 exit (1);
8890 close (fd);
8891 exit (0);
8893 _ACEOF
8894 rm -f conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_func_mmap_fixed_mapped=yes
8906 else
8907 echo "$as_me: program exited with status $ac_status" >&5
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ( exit $ac_status )
8912 ac_cv_func_mmap_fixed_mapped=no
8914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8921 cat >>confdefs.h <<\_ACEOF
8922 #define HAVE_MMAP 1
8923 _ACEOF
8926 rm -f conftest.mmap
8928 if test $use_mmap_for_buffers = yes; then
8929 REL_ALLOC=no
8932 LIBS="$libsrc_libs $LIBS"
8935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8936 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8937 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-ldnet $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char dnet_ntoa ();
8957 main ()
8959 dnet_ntoa ();
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_lib_dnet_dnet_ntoa=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_cv_lib_dnet_dnet_ntoa=no
8993 rm -f conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_lib_save_LIBS
8997 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8998 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8999 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_LIBDNET 1
9002 _ACEOF
9004 LIBS="-ldnet $LIBS"
9009 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9010 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9011 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lXbsd $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9025 main ()
9027 main ();
9029 return 0;
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_Xbsd_main=yes
9055 else
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_Xbsd_main=no
9061 rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9066 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9067 if test $ac_cv_lib_Xbsd_main = yes; then
9068 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9073 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9074 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9075 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lpthreads $LIBS"
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 /* Override any gcc2 internal prototype to avoid an error. */
9088 #ifdef __cplusplus
9089 extern "C"
9090 #endif
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9093 char cma_open ();
9095 main ()
9097 cma_open ();
9099 return 0;
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_cv_lib_pthreads_cma_open=yes
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_cv_lib_pthreads_cma_open=no
9131 rm -f conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9136 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9137 if test $ac_cv_lib_pthreads_cma_open = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_LIBPTHREADS 1
9140 _ACEOF
9142 LIBS="-lpthreads $LIBS"
9147 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9148 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9149 if test -d /usr/X386/include; then
9150 HAVE_XFREE386=yes
9151 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9152 else
9153 HAVE_XFREE386=no
9155 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9156 echo "${ECHO_T}$HAVE_XFREE386" >&6
9159 case ${host_os} in
9160 aix*)
9161 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9162 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9163 if test "${gdb_cv_bigtoc+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9167 case $GCC in
9168 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9169 *) gdb_cv_bigtoc=-bbigtoc ;;
9170 esac
9172 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9181 main ()
9183 int i;
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 gdb_cv_bigtoc=
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9222 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9224 esac
9226 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9227 # used for the tests that follow. We set them back to REAL_CFLAGS and
9228 # REAL_CPPFLAGS later on.
9230 REAL_CPPFLAGS="$CPPFLAGS"
9232 if test "${HAVE_X11}" = "yes"; then
9233 DEFS="$C_SWITCH_X_SITE $DEFS"
9234 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9235 LIBS="$LIBX $LIBS"
9236 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9237 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9239 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9240 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9241 # but it's more convenient here to set LD_RUN_PATH
9242 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9243 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9244 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9245 export LD_RUN_PATH
9248 if test "${opsys}" = "gnu-linux"; then
9249 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9250 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9259 main ()
9261 XOpenDisplay ("foo");
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 xlinux_first_failure=no
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 xlinux_first_failure=yes
9295 rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 if test "${xlinux_first_failure}" = "yes"; then
9298 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9299 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9300 OLD_CPPFLAGS="$CPPFLAGS"
9301 OLD_LIBS="$LIBS"
9302 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9303 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9304 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9305 LIBS="$LIBS -b i486-linuxaout"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9314 main ()
9316 XOpenDisplay ("foo");
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext conftest$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 xlinux_second_failure=no
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 xlinux_second_failure=yes
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 if test "${xlinux_second_failure}" = "yes"; then
9353 # If we get the same failure with -b, there is no use adding -b.
9354 # So take it out. This plays safe.
9355 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9356 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9357 CPPFLAGS="$OLD_CPPFLAGS"
9358 LIBS="$OLD_LIBS"
9359 echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9361 else
9362 echo "$as_me:$LINENO: result: yes" >&5
9363 echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367 echo "${ECHO_T}no" >&6
9371 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9372 # header files included from there.
9373 echo "$as_me:$LINENO: checking for Xkb" >&5
9374 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <X11/Xlib.h>
9382 #include <X11/XKBlib.h>
9384 main ()
9386 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 emacs_xkb=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 emacs_xkb=no
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9423 echo "${ECHO_T}$emacs_xkb" >&6
9424 if test $emacs_xkb = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_XKBGETKEYBOARD 1
9428 _ACEOF
9436 for ac_func in XrmSetDatabase XScreenResourceString \
9437 XScreenNumberOfScreen XSetWMProtocols
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9466 #undef $ac_func
9468 /* Override any gcc2 internal prototype to avoid an error. */
9469 #ifdef __cplusplus
9470 extern "C"
9472 #endif
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9475 char $ac_func ();
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480 choke me
9481 #else
9482 char (*f) () = $ac_func;
9483 #endif
9484 #ifdef __cplusplus
9486 #endif
9489 main ()
9491 return f != $ac_func;
9493 return 0;
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 eval "$as_ac_var=no"
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9536 done
9540 if test "${window_system}" = "x11"; then
9541 echo "$as_me:$LINENO: checking X11 version 6" >&5
9542 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9543 if test "${emacs_cv_x11_version_6+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 #include <X11/Xlib.h>
9554 main ()
9556 #if XlibSpecificationRelease < 6
9557 fail;
9558 #endif
9561 return 0;
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 emacs_cv_x11_version_6=yes
9587 else
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 emacs_cv_x11_version_6=no
9593 rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9597 if test $emacs_cv_x11_version_6 = yes; then
9598 echo "$as_me:$LINENO: result: 6 or newer" >&5
9599 echo "${ECHO_T}6 or newer" >&6
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_X11R6 1
9603 _ACEOF
9605 else
9606 echo "$as_me:$LINENO: result: before 6" >&5
9607 echo "${ECHO_T}before 6" >&6
9611 if test "${window_system}" = "x11"; then
9612 echo "$as_me:$LINENO: checking X11 version 5" >&5
9613 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9614 if test "${emacs_cv_x11_version_5+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <X11/Xlib.h>
9625 main ()
9627 #if XlibSpecificationRelease < 5
9628 fail;
9629 #endif
9632 return 0;
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 emacs_cv_x11_version_5=yes
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 emacs_cv_x11_version_5=no
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9668 if test $emacs_cv_x11_version_5 = yes; then
9669 echo "$as_me:$LINENO: result: 5 or newer" >&5
9670 echo "${ECHO_T}5 or newer" >&6
9671 HAVE_X11R5=yes
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_X11R5 1
9675 _ACEOF
9677 else
9678 HAVE_X11R5=no
9679 echo "$as_me:$LINENO: result: before 5" >&5
9680 echo "${ECHO_T}before 5" >&6
9686 HAVE_GTK=no
9687 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9688 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9689 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9690 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9691 { (exit 1); exit 1; }; };
9693 GLIB_REQUIRED=2.0.1
9694 GTK_REQUIRED=2.0.1
9695 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9697 if test "X${with_pkg_config_prog}" != X; then
9698 PKG_CONFIG="${with_pkg_config_prog}"
9701 succeeded=no
9703 if test -z "$PKG_CONFIG"; then
9704 # Extract the first word of "pkg-config", so it can be a program name with args.
9705 set dummy pkg-config; ac_word=$2
9706 echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 case $PKG_CONFIG in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9727 done
9728 done
9730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9732 esac
9734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9736 if test -n "$PKG_CONFIG"; then
9737 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9738 echo "${ECHO_T}$PKG_CONFIG" >&6
9739 else
9740 echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9746 if test "$PKG_CONFIG" = "no" ; then
9747 echo "*** The pkg-config script could not be found. Make sure it is"
9748 echo "*** in your path, or give the full path to pkg-config with"
9749 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9750 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9751 else
9752 PKG_CONFIG_MIN_VERSION=0.9.0
9753 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9754 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9755 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9757 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9758 echo "$as_me:$LINENO: result: yes" >&5
9759 echo "${ECHO_T}yes" >&6
9760 succeeded=yes
9762 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9763 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9764 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9765 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9766 echo "${ECHO_T}$GTK_CFLAGS" >&6
9768 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9769 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9770 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9771 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9772 echo "${ECHO_T}$GTK_LIBS" >&6
9773 else
9774 GTK_CFLAGS=""
9775 GTK_LIBS=""
9776 ## If we have a custom action on failure, don't print errors, but
9777 ## do set a variable so people can do so.
9778 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9779 echo $GTK_PKG_ERRORS
9784 else
9785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9790 if test $succeeded = yes; then
9792 else
9793 { { 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
9794 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;}
9795 { (exit 1); exit 1; }; }
9800 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9801 CFLAGS="$CFLAGS $GTK_CFLAGS"
9802 LIBS="$GTK_LIBS $LIBS"
9803 HAVE_GTK=yes
9805 cat >>confdefs.h <<\_ACEOF
9806 #define HAVE_GTK 1
9807 _ACEOF
9809 USE_X_TOOLKIT=none
9811 if test "$with_toolkit_scroll_bars" != no; then
9812 with_toolkit_scroll_bars=yes
9815 HAVE_GTK_MULTIDISPLAY=no
9817 for ac_func in gdk_display_open
9819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_func" >&5
9821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_var+set}\" = set"; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define $ac_func innocuous_$ac_func
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9846 #undef $ac_func
9848 /* Override any gcc2 internal prototype to avoid an error. */
9849 #ifdef __cplusplus
9850 extern "C"
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char $ac_func ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9860 choke me
9861 #else
9862 char (*f) () = $ac_func;
9863 #endif
9864 #ifdef __cplusplus
9866 #endif
9869 main ()
9871 return f != $ac_func;
9873 return 0;
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 eval "$as_ac_var=yes"
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 eval "$as_ac_var=no"
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9910 if test `eval echo '${'$as_ac_var'}'` = yes; then
9911 cat >>confdefs.h <<_ACEOF
9912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9913 _ACEOF
9914 HAVE_GTK_MULTIDISPLAY=yes
9916 done
9918 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_GTK_MULTIDISPLAY 1
9922 _ACEOF
9925 HAVE_GTK_FILE_SELECTION=no
9927 for ac_func in gtk_file_selection_new
9929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9930 echo "$as_me:$LINENO: checking for $ac_func" >&5
9931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9932 if eval "test \"\${$as_ac_var+set}\" = set"; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9943 #define $ac_func innocuous_$ac_func
9945 /* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char $ac_func (); below.
9947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9948 <limits.h> exists even on freestanding compilers. */
9950 #ifdef __STDC__
9951 # include <limits.h>
9952 #else
9953 # include <assert.h>
9954 #endif
9956 #undef $ac_func
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 #ifdef __cplusplus
9960 extern "C"
9962 #endif
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9965 char $ac_func ();
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 choke me
9971 #else
9972 char (*f) () = $ac_func;
9973 #endif
9974 #ifdef __cplusplus
9976 #endif
9979 main ()
9981 return f != $ac_func;
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 eval "$as_ac_var=yes"
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 eval "$as_ac_var=no"
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10020 if test `eval echo '${'$as_ac_var'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10023 _ACEOF
10024 HAVE_GTK_FILE_SELECTION=yes
10026 done
10029 HAVE_GTK_FILE_CHOOSER=no
10031 for ac_func in gtk_file_chooser_dialog_new
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10060 #undef $ac_func
10062 /* Override any gcc2 internal prototype to avoid an error. */
10063 #ifdef __cplusplus
10064 extern "C"
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074 choke me
10075 #else
10076 char (*f) () = $ac_func;
10077 #endif
10078 #ifdef __cplusplus
10080 #endif
10083 main ()
10085 return f != $ac_func;
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128 HAVE_GTK_FILE_CHOOSER=yes
10130 done
10133 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10134 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_GTK_FILE_BOTH 1
10138 _ACEOF
10142 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10143 HAVE_GTK_AND_PTHREAD=no
10145 for ac_header in pthread.h
10147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo "$as_me:$LINENO: checking for $ac_header" >&5
10150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10156 else
10157 # Is the header compilable?
10158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #include <$ac_header>
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_header_compiler=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_header_compiler=no
10198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10200 echo "${ECHO_T}$ac_header_compiler" >&6
10202 # Is the header present?
10203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <$ac_header>
10212 _ACEOF
10213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null; then
10221 if test -s conftest.err; then
10222 ac_cpp_err=$ac_c_preproc_warn_flag
10223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10224 else
10225 ac_cpp_err=
10227 else
10228 ac_cpp_err=yes
10230 if test -z "$ac_cpp_err"; then
10231 ac_header_preproc=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ac_header_preproc=no
10238 rm -f conftest.err conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10240 echo "${ECHO_T}$ac_header_preproc" >&6
10242 # So? What about this header?
10243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10244 yes:no: )
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10249 ac_header_preproc=yes
10251 no:yes:* )
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10265 cat <<\_ASBOX
10266 ## ------------------------------------------ ##
10267 ## Report this to the AC_PACKAGE_NAME lists. ##
10268 ## ------------------------------------------ ##
10269 _ASBOX
10271 sed "s/^/$as_me: WARNING: /" >&2
10273 esac
10274 echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 eval "$as_ac_Header=\$ac_header_preproc"
10281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10286 cat >>confdefs.h <<_ACEOF
10287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 _ACEOF
10292 done
10294 if test "$ac_cv_header_pthread_h"; then
10295 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10296 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10297 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lpthread $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315 char pthread_self ();
10317 main ()
10319 pthread_self ();
10321 return 0;
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_lib_pthread_pthread_self=yes
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_pthread_pthread_self=no
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10358 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10359 if test $ac_cv_lib_pthread_pthread_self = yes; then
10360 HAVE_GTK_AND_PTHREAD=yes
10364 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10365 GTK_LIBS="$GTK_LIBS -lpthread"
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_GTK_AND_PTHREAD 1
10369 _ACEOF
10375 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10376 if test x"${HAVE_X11R5}" = xyes; then
10377 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10378 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10379 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h. */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10389 #include <X11/Intrinsic.h>
10390 #include <X11/Xaw/Simple.h>
10392 main ()
10396 return 0;
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -z "$ac_c_werror_flag"
10409 || test ! -s conftest.err'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 emacs_cv_x11_version_5_with_xaw=yes
10422 else
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 emacs_cv_x11_version_5_with_xaw=no
10428 rm -f conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10432 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10433 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10434 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10435 USE_X_TOOLKIT=LUCID
10436 else
10437 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10438 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10439 USE_X_TOOLKIT=none
10441 else
10442 USE_X_TOOLKIT=none
10446 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10448 if test "${USE_X_TOOLKIT}" != "none"; then
10449 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10450 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10451 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <X11/Intrinsic.h>
10462 main ()
10464 #if XtSpecificationRelease < 6
10465 fail;
10466 #endif
10469 return 0;
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 emacs_cv_x11_toolkit_version_6=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 emacs_cv_x11_toolkit_version_6=no
10501 rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10505 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10506 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10507 echo "$as_me:$LINENO: result: 6 or newer" >&5
10508 echo "${ECHO_T}6 or newer" >&6
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_X11XTR6 1
10512 _ACEOF
10514 else
10515 echo "$as_me:$LINENO: result: before 6" >&5
10516 echo "${ECHO_T}before 6" >&6
10519 OLDLIBS="$LIBS"
10520 if test x$HAVE_X11XTR6 = xyes; then
10521 LIBS="-lXt -lSM -lICE $LIBS"
10522 else
10523 LIBS="-lXt $LIBS"
10526 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10527 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10528 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lXmu $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char XmuConvertStandardSelection ();
10548 main ()
10550 XmuConvertStandardSelection ();
10552 return 0;
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10584 rm -f conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10589 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10590 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_LIBXMU 1
10593 _ACEOF
10595 LIBS="-lXmu $LIBS"
10599 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10602 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10603 if test "${HAVE_X11}" = "yes"; then
10604 if test "${USE_X_TOOLKIT}" != "none"; then
10606 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10607 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10608 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-lXext $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char XShapeQueryExtension ();
10628 main ()
10630 XShapeQueryExtension ();
10632 return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_lib_Xext_XShapeQueryExtension=yes
10658 else
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_lib_Xext_XShapeQueryExtension=no
10664 rm -f conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10669 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10670 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define HAVE_LIBXEXT 1
10673 _ACEOF
10675 LIBS="-lXext $LIBS"
10682 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10683 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10684 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10685 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <Xm/Xm.h>
10696 main ()
10698 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10699 int x = 5;
10700 #else
10701 Motif version prior to 2.1.
10702 #endif
10704 return 0;
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 emacs_cv_motif_version_2_1=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 emacs_cv_motif_version_2_1=no
10736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10738 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10739 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10740 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10741 if test $emacs_cv_motif_version_2_1 = yes; then
10742 HAVE_LIBXP=no
10744 cat >>confdefs.h <<\_ACEOF
10745 #define HAVE_MOTIF_2_1 1
10746 _ACEOF
10748 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10749 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10750 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lXp $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10762 /* Override any gcc2 internal prototype to avoid an error. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 /* We use char because int might match the return type of a gcc2
10767 builtin and then its argument prototype would still apply. */
10768 char XpCreateContext ();
10770 main ()
10772 XpCreateContext ();
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10779 (eval $ac_link) 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag"
10787 || test ! -s conftest.err'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_cv_lib_Xp_XpCreateContext=yes
10800 else
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_cv_lib_Xp_XpCreateContext=no
10806 rm -f conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10810 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10811 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10812 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10813 HAVE_LIBXP=yes
10816 if test ${HAVE_LIBXP} = yes; then
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_LIBXP 1
10820 _ACEOF
10823 else
10824 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10825 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10826 if test "${emacs_cv_lesstif+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 # We put this in CFLAGS temporarily to precede other -I options
10830 # that might be in CFLAGS temporarily.
10831 # We put this in CPPFLAGS where it precedes the other -I options.
10832 OLD_CPPFLAGS=$CPPFLAGS
10833 OLD_CFLAGS=$CFLAGS
10834 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10835 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10844 main ()
10846 int x = 5;
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag"
10861 || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 emacs_cv_lesstif=yes
10874 else
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 emacs_cv_lesstif=no
10880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10882 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10883 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10884 if test $emacs_cv_lesstif = yes; then
10885 # Make sure this -I option remains in CPPFLAGS after it is set
10886 # back to REAL_CPPFLAGS.
10887 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10888 # have those other -I options anyway. Ultimately, having this
10889 # directory ultimately in CPPFLAGS will be enough.
10890 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10891 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10892 else
10893 CFLAGS=$OLD_CFLAGS
10894 CPPFLAGS=$OLD_CPPFLAGS
10899 ### Is -lXaw3d available?
10900 HAVE_XAW3D=no
10901 if test "${HAVE_X11}" = "yes"; then
10902 if test "${USE_X_TOOLKIT}" != "none"; then
10903 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10904 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10905 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <X11/Xaw3d/Scrollbar.h>
10915 _ACEOF
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null; then
10924 if test -s conftest.err; then
10925 ac_cpp_err=$ac_c_preproc_warn_flag
10926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10927 else
10928 ac_cpp_err=
10930 else
10931 ac_cpp_err=yes
10933 if test -z "$ac_cpp_err"; then
10934 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10941 rm -f conftest.err conftest.$ac_ext
10943 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10944 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10945 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10946 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10947 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10948 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-lXaw3d $LIBS"
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10960 /* Override any gcc2 internal prototype to avoid an error. */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 /* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10966 char XawScrollbarSetThumb ();
10968 main ()
10970 XawScrollbarSetThumb ();
10972 return 0;
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest$ac_exeext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11004 rm -f conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11008 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11009 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11010 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11011 HAVE_XAW3D=yes
11017 if test "${HAVE_XAW3D}" = "yes"; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_XAW3D 1
11021 _ACEOF
11029 USE_TOOLKIT_SCROLL_BARS=no
11030 if test "${with_toolkit_scroll_bars}" != "no"; then
11031 if test "${USE_X_TOOLKIT}" != "none"; then
11032 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11033 cat >>confdefs.h <<\_ACEOF
11034 #define USE_TOOLKIT_SCROLL_BARS 1
11035 _ACEOF
11037 HAVE_XAW3D=no
11038 USE_TOOLKIT_SCROLL_BARS=yes
11039 elif test "${HAVE_XAW3D}" = "yes"; then
11040 cat >>confdefs.h <<\_ACEOF
11041 #define USE_TOOLKIT_SCROLL_BARS 1
11042 _ACEOF
11044 USE_TOOLKIT_SCROLL_BARS=yes
11046 elif test "${HAVE_GTK}" = "yes"; then
11047 cat >>confdefs.h <<\_ACEOF
11048 #define USE_TOOLKIT_SCROLL_BARS 1
11049 _ACEOF
11051 USE_TOOLKIT_SCROLL_BARS=yes
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11062 #include <X11/Xlib.h>
11063 #include <X11/Xresource.h>
11065 main ()
11067 XIMProc callback;
11069 return 0;
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag"
11082 || test ! -s conftest.err'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 HAVE_XIM=yes
11096 cat >>confdefs.h <<\_ACEOF
11097 #define HAVE_XIM 1
11098 _ACEOF
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 HAVE_XIM=no
11106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11109 if test "${with_xim}" != "no"; then
11111 cat >>confdefs.h <<\_ACEOF
11112 #define USE_XIM 1
11113 _ACEOF
11118 if test "${HAVE_XIM}" != "no"; then
11119 late_CFLAGS=$CFLAGS
11120 if test "$GCC" = yes; then
11121 CFLAGS="$CFLAGS --pedantic-errors"
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11130 #include <X11/Xlib.h>
11131 #include <X11/Xresource.h>
11133 main ()
11135 Display *display;
11136 XrmDatabase db;
11137 char *res_name;
11138 char *res_class;
11139 XIMProc callback;
11140 XPointer *client_data;
11141 #ifndef __GNUC__
11142 /* If we're not using GCC, it's probably not XFree86, and this is
11143 probably right, but we can't use something like --pedantic-errors. */
11144 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11145 char*, XIMProc, XPointer*);
11146 #endif
11147 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11148 client_data);
11150 return 0;
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag"
11163 || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 emacs_cv_arg6_star=yes
11176 else
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11183 if test "$emacs_cv_arg6_star" = yes; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11186 _ACEOF
11188 else
11189 cat >>confdefs.h <<\_ACEOF
11190 #define XRegisterIMInstantiateCallback_arg6 XPointer
11191 _ACEOF
11194 CFLAGS=$late_CFLAGS
11197 ### Use -lXpm if available, unless `--with-xpm=no'.
11198 HAVE_XPM=no
11199 if test "${HAVE_X11}" = "yes"; then
11200 if test "${with_xpm}" != "no"; then
11201 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11202 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11203 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11204 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11208 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11209 else
11210 # Is the header compilable?
11211 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11212 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 #include <X11/xpm.h>
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_header_compiler=yes
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_header_compiler=no
11251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11253 echo "${ECHO_T}$ac_header_compiler" >&6
11255 # Is the header present?
11256 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11257 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 #include <X11/xpm.h>
11265 _ACEOF
11266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } >/dev/null; then
11274 if test -s conftest.err; then
11275 ac_cpp_err=$ac_c_preproc_warn_flag
11276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11277 else
11278 ac_cpp_err=
11280 else
11281 ac_cpp_err=yes
11283 if test -z "$ac_cpp_err"; then
11284 ac_header_preproc=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_header_preproc=no
11291 rm -f conftest.err conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11293 echo "${ECHO_T}$ac_header_preproc" >&6
11295 # So? What about this header?
11296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11297 yes:no: )
11298 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11299 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11301 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11302 ac_header_preproc=yes
11304 no:yes:* )
11305 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11310 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11312 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11314 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11316 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11318 cat <<\_ASBOX
11319 ## ------------------------------------------ ##
11320 ## Report this to the AC_PACKAGE_NAME lists. ##
11321 ## ------------------------------------------ ##
11322 _ASBOX
11324 sed "s/^/$as_me: WARNING: /" >&2
11326 esac
11327 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11328 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11329 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 ac_cv_header_X11_xpm_h=$ac_header_preproc
11334 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11335 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11338 if test $ac_cv_header_X11_xpm_h = yes; then
11339 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11340 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11341 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-lXpm -lX11 $LIBS"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11353 /* Override any gcc2 internal prototype to avoid an error. */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 /* We use char because int might match the return type of a gcc2
11358 builtin and then its argument prototype would still apply. */
11359 char XpmReadFileToPixmap ();
11361 main ()
11363 XpmReadFileToPixmap ();
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370 (eval $ac_link) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest$ac_exeext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11397 rm -f conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11401 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11402 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11403 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11404 HAVE_XPM=yes
11410 if test "${HAVE_XPM}" = "yes"; then
11411 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11412 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 #include "X11/xpm.h"
11420 #ifndef XpmReturnAllocPixels
11421 no_return_alloc_pixels
11422 #endif
11424 _ACEOF
11425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11426 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11427 HAVE_XPM=no
11428 else
11429 HAVE_XPM=yes
11431 rm -f conftest*
11434 if test "${HAVE_XPM}" = "yes"; then
11435 echo "$as_me:$LINENO: result: yes" >&5
11436 echo "${ECHO_T}yes" >&6
11437 else
11438 echo "$as_me:$LINENO: result: no" >&5
11439 echo "${ECHO_T}no" >&6
11444 if test "${HAVE_XPM}" = "yes"; then
11446 cat >>confdefs.h <<\_ACEOF
11447 #define HAVE_XPM 1
11448 _ACEOF
11453 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11454 HAVE_JPEG=no
11455 if test "${HAVE_X11}" = "yes"; then
11456 if test "${with_jpeg}" != "no"; then
11457 if test "${ac_cv_header_jerror_h+set}" = set; then
11458 echo "$as_me:$LINENO: checking for jerror.h" >&5
11459 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11460 if test "${ac_cv_header_jerror_h+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11464 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11465 else
11466 # Is the header compilable?
11467 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11468 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 $ac_includes_default
11476 #include <jerror.h>
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11480 (eval $ac_compile) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag"
11488 || test ! -s conftest.err'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_header_compiler=yes
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_header_compiler=no
11507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11509 echo "${ECHO_T}$ac_header_compiler" >&6
11511 # Is the header present?
11512 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11513 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 #include <jerror.h>
11521 _ACEOF
11522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_c_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533 else
11534 ac_cpp_err=
11536 else
11537 ac_cpp_err=yes
11539 if test -z "$ac_cpp_err"; then
11540 ac_header_preproc=yes
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_preproc=no
11547 rm -f conftest.err conftest.$ac_ext
11548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549 echo "${ECHO_T}$ac_header_preproc" >&6
11551 # So? What about this header?
11552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 yes:no: )
11554 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11555 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11557 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11558 ac_header_preproc=yes
11560 no:yes:* )
11561 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11562 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11564 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11566 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11568 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11572 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11574 cat <<\_ASBOX
11575 ## ------------------------------------------ ##
11576 ## Report this to the AC_PACKAGE_NAME lists. ##
11577 ## ------------------------------------------ ##
11578 _ASBOX
11580 sed "s/^/$as_me: WARNING: /" >&2
11582 esac
11583 echo "$as_me:$LINENO: checking for jerror.h" >&5
11584 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11585 if test "${ac_cv_header_jerror_h+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 ac_cv_header_jerror_h=$ac_header_preproc
11590 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11591 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11594 if test $ac_cv_header_jerror_h = yes; then
11595 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11596 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11597 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ljpeg $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 /* Override any gcc2 internal prototype to avoid an error. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 /* We use char because int might match the return type of a gcc2
11614 builtin and then its argument prototype would still apply. */
11615 char jpeg_destroy_compress ();
11617 main ()
11619 jpeg_destroy_compress ();
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -z "$ac_c_werror_flag"
11634 || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11651 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11653 rm -f conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11657 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11658 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11659 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11660 HAVE_JPEG=yes
11669 if test "${HAVE_JPEG}" = "yes"; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_JPEG 1
11672 _ACEOF
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 #include <jpeglib.h>
11681 version=JPEG_LIB_VERSION
11683 _ACEOF
11684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_JPEG 1
11688 _ACEOF
11690 else
11691 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11692 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11693 HAVE_JPEG=no
11695 rm -f conftest*
11700 ### Use -lpng if available, unless `--with-png=no'.
11701 HAVE_PNG=no
11702 if test "${HAVE_X11}" = "yes"; then
11703 if test "${with_png}" != "no"; then
11704 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11705 # in /usr/include/libpng.
11708 for ac_header in png.h libpng/png.h
11710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11712 echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11719 else
11720 # Is the header compilable?
11721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h. */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 $ac_includes_default
11730 #include <$ac_header>
11731 _ACEOF
11732 rm -f conftest.$ac_objext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11734 (eval $ac_compile) 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -z "$ac_c_werror_flag"
11742 || test ! -s conftest.err'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest.$ac_objext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_header_compiler=yes
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_header_compiler=no
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11763 echo "${ECHO_T}$ac_header_compiler" >&6
11765 # Is the header present?
11766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <$ac_header>
11775 _ACEOF
11776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } >/dev/null; then
11784 if test -s conftest.err; then
11785 ac_cpp_err=$ac_c_preproc_warn_flag
11786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11787 else
11788 ac_cpp_err=
11790 else
11791 ac_cpp_err=yes
11793 if test -z "$ac_cpp_err"; then
11794 ac_header_preproc=yes
11795 else
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_header_preproc=no
11801 rm -f conftest.err conftest.$ac_ext
11802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11803 echo "${ECHO_T}$ac_header_preproc" >&6
11805 # So? What about this header?
11806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11807 yes:no: )
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11812 ac_header_preproc=yes
11814 no:yes:* )
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11828 cat <<\_ASBOX
11829 ## ------------------------------------------ ##
11830 ## Report this to the AC_PACKAGE_NAME lists. ##
11831 ## ------------------------------------------ ##
11832 _ASBOX
11834 sed "s/^/$as_me: WARNING: /" >&2
11836 esac
11837 echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 eval "$as_ac_Header=\$ac_header_preproc"
11844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11851 _ACEOF
11855 done
11857 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11858 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11859 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11860 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-lpng -lz -lm $LIBS"
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11872 /* Override any gcc2 internal prototype to avoid an error. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char png_get_channels ();
11880 main ()
11882 png_get_channels ();
11884 return 0;
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_lib_png_png_get_channels=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_cv_lib_png_png_get_channels=no
11916 rm -f conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11920 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11921 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11922 if test $ac_cv_lib_png_png_get_channels = yes; then
11923 HAVE_PNG=yes
11929 if test "${HAVE_PNG}" = "yes"; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_PNG 1
11933 _ACEOF
11938 ### Use -ltiff if available, unless `--with-tiff=no'.
11939 HAVE_TIFF=no
11940 if test "${HAVE_X11}" = "yes"; then
11941 if test "${with_tiff}" != "no"; then
11942 if test "${ac_cv_header_tiffio_h+set}" = set; then
11943 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11944 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11945 if test "${ac_cv_header_tiffio_h+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11949 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11950 else
11951 # Is the header compilable?
11952 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11953 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 #include <tiffio.h>
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_header_compiler=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_header_compiler=no
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11994 echo "${ECHO_T}$ac_header_compiler" >&6
11996 # Is the header present?
11997 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11998 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 #include <tiffio.h>
12006 _ACEOF
12007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } >/dev/null; then
12015 if test -s conftest.err; then
12016 ac_cpp_err=$ac_c_preproc_warn_flag
12017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12018 else
12019 ac_cpp_err=
12021 else
12022 ac_cpp_err=yes
12024 if test -z "$ac_cpp_err"; then
12025 ac_header_preproc=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_header_preproc=no
12032 rm -f conftest.err conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12034 echo "${ECHO_T}$ac_header_preproc" >&6
12036 # So? What about this header?
12037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12038 yes:no: )
12039 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12040 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12042 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12043 ac_header_preproc=yes
12045 no:yes:* )
12046 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12047 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12049 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12051 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12053 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12055 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12057 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12059 cat <<\_ASBOX
12060 ## ------------------------------------------ ##
12061 ## Report this to the AC_PACKAGE_NAME lists. ##
12062 ## ------------------------------------------ ##
12063 _ASBOX
12065 sed "s/^/$as_me: WARNING: /" >&2
12067 esac
12068 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12069 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12070 if test "${ac_cv_header_tiffio_h+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 ac_cv_header_tiffio_h=$ac_header_preproc
12075 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12076 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12079 if test $ac_cv_header_tiffio_h = yes; then
12080 tifflibs="-lz -lm"
12081 # At least one tiff package requires the jpeg library.
12082 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12083 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12084 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12085 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-ltiff $tifflibs $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12097 /* Override any gcc2 internal prototype to avoid an error. */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 /* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103 char TIFFGetVersion ();
12105 main ()
12107 TIFFGetVersion ();
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_lib_tiff_TIFFGetVersion=yes
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_lib_tiff_TIFFGetVersion=no
12141 rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12146 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12147 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12148 HAVE_TIFF=yes
12156 if test "${HAVE_TIFF}" = "yes"; then
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_TIFF 1
12160 _ACEOF
12165 ### Use -lgif if available, unless `--with-gif=no'.
12166 HAVE_GIF=no
12167 if test "${HAVE_X11}" = "yes"; then
12168 if test "${with_gif}" != "no"; then
12169 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12170 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12171 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12172 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12176 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12177 else
12178 # Is the header compilable?
12179 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12180 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 #include <gif_lib.h>
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_header_compiler=yes
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_header_compiler=no
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12221 echo "${ECHO_T}$ac_header_compiler" >&6
12223 # Is the header present?
12224 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12225 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <gif_lib.h>
12233 _ACEOF
12234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } >/dev/null; then
12242 if test -s conftest.err; then
12243 ac_cpp_err=$ac_c_preproc_warn_flag
12244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12245 else
12246 ac_cpp_err=
12248 else
12249 ac_cpp_err=yes
12251 if test -z "$ac_cpp_err"; then
12252 ac_header_preproc=yes
12253 else
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_header_preproc=no
12259 rm -f conftest.err conftest.$ac_ext
12260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261 echo "${ECHO_T}$ac_header_preproc" >&6
12263 # So? What about this header?
12264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265 yes:no: )
12266 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12267 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12269 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12270 ac_header_preproc=yes
12272 no:yes:* )
12273 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12278 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12280 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12282 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12284 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12286 cat <<\_ASBOX
12287 ## ------------------------------------------ ##
12288 ## Report this to the AC_PACKAGE_NAME lists. ##
12289 ## ------------------------------------------ ##
12290 _ASBOX
12292 sed "s/^/$as_me: WARNING: /" >&2
12294 esac
12295 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12296 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12297 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 ac_cv_header_gif_lib_h=$ac_header_preproc
12302 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12303 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12306 if test $ac_cv_header_gif_lib_h = yes; then
12307 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12308 # Earlier versions can crash Emacs.
12309 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12310 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12311 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314 ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-lungif $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 /* Override any gcc2 internal prototype to avoid an error. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char EGifPutExtensionLast ();
12331 main ()
12333 EGifPutExtensionLast ();
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag"
12348 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_ungif_EGifPutExtensionLast=no
12367 rm -f conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12372 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12373 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12374 HAVE_GIF=yes
12382 if test "${HAVE_GIF}" = "yes"; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_GIF 1
12386 _ACEOF
12391 ### Use Mac OS X Carbon API to implement GUI.
12392 HAVE_CARBON=no
12393 if test "${with_carbon}" != "no"; then
12394 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12395 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12396 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12397 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12401 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12402 else
12403 # Is the header compilable?
12404 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12405 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 #include <Carbon/Carbon.h>
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_header_compiler=no
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12446 echo "${ECHO_T}$ac_header_compiler" >&6
12448 # Is the header present?
12449 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12450 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #include <Carbon/Carbon.h>
12458 _ACEOF
12459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } >/dev/null; then
12467 if test -s conftest.err; then
12468 ac_cpp_err=$ac_c_preproc_warn_flag
12469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12470 else
12471 ac_cpp_err=
12473 else
12474 ac_cpp_err=yes
12476 if test -z "$ac_cpp_err"; then
12477 ac_header_preproc=yes
12478 else
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_header_preproc=no
12484 rm -f conftest.err conftest.$ac_ext
12485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12486 echo "${ECHO_T}$ac_header_preproc" >&6
12488 # So? What about this header?
12489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12490 yes:no: )
12491 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12492 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12494 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12495 ac_header_preproc=yes
12497 no:yes:* )
12498 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12499 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12501 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12503 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12505 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12507 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12509 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12511 cat <<\_ASBOX
12512 ## ------------------------------------------ ##
12513 ## Report this to the AC_PACKAGE_NAME lists. ##
12514 ## ------------------------------------------ ##
12515 _ASBOX
12517 sed "s/^/$as_me: WARNING: /" >&2
12519 esac
12520 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12521 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12522 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12527 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12528 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12531 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12532 HAVE_CARBON=yes
12538 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12539 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12540 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12541 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12545 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12546 else
12547 # Is the header compilable?
12548 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12549 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 $ac_includes_default
12557 #include <malloc/malloc.h>
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_header_compiler=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_header_compiler=no
12588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12590 echo "${ECHO_T}$ac_header_compiler" >&6
12592 # Is the header present?
12593 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12594 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <malloc/malloc.h>
12602 _ACEOF
12603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } >/dev/null; then
12611 if test -s conftest.err; then
12612 ac_cpp_err=$ac_c_preproc_warn_flag
12613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12614 else
12615 ac_cpp_err=
12617 else
12618 ac_cpp_err=yes
12620 if test -z "$ac_cpp_err"; then
12621 ac_header_preproc=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_header_preproc=no
12628 rm -f conftest.err conftest.$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12630 echo "${ECHO_T}$ac_header_preproc" >&6
12632 # So? What about this header?
12633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12634 yes:no: )
12635 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12636 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12638 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12639 ac_header_preproc=yes
12641 no:yes:* )
12642 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12643 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12645 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12647 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12649 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12653 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12655 cat <<\_ASBOX
12656 ## ------------------------------------------ ##
12657 ## Report this to the AC_PACKAGE_NAME lists. ##
12658 ## ------------------------------------------ ##
12659 _ASBOX
12661 sed "s/^/$as_me: WARNING: /" >&2
12663 esac
12664 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12665 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12666 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12671 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12672 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12675 if test $ac_cv_header_malloc_malloc_h = yes; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_MALLOC_MALLOC_H 1
12679 _ACEOF
12685 if test "${HAVE_CARBON}" = "yes"; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_CARBON 1
12689 _ACEOF
12691 window_system=mac
12692 ## Specify the install directory
12693 carbon_appdir=
12694 if test "${carbon_appdir_x}" != ""; then
12695 case ${carbon_appdir_x} in
12696 y | ye | yes) carbon_appdir=/Applications ;;
12697 * ) carbon_appdir=${carbon_appdir_x} ;;
12698 esac
12700 # We also have mouse menus.
12701 HAVE_MENUS=yes
12704 ### Use session management (-lSM -lICE) if available
12705 HAVE_X_SM=no
12706 if test "${HAVE_X11}" = "yes"; then
12707 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12708 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12709 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12710 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12714 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12715 else
12716 # Is the header compilable?
12717 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12718 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 #include <X11/SM/SMlib.h>
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag"
12738 || test ! -s conftest.err'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest.$ac_objext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_header_compiler=yes
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_header_compiler=no
12757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12759 echo "${ECHO_T}$ac_header_compiler" >&6
12761 # Is the header present?
12762 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12763 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 #include <X11/SM/SMlib.h>
12771 _ACEOF
12772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } >/dev/null; then
12780 if test -s conftest.err; then
12781 ac_cpp_err=$ac_c_preproc_warn_flag
12782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12783 else
12784 ac_cpp_err=
12786 else
12787 ac_cpp_err=yes
12789 if test -z "$ac_cpp_err"; then
12790 ac_header_preproc=yes
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 ac_header_preproc=no
12797 rm -f conftest.err conftest.$ac_ext
12798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12799 echo "${ECHO_T}$ac_header_preproc" >&6
12801 # So? What about this header?
12802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803 yes:no: )
12804 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12805 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12807 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12808 ac_header_preproc=yes
12810 no:yes:* )
12811 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12812 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12814 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12816 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12818 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12820 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12822 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12824 cat <<\_ASBOX
12825 ## ------------------------------------------ ##
12826 ## Report this to the AC_PACKAGE_NAME lists. ##
12827 ## ------------------------------------------ ##
12828 _ASBOX
12830 sed "s/^/$as_me: WARNING: /" >&2
12832 esac
12833 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12834 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12835 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12840 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12841 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12844 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12845 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12846 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12847 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-lSM -lICE $LIBS"
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char SmcOpenConnection ();
12867 main ()
12869 SmcOpenConnection ();
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_SM_SmcOpenConnection=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_lib_SM_SmcOpenConnection=no
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12908 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12909 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12910 HAVE_X_SM=yes
12917 if test "${HAVE_X_SM}" = "yes"; then
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_X_SM 1
12921 _ACEOF
12923 case "$LIBS" in
12924 *-lSM*) ;;
12925 *) LIBS="-lSM -lICE $LIBS" ;;
12926 esac
12930 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12931 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12932 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12933 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <netdb.h>
12944 main ()
12946 return h_errno;
12948 return 0;
12950 _ACEOF
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12953 (eval $ac_link) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 emacs_cv_netdb_declares_h_errno=yes
12974 else
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 emacs_cv_netdb_declares_h_errno=no
12980 rm -f conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12983 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12984 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12985 if test $emacs_cv_netdb_declares_h_errno = yes; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_H_ERRNO 1
12989 _ACEOF
12993 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12994 # for constant arguments. Useless!
12995 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12996 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12997 if test "${ac_cv_working_alloca_h+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <alloca.h>
13008 main ()
13010 char *p = (char *) alloca (2 * sizeof (int));
13012 return 0;
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_working_alloca_h=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_cv_working_alloca_h=no
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13048 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13049 if test $ac_cv_working_alloca_h = yes; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define HAVE_ALLOCA_H 1
13053 _ACEOF
13057 echo "$as_me:$LINENO: checking for alloca" >&5
13058 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13059 if test "${ac_cv_func_alloca_works+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #ifdef __GNUC__
13069 # define alloca __builtin_alloca
13070 #else
13071 # ifdef _MSC_VER
13072 # include <malloc.h>
13073 # define alloca _alloca
13074 # else
13075 # if HAVE_ALLOCA_H
13076 # include <alloca.h>
13077 # else
13078 # ifdef _AIX
13079 #pragma alloca
13080 # else
13081 # ifndef alloca /* predefined by HP cc +Olibcalls */
13082 char *alloca ();
13083 # endif
13084 # endif
13085 # endif
13086 # endif
13087 #endif
13090 main ()
13092 char *p = (char *) alloca (1);
13094 return 0;
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13099 (eval $ac_link) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_func_alloca_works=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_func_alloca_works=no
13126 rm -f conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13130 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13132 if test $ac_cv_func_alloca_works = yes; then
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_ALLOCA 1
13136 _ACEOF
13138 else
13139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13140 # that cause trouble. Some versions do not even contain alloca or
13141 # contain a buggy version. If you still want to use their alloca,
13142 # use ar to extract alloca.o from them instead of compiling alloca.c.
13144 ALLOCA=alloca.$ac_objext
13146 cat >>confdefs.h <<\_ACEOF
13147 #define C_ALLOCA 1
13148 _ACEOF
13151 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13152 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13153 if test "${ac_cv_os_cray+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #if defined(CRAY) && ! defined(CRAY2)
13163 webecray
13164 #else
13165 wenotbecray
13166 #endif
13168 _ACEOF
13169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13170 $EGREP "webecray" >/dev/null 2>&1; then
13171 ac_cv_os_cray=yes
13172 else
13173 ac_cv_os_cray=no
13175 rm -f conftest*
13178 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13179 echo "${ECHO_T}$ac_cv_os_cray" >&6
13180 if test $ac_cv_os_cray = yes; then
13181 for ac_func in _getb67 GETB67 getb67; do
13182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13183 echo "$as_me:$LINENO: checking for $ac_func" >&5
13184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_var+set}\" = set"; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13196 #define $ac_func innocuous_$ac_func
13198 /* System header to define __stub macros and hopefully few prototypes,
13199 which can conflict with char $ac_func (); below.
13200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13201 <limits.h> exists even on freestanding compilers. */
13203 #ifdef __STDC__
13204 # include <limits.h>
13205 #else
13206 # include <assert.h>
13207 #endif
13209 #undef $ac_func
13211 /* Override any gcc2 internal prototype to avoid an error. */
13212 #ifdef __cplusplus
13213 extern "C"
13215 #endif
13216 /* We use char because int might match the return type of a gcc2
13217 builtin and then its argument prototype would still apply. */
13218 char $ac_func ();
13219 /* The GNU C library defines this for functions which it implements
13220 to always fail with ENOSYS. Some functions are actually named
13221 something starting with __ and the normal name is an alias. */
13222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13223 choke me
13224 #else
13225 char (*f) () = $ac_func;
13226 #endif
13227 #ifdef __cplusplus
13229 #endif
13232 main ()
13234 return f != $ac_func;
13236 return 0;
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 eval "$as_ac_var=yes"
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 eval "$as_ac_var=no"
13268 rm -f conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13273 if test `eval echo '${'$as_ac_var'}'` = yes; then
13275 cat >>confdefs.h <<_ACEOF
13276 #define CRAY_STACKSEG_END $ac_func
13277 _ACEOF
13279 break
13282 done
13285 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13286 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13287 if test "${ac_cv_c_stack_direction+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 if test "$cross_compiling" = yes; then
13291 ac_cv_c_stack_direction=0
13292 else
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 find_stack_direction ()
13302 static char *addr = 0;
13303 auto char dummy;
13304 if (addr == 0)
13306 addr = &dummy;
13307 return find_stack_direction ();
13309 else
13310 return (&dummy > addr) ? 1 : -1;
13314 main ()
13316 exit (find_stack_direction () < 0);
13318 _ACEOF
13319 rm -f conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_c_stack_direction=1
13331 else
13332 echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ( exit $ac_status )
13337 ac_cv_c_stack_direction=-1
13339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13342 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13343 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13345 cat >>confdefs.h <<_ACEOF
13346 #define STACK_DIRECTION $ac_cv_c_stack_direction
13347 _ACEOF
13353 # fmod, logb, and frexp are found in -lm on most systems.
13354 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13356 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13357 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13358 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361 ac_check_lib_save_LIBS=$LIBS
13362 LIBS="-lm $LIBS"
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13370 /* Override any gcc2 internal prototype to avoid an error. */
13371 #ifdef __cplusplus
13372 extern "C"
13373 #endif
13374 /* We use char because int might match the return type of a gcc2
13375 builtin and then its argument prototype would still apply. */
13376 char sqrt ();
13378 main ()
13380 sqrt ();
13382 return 0;
13384 _ACEOF
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_lib_m_sqrt=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_lib_m_sqrt=no
13414 rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS=$ac_check_lib_save_LIBS
13418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13419 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13420 if test $ac_cv_lib_m_sqrt = yes; then
13421 cat >>confdefs.h <<_ACEOF
13422 #define HAVE_LIBM 1
13423 _ACEOF
13425 LIBS="-lm $LIBS"
13430 # Check for mail-locking functions in a "mail" library. Probably this should
13431 # have the same check as for liblockfile below.
13433 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13434 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13435 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-lmail $LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13447 /* Override any gcc2 internal prototype to avoid an error. */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 /* We use char because int might match the return type of a gcc2
13452 builtin and then its argument prototype would still apply. */
13453 char maillock ();
13455 main ()
13457 maillock ();
13459 return 0;
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest$ac_exeext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_cv_lib_mail_maillock=yes
13485 else
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_cv_lib_mail_maillock=no
13491 rm -f conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13496 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13497 if test $ac_cv_lib_mail_maillock = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_LIBMAIL 1
13500 _ACEOF
13502 LIBS="-lmail $LIBS"
13507 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13508 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13509 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512 ac_check_lib_save_LIBS=$LIBS
13513 LIBS="-llockfile $LIBS"
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 /* Override any gcc2 internal prototype to avoid an error. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526 builtin and then its argument prototype would still apply. */
13527 char maillock ();
13529 main ()
13531 maillock ();
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_lib_lockfile_maillock=yes
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 ac_cv_lib_lockfile_maillock=no
13565 rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567 LIBS=$ac_check_lib_save_LIBS
13569 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13570 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13571 if test $ac_cv_lib_lockfile_maillock = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_LIBLOCKFILE 1
13574 _ACEOF
13576 LIBS="-llockfile $LIBS"
13580 # If we have the shared liblockfile, assume we must use it for mail
13581 # locking (e.g. Debian). If we couldn't link against liblockfile
13582 # (no liblockfile.a installed), ensure that we don't need to.
13583 if test "$ac_cv_lib_lockfile_maillock" = no; then
13584 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13585 set dummy liblockfile.so; ac_word=$2
13586 echo "$as_me:$LINENO: checking for $ac_word" >&5
13587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13588 if test "${ac_cv_prog_liblockfile+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 if test -n "$liblockfile"; then
13592 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13593 else
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13596 for as_dir in $as_dummy
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_liblockfile="yes"
13603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13609 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13612 liblockfile=$ac_cv_prog_liblockfile
13613 if test -n "$liblockfile"; then
13614 echo "$as_me:$LINENO: result: $liblockfile" >&5
13615 echo "${ECHO_T}$liblockfile" >&6
13616 else
13617 echo "$as_me:$LINENO: result: no" >&5
13618 echo "${ECHO_T}no" >&6
13621 if test $ac_cv_prog_liblockfile = yes; then
13622 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13623 This probably means that movemail could lose mail.
13624 There may be a \`development' package to install containing liblockfile." >&5
13625 echo "$as_me: error: Shared liblockfile found but can't link against it.
13626 This probably means that movemail could lose mail.
13627 There may be a \`development' package to install containing liblockfile." >&2;}
13628 { (exit 1); exit 1; }; }
13629 else :
13633 for ac_func in touchlock
13635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636 echo "$as_me:$LINENO: checking for $ac_func" >&5
13637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13638 if eval "test \"\${$as_ac_var+set}\" = set"; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13649 #define $ac_func innocuous_$ac_func
13651 /* System header to define __stub macros and hopefully few prototypes,
13652 which can conflict with char $ac_func (); below.
13653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13654 <limits.h> exists even on freestanding compilers. */
13656 #ifdef __STDC__
13657 # include <limits.h>
13658 #else
13659 # include <assert.h>
13660 #endif
13662 #undef $ac_func
13664 /* Override any gcc2 internal prototype to avoid an error. */
13665 #ifdef __cplusplus
13666 extern "C"
13668 #endif
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13671 char $ac_func ();
13672 /* The GNU C library defines this for functions which it implements
13673 to always fail with ENOSYS. Some functions are actually named
13674 something starting with __ and the normal name is an alias. */
13675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13676 choke me
13677 #else
13678 char (*f) () = $ac_func;
13679 #endif
13680 #ifdef __cplusplus
13682 #endif
13685 main ()
13687 return f != $ac_func;
13689 return 0;
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 eval "$as_ac_var=yes"
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 eval "$as_ac_var=no"
13721 rm -f conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13726 if test `eval echo '${'$as_ac_var'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13729 _ACEOF
13732 done
13735 for ac_header in maillock.h
13737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13739 echo "$as_me:$LINENO: checking for $ac_header" >&5
13740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13746 else
13747 # Is the header compilable?
13748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 $ac_includes_default
13757 #include <$ac_header>
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761 (eval $ac_compile) 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag"
13769 || test ! -s conftest.err'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest.$ac_objext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_header_compiler=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_header_compiler=no
13788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13790 echo "${ECHO_T}$ac_header_compiler" >&6
13792 # Is the header present?
13793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h. */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 #include <$ac_header>
13802 _ACEOF
13803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } >/dev/null; then
13811 if test -s conftest.err; then
13812 ac_cpp_err=$ac_c_preproc_warn_flag
13813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13814 else
13815 ac_cpp_err=
13817 else
13818 ac_cpp_err=yes
13820 if test -z "$ac_cpp_err"; then
13821 ac_header_preproc=yes
13822 else
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_header_preproc=no
13828 rm -f conftest.err conftest.$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13830 echo "${ECHO_T}$ac_header_preproc" >&6
13832 # So? What about this header?
13833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13834 yes:no: )
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13839 ac_header_preproc=yes
13841 no:yes:* )
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13855 cat <<\_ASBOX
13856 ## ------------------------------------------ ##
13857 ## Report this to the AC_PACKAGE_NAME lists. ##
13858 ## ------------------------------------------ ##
13859 _ASBOX
13861 sed "s/^/$as_me: WARNING: /" >&2
13863 esac
13864 echo "$as_me:$LINENO: checking for $ac_header" >&5
13865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869 eval "$as_ac_Header=\$ac_header_preproc"
13871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13876 cat >>confdefs.h <<_ACEOF
13877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13878 _ACEOF
13882 done
13952 for ac_func in gethostname getdomainname dup2 \
13953 rename closedir mkdir rmdir sysinfo getrusage \
13954 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13955 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13956 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13957 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13958 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13959 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13960 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13963 echo "$as_me:$LINENO: checking for $ac_func" >&5
13964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_var+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13976 #define $ac_func innocuous_$ac_func
13978 /* System header to define __stub macros and hopefully few prototypes,
13979 which can conflict with char $ac_func (); below.
13980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13981 <limits.h> exists even on freestanding compilers. */
13983 #ifdef __STDC__
13984 # include <limits.h>
13985 #else
13986 # include <assert.h>
13987 #endif
13989 #undef $ac_func
13991 /* Override any gcc2 internal prototype to avoid an error. */
13992 #ifdef __cplusplus
13993 extern "C"
13995 #endif
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char $ac_func ();
13999 /* The GNU C library defines this for functions which it implements
14000 to always fail with ENOSYS. Some functions are actually named
14001 something starting with __ and the normal name is an alias. */
14002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14003 choke me
14004 #else
14005 char (*f) () = $ac_func;
14006 #endif
14007 #ifdef __cplusplus
14009 #endif
14012 main ()
14014 return f != $ac_func;
14016 return 0;
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_var=yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 eval "$as_ac_var=no"
14048 rm -f conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14053 if test `eval echo '${'$as_ac_var'}'` = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14056 _ACEOF
14059 done
14063 for ac_header in sys/un.h
14065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067 echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 else
14075 # Is the header compilable?
14076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14085 #include <$ac_header>
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_header_compiler=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_header_compiler=no
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6
14120 # Is the header present?
14121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <$ac_header>
14130 _ACEOF
14131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14133 ac_status=$?
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } >/dev/null; then
14139 if test -s conftest.err; then
14140 ac_cpp_err=$ac_c_preproc_warn_flag
14141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14142 else
14143 ac_cpp_err=
14145 else
14146 ac_cpp_err=yes
14148 if test -z "$ac_cpp_err"; then
14149 ac_header_preproc=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_preproc=no
14156 rm -f conftest.err conftest.$ac_ext
14157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14158 echo "${ECHO_T}$ac_header_preproc" >&6
14160 # So? What about this header?
14161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162 yes:no: )
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14167 ac_header_preproc=yes
14169 no:yes:* )
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14183 cat <<\_ASBOX
14184 ## ------------------------------------------ ##
14185 ## Report this to the AC_PACKAGE_NAME lists. ##
14186 ## ------------------------------------------ ##
14187 _ASBOX
14189 sed "s/^/$as_me: WARNING: /" >&2
14191 esac
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 eval "$as_ac_Header=\$ac_header_preproc"
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 _ACEOF
14210 done
14216 for ac_header in stdlib.h sys/time.h unistd.h
14218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo "$as_me:$LINENO: checking for $ac_header" >&5
14221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 else
14228 # Is the header compilable?
14229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 $ac_includes_default
14238 #include <$ac_header>
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag"
14250 || test ! -s conftest.err'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_header_compiler=yes
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_header_compiler=no
14269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14271 echo "${ECHO_T}$ac_header_compiler" >&6
14273 # Is the header present?
14274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 #include <$ac_header>
14283 _ACEOF
14284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } >/dev/null; then
14292 if test -s conftest.err; then
14293 ac_cpp_err=$ac_c_preproc_warn_flag
14294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14295 else
14296 ac_cpp_err=
14298 else
14299 ac_cpp_err=yes
14301 if test -z "$ac_cpp_err"; then
14302 ac_header_preproc=yes
14303 else
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 ac_header_preproc=no
14309 rm -f conftest.err conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14311 echo "${ECHO_T}$ac_header_preproc" >&6
14313 # So? What about this header?
14314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 yes:no: )
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14320 ac_header_preproc=yes
14322 no:yes:* )
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 cat <<\_ASBOX
14337 ## ------------------------------------------ ##
14338 ## Report this to the AC_PACKAGE_NAME lists. ##
14339 ## ------------------------------------------ ##
14340 _ASBOX
14342 sed "s/^/$as_me: WARNING: /" >&2
14344 esac
14345 echo "$as_me:$LINENO: checking for $ac_header" >&5
14346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 eval "$as_ac_Header=\$ac_header_preproc"
14352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14359 _ACEOF
14363 done
14366 for ac_func in alarm
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14382 #define $ac_func innocuous_$ac_func
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14389 #ifdef __STDC__
14390 # include <limits.h>
14391 #else
14392 # include <assert.h>
14393 #endif
14395 #undef $ac_func
14397 /* Override any gcc2 internal prototype to avoid an error. */
14398 #ifdef __cplusplus
14399 extern "C"
14401 #endif
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14404 char $ac_func ();
14405 /* The GNU C library defines this for functions which it implements
14406 to always fail with ENOSYS. Some functions are actually named
14407 something starting with __ and the normal name is an alias. */
14408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14409 choke me
14410 #else
14411 char (*f) () = $ac_func;
14412 #endif
14413 #ifdef __cplusplus
14415 #endif
14418 main ()
14420 return f != $ac_func;
14422 return 0;
14424 _ACEOF
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427 (eval $ac_link) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 eval "$as_ac_var=yes"
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 eval "$as_ac_var=no"
14454 rm -f conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14459 if test `eval echo '${'$as_ac_var'}'` = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14462 _ACEOF
14465 done
14467 echo "$as_me:$LINENO: checking for working mktime" >&5
14468 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14469 if test "${ac_cv_func_working_mktime+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 if test "$cross_compiling" = yes; then
14473 ac_cv_func_working_mktime=no
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Test program from Paul Eggert and Tony Leneis. */
14482 #if TIME_WITH_SYS_TIME
14483 # include <sys/time.h>
14484 # include <time.h>
14485 #else
14486 # if HAVE_SYS_TIME_H
14487 # include <sys/time.h>
14488 # else
14489 # include <time.h>
14490 # endif
14491 #endif
14493 #if HAVE_STDLIB_H
14494 # include <stdlib.h>
14495 #endif
14497 #if HAVE_UNISTD_H
14498 # include <unistd.h>
14499 #endif
14501 #if !HAVE_ALARM
14502 # define alarm(X) /* empty */
14503 #endif
14505 /* Work around redefinition to rpl_putenv by other config tests. */
14506 #undef putenv
14508 static time_t time_t_max;
14509 static time_t time_t_min;
14511 /* Values we'll use to set the TZ environment variable. */
14512 static char *tz_strings[] = {
14513 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14514 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14516 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14518 /* Fail if mktime fails to convert a date in the spring-forward gap.
14519 Based on a problem report from Andreas Jaeger. */
14520 static void
14521 spring_forward_gap ()
14523 /* glibc (up to about 1998-10-07) failed this test. */
14524 struct tm tm;
14526 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14527 instead of "TZ=America/Vancouver" in order to detect the bug even
14528 on systems that don't support the Olson extension, or don't have the
14529 full zoneinfo tables installed. */
14530 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14532 tm.tm_year = 98;
14533 tm.tm_mon = 3;
14534 tm.tm_mday = 5;
14535 tm.tm_hour = 2;
14536 tm.tm_min = 0;
14537 tm.tm_sec = 0;
14538 tm.tm_isdst = -1;
14539 if (mktime (&tm) == (time_t)-1)
14540 exit (1);
14543 static void
14544 mktime_test1 (now)
14545 time_t now;
14547 struct tm *lt;
14548 if ((lt = localtime (&now)) && mktime (lt) != now)
14549 exit (1);
14552 static void
14553 mktime_test (now)
14554 time_t now;
14556 mktime_test1 (now);
14557 mktime_test1 ((time_t) (time_t_max - now));
14558 mktime_test1 ((time_t) (time_t_min + now));
14561 static void
14562 irix_6_4_bug ()
14564 /* Based on code from Ariel Faigon. */
14565 struct tm tm;
14566 tm.tm_year = 96;
14567 tm.tm_mon = 3;
14568 tm.tm_mday = 0;
14569 tm.tm_hour = 0;
14570 tm.tm_min = 0;
14571 tm.tm_sec = 0;
14572 tm.tm_isdst = -1;
14573 mktime (&tm);
14574 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14575 exit (1);
14578 static void
14579 bigtime_test (j)
14580 int j;
14582 struct tm tm;
14583 time_t now;
14584 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14585 now = mktime (&tm);
14586 if (now != (time_t) -1)
14588 struct tm *lt = localtime (&now);
14589 if (! (lt
14590 && lt->tm_year == tm.tm_year
14591 && lt->tm_mon == tm.tm_mon
14592 && lt->tm_mday == tm.tm_mday
14593 && lt->tm_hour == tm.tm_hour
14594 && lt->tm_min == tm.tm_min
14595 && lt->tm_sec == tm.tm_sec
14596 && lt->tm_yday == tm.tm_yday
14597 && lt->tm_wday == tm.tm_wday
14598 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14599 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14600 exit (1);
14605 main ()
14607 time_t t, delta;
14608 int i, j;
14610 /* This test makes some buggy mktime implementations loop.
14611 Give up after 60 seconds; a mktime slower than that
14612 isn't worth using anyway. */
14613 alarm (60);
14615 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14616 continue;
14617 time_t_max--;
14618 if ((time_t) -1 < 0)
14619 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14620 continue;
14621 delta = time_t_max / 997; /* a suitable prime number */
14622 for (i = 0; i < N_STRINGS; i++)
14624 if (tz_strings[i])
14625 putenv (tz_strings[i]);
14627 for (t = 0; t <= time_t_max - delta; t += delta)
14628 mktime_test (t);
14629 mktime_test ((time_t) 1);
14630 mktime_test ((time_t) (60 * 60));
14631 mktime_test ((time_t) (60 * 60 * 24));
14633 for (j = 1; 0 < j; j *= 2)
14634 bigtime_test (j);
14635 bigtime_test (j - 1);
14637 irix_6_4_bug ();
14638 spring_forward_gap ();
14639 exit (0);
14641 _ACEOF
14642 rm -f conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_cv_func_working_mktime=yes
14654 else
14655 echo "$as_me: program exited with status $ac_status" >&5
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 ( exit $ac_status )
14660 ac_cv_func_working_mktime=no
14662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14665 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14666 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14667 if test $ac_cv_func_working_mktime = no; then
14668 case $LIBOBJS in
14669 "mktime.$ac_objext" | \
14670 *" mktime.$ac_objext" | \
14671 "mktime.$ac_objext "* | \
14672 *" mktime.$ac_objext "* ) ;;
14673 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14674 esac
14678 if test "$ac_cv_func_working_mktime" = no; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define BROKEN_MKTIME 1
14682 _ACEOF
14686 ac_have_func=no # yes means we've found a way to get the load average.
14688 # Make sure getloadavg.c is where it belongs, at configure-time.
14689 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14690 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14691 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14692 { (exit 1); exit 1; }; }
14694 ac_save_LIBS=$LIBS
14696 # Check for getloadavg, but be sure not to touch the cache variable.
14697 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14698 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14699 if test "${ac_cv_func_getloadavg+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14710 #define getloadavg innocuous_getloadavg
14712 /* System header to define __stub macros and hopefully few prototypes,
14713 which can conflict with char getloadavg (); below.
14714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715 <limits.h> exists even on freestanding compilers. */
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14723 #undef getloadavg
14725 /* Override any gcc2 internal prototype to avoid an error. */
14726 #ifdef __cplusplus
14727 extern "C"
14729 #endif
14730 /* We use char because int might match the return type of a gcc2
14731 builtin and then its argument prototype would still apply. */
14732 char getloadavg ();
14733 /* The GNU C library defines this for functions which it implements
14734 to always fail with ENOSYS. Some functions are actually named
14735 something starting with __ and the normal name is an alias. */
14736 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14737 choke me
14738 #else
14739 char (*f) () = getloadavg;
14740 #endif
14741 #ifdef __cplusplus
14743 #endif
14746 main ()
14748 return f != getloadavg;
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_func_getloadavg=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_func_getloadavg=no
14782 rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14785 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14786 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14787 if test $ac_cv_func_getloadavg = yes; then
14788 exit 0
14789 else
14790 exit 1
14792 ) && ac_have_func=yes
14794 # On HPUX9, an unprivileged user can get load averages through this function.
14796 for ac_func in pstat_getdynamic
14798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 echo "$as_me:$LINENO: checking for $ac_func" >&5
14800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14801 if eval "test \"\${$as_ac_var+set}\" = set"; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h. */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14812 #define $ac_func innocuous_$ac_func
14814 /* System header to define __stub macros and hopefully few prototypes,
14815 which can conflict with char $ac_func (); below.
14816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14817 <limits.h> exists even on freestanding compilers. */
14819 #ifdef __STDC__
14820 # include <limits.h>
14821 #else
14822 # include <assert.h>
14823 #endif
14825 #undef $ac_func
14827 /* Override any gcc2 internal prototype to avoid an error. */
14828 #ifdef __cplusplus
14829 extern "C"
14831 #endif
14832 /* We use char because int might match the return type of a gcc2
14833 builtin and then its argument prototype would still apply. */
14834 char $ac_func ();
14835 /* The GNU C library defines this for functions which it implements
14836 to always fail with ENOSYS. Some functions are actually named
14837 something starting with __ and the normal name is an alias. */
14838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14839 choke me
14840 #else
14841 char (*f) () = $ac_func;
14842 #endif
14843 #ifdef __cplusplus
14845 #endif
14848 main ()
14850 return f != $ac_func;
14852 return 0;
14854 _ACEOF
14855 rm -f conftest.$ac_objext conftest$ac_exeext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14857 (eval $ac_link) 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest$ac_exeext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 eval "$as_ac_var=yes"
14878 else
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 eval "$as_ac_var=no"
14884 rm -f conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14889 if test `eval echo '${'$as_ac_var'}'` = yes; then
14890 cat >>confdefs.h <<_ACEOF
14891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14892 _ACEOF
14895 done
14898 # Solaris has libkstat which does not require root.
14900 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14901 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14902 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905 ac_check_lib_save_LIBS=$LIBS
14906 LIBS="-lkstat $LIBS"
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 /* Override any gcc2 internal prototype to avoid an error. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char kstat_open ();
14922 main ()
14924 kstat_open ();
14926 return 0;
14928 _ACEOF
14929 rm -f conftest.$ac_objext conftest$ac_exeext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14931 (eval $ac_link) 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_lib_kstat_kstat_open=yes
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_lib_kstat_kstat_open=no
14958 rm -f conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14962 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14963 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14964 if test $ac_cv_lib_kstat_kstat_open = yes; then
14965 cat >>confdefs.h <<_ACEOF
14966 #define HAVE_LIBKSTAT 1
14967 _ACEOF
14969 LIBS="-lkstat $LIBS"
14973 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14975 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14976 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14977 # to get the right answer into the cache.
14978 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14979 if test $ac_have_func = no; then
14980 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14981 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14982 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985 ac_check_lib_save_LIBS=$LIBS
14986 LIBS="-lelf $LIBS"
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h. */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14994 /* Override any gcc2 internal prototype to avoid an error. */
14995 #ifdef __cplusplus
14996 extern "C"
14997 #endif
14998 /* We use char because int might match the return type of a gcc2
14999 builtin and then its argument prototype would still apply. */
15000 char elf_begin ();
15002 main ()
15004 elf_begin ();
15006 return 0;
15008 _ACEOF
15009 rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15011 (eval $ac_link) 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_lib_elf_elf_begin=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_lib_elf_elf_begin=no
15038 rm -f conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15040 LIBS=$ac_check_lib_save_LIBS
15042 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15043 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15044 if test $ac_cv_lib_elf_elf_begin = yes; then
15045 LIBS="-lelf $LIBS"
15049 if test $ac_have_func = no; then
15050 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15051 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15052 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lkvm $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15064 /* Override any gcc2 internal prototype to avoid an error. */
15065 #ifdef __cplusplus
15066 extern "C"
15067 #endif
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15070 char kvm_open ();
15072 main ()
15074 kvm_open ();
15076 return 0;
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag"
15089 || test ! -s conftest.err'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 ac_cv_lib_kvm_kvm_open=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_cv_lib_kvm_kvm_open=no
15108 rm -f conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15110 LIBS=$ac_check_lib_save_LIBS
15112 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15113 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15114 if test $ac_cv_lib_kvm_kvm_open = yes; then
15115 LIBS="-lkvm $LIBS"
15118 # Check for the 4.4BSD definition of getloadavg.
15119 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15120 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15121 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124 ac_check_lib_save_LIBS=$LIBS
15125 LIBS="-lutil $LIBS"
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15133 /* Override any gcc2 internal prototype to avoid an error. */
15134 #ifdef __cplusplus
15135 extern "C"
15136 #endif
15137 /* We use char because int might match the return type of a gcc2
15138 builtin and then its argument prototype would still apply. */
15139 char getloadavg ();
15141 main ()
15143 getloadavg ();
15145 return 0;
15147 _ACEOF
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -z "$ac_c_werror_flag"
15158 || test ! -s conftest.err'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest$ac_exeext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_lib_util_getloadavg=yes
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_cv_lib_util_getloadavg=no
15177 rm -f conftest.err conftest.$ac_objext \
15178 conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS
15181 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15182 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15183 if test $ac_cv_lib_util_getloadavg = yes; then
15184 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15189 if test $ac_have_func = no; then
15190 # There is a commonly available library for RS/6000 AIX.
15191 # Since it is not a standard part of AIX, it might be installed locally.
15192 ac_getloadavg_LIBS=$LIBS
15193 LIBS="-L/usr/local/lib $LIBS"
15194 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15195 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15196 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199 ac_check_lib_save_LIBS=$LIBS
15200 LIBS="-lgetloadavg $LIBS"
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15208 /* Override any gcc2 internal prototype to avoid an error. */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214 char getloadavg ();
15216 main ()
15218 getloadavg ();
15220 return 0;
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_cv_lib_getloadavg_getloadavg=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_cv_lib_getloadavg_getloadavg=no
15252 rm -f conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15256 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15257 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15258 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15259 LIBS="-lgetloadavg $LIBS"
15260 else
15261 LIBS=$ac_getloadavg_LIBS
15266 # Make sure it is really in the library, if we think we found it,
15267 # otherwise set up the replacement function.
15269 for ac_func in getloadavg
15271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15272 echo "$as_me:$LINENO: checking for $ac_func" >&5
15273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15274 if eval "test \"\${$as_ac_var+set}\" = set"; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277 cat >conftest.$ac_ext <<_ACEOF
15278 /* confdefs.h. */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15285 #define $ac_func innocuous_$ac_func
15287 /* System header to define __stub macros and hopefully few prototypes,
15288 which can conflict with char $ac_func (); below.
15289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15290 <limits.h> exists even on freestanding compilers. */
15292 #ifdef __STDC__
15293 # include <limits.h>
15294 #else
15295 # include <assert.h>
15296 #endif
15298 #undef $ac_func
15300 /* Override any gcc2 internal prototype to avoid an error. */
15301 #ifdef __cplusplus
15302 extern "C"
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15307 char $ac_func ();
15308 /* The GNU C library defines this for functions which it implements
15309 to always fail with ENOSYS. Some functions are actually named
15310 something starting with __ and the normal name is an alias. */
15311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15312 choke me
15313 #else
15314 char (*f) () = $ac_func;
15315 #endif
15316 #ifdef __cplusplus
15318 #endif
15321 main ()
15323 return f != $ac_func;
15325 return 0;
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest$ac_exeext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 eval "$as_ac_var=yes"
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 eval "$as_ac_var=no"
15357 rm -f conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15362 if test `eval echo '${'$as_ac_var'}'` = yes; then
15363 cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15365 _ACEOF
15367 else
15368 case $LIBOBJS in
15369 "getloadavg.$ac_objext" | \
15370 *" getloadavg.$ac_objext" | \
15371 "getloadavg.$ac_objext "* | \
15372 *" getloadavg.$ac_objext "* ) ;;
15373 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15374 esac
15377 cat >>confdefs.h <<\_ACEOF
15378 #define C_GETLOADAVG 1
15379 _ACEOF
15381 # Figure out what our getloadavg.c needs.
15382 ac_have_func=no
15383 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15384 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15385 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15386 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15390 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15391 else
15392 # Is the header compilable?
15393 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15394 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h. */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 $ac_includes_default
15402 #include <sys/dg_sys_info.h>
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406 (eval $ac_compile) 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435 echo "${ECHO_T}$ac_header_compiler" >&6
15437 # Is the header present?
15438 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15439 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <sys/dg_sys_info.h>
15447 _ACEOF
15448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } >/dev/null; then
15456 if test -s conftest.err; then
15457 ac_cpp_err=$ac_c_preproc_warn_flag
15458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15459 else
15460 ac_cpp_err=
15462 else
15463 ac_cpp_err=yes
15465 if test -z "$ac_cpp_err"; then
15466 ac_header_preproc=yes
15467 else
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_header_preproc=no
15473 rm -f conftest.err conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475 echo "${ECHO_T}$ac_header_preproc" >&6
15477 # So? What about this header?
15478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479 yes:no: )
15480 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15481 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15483 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15484 ac_header_preproc=yes
15486 no:yes:* )
15487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15492 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15494 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15496 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15498 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15500 cat <<\_ASBOX
15501 ## ------------------------------------------ ##
15502 ## Report this to the AC_PACKAGE_NAME lists. ##
15503 ## ------------------------------------------ ##
15504 _ASBOX
15506 sed "s/^/$as_me: WARNING: /" >&2
15508 esac
15509 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15510 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15511 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15516 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15517 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15520 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15521 ac_have_func=yes
15523 cat >>confdefs.h <<\_ACEOF
15524 #define DGUX 1
15525 _ACEOF
15528 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15529 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15530 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533 ac_check_lib_save_LIBS=$LIBS
15534 LIBS="-ldgc $LIBS"
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15542 /* Override any gcc2 internal prototype to avoid an error. */
15543 #ifdef __cplusplus
15544 extern "C"
15545 #endif
15546 /* We use char because int might match the return type of a gcc2
15547 builtin and then its argument prototype would still apply. */
15548 char dg_sys_info ();
15550 main ()
15552 dg_sys_info ();
15554 return 0;
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15559 (eval $ac_link) 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -z "$ac_c_werror_flag"
15567 || test ! -s conftest.err'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } &&
15573 { ac_try='test -s conftest$ac_exeext'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 ac_cv_lib_dgc_dg_sys_info=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_cv_lib_dgc_dg_sys_info=no
15586 rm -f conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588 LIBS=$ac_check_lib_save_LIBS
15590 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15591 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15592 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define HAVE_LIBDGC 1
15595 _ACEOF
15597 LIBS="-ldgc $LIBS"
15605 if test "${ac_cv_header_locale_h+set}" = set; then
15606 echo "$as_me:$LINENO: checking for locale.h" >&5
15607 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15608 if test "${ac_cv_header_locale_h+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15612 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15613 else
15614 # Is the header compilable?
15615 echo "$as_me:$LINENO: checking locale.h usability" >&5
15616 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 $ac_includes_default
15624 #include <locale.h>
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628 (eval $ac_compile) 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -z "$ac_c_werror_flag"
15636 || test ! -s conftest.err'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } &&
15642 { ac_try='test -s conftest.$ac_objext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_header_compiler=yes
15649 else
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 ac_header_compiler=no
15655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15657 echo "${ECHO_T}$ac_header_compiler" >&6
15659 # Is the header present?
15660 echo "$as_me:$LINENO: checking locale.h presence" >&5
15661 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15662 cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 #include <locale.h>
15669 _ACEOF
15670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } >/dev/null; then
15678 if test -s conftest.err; then
15679 ac_cpp_err=$ac_c_preproc_warn_flag
15680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15681 else
15682 ac_cpp_err=
15684 else
15685 ac_cpp_err=yes
15687 if test -z "$ac_cpp_err"; then
15688 ac_header_preproc=yes
15689 else
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_header_preproc=no
15695 rm -f conftest.err conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697 echo "${ECHO_T}$ac_header_preproc" >&6
15699 # So? What about this header?
15700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 yes:no: )
15702 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15703 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15705 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15706 ac_header_preproc=yes
15708 no:yes:* )
15709 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15714 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15716 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15718 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15720 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15722 cat <<\_ASBOX
15723 ## ------------------------------------------ ##
15724 ## Report this to the AC_PACKAGE_NAME lists. ##
15725 ## ------------------------------------------ ##
15726 _ASBOX
15728 sed "s/^/$as_me: WARNING: /" >&2
15730 esac
15731 echo "$as_me:$LINENO: checking for locale.h" >&5
15732 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15733 if test "${ac_cv_header_locale_h+set}" = set; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736 ac_cv_header_locale_h=$ac_header_preproc
15738 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15739 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15745 for ac_func in setlocale
15747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15748 echo "$as_me:$LINENO: checking for $ac_func" >&5
15749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15750 if eval "test \"\${$as_ac_var+set}\" = set"; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761 #define $ac_func innocuous_$ac_func
15763 /* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char $ac_func (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15768 #ifdef __STDC__
15769 # include <limits.h>
15770 #else
15771 # include <assert.h>
15772 #endif
15774 #undef $ac_func
15776 /* Override any gcc2 internal prototype to avoid an error. */
15777 #ifdef __cplusplus
15778 extern "C"
15780 #endif
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15783 char $ac_func ();
15784 /* The GNU C library defines this for functions which it implements
15785 to always fail with ENOSYS. Some functions are actually named
15786 something starting with __ and the normal name is an alias. */
15787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15788 choke me
15789 #else
15790 char (*f) () = $ac_func;
15791 #endif
15792 #ifdef __cplusplus
15794 #endif
15797 main ()
15799 return f != $ac_func;
15801 return 0;
15803 _ACEOF
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag"
15814 || test ! -s conftest.err'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; } &&
15820 { ac_try='test -s conftest$ac_exeext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 eval "$as_ac_var=yes"
15827 else
15828 echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15831 eval "$as_ac_var=no"
15833 rm -f conftest.err conftest.$ac_objext \
15834 conftest$ac_exeext conftest.$ac_ext
15836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15838 if test `eval echo '${'$as_ac_var'}'` = yes; then
15839 cat >>confdefs.h <<_ACEOF
15840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15841 _ACEOF
15844 done
15847 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15848 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15849 # Irix 4.0.5F has the header but not the library.
15850 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15851 ac_have_func=yes
15853 cat >>confdefs.h <<\_ACEOF
15854 #define SVR4 1
15855 _ACEOF
15859 if test $ac_have_func = no; then
15860 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15861 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15862 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15863 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15867 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15868 else
15869 # Is the header compilable?
15870 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15871 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <inq_stats/cpustats.h>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_header_compiler=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_compiler=no
15910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6
15914 # Is the header present?
15915 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15916 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <inq_stats/cpustats.h>
15924 _ACEOF
15925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } >/dev/null; then
15933 if test -s conftest.err; then
15934 ac_cpp_err=$ac_c_preproc_warn_flag
15935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15936 else
15937 ac_cpp_err=
15939 else
15940 ac_cpp_err=yes
15942 if test -z "$ac_cpp_err"; then
15943 ac_header_preproc=yes
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 yes:no: )
15957 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15963 no:yes:* )
15964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15977 cat <<\_ASBOX
15978 ## ------------------------------------------ ##
15979 ## Report this to the AC_PACKAGE_NAME lists. ##
15980 ## ------------------------------------------ ##
15981 _ASBOX
15983 sed "s/^/$as_me: WARNING: /" >&2
15985 esac
15986 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15987 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15993 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15994 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15997 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15998 ac_have_func=yes
16000 cat >>confdefs.h <<\_ACEOF
16001 #define UMAX 1
16002 _ACEOF
16005 cat >>confdefs.h <<\_ACEOF
16006 #define UMAX4_3 1
16007 _ACEOF
16014 if test $ac_have_func = no; then
16015 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16016 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16017 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16018 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16022 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16023 else
16024 # Is the header compilable?
16025 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16026 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h. */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16033 $ac_includes_default
16034 #include <sys/cpustats.h>
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag"
16046 || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_header_compiler=no
16065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6
16069 # Is the header present?
16070 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16071 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16072 cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h. */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #include <sys/cpustats.h>
16079 _ACEOF
16080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } >/dev/null; then
16088 if test -s conftest.err; then
16089 ac_cpp_err=$ac_c_preproc_warn_flag
16090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16091 else
16092 ac_cpp_err=
16094 else
16095 ac_cpp_err=yes
16097 if test -z "$ac_cpp_err"; then
16098 ac_header_preproc=yes
16099 else
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_preproc=no
16105 rm -f conftest.err conftest.$ac_ext
16106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16107 echo "${ECHO_T}$ac_header_preproc" >&6
16109 # So? What about this header?
16110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16111 yes:no: )
16112 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16113 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16115 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16116 ac_header_preproc=yes
16118 no:yes:* )
16119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16120 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16122 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16126 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16128 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16130 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16132 cat <<\_ASBOX
16133 ## ------------------------------------------ ##
16134 ## Report this to the AC_PACKAGE_NAME lists. ##
16135 ## ------------------------------------------ ##
16136 _ASBOX
16138 sed "s/^/$as_me: WARNING: /" >&2
16140 esac
16141 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16142 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16143 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16149 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16152 if test $ac_cv_header_sys_cpustats_h = yes; then
16153 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16154 #define UMAX 1
16155 _ACEOF
16162 if test $ac_have_func = no; then
16164 for ac_header in mach/mach.h
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16168 echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16175 else
16176 # Is the header compilable?
16177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $ac_includes_default
16186 #include <$ac_header>
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190 (eval $ac_compile) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_compiler=no
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6
16221 # Is the header present?
16222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <$ac_header>
16231 _ACEOF
16232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } >/dev/null; then
16240 if test -s conftest.err; then
16241 ac_cpp_err=$ac_c_preproc_warn_flag
16242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16243 else
16244 ac_cpp_err=
16246 else
16247 ac_cpp_err=yes
16249 if test -z "$ac_cpp_err"; then
16250 ac_header_preproc=yes
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_preproc=no
16257 rm -f conftest.err conftest.$ac_ext
16258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259 echo "${ECHO_T}$ac_header_preproc" >&6
16261 # So? What about this header?
16262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16263 yes:no: )
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16268 ac_header_preproc=yes
16270 no:yes:* )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16284 cat <<\_ASBOX
16285 ## ------------------------------------------ ##
16286 ## Report this to the AC_PACKAGE_NAME lists. ##
16287 ## ------------------------------------------ ##
16288 _ASBOX
16290 sed "s/^/$as_me: WARNING: /" >&2
16292 esac
16293 echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 eval "$as_ac_Header=\$ac_header_preproc"
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16307 _ACEOF
16311 done
16316 for ac_header in nlist.h
16318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16320 echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16327 else
16328 # Is the header compilable?
16329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16331 cat >conftest.$ac_ext <<_ACEOF
16332 /* confdefs.h. */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 $ac_includes_default
16338 #include <$ac_header>
16339 _ACEOF
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_header_compiler=yes
16363 else
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_header_compiler=no
16369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16371 echo "${ECHO_T}$ac_header_compiler" >&6
16373 # Is the header present?
16374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 #include <$ac_header>
16383 _ACEOF
16384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } >/dev/null; then
16392 if test -s conftest.err; then
16393 ac_cpp_err=$ac_c_preproc_warn_flag
16394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16395 else
16396 ac_cpp_err=
16398 else
16399 ac_cpp_err=yes
16401 if test -z "$ac_cpp_err"; then
16402 ac_header_preproc=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_header_preproc=no
16409 rm -f conftest.err conftest.$ac_ext
16410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16411 echo "${ECHO_T}$ac_header_preproc" >&6
16413 # So? What about this header?
16414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415 yes:no: )
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16420 ac_header_preproc=yes
16422 no:yes:* )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16436 cat <<\_ASBOX
16437 ## ------------------------------------------ ##
16438 ## Report this to the AC_PACKAGE_NAME lists. ##
16439 ## ------------------------------------------ ##
16440 _ASBOX
16442 sed "s/^/$as_me: WARNING: /" >&2
16444 esac
16445 echo "$as_me:$LINENO: checking for $ac_header" >&5
16446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 eval "$as_ac_Header=\$ac_header_preproc"
16452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16459 _ACEOF
16460 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16461 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16462 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 #include <nlist.h>
16474 main ()
16476 static struct nlist ac_aggr;
16477 if (ac_aggr.n_un.n_name)
16478 return 0;
16480 return 0;
16482 _ACEOF
16483 rm -f conftest.$ac_objext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16485 (eval $ac_compile) 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } &&
16492 { ac_try='test -z "$ac_c_werror_flag"
16493 || test ! -s conftest.err'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; } &&
16499 { ac_try='test -s conftest.$ac_objext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_member_struct_nlist_n_un_n_name=yes
16506 else
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <nlist.h>
16519 main ()
16521 static struct nlist ac_aggr;
16522 if (sizeof ac_aggr.n_un.n_name)
16523 return 0;
16525 return 0;
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_cv_member_struct_nlist_n_un_n_name=yes
16551 else
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_cv_member_struct_nlist_n_un_n_name=no
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16561 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16562 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16563 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16565 cat >>confdefs.h <<_ACEOF
16566 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16567 _ACEOF
16570 cat >>confdefs.h <<\_ACEOF
16571 #define NLIST_NAME_UNION 1
16572 _ACEOF
16579 done
16582 done
16585 # Some definitions of getloadavg require that the program be installed setgid.
16586 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16587 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16588 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591 cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h. */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16598 #ifdef LDAV_PRIVILEGED
16599 Yowza Am I SETGID yet
16600 #endif
16601 _ACEOF
16602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16603 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16604 ac_cv_func_getloadavg_setgid=yes
16605 else
16606 ac_cv_func_getloadavg_setgid=no
16608 rm -f conftest*
16611 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16612 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16613 if test $ac_cv_func_getloadavg_setgid = yes; then
16614 NEED_SETGID=true
16616 cat >>confdefs.h <<\_ACEOF
16617 #define GETLOADAVG_PRIVILEGED 1
16618 _ACEOF
16620 else
16621 NEED_SETGID=false
16624 if test $ac_cv_func_getloadavg_setgid = yes; then
16625 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16626 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16627 if test "${ac_cv_group_kmem+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16631 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16632 # If we got an error (system does not support symlinks), try without -L.
16633 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16634 ac_cv_group_kmem=`echo $ac_ls_output \
16635 | sed -ne 's/[ ][ ]*/ /g;
16636 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16637 / /s/.* //;p;'`
16640 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16641 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16642 KMEM_GROUP=$ac_cv_group_kmem
16644 if test "x$ac_save_LIBS" = x; then
16645 GETLOADAVG_LIBS=$LIBS
16646 else
16647 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16649 LIBS=$ac_save_LIBS
16653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16654 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16655 if test "${ac_cv_sys_largefile_source+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658 while :; do
16659 ac_cv_sys_largefile_source=no
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <stdio.h>
16668 main ()
16670 return !fseeko;
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 break
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 #define _LARGEFILE_SOURCE 1
16711 #include <stdio.h>
16713 main ()
16715 return !fseeko;
16717 return 0;
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag"
16730 || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_sys_largefile_source=1; break
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749 break
16750 done
16752 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16753 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16754 if test "$ac_cv_sys_largefile_source" != no; then
16756 cat >>confdefs.h <<_ACEOF
16757 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16758 _ACEOF
16761 rm -f conftest*
16763 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16764 # in glibc 2.1.3, but that breaks too many other things.
16765 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16766 echo "$as_me:$LINENO: checking for fseeko" >&5
16767 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16768 if test "${ac_cv_func_fseeko+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h. */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 #include <stdio.h>
16779 main ()
16781 return fseeko && fseeko (stdin, 0, 0);
16783 return 0;
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag"
16796 || test ! -s conftest.err'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest$ac_exeext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_func_fseeko=yes
16809 else
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_cv_func_fseeko=no
16815 rm -f conftest.err conftest.$ac_objext \
16816 conftest$ac_exeext conftest.$ac_ext
16818 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16820 if test $ac_cv_func_fseeko = yes; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_FSEEKO 1
16824 _ACEOF
16829 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16830 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16831 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834 # Use it with a single arg.
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 $ac_includes_default
16843 main ()
16845 getpgrp (0);
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852 (eval $ac_compile) 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_func_getpgrp_void=no
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_func_getpgrp_void=yes
16879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16883 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16884 if test $ac_cv_func_getpgrp_void = yes; then
16886 cat >>confdefs.h <<\_ACEOF
16887 #define GETPGRP_VOID 1
16888 _ACEOF
16894 for ac_func in strftime
16896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897 echo "$as_me:$LINENO: checking for $ac_func" >&5
16898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16899 if eval "test \"\${$as_ac_var+set}\" = set"; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902 cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h. */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910 #define $ac_func innocuous_$ac_func
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16917 #ifdef __STDC__
16918 # include <limits.h>
16919 #else
16920 # include <assert.h>
16921 #endif
16923 #undef $ac_func
16925 /* Override any gcc2 internal prototype to avoid an error. */
16926 #ifdef __cplusplus
16927 extern "C"
16929 #endif
16930 /* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932 char $ac_func ();
16933 /* The GNU C library defines this for functions which it implements
16934 to always fail with ENOSYS. Some functions are actually named
16935 something starting with __ and the normal name is an alias. */
16936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16937 choke me
16938 #else
16939 char (*f) () = $ac_func;
16940 #endif
16941 #ifdef __cplusplus
16943 #endif
16946 main ()
16948 return f != $ac_func;
16950 return 0;
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16955 (eval $ac_link) 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag"
16963 || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest$ac_exeext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 eval "$as_ac_var=yes"
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 eval "$as_ac_var=no"
16982 rm -f conftest.err conftest.$ac_objext \
16983 conftest$ac_exeext conftest.$ac_ext
16985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16987 if test `eval echo '${'$as_ac_var'}'` = yes; then
16988 cat >>confdefs.h <<_ACEOF
16989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 _ACEOF
16992 else
16993 # strftime is in -lintl on SCO UNIX.
16994 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16995 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16996 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999 ac_check_lib_save_LIBS=$LIBS
17000 LIBS="-lintl $LIBS"
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17008 /* Override any gcc2 internal prototype to avoid an error. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 /* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17014 char strftime ();
17016 main ()
17018 strftime ();
17020 return 0;
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_c_werror_flag"
17033 || test ! -s conftest.err'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_intl_strftime=yes
17046 else
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_cv_lib_intl_strftime=no
17052 rm -f conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17056 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17057 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17058 if test $ac_cv_lib_intl_strftime = yes; then
17059 cat >>confdefs.h <<\_ACEOF
17060 #define HAVE_STRFTIME 1
17061 _ACEOF
17063 LIBS="-lintl $LIBS"
17067 done
17070 # UNIX98 PTYs.
17072 for ac_func in grantpt
17074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17075 echo "$as_me:$LINENO: checking for $ac_func" >&5
17076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17077 if eval "test \"\${$as_ac_var+set}\" = set"; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17088 #define $ac_func innocuous_$ac_func
17090 /* System header to define __stub macros and hopefully few prototypes,
17091 which can conflict with char $ac_func (); below.
17092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17093 <limits.h> exists even on freestanding compilers. */
17095 #ifdef __STDC__
17096 # include <limits.h>
17097 #else
17098 # include <assert.h>
17099 #endif
17101 #undef $ac_func
17103 /* Override any gcc2 internal prototype to avoid an error. */
17104 #ifdef __cplusplus
17105 extern "C"
17107 #endif
17108 /* We use char because int might match the return type of a gcc2
17109 builtin and then its argument prototype would still apply. */
17110 char $ac_func ();
17111 /* The GNU C library defines this for functions which it implements
17112 to always fail with ENOSYS. Some functions are actually named
17113 something starting with __ and the normal name is an alias. */
17114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17115 choke me
17116 #else
17117 char (*f) () = $ac_func;
17118 #endif
17119 #ifdef __cplusplus
17121 #endif
17124 main ()
17126 return f != $ac_func;
17128 return 0;
17130 _ACEOF
17131 rm -f conftest.$ac_objext conftest$ac_exeext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17133 (eval $ac_link) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 eval "$as_ac_var=yes"
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 eval "$as_ac_var=no"
17160 rm -f conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17165 if test `eval echo '${'$as_ac_var'}'` = yes; then
17166 cat >>confdefs.h <<_ACEOF
17167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168 _ACEOF
17171 done
17174 # PTY-related GNU extensions.
17176 for ac_func in getpt
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17181 if eval "test \"\${$as_ac_var+set}\" = set"; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192 #define $ac_func innocuous_$ac_func
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17199 #ifdef __STDC__
17200 # include <limits.h>
17201 #else
17202 # include <assert.h>
17203 #endif
17205 #undef $ac_func
17207 /* Override any gcc2 internal prototype to avoid an error. */
17208 #ifdef __cplusplus
17209 extern "C"
17211 #endif
17212 /* We use char because int might match the return type of a gcc2
17213 builtin and then its argument prototype would still apply. */
17214 char $ac_func ();
17215 /* The GNU C library defines this for functions which it implements
17216 to always fail with ENOSYS. Some functions are actually named
17217 something starting with __ and the normal name is an alias. */
17218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17219 choke me
17220 #else
17221 char (*f) () = $ac_func;
17222 #endif
17223 #ifdef __cplusplus
17225 #endif
17228 main ()
17230 return f != $ac_func;
17232 return 0;
17234 _ACEOF
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17237 (eval $ac_link) 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag"
17245 || test ! -s conftest.err'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 eval "$as_ac_var=yes"
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 eval "$as_ac_var=no"
17264 rm -f conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17272 _ACEOF
17275 done
17278 # Check this now, so that we will NOT find the above functions in ncurses.
17279 # That is because we have not set up to link ncurses in lib-src.
17280 # It's better to believe a function is not available
17281 # than to expect to find it in ncurses.
17283 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17284 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17285 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 ac_check_lib_save_LIBS=$LIBS
17289 LIBS="-lncurses $LIBS"
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17297 /* Override any gcc2 internal prototype to avoid an error. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 /* We use char because int might match the return type of a gcc2
17302 builtin and then its argument prototype would still apply. */
17303 char tparm ();
17305 main ()
17307 tparm ();
17309 return 0;
17311 _ACEOF
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17314 (eval $ac_link) 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag"
17322 || test ! -s conftest.err'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_cv_lib_ncurses_tparm=yes
17335 else
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_lib_ncurses_tparm=no
17341 rm -f conftest.err conftest.$ac_objext \
17342 conftest$ac_exeext conftest.$ac_ext
17343 LIBS=$ac_check_lib_save_LIBS
17345 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17346 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17347 if test $ac_cv_lib_ncurses_tparm = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_LIBNCURSES 1
17350 _ACEOF
17352 LIBS="-lncurses $LIBS"
17357 # Do we need the Hesiod library to provide the support routines?
17358 if test "$with_hesiod" = yes ; then
17359 # Don't set $LIBS here -- see comments above.
17360 resolv=no
17361 echo "$as_me:$LINENO: checking for res_send" >&5
17362 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17363 if test "${ac_cv_func_res_send+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define res_send innocuous_res_send
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char res_send (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17387 #undef res_send
17389 /* Override any gcc2 internal prototype to avoid an error. */
17390 #ifdef __cplusplus
17391 extern "C"
17393 #endif
17394 /* We use char because int might match the return type of a gcc2
17395 builtin and then its argument prototype would still apply. */
17396 char res_send ();
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined (__stub_res_send) || defined (__stub___res_send)
17401 choke me
17402 #else
17403 char (*f) () = res_send;
17404 #endif
17405 #ifdef __cplusplus
17407 #endif
17410 main ()
17412 return f != res_send;
17414 return 0;
17416 _ACEOF
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_func_res_send=yes
17440 else
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 ac_cv_func_res_send=no
17446 rm -f conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17449 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17450 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17451 if test $ac_cv_func_res_send = yes; then
17453 else
17454 echo "$as_me:$LINENO: checking for __res_send" >&5
17455 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17456 if test "${ac_cv_func___res_send+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17467 #define __res_send innocuous___res_send
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char __res_send (); below.
17471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472 <limits.h> exists even on freestanding compilers. */
17474 #ifdef __STDC__
17475 # include <limits.h>
17476 #else
17477 # include <assert.h>
17478 #endif
17480 #undef __res_send
17482 /* Override any gcc2 internal prototype to avoid an error. */
17483 #ifdef __cplusplus
17484 extern "C"
17486 #endif
17487 /* We use char because int might match the return type of a gcc2
17488 builtin and then its argument prototype would still apply. */
17489 char __res_send ();
17490 /* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493 #if defined (__stub___res_send) || defined (__stub_____res_send)
17494 choke me
17495 #else
17496 char (*f) () = __res_send;
17497 #endif
17498 #ifdef __cplusplus
17500 #endif
17503 main ()
17505 return f != __res_send;
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17512 (eval $ac_link) 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag"
17520 || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest$ac_exeext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_func___res_send=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_func___res_send=no
17539 rm -f conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17542 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17543 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17544 if test $ac_cv_func___res_send = yes; then
17546 else
17547 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17548 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17549 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552 ac_check_lib_save_LIBS=$LIBS
17553 LIBS="-lresolv $LIBS"
17554 cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h. */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17561 /* Override any gcc2 internal prototype to avoid an error. */
17562 #ifdef __cplusplus
17563 extern "C"
17564 #endif
17565 /* We use char because int might match the return type of a gcc2
17566 builtin and then its argument prototype would still apply. */
17567 char res_send ();
17569 main ()
17571 res_send ();
17573 return 0;
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578 (eval $ac_link) 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_cv_lib_resolv_res_send=yes
17599 else
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_cv_lib_resolv_res_send=no
17605 rm -f conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17609 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17610 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17611 if test $ac_cv_lib_resolv_res_send = yes; then
17612 resolv=yes
17613 else
17614 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17615 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17616 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619 ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-lresolv $LIBS"
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 /* Override any gcc2 internal prototype to avoid an error. */
17629 #ifdef __cplusplus
17630 extern "C"
17631 #endif
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17634 char __res_send ();
17636 main ()
17638 __res_send ();
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_resolv___res_send=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_lib_resolv___res_send=no
17672 rm -f conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17674 LIBS=$ac_check_lib_save_LIBS
17676 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17677 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17678 if test $ac_cv_lib_resolv___res_send = yes; then
17679 resolv=yes
17688 if test "$resolv" = yes ; then
17689 RESOLVLIB=-lresolv
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_LIBRESOLV 1
17693 _ACEOF
17695 else
17696 RESOLVLIB=
17698 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17699 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17700 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17711 #define hes_getmailhost innocuous_hes_getmailhost
17713 /* System header to define __stub macros and hopefully few prototypes,
17714 which can conflict with char hes_getmailhost (); below.
17715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17716 <limits.h> exists even on freestanding compilers. */
17718 #ifdef __STDC__
17719 # include <limits.h>
17720 #else
17721 # include <assert.h>
17722 #endif
17724 #undef hes_getmailhost
17726 /* Override any gcc2 internal prototype to avoid an error. */
17727 #ifdef __cplusplus
17728 extern "C"
17730 #endif
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733 char hes_getmailhost ();
17734 /* The GNU C library defines this for functions which it implements
17735 to always fail with ENOSYS. Some functions are actually named
17736 something starting with __ and the normal name is an alias. */
17737 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17738 choke me
17739 #else
17740 char (*f) () = hes_getmailhost;
17741 #endif
17742 #ifdef __cplusplus
17744 #endif
17747 main ()
17749 return f != hes_getmailhost;
17751 return 0;
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_func_hes_getmailhost=yes
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_func_hes_getmailhost=no
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17786 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17787 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17788 if test $ac_cv_func_hes_getmailhost = yes; then
17790 else
17791 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17792 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17793 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796 ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-lhesiod $RESOLVLIB $LIBS"
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 /* Override any gcc2 internal prototype to avoid an error. */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 /* We use char because int might match the return type of a gcc2
17810 builtin and then its argument prototype would still apply. */
17811 char hes_getmailhost ();
17813 main ()
17815 hes_getmailhost ();
17817 return 0;
17819 _ACEOF
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_lib_hesiod_hes_getmailhost=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_lib_hesiod_hes_getmailhost=no
17849 rm -f conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17854 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17855 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17857 cat >>confdefs.h <<\_ACEOF
17858 #define HAVE_LIBHESIOD 1
17859 _ACEOF
17861 else
17869 # These tell us which Kerberos-related libraries to use.
17870 if test "${with_kerberos+set}" = set; then
17872 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17873 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17874 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-lcom_err $LIBS"
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h. */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any gcc2 internal prototype to avoid an error. */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 /* We use char because int might match the return type of a gcc2
17891 builtin and then its argument prototype would still apply. */
17892 char com_err ();
17894 main ()
17896 com_err ();
17898 return 0;
17900 _ACEOF
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17903 (eval $ac_link) 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest$ac_exeext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_cv_lib_com_err_com_err=yes
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_cv_lib_com_err_com_err=no
17930 rm -f conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17934 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17935 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17936 if test $ac_cv_lib_com_err_com_err = yes; then
17937 cat >>confdefs.h <<_ACEOF
17938 #define HAVE_LIBCOM_ERR 1
17939 _ACEOF
17941 LIBS="-lcom_err $LIBS"
17946 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17947 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17948 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951 ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lk5crypto $LIBS"
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h. */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17960 /* Override any gcc2 internal prototype to avoid an error. */
17961 #ifdef __cplusplus
17962 extern "C"
17963 #endif
17964 /* We use char because int might match the return type of a gcc2
17965 builtin and then its argument prototype would still apply. */
17966 char mit_des_cbc_encrypt ();
17968 main ()
17970 mit_des_cbc_encrypt ();
17972 return 0;
17974 _ACEOF
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17977 (eval $ac_link) 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag"
17985 || test ! -s conftest.err'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest$ac_exeext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18004 rm -f conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LIBS=$ac_check_lib_save_LIBS
18008 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18009 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18010 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define HAVE_LIBK5CRYPTO 1
18013 _ACEOF
18015 LIBS="-lk5crypto $LIBS"
18020 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18021 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18022 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025 ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-lcrypto $LIBS"
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18034 /* Override any gcc2 internal prototype to avoid an error. */
18035 #ifdef __cplusplus
18036 extern "C"
18037 #endif
18038 /* We use char because int might match the return type of a gcc2
18039 builtin and then its argument prototype would still apply. */
18040 char mit_des_cbc_encrypt ();
18042 main ()
18044 mit_des_cbc_encrypt ();
18046 return 0;
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag"
18059 || test ! -s conftest.err'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest$ac_exeext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18078 rm -f conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18082 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18083 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18084 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define HAVE_LIBCRYPTO 1
18087 _ACEOF
18089 LIBS="-lcrypto $LIBS"
18094 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18095 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18096 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 ac_check_lib_save_LIBS=$LIBS
18100 LIBS="-lkrb5 $LIBS"
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h. */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18108 /* Override any gcc2 internal prototype to avoid an error. */
18109 #ifdef __cplusplus
18110 extern "C"
18111 #endif
18112 /* We use char because int might match the return type of a gcc2
18113 builtin and then its argument prototype would still apply. */
18114 char krb5_init_context ();
18116 main ()
18118 krb5_init_context ();
18120 return 0;
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18125 (eval $ac_link) 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
18132 { ac_try='test -z "$ac_c_werror_flag"
18133 || test ! -s conftest.err'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_cv_lib_krb5_krb5_init_context=yes
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 ac_cv_lib_krb5_krb5_init_context=no
18152 rm -f conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18157 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18158 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_LIBKRB5 1
18161 _ACEOF
18163 LIBS="-lkrb5 $LIBS"
18167 if test "${with_kerberos5+set}" != set; then
18169 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18170 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18171 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 ac_check_lib_save_LIBS=$LIBS
18175 LIBS="-ldes425 $LIBS"
18176 cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h. */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18183 /* Override any gcc2 internal prototype to avoid an error. */
18184 #ifdef __cplusplus
18185 extern "C"
18186 #endif
18187 /* We use char because int might match the return type of a gcc2
18188 builtin and then its argument prototype would still apply. */
18189 char des_cbc_encrypt ();
18191 main ()
18193 des_cbc_encrypt ();
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_c_werror_flag"
18208 || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_lib_des425_des_cbc_encrypt=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_lib_des425_des_cbc_encrypt=no
18227 rm -f conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 LIBS=$ac_check_lib_save_LIBS
18231 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18232 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18233 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_LIBDES425 1
18236 _ACEOF
18238 LIBS="-ldes425 $LIBS"
18240 else
18242 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18243 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18244 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-ldes $LIBS"
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 /* Override any gcc2 internal prototype to avoid an error. */
18257 #ifdef __cplusplus
18258 extern "C"
18259 #endif
18260 /* We use char because int might match the return type of a gcc2
18261 builtin and then its argument prototype would still apply. */
18262 char des_cbc_encrypt ();
18264 main ()
18266 des_cbc_encrypt ();
18268 return 0;
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_lib_des_des_cbc_encrypt=yes
18294 else
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 ac_cv_lib_des_des_cbc_encrypt=no
18300 rm -f conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18304 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18305 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18306 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18307 cat >>confdefs.h <<_ACEOF
18308 #define HAVE_LIBDES 1
18309 _ACEOF
18311 LIBS="-ldes $LIBS"
18318 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18319 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18320 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-lkrb4 $LIBS"
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 /* Override any gcc2 internal prototype to avoid an error. */
18333 #ifdef __cplusplus
18334 extern "C"
18335 #endif
18336 /* We use char because int might match the return type of a gcc2
18337 builtin and then its argument prototype would still apply. */
18338 char krb_get_cred ();
18340 main ()
18342 krb_get_cred ();
18344 return 0;
18346 _ACEOF
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349 (eval $ac_link) 2>conftest.er1
18350 ac_status=$?
18351 grep -v '^ *+' conftest.er1 >conftest.err
18352 rm -f conftest.er1
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag"
18357 || test ! -s conftest.err'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest$ac_exeext'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_krb4_krb_get_cred=yes
18370 else
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 ac_cv_lib_krb4_krb_get_cred=no
18376 rm -f conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18378 LIBS=$ac_check_lib_save_LIBS
18380 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18381 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18382 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18383 cat >>confdefs.h <<_ACEOF
18384 #define HAVE_LIBKRB4 1
18385 _ACEOF
18387 LIBS="-lkrb4 $LIBS"
18389 else
18391 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18392 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18393 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396 ac_check_lib_save_LIBS=$LIBS
18397 LIBS="-lkrb $LIBS"
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18405 /* Override any gcc2 internal prototype to avoid an error. */
18406 #ifdef __cplusplus
18407 extern "C"
18408 #endif
18409 /* We use char because int might match the return type of a gcc2
18410 builtin and then its argument prototype would still apply. */
18411 char krb_get_cred ();
18413 main ()
18415 krb_get_cred ();
18417 return 0;
18419 _ACEOF
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422 (eval $ac_link) 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest$ac_exeext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_lib_krb_krb_get_cred=yes
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 ac_cv_lib_krb_krb_get_cred=no
18449 rm -f conftest.err conftest.$ac_objext \
18450 conftest$ac_exeext conftest.$ac_ext
18451 LIBS=$ac_check_lib_save_LIBS
18453 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18454 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18455 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18456 cat >>confdefs.h <<_ACEOF
18457 #define HAVE_LIBKRB 1
18458 _ACEOF
18460 LIBS="-lkrb $LIBS"
18468 if test "${with_kerberos5+set}" = set; then
18470 for ac_header in krb5.h
18472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo "$as_me:$LINENO: checking for $ac_header" >&5
18475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18481 else
18482 # Is the header compilable?
18483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h. */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491 $ac_includes_default
18492 #include <$ac_header>
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_header_compiler=yes
18517 else
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_header_compiler=no
18523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18525 echo "${ECHO_T}$ac_header_compiler" >&6
18527 # Is the header present?
18528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <$ac_header>
18537 _ACEOF
18538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } >/dev/null; then
18546 if test -s conftest.err; then
18547 ac_cpp_err=$ac_c_preproc_warn_flag
18548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18549 else
18550 ac_cpp_err=
18552 else
18553 ac_cpp_err=yes
18555 if test -z "$ac_cpp_err"; then
18556 ac_header_preproc=yes
18557 else
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_header_preproc=no
18563 rm -f conftest.err conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18565 echo "${ECHO_T}$ac_header_preproc" >&6
18567 # So? What about this header?
18568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18569 yes:no: )
18570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18574 ac_header_preproc=yes
18576 no:yes:* )
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18590 cat <<\_ASBOX
18591 ## ------------------------------------------ ##
18592 ## Report this to the AC_PACKAGE_NAME lists. ##
18593 ## ------------------------------------------ ##
18594 _ASBOX
18596 sed "s/^/$as_me: WARNING: /" >&2
18598 esac
18599 echo "$as_me:$LINENO: checking for $ac_header" >&5
18600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 eval "$as_ac_Header=\$ac_header_preproc"
18606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18611 cat >>confdefs.h <<_ACEOF
18612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18613 _ACEOF
18617 done
18619 else
18621 for ac_header in des.h
18623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18625 echo "$as_me:$LINENO: checking for $ac_header" >&5
18626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18632 else
18633 # Is the header compilable?
18634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 $ac_includes_default
18643 #include <$ac_header>
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18647 (eval $ac_compile) 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag"
18655 || test ! -s conftest.err'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_header_compiler=yes
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_header_compiler=no
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18676 echo "${ECHO_T}$ac_header_compiler" >&6
18678 # Is the header present?
18679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 #include <$ac_header>
18688 _ACEOF
18689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } >/dev/null; then
18697 if test -s conftest.err; then
18698 ac_cpp_err=$ac_c_preproc_warn_flag
18699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18700 else
18701 ac_cpp_err=
18703 else
18704 ac_cpp_err=yes
18706 if test -z "$ac_cpp_err"; then
18707 ac_header_preproc=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_header_preproc=no
18714 rm -f conftest.err conftest.$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18716 echo "${ECHO_T}$ac_header_preproc" >&6
18718 # So? What about this header?
18719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18720 yes:no: )
18721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18725 ac_header_preproc=yes
18727 no:yes:* )
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18741 cat <<\_ASBOX
18742 ## ------------------------------------------ ##
18743 ## Report this to the AC_PACKAGE_NAME lists. ##
18744 ## ------------------------------------------ ##
18745 _ASBOX
18747 sed "s/^/$as_me: WARNING: /" >&2
18749 esac
18750 echo "$as_me:$LINENO: checking for $ac_header" >&5
18751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755 eval "$as_ac_Header=\$ac_header_preproc"
18757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18764 _ACEOF
18766 else
18768 for ac_header in kerberosIV/des.h
18770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18772 echo "$as_me:$LINENO: checking for $ac_header" >&5
18773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18779 else
18780 # Is the header compilable?
18781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h. */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 $ac_includes_default
18790 #include <$ac_header>
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794 (eval $ac_compile) 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_c_werror_flag"
18802 || test ! -s conftest.err'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest.$ac_objext'
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_header_compiler=yes
18815 else
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18819 ac_header_compiler=no
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18823 echo "${ECHO_T}$ac_header_compiler" >&6
18825 # Is the header present?
18826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 #include <$ac_header>
18835 _ACEOF
18836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } >/dev/null; then
18844 if test -s conftest.err; then
18845 ac_cpp_err=$ac_c_preproc_warn_flag
18846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18847 else
18848 ac_cpp_err=
18850 else
18851 ac_cpp_err=yes
18853 if test -z "$ac_cpp_err"; then
18854 ac_header_preproc=yes
18855 else
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_header_preproc=no
18861 rm -f conftest.err conftest.$ac_ext
18862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18863 echo "${ECHO_T}$ac_header_preproc" >&6
18865 # So? What about this header?
18866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18867 yes:no: )
18868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18872 ac_header_preproc=yes
18874 no:yes:* )
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18888 cat <<\_ASBOX
18889 ## ------------------------------------------ ##
18890 ## Report this to the AC_PACKAGE_NAME lists. ##
18891 ## ------------------------------------------ ##
18892 _ASBOX
18894 sed "s/^/$as_me: WARNING: /" >&2
18896 esac
18897 echo "$as_me:$LINENO: checking for $ac_header" >&5
18898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 eval "$as_ac_Header=\$ac_header_preproc"
18904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18909 cat >>confdefs.h <<_ACEOF
18910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18911 _ACEOF
18913 else
18915 for ac_header in kerberos/des.h
18917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919 echo "$as_me:$LINENO: checking for $ac_header" >&5
18920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18926 else
18927 # Is the header compilable?
18928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18937 #include <$ac_header>
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941 (eval $ac_compile) 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_header_compiler=yes
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 ac_header_compiler=no
18968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18970 echo "${ECHO_T}$ac_header_compiler" >&6
18972 # Is the header present?
18973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <$ac_header>
18982 _ACEOF
18983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } >/dev/null; then
18991 if test -s conftest.err; then
18992 ac_cpp_err=$ac_c_preproc_warn_flag
18993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18994 else
18995 ac_cpp_err=
18997 else
18998 ac_cpp_err=yes
19000 if test -z "$ac_cpp_err"; then
19001 ac_header_preproc=yes
19002 else
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_header_preproc=no
19008 rm -f conftest.err conftest.$ac_ext
19009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19010 echo "${ECHO_T}$ac_header_preproc" >&6
19012 # So? What about this header?
19013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 yes:no: )
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19019 ac_header_preproc=yes
19021 no:yes:* )
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19035 cat <<\_ASBOX
19036 ## ------------------------------------------ ##
19037 ## Report this to the AC_PACKAGE_NAME lists. ##
19038 ## ------------------------------------------ ##
19039 _ASBOX
19041 sed "s/^/$as_me: WARNING: /" >&2
19043 esac
19044 echo "$as_me:$LINENO: checking for $ac_header" >&5
19045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 eval "$as_ac_Header=\$ac_header_preproc"
19051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19058 _ACEOF
19062 done
19066 done
19070 done
19073 for ac_header in krb.h
19075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19077 echo "$as_me:$LINENO: checking for $ac_header" >&5
19078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19084 else
19085 # Is the header compilable?
19086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094 $ac_includes_default
19095 #include <$ac_header>
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag"
19107 || test ! -s conftest.err'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest.$ac_objext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_header_compiler=yes
19120 else
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 ac_header_compiler=no
19126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19128 echo "${ECHO_T}$ac_header_compiler" >&6
19130 # Is the header present?
19131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h. */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 #include <$ac_header>
19140 _ACEOF
19141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } >/dev/null; then
19149 if test -s conftest.err; then
19150 ac_cpp_err=$ac_c_preproc_warn_flag
19151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19152 else
19153 ac_cpp_err=
19155 else
19156 ac_cpp_err=yes
19158 if test -z "$ac_cpp_err"; then
19159 ac_header_preproc=yes
19160 else
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_header_preproc=no
19166 rm -f conftest.err conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19168 echo "${ECHO_T}$ac_header_preproc" >&6
19170 # So? What about this header?
19171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19172 yes:no: )
19173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19177 ac_header_preproc=yes
19179 no:yes:* )
19180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19193 cat <<\_ASBOX
19194 ## ------------------------------------------ ##
19195 ## Report this to the AC_PACKAGE_NAME lists. ##
19196 ## ------------------------------------------ ##
19197 _ASBOX
19199 sed "s/^/$as_me: WARNING: /" >&2
19201 esac
19202 echo "$as_me:$LINENO: checking for $ac_header" >&5
19203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207 eval "$as_ac_Header=\$ac_header_preproc"
19209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19214 cat >>confdefs.h <<_ACEOF
19215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19216 _ACEOF
19218 else
19220 for ac_header in kerberosIV/krb.h
19222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19224 echo "$as_me:$LINENO: checking for $ac_header" >&5
19225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19231 else
19232 # Is the header compilable?
19233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h. */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 $ac_includes_default
19242 #include <$ac_header>
19243 _ACEOF
19244 rm -f conftest.$ac_objext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_c_werror_flag"
19254 || test ! -s conftest.err'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_header_compiler=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ac_header_compiler=no
19273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19275 echo "${ECHO_T}$ac_header_compiler" >&6
19277 # Is the header present?
19278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h. */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 #include <$ac_header>
19287 _ACEOF
19288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } >/dev/null; then
19296 if test -s conftest.err; then
19297 ac_cpp_err=$ac_c_preproc_warn_flag
19298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19299 else
19300 ac_cpp_err=
19302 else
19303 ac_cpp_err=yes
19305 if test -z "$ac_cpp_err"; then
19306 ac_header_preproc=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_header_preproc=no
19313 rm -f conftest.err conftest.$ac_ext
19314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19315 echo "${ECHO_T}$ac_header_preproc" >&6
19317 # So? What about this header?
19318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19319 yes:no: )
19320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19324 ac_header_preproc=yes
19326 no:yes:* )
19327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19340 cat <<\_ASBOX
19341 ## ------------------------------------------ ##
19342 ## Report this to the AC_PACKAGE_NAME lists. ##
19343 ## ------------------------------------------ ##
19344 _ASBOX
19346 sed "s/^/$as_me: WARNING: /" >&2
19348 esac
19349 echo "$as_me:$LINENO: checking for $ac_header" >&5
19350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354 eval "$as_ac_Header=\$ac_header_preproc"
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19363 _ACEOF
19365 else
19367 for ac_header in kerberos/krb.h
19369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 else
19379 # Is the header compilable?
19380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 $ac_includes_default
19389 #include <$ac_header>
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag"
19401 || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_header_compiler=yes
19414 else
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 ac_header_compiler=no
19420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19422 echo "${ECHO_T}$ac_header_compiler" >&6
19424 # Is the header present?
19425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h. */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 #include <$ac_header>
19434 _ACEOF
19435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } >/dev/null; then
19443 if test -s conftest.err; then
19444 ac_cpp_err=$ac_c_preproc_warn_flag
19445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19446 else
19447 ac_cpp_err=
19449 else
19450 ac_cpp_err=yes
19452 if test -z "$ac_cpp_err"; then
19453 ac_header_preproc=yes
19454 else
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_header_preproc=no
19460 rm -f conftest.err conftest.$ac_ext
19461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19462 echo "${ECHO_T}$ac_header_preproc" >&6
19464 # So? What about this header?
19465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466 yes:no: )
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19471 ac_header_preproc=yes
19473 no:yes:* )
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 cat <<\_ASBOX
19488 ## ------------------------------------------ ##
19489 ## Report this to the AC_PACKAGE_NAME lists. ##
19490 ## ------------------------------------------ ##
19491 _ASBOX
19493 sed "s/^/$as_me: WARNING: /" >&2
19495 esac
19496 echo "$as_me:$LINENO: checking for $ac_header" >&5
19497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 eval "$as_ac_Header=\$ac_header_preproc"
19503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19508 cat >>confdefs.h <<_ACEOF
19509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19510 _ACEOF
19514 done
19518 done
19522 done
19526 for ac_header in com_err.h
19528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19530 echo "$as_me:$LINENO: checking for $ac_header" >&5
19531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19537 else
19538 # Is the header compilable?
19539 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 $ac_includes_default
19548 #include <$ac_header>
19549 _ACEOF
19550 rm -f conftest.$ac_objext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19552 (eval $ac_compile) 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag"
19560 || test ! -s conftest.err'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } &&
19566 { ac_try='test -s conftest.$ac_objext'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_header_compiler=yes
19573 else
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_header_compiler=no
19579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19581 echo "${ECHO_T}$ac_header_compiler" >&6
19583 # Is the header present?
19584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 #include <$ac_header>
19593 _ACEOF
19594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } >/dev/null; then
19602 if test -s conftest.err; then
19603 ac_cpp_err=$ac_c_preproc_warn_flag
19604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19605 else
19606 ac_cpp_err=
19608 else
19609 ac_cpp_err=yes
19611 if test -z "$ac_cpp_err"; then
19612 ac_header_preproc=yes
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_header_preproc=no
19619 rm -f conftest.err conftest.$ac_ext
19620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19621 echo "${ECHO_T}$ac_header_preproc" >&6
19623 # So? What about this header?
19624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19625 yes:no: )
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19630 ac_header_preproc=yes
19632 no:yes:* )
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19646 cat <<\_ASBOX
19647 ## ------------------------------------------ ##
19648 ## Report this to the AC_PACKAGE_NAME lists. ##
19649 ## ------------------------------------------ ##
19650 _ASBOX
19652 sed "s/^/$as_me: WARNING: /" >&2
19654 esac
19655 echo "$as_me:$LINENO: checking for $ac_header" >&5
19656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 eval "$as_ac_Header=\$ac_header_preproc"
19662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19669 _ACEOF
19673 done
19677 # Solaris requires -lintl if you want strerror (which calls dgettext)
19678 # to return localized messages.
19680 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19681 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19682 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lintl $LIBS"
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 /* Override any gcc2 internal prototype to avoid an error. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 /* We use char because int might match the return type of a gcc2
19699 builtin and then its argument prototype would still apply. */
19700 char dgettext ();
19702 main ()
19704 dgettext ();
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_lib_intl_dgettext=yes
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_lib_intl_dgettext=no
19738 rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19740 LIBS=$ac_check_lib_save_LIBS
19742 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19743 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19744 if test $ac_cv_lib_intl_dgettext = yes; then
19745 cat >>confdefs.h <<_ACEOF
19746 #define HAVE_LIBINTL 1
19747 _ACEOF
19749 LIBS="-lintl $LIBS"
19754 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19755 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19756 if test "${emacs_cv_localtime_cache+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759 if test x$ac_cv_func_tzset = xyes; then
19760 if test "$cross_compiling" = yes; then
19761 # If we have tzset, assume the worst when cross-compiling.
19762 emacs_cv_localtime_cache=yes
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 #include <time.h>
19771 extern char **environ;
19772 unset_TZ ()
19774 char **from, **to;
19775 for (to = from = environ; (*to = *from); from++)
19776 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19777 to++;
19779 char TZ_GMT0[] = "TZ=GMT0";
19780 char TZ_PST8[] = "TZ=PST8";
19781 main()
19783 time_t now = time ((time_t *) 0);
19784 int hour_GMT0, hour_unset;
19785 if (putenv (TZ_GMT0) != 0)
19786 exit (1);
19787 hour_GMT0 = localtime (&now)->tm_hour;
19788 unset_TZ ();
19789 hour_unset = localtime (&now)->tm_hour;
19790 if (putenv (TZ_PST8) != 0)
19791 exit (1);
19792 if (localtime (&now)->tm_hour == hour_GMT0)
19793 exit (1);
19794 unset_TZ ();
19795 if (localtime (&now)->tm_hour != hour_unset)
19796 exit (1);
19797 exit (0);
19799 _ACEOF
19800 rm -f conftest$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 emacs_cv_localtime_cache=no
19812 else
19813 echo "$as_me: program exited with status $ac_status" >&5
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ( exit $ac_status )
19818 emacs_cv_localtime_cache=yes
19820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19822 else
19823 # If we lack tzset, report that localtime does not cache TZ,
19824 # since we can't invalidate the cache if we don't have tzset.
19825 emacs_cv_localtime_cache=no
19828 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19829 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19830 if test $emacs_cv_localtime_cache = yes; then
19832 cat >>confdefs.h <<\_ACEOF
19833 #define LOCALTIME_CACHE 1
19834 _ACEOF
19838 if test "x$HAVE_TIMEVAL" = xyes; then
19840 for ac_func in gettimeofday
19842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19843 echo "$as_me:$LINENO: checking for $ac_func" >&5
19844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19845 if eval "test \"\${$as_ac_var+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19856 #define $ac_func innocuous_$ac_func
19858 /* System header to define __stub macros and hopefully few prototypes,
19859 which can conflict with char $ac_func (); below.
19860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19861 <limits.h> exists even on freestanding compilers. */
19863 #ifdef __STDC__
19864 # include <limits.h>
19865 #else
19866 # include <assert.h>
19867 #endif
19869 #undef $ac_func
19871 /* Override any gcc2 internal prototype to avoid an error. */
19872 #ifdef __cplusplus
19873 extern "C"
19875 #endif
19876 /* We use char because int might match the return type of a gcc2
19877 builtin and then its argument prototype would still apply. */
19878 char $ac_func ();
19879 /* The GNU C library defines this for functions which it implements
19880 to always fail with ENOSYS. Some functions are actually named
19881 something starting with __ and the normal name is an alias. */
19882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19883 choke me
19884 #else
19885 char (*f) () = $ac_func;
19886 #endif
19887 #ifdef __cplusplus
19889 #endif
19892 main ()
19894 return f != $ac_func;
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19901 (eval $ac_link) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest$ac_exeext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 eval "$as_ac_var=yes"
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 eval "$as_ac_var=no"
19928 rm -f conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19933 if test `eval echo '${'$as_ac_var'}'` = yes; then
19934 cat >>confdefs.h <<_ACEOF
19935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19936 _ACEOF
19939 done
19941 if test $ac_cv_func_gettimeofday = yes; then
19942 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19943 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19944 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19954 #ifdef TIME_WITH_SYS_TIME
19955 #include <sys/time.h>
19956 #include <time.h>
19957 #else
19958 #ifdef HAVE_SYS_TIME_H
19959 #include <sys/time.h>
19960 #else
19961 #include <time.h>
19962 #endif
19963 #endif
19965 main ()
19967 struct timeval time;
19968 gettimeofday (&time, 0);
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 emacs_cv_gettimeofday_two_arguments=yes
19996 else
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 emacs_cv_gettimeofday_two_arguments=no
20002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20004 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20005 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20006 if test $emacs_cv_gettimeofday_two_arguments = no; then
20008 cat >>confdefs.h <<\_ACEOF
20009 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20010 _ACEOF
20016 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20017 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20018 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20019 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <sys/types.h>
20029 #include <$ac_cv_struct_tm>
20033 main ()
20035 static struct tm ac_aggr;
20036 if (ac_aggr.tm_zone)
20037 return 0;
20039 return 0;
20041 _ACEOF
20042 rm -f conftest.$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044 (eval $ac_compile) 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest.$ac_objext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_cv_member_struct_tm_tm_zone=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 #include <sys/types.h>
20076 #include <$ac_cv_struct_tm>
20080 main ()
20082 static struct tm ac_aggr;
20083 if (sizeof ac_aggr.tm_zone)
20084 return 0;
20086 return 0;
20088 _ACEOF
20089 rm -f conftest.$ac_objext
20090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20091 (eval $ac_compile) 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -z "$ac_c_werror_flag"
20099 || test ! -s conftest.err'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_member_struct_tm_tm_zone=yes
20112 else
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_member_struct_tm_tm_zone=no
20118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20123 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20124 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_STRUCT_TM_TM_ZONE 1
20128 _ACEOF
20133 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define HAVE_TM_ZONE 1
20137 _ACEOF
20139 else
20140 echo "$as_me:$LINENO: checking for tzname" >&5
20141 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20142 if test "${ac_cv_var_tzname+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 #include <time.h>
20152 #ifndef tzname /* For SGI. */
20153 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20154 #endif
20157 main ()
20159 atoi(*tzname);
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext conftest$ac_exeext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20166 (eval $ac_link) 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_c_werror_flag"
20174 || test ! -s conftest.err'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; } &&
20180 { ac_try='test -s conftest$ac_exeext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_cv_var_tzname=yes
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20191 ac_cv_var_tzname=no
20193 rm -f conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20197 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20198 if test $ac_cv_var_tzname = yes; then
20200 cat >>confdefs.h <<\_ACEOF
20201 #define HAVE_TZNAME 1
20202 _ACEOF
20208 if test "$ac_cv_func_gettimeofday" = yes; then
20209 echo "$as_me:$LINENO: checking for struct timezone" >&5
20210 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20211 if test "${emacs_cv_struct_timezone+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <sys/time.h>
20222 main ()
20224 struct timezone tz;
20226 return 0;
20228 _ACEOF
20229 rm -f conftest.$ac_objext
20230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231 (eval $ac_compile) 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
20238 { ac_try='test -z "$ac_c_werror_flag"
20239 || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 if test "$cross_compiling" = yes; then
20252 emacs_cv_struct_timezone=yes
20253 else
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 #ifdef TIME_WITH_SYS_TIME
20262 #include <sys/time.h>
20263 #include <time.h>
20264 #else
20265 #ifdef HAVE_SYS_TIME_H
20266 #include <sys/time.h>
20267 #else
20268 #include <time.h>
20269 #endif
20270 #endif
20271 main () {
20272 struct timeval time;
20273 struct timezone dummy;
20274 exit (gettimeofday (&time, &dummy));
20276 _ACEOF
20277 rm -f conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279 (eval $ac_link) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 emacs_cv_struct_timezone=yes
20289 else
20290 echo "$as_me: program exited with status $ac_status" >&5
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ( exit $ac_status )
20295 emacs_cv_struct_timezone=no
20297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 emacs_cv_struct_timezone=no
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20308 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20311 ok_so_far=yes
20312 echo "$as_me:$LINENO: checking for socket" >&5
20313 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20314 if test "${ac_cv_func_socket+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20325 #define socket innocuous_socket
20327 /* System header to define __stub macros and hopefully few prototypes,
20328 which can conflict with char socket (); below.
20329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20330 <limits.h> exists even on freestanding compilers. */
20332 #ifdef __STDC__
20333 # include <limits.h>
20334 #else
20335 # include <assert.h>
20336 #endif
20338 #undef socket
20340 /* Override any gcc2 internal prototype to avoid an error. */
20341 #ifdef __cplusplus
20342 extern "C"
20344 #endif
20345 /* We use char because int might match the return type of a gcc2
20346 builtin and then its argument prototype would still apply. */
20347 char socket ();
20348 /* The GNU C library defines this for functions which it implements
20349 to always fail with ENOSYS. Some functions are actually named
20350 something starting with __ and the normal name is an alias. */
20351 #if defined (__stub_socket) || defined (__stub___socket)
20352 choke me
20353 #else
20354 char (*f) () = socket;
20355 #endif
20356 #ifdef __cplusplus
20358 #endif
20361 main ()
20363 return f != socket;
20365 return 0;
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20370 (eval $ac_link) 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -z "$ac_c_werror_flag"
20378 || test ! -s conftest.err'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest$ac_exeext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_func_socket=yes
20391 else
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_cv_func_socket=no
20397 rm -f conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext conftest.$ac_ext
20400 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20401 echo "${ECHO_T}$ac_cv_func_socket" >&6
20402 if test $ac_cv_func_socket = yes; then
20404 else
20405 ok_so_far=no
20408 if test $ok_so_far = yes; then
20409 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20410 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20411 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20412 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20416 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20417 else
20418 # Is the header compilable?
20419 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20420 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 $ac_includes_default
20428 #include <netinet/in.h>
20429 _ACEOF
20430 rm -f conftest.$ac_objext
20431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20432 (eval $ac_compile) 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } &&
20439 { ac_try='test -z "$ac_c_werror_flag"
20440 || test ! -s conftest.err'
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20443 ac_status=$?
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest.$ac_objext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_header_compiler=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_header_compiler=no
20459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6
20463 # Is the header present?
20464 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20465 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <netinet/in.h>
20473 _ACEOF
20474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } >/dev/null; then
20482 if test -s conftest.err; then
20483 ac_cpp_err=$ac_c_preproc_warn_flag
20484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20485 else
20486 ac_cpp_err=
20488 else
20489 ac_cpp_err=yes
20491 if test -z "$ac_cpp_err"; then
20492 ac_header_preproc=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_header_preproc=no
20499 rm -f conftest.err conftest.$ac_ext
20500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20501 echo "${ECHO_T}$ac_header_preproc" >&6
20503 # So? What about this header?
20504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20505 yes:no: )
20506 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20507 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20509 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20510 ac_header_preproc=yes
20512 no:yes:* )
20513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20514 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20516 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20518 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20520 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20522 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20524 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20526 cat <<\_ASBOX
20527 ## ------------------------------------------ ##
20528 ## Report this to the AC_PACKAGE_NAME lists. ##
20529 ## ------------------------------------------ ##
20530 _ASBOX
20532 sed "s/^/$as_me: WARNING: /" >&2
20534 esac
20535 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20536 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20537 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540 ac_cv_header_netinet_in_h=$ac_header_preproc
20542 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20543 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20546 if test $ac_cv_header_netinet_in_h = yes; then
20548 else
20549 ok_so_far=no
20554 if test $ok_so_far = yes; then
20555 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20556 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20557 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20558 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20562 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20563 else
20564 # Is the header compilable?
20565 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20566 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20574 #include <arpa/inet.h>
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag"
20586 || test ! -s conftest.err'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest.$ac_objext'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 ac_header_compiler=yes
20599 else
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 ac_header_compiler=no
20605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20607 echo "${ECHO_T}$ac_header_compiler" >&6
20609 # Is the header present?
20610 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20611 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20612 cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h. */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 #include <arpa/inet.h>
20619 _ACEOF
20620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20622 ac_status=$?
20623 grep -v '^ *+' conftest.er1 >conftest.err
20624 rm -f conftest.er1
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } >/dev/null; then
20628 if test -s conftest.err; then
20629 ac_cpp_err=$ac_c_preproc_warn_flag
20630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20631 else
20632 ac_cpp_err=
20634 else
20635 ac_cpp_err=yes
20637 if test -z "$ac_cpp_err"; then
20638 ac_header_preproc=yes
20639 else
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_header_preproc=no
20645 rm -f conftest.err conftest.$ac_ext
20646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20647 echo "${ECHO_T}$ac_header_preproc" >&6
20649 # So? What about this header?
20650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20651 yes:no: )
20652 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20653 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20655 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20656 ac_header_preproc=yes
20658 no:yes:* )
20659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20660 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20662 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20664 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20666 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20668 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20670 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20672 cat <<\_ASBOX
20673 ## ------------------------------------------ ##
20674 ## Report this to the AC_PACKAGE_NAME lists. ##
20675 ## ------------------------------------------ ##
20676 _ASBOX
20678 sed "s/^/$as_me: WARNING: /" >&2
20680 esac
20681 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20682 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20683 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686 ac_cv_header_arpa_inet_h=$ac_header_preproc
20688 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20689 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20692 if test $ac_cv_header_arpa_inet_h = yes; then
20694 else
20695 ok_so_far=no
20700 if test $ok_so_far = yes; then
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE_INET_SOCKETS 1
20704 _ACEOF
20709 for ac_header in sys/ioctl.h
20711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20713 echo "$as_me:$LINENO: checking for $ac_header" >&5
20714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20720 else
20721 # Is the header compilable?
20722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 $ac_includes_default
20731 #include <$ac_header>
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735 (eval $ac_compile) 2>conftest.er1
20736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } &&
20742 { ac_try='test -z "$ac_c_werror_flag"
20743 || test ! -s conftest.err'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; } &&
20749 { ac_try='test -s conftest.$ac_objext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_header_compiler=yes
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_header_compiler=no
20762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20764 echo "${ECHO_T}$ac_header_compiler" >&6
20766 # Is the header present?
20767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 #include <$ac_header>
20776 _ACEOF
20777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } >/dev/null; then
20785 if test -s conftest.err; then
20786 ac_cpp_err=$ac_c_preproc_warn_flag
20787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20788 else
20789 ac_cpp_err=
20791 else
20792 ac_cpp_err=yes
20794 if test -z "$ac_cpp_err"; then
20795 ac_header_preproc=yes
20796 else
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ac_header_preproc=no
20802 rm -f conftest.err conftest.$ac_ext
20803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20804 echo "${ECHO_T}$ac_header_preproc" >&6
20806 # So? What about this header?
20807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20808 yes:no: )
20809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20813 ac_header_preproc=yes
20815 no:yes:* )
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20829 cat <<\_ASBOX
20830 ## ------------------------------------------ ##
20831 ## Report this to the AC_PACKAGE_NAME lists. ##
20832 ## ------------------------------------------ ##
20833 _ASBOX
20835 sed "s/^/$as_me: WARNING: /" >&2
20837 esac
20838 echo "$as_me:$LINENO: checking for $ac_header" >&5
20839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843 eval "$as_ac_Header=\$ac_header_preproc"
20845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20850 cat >>confdefs.h <<_ACEOF
20851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20852 _ACEOF
20856 done
20859 if test -f /usr/lpp/X11/bin/smt.exp; then
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_AIX_SMT_EXP 1
20863 _ACEOF
20867 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20868 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20869 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20870 echo "$as_me:$LINENO: result: yes" >&5
20871 echo "${ECHO_T}yes" >&6
20873 cat >>confdefs.h <<\_ACEOF
20874 #define HAVE_DEV_PTMX 1
20875 _ACEOF
20877 else
20878 echo "$as_me:$LINENO: result: no" >&5
20879 echo "${ECHO_T}no" >&6
20882 echo "$as_me:$LINENO: checking for pid_t" >&5
20883 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20884 if test "${ac_cv_type_pid_t+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h. */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 $ac_includes_default
20895 main ()
20897 if ((pid_t *) 0)
20898 return 0;
20899 if (sizeof (pid_t))
20900 return 0;
20902 return 0;
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20907 (eval $ac_compile) 2>conftest.er1
20908 ac_status=$?
20909 grep -v '^ *+' conftest.er1 >conftest.err
20910 rm -f conftest.er1
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } &&
20914 { ac_try='test -z "$ac_c_werror_flag"
20915 || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_type_pid_t=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_cv_type_pid_t=no
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20937 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20938 if test $ac_cv_type_pid_t = yes; then
20940 else
20942 cat >>confdefs.h <<_ACEOF
20943 #define pid_t int
20944 _ACEOF
20950 for ac_header in unistd.h vfork.h
20952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20954 echo "$as_me:$LINENO: checking for $ac_header" >&5
20955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20961 else
20962 # Is the header compilable?
20963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 $ac_includes_default
20972 #include <$ac_header>
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_c_werror_flag"
20984 || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_header_compiler=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_header_compiler=no
21003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005 echo "${ECHO_T}$ac_header_compiler" >&6
21007 # Is the header present?
21008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h. */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 #include <$ac_header>
21017 _ACEOF
21018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } >/dev/null; then
21026 if test -s conftest.err; then
21027 ac_cpp_err=$ac_c_preproc_warn_flag
21028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21029 else
21030 ac_cpp_err=
21032 else
21033 ac_cpp_err=yes
21035 if test -z "$ac_cpp_err"; then
21036 ac_header_preproc=yes
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_header_preproc=no
21043 rm -f conftest.err conftest.$ac_ext
21044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21045 echo "${ECHO_T}$ac_header_preproc" >&6
21047 # So? What about this header?
21048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049 yes:no: )
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21054 ac_header_preproc=yes
21056 no:yes:* )
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21070 cat <<\_ASBOX
21071 ## ------------------------------------------ ##
21072 ## Report this to the AC_PACKAGE_NAME lists. ##
21073 ## ------------------------------------------ ##
21074 _ASBOX
21076 sed "s/^/$as_me: WARNING: /" >&2
21078 esac
21079 echo "$as_me:$LINENO: checking for $ac_header" >&5
21080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 else
21084 eval "$as_ac_Header=\$ac_header_preproc"
21086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21093 _ACEOF
21097 done
21101 for ac_func in fork vfork
21103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21104 echo "$as_me:$LINENO: checking for $ac_func" >&5
21105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21106 if eval "test \"\${$as_ac_var+set}\" = set"; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21117 #define $ac_func innocuous_$ac_func
21119 /* System header to define __stub macros and hopefully few prototypes,
21120 which can conflict with char $ac_func (); below.
21121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21122 <limits.h> exists even on freestanding compilers. */
21124 #ifdef __STDC__
21125 # include <limits.h>
21126 #else
21127 # include <assert.h>
21128 #endif
21130 #undef $ac_func
21132 /* Override any gcc2 internal prototype to avoid an error. */
21133 #ifdef __cplusplus
21134 extern "C"
21136 #endif
21137 /* We use char because int might match the return type of a gcc2
21138 builtin and then its argument prototype would still apply. */
21139 char $ac_func ();
21140 /* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21144 choke me
21145 #else
21146 char (*f) () = $ac_func;
21147 #endif
21148 #ifdef __cplusplus
21150 #endif
21153 main ()
21155 return f != $ac_func;
21157 return 0;
21159 _ACEOF
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 eval "$as_ac_var=yes"
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 eval "$as_ac_var=no"
21189 rm -f conftest.err conftest.$ac_objext \
21190 conftest$ac_exeext conftest.$ac_ext
21192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21194 if test `eval echo '${'$as_ac_var'}'` = yes; then
21195 cat >>confdefs.h <<_ACEOF
21196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21197 _ACEOF
21200 done
21202 if test "x$ac_cv_func_fork" = xyes; then
21203 echo "$as_me:$LINENO: checking for working fork" >&5
21204 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21205 if test "${ac_cv_func_fork_works+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208 if test "$cross_compiling" = yes; then
21209 ac_cv_func_fork_works=cross
21210 else
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* By Ruediger Kuhlmann. */
21213 #include <sys/types.h>
21214 #if HAVE_UNISTD_H
21215 # include <unistd.h>
21216 #endif
21217 /* Some systems only have a dummy stub for fork() */
21218 int main ()
21220 if (fork() < 0)
21221 exit (1);
21222 exit (0);
21224 _ACEOF
21225 rm -f conftest$ac_exeext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21227 (eval $ac_link) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 ac_cv_func_fork_works=yes
21237 else
21238 echo "$as_me: program exited with status $ac_status" >&5
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ( exit $ac_status )
21243 ac_cv_func_fork_works=no
21245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21248 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21249 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21251 else
21252 ac_cv_func_fork_works=$ac_cv_func_fork
21254 if test "x$ac_cv_func_fork_works" = xcross; then
21255 case $host in
21256 *-*-amigaos* | *-*-msdosdjgpp*)
21257 # Override, as these systems have only a dummy fork() stub
21258 ac_cv_func_fork_works=no
21261 ac_cv_func_fork_works=yes
21263 esac
21264 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21265 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21267 ac_cv_func_vfork_works=$ac_cv_func_vfork
21268 if test "x$ac_cv_func_vfork" = xyes; then
21269 echo "$as_me:$LINENO: checking for working vfork" >&5
21270 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21271 if test "${ac_cv_func_vfork_works+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274 if test "$cross_compiling" = yes; then
21275 ac_cv_func_vfork_works=cross
21276 else
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h. */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 /* Thanks to Paul Eggert for this test. */
21284 #include <stdio.h>
21285 #include <stdlib.h>
21286 #include <sys/types.h>
21287 #include <sys/stat.h>
21288 #include <sys/wait.h>
21289 #if HAVE_UNISTD_H
21290 # include <unistd.h>
21291 #endif
21292 #if HAVE_VFORK_H
21293 # include <vfork.h>
21294 #endif
21295 /* On some sparc systems, changes by the child to local and incoming
21296 argument registers are propagated back to the parent. The compiler
21297 is told about this with #include <vfork.h>, but some compilers
21298 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21299 static variable whose address is put into a register that is
21300 clobbered by the vfork. */
21301 static void
21302 #ifdef __cplusplus
21303 sparc_address_test (int arg)
21304 # else
21305 sparc_address_test (arg) int arg;
21306 #endif
21308 static pid_t child;
21309 if (!child) {
21310 child = vfork ();
21311 if (child < 0) {
21312 perror ("vfork");
21313 _exit(2);
21315 if (!child) {
21316 arg = getpid();
21317 write(-1, "", 0);
21318 _exit (arg);
21324 main ()
21326 pid_t parent = getpid ();
21327 pid_t child;
21329 sparc_address_test (0);
21331 child = vfork ();
21333 if (child == 0) {
21334 /* Here is another test for sparc vfork register problems. This
21335 test uses lots of local variables, at least as many local
21336 variables as main has allocated so far including compiler
21337 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21338 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21339 reuse the register of parent for one of the local variables,
21340 since it will think that parent can't possibly be used any more
21341 in this routine. Assigning to the local variable will thus
21342 munge parent in the parent process. */
21343 pid_t
21344 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21345 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21346 /* Convince the compiler that p..p7 are live; otherwise, it might
21347 use the same hardware register for all 8 local variables. */
21348 if (p != p1 || p != p2 || p != p3 || p != p4
21349 || p != p5 || p != p6 || p != p7)
21350 _exit(1);
21352 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21353 from child file descriptors. If the child closes a descriptor
21354 before it execs or exits, this munges the parent's descriptor
21355 as well. Test for this by closing stdout in the child. */
21356 _exit(close(fileno(stdout)) != 0);
21357 } else {
21358 int status;
21359 struct stat st;
21361 while (wait(&status) != child)
21363 exit(
21364 /* Was there some problem with vforking? */
21365 child < 0
21367 /* Did the child fail? (This shouldn't happen.) */
21368 || status
21370 /* Did the vfork/compiler bug occur? */
21371 || parent != getpid()
21373 /* Did the file descriptor bug occur? */
21374 || fstat(fileno(stdout), &st) != 0
21378 _ACEOF
21379 rm -f conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381 (eval $ac_link) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_func_vfork_works=yes
21391 else
21392 echo "$as_me: program exited with status $ac_status" >&5
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ( exit $ac_status )
21397 ac_cv_func_vfork_works=no
21399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21402 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21403 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21406 if test "x$ac_cv_func_fork_works" = xcross; then
21407 ac_cv_func_vfork_works=$ac_cv_func_vfork
21408 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21409 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21412 if test "x$ac_cv_func_vfork_works" = xyes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_WORKING_VFORK 1
21416 _ACEOF
21418 else
21420 cat >>confdefs.h <<\_ACEOF
21421 #define vfork fork
21422 _ACEOF
21425 if test "x$ac_cv_func_fork_works" = xyes; then
21427 cat >>confdefs.h <<\_ACEOF
21428 #define HAVE_WORKING_FORK 1
21429 _ACEOF
21434 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21435 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21436 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <langinfo.h>
21447 main ()
21449 char* cs = nl_langinfo(CODESET);
21451 return 0;
21453 _ACEOF
21454 rm -f conftest.$ac_objext conftest$ac_exeext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21456 (eval $ac_link) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest$ac_exeext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 emacs_cv_langinfo_codeset=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 emacs_cv_langinfo_codeset=no
21483 rm -f conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext conftest.$ac_ext
21487 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21488 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21489 if test $emacs_cv_langinfo_codeset = yes; then
21491 cat >>confdefs.h <<\_ACEOF
21492 #define HAVE_LANGINFO_CODESET 1
21493 _ACEOF
21497 echo "$as_me:$LINENO: checking for size_t" >&5
21498 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21499 if test "${ac_cv_type_size_t+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h. */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 $ac_includes_default
21510 main ()
21512 if ((size_t *) 0)
21513 return 0;
21514 if (sizeof (size_t))
21515 return 0;
21517 return 0;
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21522 (eval $ac_compile) 2>conftest.er1
21523 ac_status=$?
21524 grep -v '^ *+' conftest.er1 >conftest.err
21525 rm -f conftest.er1
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag"
21530 || test ! -s conftest.err'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 ac_cv_type_size_t=yes
21543 else
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_cv_type_size_t=no
21549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21551 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21552 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21553 if test $ac_cv_type_size_t = yes; then
21555 cat >>confdefs.h <<_ACEOF
21556 #define HAVE_SIZE_T 1
21557 _ACEOF
21563 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21564 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21565 if test "${ac_cv_type_mbstate_t+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h. */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 # include <wchar.h>
21577 main ()
21579 mbstate_t x; return sizeof x;
21581 return 0;
21583 _ACEOF
21584 rm -f conftest.$ac_objext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21586 (eval $ac_compile) 2>conftest.er1
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
21593 { ac_try='test -z "$ac_c_werror_flag"
21594 || test ! -s conftest.err'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } &&
21600 { ac_try='test -s conftest.$ac_objext'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_cv_type_mbstate_t=yes
21607 else
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ac_cv_type_mbstate_t=no
21613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21616 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21617 if test $ac_cv_type_mbstate_t = yes; then
21619 cat >>confdefs.h <<\_ACEOF
21620 #define HAVE_MBSTATE_T 1
21621 _ACEOF
21623 else
21625 cat >>confdefs.h <<\_ACEOF
21626 #define mbstate_t int
21627 _ACEOF
21631 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21632 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21633 if test "${emacs_cv_c_restrict+set}" = set; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h. */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 void fred (int *restrict x);
21644 main ()
21648 return 0;
21650 _ACEOF
21651 rm -f conftest.$ac_objext
21652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21653 (eval $ac_compile) 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } &&
21660 { ac_try='test -z "$ac_c_werror_flag"
21661 || test ! -s conftest.err'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; } &&
21667 { ac_try='test -s conftest.$ac_objext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 emacs_cv_c_restrict=yes
21674 else
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h. */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 void fred (int *__restrict x);
21686 main ()
21690 return 0;
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21695 (eval $ac_compile) 2>conftest.er1
21696 ac_status=$?
21697 grep -v '^ *+' conftest.er1 >conftest.err
21698 rm -f conftest.er1
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } &&
21702 { ac_try='test -z "$ac_c_werror_flag"
21703 || test ! -s conftest.err'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest.$ac_objext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 emacs_cv_c_restrict=__restrict
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 emacs_cv_c_restrict=no
21722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21727 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21728 case "$emacs_cv_c_restrict" in
21729 yes) emacs_restrict=restrict;;
21730 no) emacs_restrict="";;
21731 *) emacs_restrict="$emacs_cv_c_restrict";;
21732 esac
21733 if test "$emacs_restrict" != __restrict; then
21735 cat >>confdefs.h <<_ACEOF
21736 #define __restrict $emacs_restrict
21737 _ACEOF
21741 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21742 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21743 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746 cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h. */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21752 void fred (int x[__restrict]);
21754 main ()
21758 return 0;
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 emacs_cv_c_restrict_arr=yes
21784 else
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 emacs_cv_c_restrict_arr=no
21790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21792 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21793 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21794 if test "$emacs_cv_c_restrict_arr" = yes; then
21796 cat >>confdefs.h <<\_ACEOF
21797 #define __restrict_arr __restrict
21798 _ACEOF
21804 # Set up the CFLAGS for real compilation, so we can substitute it.
21805 CFLAGS="$REAL_CFLAGS"
21806 CPPFLAGS="$REAL_CPPFLAGS"
21808 #### Find out which version of Emacs this is.
21809 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21810 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21811 if test x"${version}" = x; then
21812 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21813 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21814 { (exit 1); exit 1; }; }
21817 ### Specify what sort of things we'll be editing into Makefile and config.h.
21818 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21854 cat >>confdefs.h <<_ACEOF
21855 #define EMACS_CONFIGURATION "${canonical}"
21856 _ACEOF
21859 cat >>confdefs.h <<_ACEOF
21860 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21861 _ACEOF
21864 cat >>confdefs.h <<_ACEOF
21865 #define config_machfile "${machfile}"
21866 _ACEOF
21869 cat >>confdefs.h <<_ACEOF
21870 #define config_opsysfile "${opsysfile}"
21871 _ACEOF
21874 cat >>confdefs.h <<_ACEOF
21875 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21876 _ACEOF
21879 cat >>confdefs.h <<_ACEOF
21880 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21881 _ACEOF
21884 cat >>confdefs.h <<_ACEOF
21885 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21886 _ACEOF
21889 cat >>confdefs.h <<_ACEOF
21890 #define UNEXEC_SRC ${UNEXEC_SRC}
21891 _ACEOF
21894 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21896 cat >>confdefs.h <<\_ACEOF
21897 #define HAVE_X_WINDOWS 1
21898 _ACEOF
21901 if test "${USE_X_TOOLKIT}" != "none" ; then
21903 cat >>confdefs.h <<\_ACEOF
21904 #define USE_X_TOOLKIT 1
21905 _ACEOF
21908 if test "${HAVE_X11}" = "yes" ; then
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_X11 1
21912 _ACEOF
21915 if test "${HAVE_XFREE386}" = "yes" ; then
21917 cat >>confdefs.h <<\_ACEOF
21918 #define HAVE_XFREE386 1
21919 _ACEOF
21922 if test "${HAVE_MENUS}" = "yes" ; then
21924 cat >>confdefs.h <<\_ACEOF
21925 #define HAVE_MENUS 1
21926 _ACEOF
21929 if test "${GNU_MALLOC}" = "yes" ; then
21931 cat >>confdefs.h <<\_ACEOF
21932 #define GNU_MALLOC 1
21933 _ACEOF
21936 if test "${REL_ALLOC}" = "yes" ; then
21938 cat >>confdefs.h <<\_ACEOF
21939 #define REL_ALLOC 1
21940 _ACEOF
21948 #### Report on what we decided to do.
21949 #### Report GTK as a toolkit, even if it doesn't use Xt.
21950 #### It makes printing result more understandable as using GTK sets
21951 #### toolkit_scroll_bars to yes by default.
21952 if test "${HAVE_GTK}" = "yes"; then
21953 USE_X_TOOLKIT=GTK
21956 echo "
21957 Configured for \`${canonical}'.
21959 Where should the build process find the source code? ${srcdir}
21960 What operating system and machine description files should Emacs use?
21961 \`${opsysfile}' and \`${machfile}'
21962 What compiler should emacs be built with? ${CC} ${CFLAGS}
21963 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21964 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21965 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21966 What window system should Emacs use? ${window_system}
21967 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21969 if test -n "${x_includes}"; then
21970 echo " Where do we find X Windows header files? ${x_includes}"
21971 else
21972 echo " Where do we find X Windows header files? Standard dirs"
21974 if test -n "${x_libraries}"; then
21975 echo " Where do we find X Windows libraries? ${x_libraries}"
21976 else
21977 echo " Where do we find X Windows libraries? Standard dirs"
21980 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21981 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21982 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21983 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21984 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21985 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21986 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21987 echo
21989 if test $USE_XASSERTS = yes; then
21990 echo " Compiling with asserts turned on."
21991 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21992 echo
21997 # Remove any trailing slashes in these variables.
21998 test "${prefix}" != NONE &&
21999 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22000 test "${exec_prefix}" != NONE &&
22001 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22003 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22004 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22005 ## from Makefile.c can correctly provide the arg `-traditional' to the
22006 ## C preprocessor.
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 yes..yes
22015 _ACEOF
22016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22017 $EGREP "yes..yes" >/dev/null 2>&1; then
22018 CPP_NEED_TRADITIONAL=no
22019 else
22020 CPP_NEED_TRADITIONAL=yes
22022 rm -f conftest*
22025 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"
22026 ac_config_commands="$ac_config_commands default"
22027 cat >confcache <<\_ACEOF
22028 # This file is a shell script that caches the results of configure
22029 # tests run on this system so they can be shared between configure
22030 # scripts and configure runs, see configure's option --config-cache.
22031 # It is not useful on other systems. If it contains results you don't
22032 # want to keep, you may remove or edit it.
22034 # config.status only pays attention to the cache file if you give it
22035 # the --recheck option to rerun configure.
22037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22039 # following values.
22041 _ACEOF
22043 # The following way of writing the cache mishandles newlines in values,
22044 # but we know of no workaround that is simple, portable, and efficient.
22045 # So, don't put newlines in cache variables' values.
22046 # Ultrix sh set writes to stderr and can't be redirected directly,
22047 # and sets the high bit in the cache file unless we assign to the vars.
22049 (set) 2>&1 |
22050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22051 *ac_space=\ *)
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22054 sed -n \
22055 "s/'/'\\\\''/g;
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22060 sed -n \
22061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22063 esac;
22065 sed '
22066 t clear
22067 : clear
22068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22069 t end
22070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22071 : end' >>confcache
22072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22073 if test -w $cache_file; then
22074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075 cat confcache >$cache_file
22076 else
22077 echo "not updating unwritable cache $cache_file"
22080 rm -f confcache
22082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22083 # Let make expand exec_prefix.
22084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088 # trailing colons and then remove the whole line if VPATH becomes empty
22089 # (actually we leave an empty line to preserve line numbers).
22090 if test "x$srcdir" = x.; then
22091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22092 s/:*\$(srcdir):*/:/;
22093 s/:*\${srcdir}:*/:/;
22094 s/:*@srcdir@:*/:/;
22095 s/^\([^=]*=[ ]*\):*/\1/;
22096 s/:*$//;
22097 s/^[^=]*=[ ]*$//;
22101 DEFS=-DHAVE_CONFIG_H
22103 ac_libobjs=
22104 ac_ltlibobjs=
22105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22106 # 1. Remove the extension, and $U if already installed.
22107 ac_i=`echo "$ac_i" |
22108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22109 # 2. Add them.
22110 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22111 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22112 done
22113 LIBOBJS=$ac_libobjs
22115 LTLIBOBJS=$ac_ltlibobjs
22119 : ${CONFIG_STATUS=./config.status}
22120 ac_clean_files_save=$ac_clean_files
22121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124 cat >$CONFIG_STATUS <<_ACEOF
22125 #! $SHELL
22126 # Generated by $as_me.
22127 # Run this file to recreate the current configuration.
22128 # Compiler output produced by configure, useful for debugging
22129 # configure, is in config.log if it exists.
22131 debug=false
22132 ac_cs_recheck=false
22133 ac_cs_silent=false
22134 SHELL=\${CONFIG_SHELL-$SHELL}
22135 _ACEOF
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 ## --------------------- ##
22139 ## M4sh Initialization. ##
22140 ## --------------------- ##
22142 # Be Bourne compatible
22143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22144 emulate sh
22145 NULLCMD=:
22146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147 # is contrary to our usage. Disable this feature.
22148 alias -g '${1+"$@"}'='"$@"'
22149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22150 set -o posix
22152 DUALCASE=1; export DUALCASE # for MKS sh
22154 # Support unset when possible.
22155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22156 as_unset=unset
22157 else
22158 as_unset=false
22162 # Work around bugs in pre-3.0 UWIN ksh.
22163 $as_unset ENV MAIL MAILPATH
22164 PS1='$ '
22165 PS2='> '
22166 PS4='+ '
22168 # NLS nuisances.
22169 for as_var in \
22170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22172 LC_TELEPHONE LC_TIME
22174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22175 eval $as_var=C; export $as_var
22176 else
22177 $as_unset $as_var
22179 done
22181 # Required to use basename.
22182 if expr a : '\(a\)' >/dev/null 2>&1; then
22183 as_expr=expr
22184 else
22185 as_expr=false
22188 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22189 as_basename=basename
22190 else
22191 as_basename=false
22195 # Name of the executable.
22196 as_me=`$as_basename "$0" ||
22197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22198 X"$0" : 'X\(//\)$' \| \
22199 X"$0" : 'X\(/\)$' \| \
22200 . : '\(.\)' 2>/dev/null ||
22201 echo X/"$0" |
22202 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22203 /^X\/\(\/\/\)$/{ s//\1/; q; }
22204 /^X\/\(\/\).*/{ s//\1/; q; }
22205 s/.*/./; q'`
22208 # PATH needs CR, and LINENO needs CR and PATH.
22209 # Avoid depending upon Character Ranges.
22210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22213 as_cr_digits='0123456789'
22214 as_cr_alnum=$as_cr_Letters$as_cr_digits
22216 # The user is always right.
22217 if test "${PATH_SEPARATOR+set}" != set; then
22218 echo "#! /bin/sh" >conf$$.sh
22219 echo "exit 0" >>conf$$.sh
22220 chmod +x conf$$.sh
22221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22222 PATH_SEPARATOR=';'
22223 else
22224 PATH_SEPARATOR=:
22226 rm -f conf$$.sh
22230 as_lineno_1=$LINENO
22231 as_lineno_2=$LINENO
22232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22233 test "x$as_lineno_1" != "x$as_lineno_2" &&
22234 test "x$as_lineno_3" = "x$as_lineno_2" || {
22235 # Find who we are. Look in the path if we contain no path at all
22236 # relative or not.
22237 case $0 in
22238 *[\\/]* ) as_myself=$0 ;;
22239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22240 for as_dir in $PATH
22242 IFS=$as_save_IFS
22243 test -z "$as_dir" && as_dir=.
22244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22245 done
22248 esac
22249 # We did not find ourselves, most probably we were run as `sh COMMAND'
22250 # in which case we are not to be found in the path.
22251 if test "x$as_myself" = x; then
22252 as_myself=$0
22254 if test ! -f "$as_myself"; then
22255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22257 { (exit 1); exit 1; }; }
22259 case $CONFIG_SHELL in
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22264 IFS=$as_save_IFS
22265 test -z "$as_dir" && as_dir=.
22266 for as_base in sh bash ksh sh5; do
22267 case $as_dir in
22269 if ("$as_dir/$as_base" -c '
22270 as_lineno_1=$LINENO
22271 as_lineno_2=$LINENO
22272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22273 test "x$as_lineno_1" != "x$as_lineno_2" &&
22274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22275 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22276 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22277 CONFIG_SHELL=$as_dir/$as_base
22278 export CONFIG_SHELL
22279 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22280 fi;;
22281 esac
22282 done
22283 done
22285 esac
22287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22288 # uniformly replaced by the line number. The first 'sed' inserts a
22289 # line-number line before each line; the second 'sed' does the real
22290 # work. The second script uses 'N' to pair each line-number line
22291 # with the numbered line, and appends trailing '-' during
22292 # substitution so that $LINENO is not a special case at line end.
22293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22294 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22295 sed '=' <$as_myself |
22296 sed '
22298 s,$,-,
22299 : loop
22300 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22301 t loop
22302 s,-$,,
22303 s,^['$as_cr_digits']*\n,,
22304 ' >$as_me.lineno &&
22305 chmod +x $as_me.lineno ||
22306 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22308 { (exit 1); exit 1; }; }
22310 # Don't try to exec as it changes $[0], causing all sort of problems
22311 # (the dirname of $[0] is not the place where we might find the
22312 # original and so on. Autoconf is especially sensible to this).
22313 . ./$as_me.lineno
22314 # Exit status is that of the last command.
22315 exit
22319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22320 *c*,-n*) ECHO_N= ECHO_C='
22321 ' ECHO_T=' ' ;;
22322 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22323 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22324 esac
22326 if expr a : '\(a\)' >/dev/null 2>&1; then
22327 as_expr=expr
22328 else
22329 as_expr=false
22332 rm -f conf$$ conf$$.exe conf$$.file
22333 echo >conf$$.file
22334 if ln -s conf$$.file conf$$ 2>/dev/null; then
22335 # We could just check for DJGPP; but this test a) works b) is more generic
22336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22337 if test -f conf$$.exe; then
22338 # Don't use ln at all; we don't have any links
22339 as_ln_s='cp -p'
22340 else
22341 as_ln_s='ln -s'
22343 elif ln conf$$.file conf$$ 2>/dev/null; then
22344 as_ln_s=ln
22345 else
22346 as_ln_s='cp -p'
22348 rm -f conf$$ conf$$.exe conf$$.file
22350 if mkdir -p . 2>/dev/null; then
22351 as_mkdir_p=:
22352 else
22353 test -d ./-p && rmdir ./-p
22354 as_mkdir_p=false
22357 as_executable_p="test -f"
22359 # Sed expression to map a string onto a valid CPP name.
22360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22362 # Sed expression to map a string onto a valid variable name.
22363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22366 # IFS
22367 # We need space, tab and new line, in precisely that order.
22368 as_nl='
22370 IFS=" $as_nl"
22372 # CDPATH.
22373 $as_unset CDPATH
22375 exec 6>&1
22377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22378 # report actual input values of CONFIG_FILES etc. instead of their
22379 # values after options handling. Logging --version etc. is OK.
22380 exec 5>>config.log
22382 echo
22383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22384 ## Running $as_me. ##
22385 _ASBOX
22386 } >&5
22387 cat >&5 <<_CSEOF
22389 This file was extended by $as_me, which was
22390 generated by GNU Autoconf 2.59. Invocation command line was
22392 CONFIG_FILES = $CONFIG_FILES
22393 CONFIG_HEADERS = $CONFIG_HEADERS
22394 CONFIG_LINKS = $CONFIG_LINKS
22395 CONFIG_COMMANDS = $CONFIG_COMMANDS
22396 $ $0 $@
22398 _CSEOF
22399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22400 echo >&5
22401 _ACEOF
22403 # Files that config.status was made for.
22404 if test -n "$ac_config_files"; then
22405 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22408 if test -n "$ac_config_headers"; then
22409 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22412 if test -n "$ac_config_links"; then
22413 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22416 if test -n "$ac_config_commands"; then
22417 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22422 ac_cs_usage="\
22423 \`$as_me' instantiates files from templates according to the
22424 current configuration.
22426 Usage: $0 [OPTIONS] [FILE]...
22428 -h, --help print this help, then exit
22429 -V, --version print version number, then exit
22430 -q, --quiet do not print progress messages
22431 -d, --debug don't remove temporary files
22432 --recheck update $as_me by reconfiguring in the same conditions
22433 --file=FILE[:TEMPLATE]
22434 instantiate the configuration file FILE
22435 --header=FILE[:TEMPLATE]
22436 instantiate the configuration header FILE
22438 Configuration files:
22439 $config_files
22441 Configuration headers:
22442 $config_headers
22444 Configuration commands:
22445 $config_commands
22447 Report bugs to <bug-autoconf@gnu.org>."
22448 _ACEOF
22450 cat >>$CONFIG_STATUS <<_ACEOF
22451 ac_cs_version="\\
22452 config.status
22453 configured by $0, generated by GNU Autoconf 2.59,
22454 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22456 Copyright (C) 2003 Free Software Foundation, Inc.
22457 This config.status script is free software; the Free Software Foundation
22458 gives unlimited permission to copy, distribute and modify it."
22459 srcdir=$srcdir
22460 INSTALL="$INSTALL"
22461 _ACEOF
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 # If no file are specified by the user, then we need to provide default
22465 # value. By we need to know if files were specified by the user.
22466 ac_need_defaults=:
22467 while test $# != 0
22469 case $1 in
22470 --*=*)
22471 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22472 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22473 ac_shift=:
22476 ac_option=$1
22477 ac_optarg=$2
22478 ac_shift=shift
22480 *) # This is not an option, so the user has probably given explicit
22481 # arguments.
22482 ac_option=$1
22483 ac_need_defaults=false;;
22484 esac
22486 case $ac_option in
22487 # Handling of the options.
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22491 ac_cs_recheck=: ;;
22492 --version | --vers* | -V )
22493 echo "$ac_cs_version"; exit 0 ;;
22494 --he | --h)
22495 # Conflict between --help and --header
22496 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22497 Try \`$0 --help' for more information." >&5
22498 echo "$as_me: error: ambiguous option: $1
22499 Try \`$0 --help' for more information." >&2;}
22500 { (exit 1); exit 1; }; };;
22501 --help | --hel | -h )
22502 echo "$ac_cs_usage"; exit 0 ;;
22503 --debug | --d* | -d )
22504 debug=: ;;
22505 --file | --fil | --fi | --f )
22506 $ac_shift
22507 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22508 ac_need_defaults=false;;
22509 --header | --heade | --head | --hea )
22510 $ac_shift
22511 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22512 ac_need_defaults=false;;
22513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22515 ac_cs_silent=: ;;
22517 # This is an error.
22518 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22519 Try \`$0 --help' for more information." >&5
22520 echo "$as_me: error: unrecognized option: $1
22521 Try \`$0 --help' for more information." >&2;}
22522 { (exit 1); exit 1; }; } ;;
22524 *) ac_config_targets="$ac_config_targets $1" ;;
22526 esac
22527 shift
22528 done
22530 ac_configure_extra_args=
22532 if $ac_cs_silent; then
22533 exec 6>/dev/null
22534 ac_configure_extra_args="$ac_configure_extra_args --silent"
22537 _ACEOF
22538 cat >>$CONFIG_STATUS <<_ACEOF
22539 if \$ac_cs_recheck; then
22540 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22541 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22544 _ACEOF
22546 cat >>$CONFIG_STATUS <<_ACEOF
22548 # INIT-COMMANDS section.
22551 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22553 _ACEOF
22557 cat >>$CONFIG_STATUS <<\_ACEOF
22558 for ac_config_target in $ac_config_targets
22560 case "$ac_config_target" in
22561 # Handling of arguments.
22562 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22563 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22564 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22565 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22566 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22567 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22568 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22569 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22570 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22571 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22572 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22573 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22576 { (exit 1); exit 1; }; };;
22577 esac
22578 done
22580 # If the user did not use the arguments to specify the items to instantiate,
22581 # then the envvar interface is used. Set only those that are not.
22582 # We use the long form for the default assignment because of an extremely
22583 # bizarre bug on SunOS 4.1.3.
22584 if $ac_need_defaults; then
22585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22590 # Have a temporary directory for convenience. Make it in the build tree
22591 # simply because there is no reason to put it here, and in addition,
22592 # creating and moving files from /tmp can sometimes cause problems.
22593 # Create a temporary directory, and hook for its removal unless debugging.
22594 $debug ||
22596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22597 trap '{ (exit 1); exit 1; }' 1 2 13 15
22600 # Create a (secure) tmp directory for tmp files.
22603 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22604 test -n "$tmp" && test -d "$tmp"
22605 } ||
22607 tmp=./confstat$$-$RANDOM
22608 (umask 077 && mkdir $tmp)
22609 } ||
22611 echo "$me: cannot create a temporary directory in ." >&2
22612 { (exit 1); exit 1; }
22615 _ACEOF
22617 cat >>$CONFIG_STATUS <<_ACEOF
22620 # CONFIG_FILES section.
22623 # No need to generate the scripts if there are no CONFIG_FILES.
22624 # This happens for instance when ./config.status config.h
22625 if test -n "\$CONFIG_FILES"; then
22626 # Protect against being on the right side of a sed subst in config.status.
22627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22629 s,@SHELL@,$SHELL,;t t
22630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22636 s,@exec_prefix@,$exec_prefix,;t t
22637 s,@prefix@,$prefix,;t t
22638 s,@program_transform_name@,$program_transform_name,;t t
22639 s,@bindir@,$bindir,;t t
22640 s,@sbindir@,$sbindir,;t t
22641 s,@libexecdir@,$libexecdir,;t t
22642 s,@datadir@,$datadir,;t t
22643 s,@sysconfdir@,$sysconfdir,;t t
22644 s,@sharedstatedir@,$sharedstatedir,;t t
22645 s,@localstatedir@,$localstatedir,;t t
22646 s,@libdir@,$libdir,;t t
22647 s,@includedir@,$includedir,;t t
22648 s,@oldincludedir@,$oldincludedir,;t t
22649 s,@infodir@,$infodir,;t t
22650 s,@mandir@,$mandir,;t t
22651 s,@build_alias@,$build_alias,;t t
22652 s,@host_alias@,$host_alias,;t t
22653 s,@target_alias@,$target_alias,;t t
22654 s,@DEFS@,$DEFS,;t t
22655 s,@ECHO_C@,$ECHO_C,;t t
22656 s,@ECHO_N@,$ECHO_N,;t t
22657 s,@ECHO_T@,$ECHO_T,;t t
22658 s,@LIBS@,$LIBS,;t t
22659 s,@MAINT@,$MAINT,;t t
22660 s,@build@,$build,;t t
22661 s,@build_cpu@,$build_cpu,;t t
22662 s,@build_vendor@,$build_vendor,;t t
22663 s,@build_os@,$build_os,;t t
22664 s,@host@,$host,;t t
22665 s,@host_cpu@,$host_cpu,;t t
22666 s,@host_vendor@,$host_vendor,;t t
22667 s,@host_os@,$host_os,;t t
22668 s,@CC@,$CC,;t t
22669 s,@CFLAGS@,$CFLAGS,;t t
22670 s,@LDFLAGS@,$LDFLAGS,;t t
22671 s,@CPPFLAGS@,$CPPFLAGS,;t t
22672 s,@ac_ct_CC@,$ac_ct_CC,;t t
22673 s,@EXEEXT@,$EXEEXT,;t t
22674 s,@OBJEXT@,$OBJEXT,;t t
22675 s,@LN_S@,$LN_S,;t t
22676 s,@CPP@,$CPP,;t t
22677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22680 s,@RANLIB@,$RANLIB,;t t
22681 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22682 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22683 s,@EGREP@,$EGREP,;t t
22684 s,@LIBSOUND@,$LIBSOUND,;t t
22685 s,@SET_MAKE@,$SET_MAKE,;t t
22686 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22687 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22688 s,@GTK_LIBS@,$GTK_LIBS,;t t
22689 s,@ALLOCA@,$ALLOCA,;t t
22690 s,@liblockfile@,$liblockfile,;t t
22691 s,@LIBOBJS@,$LIBOBJS,;t t
22692 s,@NEED_SETGID@,$NEED_SETGID,;t t
22693 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22694 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22695 s,@version@,$version,;t t
22696 s,@configuration@,$configuration,;t t
22697 s,@canonical@,$canonical,;t t
22698 s,@srcdir@,$srcdir,;t t
22699 s,@lispdir@,$lispdir,;t t
22700 s,@locallisppath@,$locallisppath,;t t
22701 s,@lisppath@,$lisppath,;t t
22702 s,@x_default_search_path@,$x_default_search_path,;t t
22703 s,@etcdir@,$etcdir,;t t
22704 s,@archlibdir@,$archlibdir,;t t
22705 s,@docdir@,$docdir,;t t
22706 s,@bitmapdir@,$bitmapdir,;t t
22707 s,@gamedir@,$gamedir,;t t
22708 s,@gameuser@,$gameuser,;t t
22709 s,@c_switch_system@,$c_switch_system,;t t
22710 s,@c_switch_machine@,$c_switch_machine,;t t
22711 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22712 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22713 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22714 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22715 s,@machfile@,$machfile,;t t
22716 s,@opsysfile@,$opsysfile,;t t
22717 s,@carbon_appdir@,$carbon_appdir,;t t
22718 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22719 CEOF
22721 _ACEOF
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 # Split the substitutions into bite-sized pieces for seds with
22725 # small command number limits, like on Digital OSF/1 and HP-UX.
22726 ac_max_sed_lines=48
22727 ac_sed_frag=1 # Number of current file.
22728 ac_beg=1 # First line for current file.
22729 ac_end=$ac_max_sed_lines # Line after last line for current file.
22730 ac_more_lines=:
22731 ac_sed_cmds=
22732 while $ac_more_lines; do
22733 if test $ac_beg -gt 1; then
22734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22735 else
22736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22738 if test ! -s $tmp/subs.frag; then
22739 ac_more_lines=false
22740 else
22741 # The purpose of the label and of the branching condition is to
22742 # speed up the sed processing (if there are no `@' at all, there
22743 # is no need to browse any of the substitutions).
22744 # These are the two extra sed commands mentioned above.
22745 (echo ':t
22746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22747 if test -z "$ac_sed_cmds"; then
22748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22749 else
22750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22752 ac_sed_frag=`expr $ac_sed_frag + 1`
22753 ac_beg=$ac_end
22754 ac_end=`expr $ac_end + $ac_max_sed_lines`
22756 done
22757 if test -z "$ac_sed_cmds"; then
22758 ac_sed_cmds=cat
22760 fi # test -n "$CONFIG_FILES"
22762 _ACEOF
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22766 case $ac_file in
22767 - | *:- | *:-:* ) # input from stdin
22768 cat >$tmp/stdin
22769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22773 * ) ac_file_in=$ac_file.in ;;
22774 esac
22776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22777 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22779 X"$ac_file" : 'X\(//\)[^/]' \| \
22780 X"$ac_file" : 'X\(//\)$' \| \
22781 X"$ac_file" : 'X\(/\)' \| \
22782 . : '\(.\)' 2>/dev/null ||
22783 echo X"$ac_file" |
22784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22786 /^X\(\/\/\)$/{ s//\1/; q; }
22787 /^X\(\/\).*/{ s//\1/; q; }
22788 s/.*/./; q'`
22789 { if $as_mkdir_p; then
22790 mkdir -p "$ac_dir"
22791 else
22792 as_dir="$ac_dir"
22793 as_dirs=
22794 while test ! -d "$as_dir"; do
22795 as_dirs="$as_dir $as_dirs"
22796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22798 X"$as_dir" : 'X\(//\)[^/]' \| \
22799 X"$as_dir" : 'X\(//\)$' \| \
22800 X"$as_dir" : 'X\(/\)' \| \
22801 . : '\(.\)' 2>/dev/null ||
22802 echo X"$as_dir" |
22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22805 /^X\(\/\/\)$/{ s//\1/; q; }
22806 /^X\(\/\).*/{ s//\1/; q; }
22807 s/.*/./; q'`
22808 done
22809 test ! -n "$as_dirs" || mkdir $as_dirs
22810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22812 { (exit 1); exit 1; }; }; }
22814 ac_builddir=.
22816 if test "$ac_dir" != .; then
22817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22818 # A "../" for each directory in $ac_dir_suffix.
22819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22820 else
22821 ac_dir_suffix= ac_top_builddir=
22824 case $srcdir in
22825 .) # No --srcdir option. We are building in place.
22826 ac_srcdir=.
22827 if test -z "$ac_top_builddir"; then
22828 ac_top_srcdir=.
22829 else
22830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22831 fi ;;
22832 [\\/]* | ?:[\\/]* ) # Absolute path.
22833 ac_srcdir=$srcdir$ac_dir_suffix;
22834 ac_top_srcdir=$srcdir ;;
22835 *) # Relative path.
22836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22838 esac
22840 # Do not use `cd foo && pwd` to compute absolute paths, because
22841 # the directories may not exist.
22842 case `pwd` in
22843 .) ac_abs_builddir="$ac_dir";;
22845 case "$ac_dir" in
22846 .) ac_abs_builddir=`pwd`;;
22847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22849 esac;;
22850 esac
22851 case $ac_abs_builddir in
22852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22854 case ${ac_top_builddir}. in
22855 .) ac_abs_top_builddir=$ac_abs_builddir;;
22856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22858 esac;;
22859 esac
22860 case $ac_abs_builddir in
22861 .) ac_abs_srcdir=$ac_srcdir;;
22863 case $ac_srcdir in
22864 .) ac_abs_srcdir=$ac_abs_builddir;;
22865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22867 esac;;
22868 esac
22869 case $ac_abs_builddir in
22870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22872 case $ac_top_srcdir in
22873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22876 esac;;
22877 esac
22880 case $INSTALL in
22881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22882 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22883 esac
22885 if test x"$ac_file" != x-; then
22886 { echo "$as_me:$LINENO: creating $ac_file" >&5
22887 echo "$as_me: creating $ac_file" >&6;}
22888 rm -f "$ac_file"
22890 # Let's still pretend it is `configure' which instantiates (i.e., don't
22891 # use $as_me), people would be surprised to read:
22892 # /* config.h. Generated by config.status. */
22893 if test x"$ac_file" = x-; then
22894 configure_input=
22895 else
22896 configure_input="$ac_file. "
22898 configure_input=$configure_input"Generated from `echo $ac_file_in |
22899 sed 's,.*/,,'` by configure."
22901 # First look for the input files in the build tree, otherwise in the
22902 # src tree.
22903 ac_file_inputs=`IFS=:
22904 for f in $ac_file_in; do
22905 case $f in
22906 -) echo $tmp/stdin ;;
22907 [\\/$]*)
22908 # Absolute (can't be DOS-style, as IFS=:)
22909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22910 echo "$as_me: error: cannot find input file: $f" >&2;}
22911 { (exit 1); exit 1; }; }
22912 echo "$f";;
22913 *) # Relative
22914 if test -f "$f"; then
22915 # Build tree
22916 echo "$f"
22917 elif test -f "$srcdir/$f"; then
22918 # Source tree
22919 echo "$srcdir/$f"
22920 else
22921 # /dev/null tree
22922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22923 echo "$as_me: error: cannot find input file: $f" >&2;}
22924 { (exit 1); exit 1; }; }
22925 fi;;
22926 esac
22927 done` || { (exit 1); exit 1; }
22928 _ACEOF
22929 cat >>$CONFIG_STATUS <<_ACEOF
22930 sed "$ac_vpsub
22931 $extrasub
22932 _ACEOF
22933 cat >>$CONFIG_STATUS <<\_ACEOF
22935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22936 s,@configure_input@,$configure_input,;t t
22937 s,@srcdir@,$ac_srcdir,;t t
22938 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22939 s,@top_srcdir@,$ac_top_srcdir,;t t
22940 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22941 s,@builddir@,$ac_builddir,;t t
22942 s,@abs_builddir@,$ac_abs_builddir,;t t
22943 s,@top_builddir@,$ac_top_builddir,;t t
22944 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22945 s,@INSTALL@,$ac_INSTALL,;t t
22946 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22947 rm -f $tmp/stdin
22948 if test x"$ac_file" != x-; then
22949 mv $tmp/out $ac_file
22950 else
22951 cat $tmp/out
22952 rm -f $tmp/out
22955 done
22956 _ACEOF
22957 cat >>$CONFIG_STATUS <<\_ACEOF
22960 # CONFIG_HEADER section.
22963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22966 # ac_d sets the value in "#define NAME VALUE" lines.
22967 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22968 ac_dB='[ ].*$,\1#\2'
22969 ac_dC=' '
22970 ac_dD=',;t'
22971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22972 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22973 ac_uB='$,\1#\2define\3'
22974 ac_uC=' '
22975 ac_uD=',;t'
22977 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22979 case $ac_file in
22980 - | *:- | *:-:* ) # input from stdin
22981 cat >$tmp/stdin
22982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22986 * ) ac_file_in=$ac_file.in ;;
22987 esac
22989 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22990 echo "$as_me: creating $ac_file" >&6;}
22992 # First look for the input files in the build tree, otherwise in the
22993 # src tree.
22994 ac_file_inputs=`IFS=:
22995 for f in $ac_file_in; do
22996 case $f in
22997 -) echo $tmp/stdin ;;
22998 [\\/$]*)
22999 # Absolute (can't be DOS-style, as IFS=:)
23000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23001 echo "$as_me: error: cannot find input file: $f" >&2;}
23002 { (exit 1); exit 1; }; }
23003 # Do quote $f, to prevent DOS paths from being IFS'd.
23004 echo "$f";;
23005 *) # Relative
23006 if test -f "$f"; then
23007 # Build tree
23008 echo "$f"
23009 elif test -f "$srcdir/$f"; then
23010 # Source tree
23011 echo "$srcdir/$f"
23012 else
23013 # /dev/null tree
23014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23015 echo "$as_me: error: cannot find input file: $f" >&2;}
23016 { (exit 1); exit 1; }; }
23017 fi;;
23018 esac
23019 done` || { (exit 1); exit 1; }
23020 # Remove the trailing spaces.
23021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23023 _ACEOF
23025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23026 # `conftest.undefs', that substitutes the proper values into
23027 # config.h.in to produce config.h. The first handles `#define'
23028 # templates, and the second `#undef' templates.
23029 # And first: Protect against being on the right side of a sed subst in
23030 # config.status. Protect against being in an unquoted here document
23031 # in config.status.
23032 rm -f conftest.defines conftest.undefs
23033 # Using a here document instead of a string reduces the quoting nightmare.
23034 # Putting comments in sed scripts is not portable.
23036 # `end' is used to avoid that the second main sed command (meant for
23037 # 0-ary CPP macros) applies to n-ary macro definitions.
23038 # See the Autoconf documentation for `clear'.
23039 cat >confdef2sed.sed <<\_ACEOF
23040 s/[\\&,]/\\&/g
23041 s,[\\$`],\\&,g
23042 t clear
23043 : clear
23044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23045 t end
23046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23047 : end
23048 _ACEOF
23049 # If some macros were called several times there might be several times
23050 # the same #defines, which is useless. Nevertheless, we may not want to
23051 # sort them, since we want the *last* AC-DEFINE to be honored.
23052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23054 rm -f confdef2sed.sed
23056 # This sed command replaces #undef with comments. This is necessary, for
23057 # example, in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 cat >>conftest.undefs <<\_ACEOF
23060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23061 _ACEOF
23063 # Break up conftest.defines because some shells have a limit on the size
23064 # of here documents, and old seds have small limits too (100 cmds).
23065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23068 echo ' :' >>$CONFIG_STATUS
23069 rm -f conftest.tail
23070 while grep . conftest.defines >/dev/null
23072 # Write a limited-size here document to $tmp/defines.sed.
23073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23074 # Speed up: don't consider the non `#define' lines.
23075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23076 # Work around the forget-to-reset-the-flag bug.
23077 echo 't clr' >>$CONFIG_STATUS
23078 echo ': clr' >>$CONFIG_STATUS
23079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23080 echo 'CEOF
23081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23082 rm -f $tmp/in
23083 mv $tmp/out $tmp/in
23084 ' >>$CONFIG_STATUS
23085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23086 rm -f conftest.defines
23087 mv conftest.tail conftest.defines
23088 done
23089 rm -f conftest.defines
23090 echo ' fi # grep' >>$CONFIG_STATUS
23091 echo >>$CONFIG_STATUS
23093 # Break up conftest.undefs because some shells have a limit on the size
23094 # of here documents, and old seds have small limits too (100 cmds).
23095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23096 rm -f conftest.tail
23097 while grep . conftest.undefs >/dev/null
23099 # Write a limited-size here document to $tmp/undefs.sed.
23100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23101 # Speed up: don't consider the non `#undef'
23102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23103 # Work around the forget-to-reset-the-flag bug.
23104 echo 't clr' >>$CONFIG_STATUS
23105 echo ': clr' >>$CONFIG_STATUS
23106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23107 echo 'CEOF
23108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23109 rm -f $tmp/in
23110 mv $tmp/out $tmp/in
23111 ' >>$CONFIG_STATUS
23112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23113 rm -f conftest.undefs
23114 mv conftest.tail conftest.undefs
23115 done
23116 rm -f conftest.undefs
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23119 # Let's still pretend it is `configure' which instantiates (i.e., don't
23120 # use $as_me), people would be surprised to read:
23121 # /* config.h. Generated by config.status. */
23122 if test x"$ac_file" = x-; then
23123 echo "/* Generated by configure. */" >$tmp/config.h
23124 else
23125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23127 cat $tmp/in >>$tmp/config.h
23128 rm -f $tmp/in
23129 if test x"$ac_file" != x-; then
23130 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23132 echo "$as_me: $ac_file is unchanged" >&6;}
23133 else
23134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136 X"$ac_file" : 'X\(//\)[^/]' \| \
23137 X"$ac_file" : 'X\(//\)$' \| \
23138 X"$ac_file" : 'X\(/\)' \| \
23139 . : '\(.\)' 2>/dev/null ||
23140 echo X"$ac_file" |
23141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23143 /^X\(\/\/\)$/{ s//\1/; q; }
23144 /^X\(\/\).*/{ s//\1/; q; }
23145 s/.*/./; q'`
23146 { if $as_mkdir_p; then
23147 mkdir -p "$ac_dir"
23148 else
23149 as_dir="$ac_dir"
23150 as_dirs=
23151 while test ! -d "$as_dir"; do
23152 as_dirs="$as_dir $as_dirs"
23153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23155 X"$as_dir" : 'X\(//\)[^/]' \| \
23156 X"$as_dir" : 'X\(//\)$' \| \
23157 X"$as_dir" : 'X\(/\)' \| \
23158 . : '\(.\)' 2>/dev/null ||
23159 echo X"$as_dir" |
23160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23162 /^X\(\/\/\)$/{ s//\1/; q; }
23163 /^X\(\/\).*/{ s//\1/; q; }
23164 s/.*/./; q'`
23165 done
23166 test ! -n "$as_dirs" || mkdir $as_dirs
23167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23169 { (exit 1); exit 1; }; }; }
23171 rm -f $ac_file
23172 mv $tmp/config.h $ac_file
23174 else
23175 cat $tmp/config.h
23176 rm -f $tmp/config.h
23178 done
23179 _ACEOF
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23183 # CONFIG_COMMANDS section.
23185 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190 X"$ac_dest" : 'X\(//\)[^/]' \| \
23191 X"$ac_dest" : 'X\(//\)$' \| \
23192 X"$ac_dest" : 'X\(/\)' \| \
23193 . : '\(.\)' 2>/dev/null ||
23194 echo X"$ac_dest" |
23195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23197 /^X\(\/\/\)$/{ s//\1/; q; }
23198 /^X\(\/\).*/{ s//\1/; q; }
23199 s/.*/./; q'`
23200 { if $as_mkdir_p; then
23201 mkdir -p "$ac_dir"
23202 else
23203 as_dir="$ac_dir"
23204 as_dirs=
23205 while test ! -d "$as_dir"; do
23206 as_dirs="$as_dir $as_dirs"
23207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23209 X"$as_dir" : 'X\(//\)[^/]' \| \
23210 X"$as_dir" : 'X\(//\)$' \| \
23211 X"$as_dir" : 'X\(/\)' \| \
23212 . : '\(.\)' 2>/dev/null ||
23213 echo X"$as_dir" |
23214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23216 /^X\(\/\/\)$/{ s//\1/; q; }
23217 /^X\(\/\).*/{ s//\1/; q; }
23218 s/.*/./; q'`
23219 done
23220 test ! -n "$as_dirs" || mkdir $as_dirs
23221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23223 { (exit 1); exit 1; }; }; }
23225 ac_builddir=.
23227 if test "$ac_dir" != .; then
23228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23229 # A "../" for each directory in $ac_dir_suffix.
23230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23231 else
23232 ac_dir_suffix= ac_top_builddir=
23235 case $srcdir in
23236 .) # No --srcdir option. We are building in place.
23237 ac_srcdir=.
23238 if test -z "$ac_top_builddir"; then
23239 ac_top_srcdir=.
23240 else
23241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23242 fi ;;
23243 [\\/]* | ?:[\\/]* ) # Absolute path.
23244 ac_srcdir=$srcdir$ac_dir_suffix;
23245 ac_top_srcdir=$srcdir ;;
23246 *) # Relative path.
23247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23249 esac
23251 # Do not use `cd foo && pwd` to compute absolute paths, because
23252 # the directories may not exist.
23253 case `pwd` in
23254 .) ac_abs_builddir="$ac_dir";;
23256 case "$ac_dir" in
23257 .) ac_abs_builddir=`pwd`;;
23258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23260 esac;;
23261 esac
23262 case $ac_abs_builddir in
23263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23265 case ${ac_top_builddir}. in
23266 .) ac_abs_top_builddir=$ac_abs_builddir;;
23267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23269 esac;;
23270 esac
23271 case $ac_abs_builddir in
23272 .) ac_abs_srcdir=$ac_srcdir;;
23274 case $ac_srcdir in
23275 .) ac_abs_srcdir=$ac_abs_builddir;;
23276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23278 esac;;
23279 esac
23280 case $ac_abs_builddir in
23281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23283 case $ac_top_srcdir in
23284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23287 esac;;
23288 esac
23291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23292 echo "$as_me: executing $ac_dest commands" >&6;}
23293 case $ac_dest in
23294 default )
23296 ### Make the necessary directories, if they don't exist.
23297 for dir in etc lisp ; do
23298 test -d ${dir} || mkdir ${dir}
23299 done
23301 # Build src/Makefile from ${srcdir}/src/Makefile.c
23302 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23303 # This must be done after src/config.h is built, since we rely on that file.
23305 # Now get this: Some word that is part of the ${srcdir} directory name
23306 # or the ${configuration} value might, just might, happen to be an
23307 # identifier like `sun4' or `i386' or something, and be predefined by
23308 # the C preprocessor to some helpful value like 1, or maybe the empty
23309 # string. Needless to say consequent macro substitutions are less
23310 # than conducive to the makefile finding the correct directory.
23311 undefs="`echo $top_srcdir $configuration $canonical |
23312 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23313 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23316 echo creating src/epaths.h
23317 ${MAKE-make} epaths-force
23319 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23320 # `..' to `. .' unless invoked with -traditional
23322 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23323 CPPFLAGS="$CPPFLAGS -traditional"
23326 echo creating lib-src/Makefile
23327 ( cd lib-src
23328 rm -f junk.c junk1.c junk2.c
23329 sed -e '/start of cpp stuff/q' \
23330 < Makefile.c > junk1.c
23331 sed -e '1,/start of cpp stuff/d'\
23332 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23333 < Makefile.c > junk.c
23334 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23335 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23336 cat junk1.c junk2.c > Makefile.new
23337 rm -f junk.c junk1.c junk2.c
23338 chmod 444 Makefile.new
23339 mv -f Makefile.new Makefile
23342 echo creating src/Makefile
23343 ( cd src
23344 rm -f junk.c junk1.c junk2.c
23345 sed -e '/start of cpp stuff/q' \
23346 < Makefile.c > junk1.c
23347 sed -e '1,/start of cpp stuff/d'\
23348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23349 < Makefile.c > junk.c
23350 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23352 cat junk1.c junk2.c > Makefile.new
23353 rm -f junk.c junk1.c junk2.c
23354 chmod 444 Makefile.new
23355 mv -f Makefile.new Makefile
23358 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23359 echo creating src/.gdbinit
23360 echo source $srcdir/src/.gdbinit > src/.gdbinit
23363 # This is how we know whether to re-run configure in certain cases.
23364 touch src/config.stamp
23367 esac
23368 done
23369 _ACEOF
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23373 { (exit 0); exit 0; }
23374 _ACEOF
23375 chmod +x $CONFIG_STATUS
23376 ac_clean_files=$ac_clean_files_save
23379 # configure is writing to config.log, and then calls config.status.
23380 # config.status does its own redirection, appending to config.log.
23381 # Unfortunately, on DOS this fails, as config.log is still kept open
23382 # by configure, so config.status won't be able to write to it; its
23383 # output is simply discarded. So we exec the FD to /dev/null,
23384 # effectively closing config.log, so it can be properly (re)opened and
23385 # appended to by config.status. When coming back to configure, we
23386 # need to make the FD available again.
23387 if test "$no_create" != yes; then
23388 ac_cs_success=:
23389 ac_config_status_args=
23390 test "$silent" = yes &&
23391 ac_config_status_args="$ac_config_status_args --quiet"
23392 exec 5>/dev/null
23393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23394 exec 5>>config.log
23395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23396 # would make configure fail if this is the last instruction.
23397 $ac_cs_success || { (exit 1); exit 1; }