Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-581
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
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"
312
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 SETARCH 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=''
315
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
335
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'
353
354 ac_prev=
355 for ac_option
356 do
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
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
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 ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
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 ;;
395
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" ;;
404
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'" ;;
417
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 ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
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 ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
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 ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
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 ;;
466
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 ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
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 ;;
492
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 ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
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 ;;
513
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 ;;
520
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 ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
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 ;;
547
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 ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
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 ;;
575
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 ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
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'" ;;
599
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" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
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 ;;
619
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 ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
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 ;;
641
642 *)
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}
648 ;;
649
650 esac
651 done
652
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; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
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
669
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
673 do
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
681
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
688
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
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
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=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
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; }; }
736 fi
737 fi
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
774
775 #
776 # Report the --help message.
777 #
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.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
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.
788
789 Defaults for the options are specified in brackets.
790
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 \`..']
801
802 _ACEOF
803
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]
810
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'.
815
816 For better control, use the options below.
817
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
832
833 cat <<\_ACEOF
834
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
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
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
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
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-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd "$ac_popdir"
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576 fi
1577
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1580
1581 ### Canonicalize the configuration name.
1582
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1597 fi
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 canonical=$host
1663 configuration=${host_alias-$host}
1664
1665
1666
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1670
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1679 ###
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1685 ###
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1689
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1692
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1700 ;;
1701
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1706
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1710
1711 fi
1712
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1729 ;;
1730
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1743 ;;
1744
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1748 ;;
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1753 ;;
1754
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1770 ;;
1771
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1780 ;;
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1783 ;;
1784
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1800 ;;
1801
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1804 ;;
1805
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1808 ;;
1809
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1813 ;;
1814
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1818 ;;
1819
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1823 ;;
1824
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1828 ;;
1829
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1833 ;;
1834
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1838 ;;
1839
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1843 ;;
1844
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1848 ;;
1849
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1853 ;;
1854
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1856
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1863 ;;
1864
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1872 ;;
1873
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1877 ;;
1878
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1884 ;;
1885
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1889 ;;
1890
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1894 ;;
1895
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1904 ;;
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1909 ;;
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1912 ;;
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1915 ;;
1916
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1922 ;;
1923
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1927 ;;
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1930 ;;
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1933 ;;
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1936 ;;
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1939 ;;
1940
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1949 fi
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1954 fi
1955 fi
1956 ;;
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1963 ;;
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1966 ;;
1967
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1971 ;;
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1974 ;;
1975
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1979 ;;
1980
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1984 ;;
1985
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1988
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1992 ;;
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1995 ;;
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
1998 ;;
1999
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2009 ;;
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2013 ;;
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2018 ;;
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2022 ;;
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2025 ;;
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2029 ;;
2030
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2034 ;;
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2046 ;;
2047
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2051 ;;
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2054 ;;
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2057 ;;
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2060 ;;
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2063 ;;
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2066 ;;
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2069 ;;
2070
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2086 ;;
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2089 ;;
2090
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2094 ;;
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2097 ;;
2098
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2102 ;;
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2105 ;;
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2108 ;;
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2111 ;;
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2114 ;;
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2117 ;;
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2120 ;;
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2123 ;;
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2126 ;;
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2129 ;;
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2132 ;;
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2135 ;;
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2138 ;;
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2141 ;;
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2144 ;;
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2147 ;;
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2150 ;;
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2156 ;;
2157
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2161 ;;
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2164 ;;
2165
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2169 ;;
2170
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2174 ;;
2175
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2179 ;;
2180
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2185 ;;
2186
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2192 ;;
2193
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2197 ;;
2198
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2203 ;;
2204
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2208 ;;
2209
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2215 ;;
2216
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2220 ;;
2221
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2225 ;;
2226
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2230 ;;
2231
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2235
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2246 ;;
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2251 ;;
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2256 ;;
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2259 ;;
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2262 ;;
2263
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2267 ;;
2268
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2272 ;;
2273
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2277 ;;
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2280 ;;
2281
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2285 ;;
2286
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2290 ;;
2291
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2295 ;;
2296
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2300 ;;
2301
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2307 ;;
2308
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2312 ;;
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2315 ;;
2316
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2322 ;;
2323
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2328 ;;
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2331 ;;
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2335 ;;
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2338 ;;
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2346 ;;
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2354 ;;
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2357 ;;
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2360 ;;
2361
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2365 ;;
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2368 ;;
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2371 ;;
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2374 ;;
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2377 ;;
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2380 ;;
2381
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2385 ;;
2386
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2390 ;;
2391
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2417 ;;
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2421 ;;
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2430 ;;
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2435 ;;
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2440 ;;
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2445 ;;
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2449 ;;
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2459 fi
2460 ;;
2461 *) ;;
2462 esac
2463 ;;
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2466 ;;
2467
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2471 ;;
2472
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2476 ;;
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2479 ;;
2480
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2484 ;;
2485
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2489 ;;
2490
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2494 ;;
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2499 ;;
2500
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2505 ;;
2506
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2510 ;;
2511
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2524 ;;
2525
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2531 ;;
2532
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2536 ;;
2537
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2541 ;;
2542
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2555 ;;
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2567 ;;
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2575 ;;
2576
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2580 ;;
2581
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2585 ;;
2586
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2592 ;;
2593
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2597 ;;
2598
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2609 fi
2610 ;;
2611
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2615 ;;
2616
2617 * )
2618 unported=yes
2619 ;;
2620 esac
2621
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2650 fi
2651 fi
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658 fi
2659
2660
2661
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2668 fi
2669
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2672
2673
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2676
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2679
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2683 * )
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 fi
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2762 fi
2763
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2847 fi
2848
2849 fi
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 fi
2902
2903 fi
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2907 do
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2941 fi
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985 test -n "$ac_ct_CC" && break
2986 done
2987
2988 CC=$ac_ct_CC
2989 fi
2990
2991 fi
2992
2993
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
2999
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3019
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3051
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3057 do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3061 ;;
3062 conftest.$ac_ext )
3063 # This is the source file.
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3076 * )
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3089 fi
3090
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3094
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120 fi
3121 fi
3122 fi
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3125
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3134
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 fi
3214
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; } &&
3259 { ac_try='test -s conftest.$ac_objext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 ac_compiler_gnu=yes
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 ac_compiler_gnu=no
3271 fi
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
3275 fi
3276 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3277 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3278 GCC=`test $ac_compiler_gnu = yes && echo yes`
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 CFLAGS="-g"
3282 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3283 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3284 if test "${ac_cv_prog_cc_g+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_prog_cc_g=yes
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 ac_cv_prog_cc_g=no
3329 fi
3330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342 else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348 fi
3349 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3350 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3351 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_cv_prog_cc_stdc=no
3355 ac_save_CC=$CC
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <stdarg.h>
3363 #include <stdio.h>
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3370 char **p;
3371 int i;
3372 {
3373 return p[i];
3374 }
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3376 {
3377 char *s;
3378 va_list v;
3379 va_start (v,p);
3380 s = g (p, va_arg (v,int));
3381 va_end (v);
3382 return s;
3383 }
3384
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std1 is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std1. */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393
3394 int test (int i, double x);
3395 struct s1 {int (*f) (int a);};
3396 struct s2 {int (*f) (double a);};
3397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398 int argc;
3399 char **argv;
3400 int
3401 main ()
3402 {
3403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 # Don't try gcc -ansi; that turns off useful extensions and
3409 # breaks some systems' header files.
3410 # AIX -qlanglvl=ansi
3411 # Ultrix and OSF/1 -std1
3412 # HP-UX 10.20 and later -Ae
3413 # HP-UX older versions -Aa -D_HPUX_SOURCE
3414 # SVR4 -Xc -D__EXTENSIONS__
3415 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416 do
3417 CC="$ac_save_CC $ac_arg"
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_prog_cc_stdc=$ac_arg
3440 break
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 fi
3446 rm -f conftest.err conftest.$ac_objext
3447 done
3448 rm -f conftest.$ac_ext conftest.$ac_objext
3449 CC=$ac_save_CC
3450
3451 fi
3452
3453 case "x$ac_cv_prog_cc_stdc" in
3454 x|xno)
3455 echo "$as_me:$LINENO: result: none needed" >&5
3456 echo "${ECHO_T}none needed" >&6 ;;
3457 *)
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3460 CC="$CC $ac_cv_prog_cc_stdc" ;;
3461 esac
3462
3463 # Some people use a C++ compiler to compile C. Since we use `exit',
3464 # in C++ we need to declare it. In case someone uses the same compiler
3465 # for both compiling C and C++ we need to have the C++ compiler decide
3466 # the declaration of exit, since it's the most demanding environment.
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #ifndef __cplusplus
3469 choke me
3470 #endif
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 for ac_declaration in \
3494 '' \
3495 'extern "C" void std::exit (int) throw (); using std::exit;' \
3496 'extern "C" void std::exit (int); using std::exit;' \
3497 'extern "C" void exit (int) throw ();' \
3498 'extern "C" void exit (int);' \
3499 'void exit (int);'
3500 do
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_declaration
3508 #include <stdlib.h>
3509 int
3510 main ()
3511 {
3512 exit (42);
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 :
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 continue
3544 fi
3545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_declaration
3553 int
3554 main ()
3555 {
3556 exit (42);
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3595 fi
3596
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608
3609
3610 # On Suns, sometimes $CPP names a directory.
3611 if test -n "$CPP" && test -d "$CPP"; then
3612 CPP=
3613 fi
3614
3615 #### Some systems specify a CPP to use unless we are using GCC.
3616 #### Now that we know whether we are using GCC, we can decide whether
3617 #### to use that one.
3618 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3619 then
3620 CPP="$NON_GNU_CPP"
3621 fi
3622
3623 #### Some systems specify a CC to use unless we are using GCC.
3624 #### Now that we know whether we are using GCC, we can decide whether
3625 #### to use that one.
3626 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3627 test x$cc_specified != xyes
3628 then
3629 CC="$NON_GNU_CC"
3630 fi
3631
3632 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3633 then
3634 CC="$CC $GCC_TEST_OPTIONS"
3635 fi
3636
3637 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3638 then
3639 CC="$CC $NON_GCC_TEST_OPTIONS"
3640 fi
3641
3642 #### Some other nice autoconf tests.
3643
3644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3646 LN_S=$as_ln_s
3647 if test "$LN_S" = "ln -s"; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3652 echo "${ECHO_T}no, using $LN_S" >&6
3653 fi
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3661 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3662 # On Suns, sometimes $CPP names a directory.
3663 if test -n "$CPP" && test -d "$CPP"; then
3664 CPP=
3665 fi
3666 if test -z "$CPP"; then
3667 if test "${ac_cv_prog_CPP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 # Double quotes because CPP needs to be expanded
3671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3672 do
3673 ac_preproc_ok=false
3674 for ac_c_preproc_warn_flag in '' yes
3675 do
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #ifdef __STDC__
3689 # include <limits.h>
3690 #else
3691 # include <assert.h>
3692 #endif
3693 Syntax error
3694 _ACEOF
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev/null; then
3703 if test -s conftest.err; then
3704 ac_cpp_err=$ac_c_preproc_warn_flag
3705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 else
3707 ac_cpp_err=
3708 fi
3709 else
3710 ac_cpp_err=yes
3711 fi
3712 if test -z "$ac_cpp_err"; then
3713 :
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 # Broken: fails on valid input.
3719 continue
3720 fi
3721 rm -f conftest.err conftest.$ac_ext
3722
3723 # OK, works on sane cases. Now check whether non-existent headers
3724 # can be detected and how.
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3732 _ACEOF
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 else
3745 ac_cpp_err=
3746 fi
3747 else
3748 ac_cpp_err=yes
3749 fi
3750 if test -z "$ac_cpp_err"; then
3751 # Broken: success on invalid input.
3752 continue
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 # Passes both tests.
3758 ac_preproc_ok=:
3759 break
3760 fi
3761 rm -f conftest.err conftest.$ac_ext
3762
3763 done
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3767 break
3768 fi
3769
3770 done
3771 ac_cv_prog_CPP=$CPP
3772
3773 fi
3774 CPP=$ac_cv_prog_CPP
3775 else
3776 ac_cv_prog_CPP=$CPP
3777 fi
3778 echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3782 do
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800 Syntax error
3801 _ACEOF
3802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null; then
3810 if test -s conftest.err; then
3811 ac_cpp_err=$ac_c_preproc_warn_flag
3812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3813 else
3814 ac_cpp_err=
3815 fi
3816 else
3817 ac_cpp_err=yes
3818 fi
3819 if test -z "$ac_cpp_err"; then
3820 :
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 # Broken: fails on valid input.
3826 continue
3827 fi
3828 rm -f conftest.err conftest.$ac_ext
3829
3830 # OK, works on sane cases. Now check whether non-existent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null; then
3848 if test -s conftest.err; then
3849 ac_cpp_err=$ac_c_preproc_warn_flag
3850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3851 else
3852 ac_cpp_err=
3853 fi
3854 else
3855 ac_cpp_err=yes
3856 fi
3857 if test -z "$ac_cpp_err"; then
3858 # Broken: success on invalid input.
3859 continue
3860 else
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865 ac_preproc_ok=:
3866 break
3867 fi
3868 rm -f conftest.err conftest.$ac_ext
3869
3870 done
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then
3874 :
3875 else
3876 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&2;}
3880 { (exit 1); exit 1; }; }
3881 fi
3882
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915 ./ | .// | /cC/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 /usr/ucb/* ) ;;
3919 *)
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3929 :
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3933 :
3934 else
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936 break 3
3937 fi
3938 fi
3939 done
3940 done
3941 ;;
3942 esac
3943 done
3944
3945
3946 fi
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3955 fi
3956 fi
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968 if test "x$RANLIB" = x; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993
3994 fi
3995 fi
3996 RANLIB=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998 echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4000 else
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4003 fi
4004
4005 fi
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007 ac_ct_RANLIB=$RANLIB
4008 # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$ac_ct_RANLIB"; then
4016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_RANLIB="ranlib"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031
4032 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4033 fi
4034 fi
4035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4042 fi
4043
4044 RANLIB=$ac_ct_RANLIB
4045 else
4046 RANLIB="$ac_cv_prog_RANLIB"
4047 fi
4048
4049 fi
4050 # Extract the first word of "install-info", so it can be a program name with args.
4051 set dummy install-info; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 case $INSTALL_INFO in
4058 [\\/]* | ?:[\\/]*)
4059 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4060 ;;
4061 *)
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073 done
4074 done
4075
4076 ;;
4077 esac
4078 fi
4079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4080
4081 if test -n "$INSTALL_INFO"; then
4082 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4083 echo "${ECHO_T}$INSTALL_INFO" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087 fi
4088
4089 # Extract the first word of "install-info", so it can be a program name with args.
4090 set dummy install-info; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 case $INSTALL_INFO in
4097 [\\/]* | ?:[\\/]*)
4098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4099 ;;
4100 *)
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in /usr/sbin
4103 do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112 done
4113 done
4114
4115 ;;
4116 esac
4117 fi
4118 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4119
4120 if test -n "$INSTALL_INFO"; then
4121 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4122 echo "${ECHO_T}$INSTALL_INFO" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4126 fi
4127
4128 # Extract the first word of "install-info", so it can be a program name with args.
4129 set dummy install-info; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 case $INSTALL_INFO in
4136 [\\/]* | ?:[\\/]*)
4137 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4138 ;;
4139 *)
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in /sbin
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153
4154 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4155 ;;
4156 esac
4157 fi
4158 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4159
4160 if test -n "$INSTALL_INFO"; then
4161 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4162 echo "${ECHO_T}$INSTALL_INFO" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4166 fi
4167
4168
4169
4170 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4171 then
4172 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4173 fi
4174
4175 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4176 then
4177 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4178 fi
4179
4180
4181 late_LDFLAGS=$LDFLAGS
4182 if test "$GCC" = yes; then
4183 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4184 else
4185 LDFLAGS="$LDFLAGS -znocombreloc"
4186 fi
4187
4188 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4189 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4190
4191 cat >conftest.$ac_ext <<_ACEOF
4192 main(){return 0;}
4193 _ACEOF
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 echo "$as_me:$LINENO: result: yes" >&5
4216 echo "${ECHO_T}yes" >&6
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221 LDFLAGS=$late_LDFLAGS
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224 fi
4225 rm -f conftest.err conftest.$ac_objext \
4226 conftest$ac_exeext conftest.$ac_ext
4227
4228
4229 echo "$as_me:$LINENO: checking for egrep" >&5
4230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4231 if test "${ac_cv_prog_egrep+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4235 then ac_cv_prog_egrep='grep -E'
4236 else ac_cv_prog_egrep='egrep'
4237 fi
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4241 EGREP=$ac_cv_prog_egrep
4242
4243
4244
4245 echo "$as_me:$LINENO: checking for AIX" >&5
4246 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #ifdef _AIX
4254 yes
4255 #endif
4256
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "yes" >/dev/null 2>&1; then
4260 echo "$as_me:$LINENO: result: yes" >&5
4261 echo "${ECHO_T}yes" >&6
4262 cat >>confdefs.h <<\_ACEOF
4263 #define _ALL_SOURCE 1
4264 _ACEOF
4265
4266 else
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270 rm -f conftest*
4271
4272
4273
4274 echo "$as_me:$LINENO: checking for /proc/sys/kernel/exec-shield" >&5
4275 echo $ECHO_N "checking for /proc/sys/kernel/exec-shield... $ECHO_C" >&6
4276 if test "${ac_cv_file__proc_sys_kernel_exec_shield+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 test "$cross_compiling" = yes &&
4280 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4281 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4282 { (exit 1); exit 1; }; }
4283 if test -r "/proc/sys/kernel/exec-shield"; then
4284 ac_cv_file__proc_sys_kernel_exec_shield=yes
4285 else
4286 ac_cv_file__proc_sys_kernel_exec_shield=no
4287 fi
4288 fi
4289 echo "$as_me:$LINENO: result: $ac_cv_file__proc_sys_kernel_exec_shield" >&5
4290 echo "${ECHO_T}$ac_cv_file__proc_sys_kernel_exec_shield" >&6
4291 if test $ac_cv_file__proc_sys_kernel_exec_shield = yes; then
4292 emacs_cv_execshield=1
4293 else
4294 emacs_cv_execshield=0
4295 fi
4296
4297 if test "$emacs_cv_execshield" = 1; then
4298 # Extract the first word of "setarch", so it can be a program name with args.
4299 set dummy setarch; ac_word=$2
4300 echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_path_SETARCH+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 case $SETARCH in
4306 [\\/]* | ?:[\\/]*)
4307 ac_cv_path_SETARCH="$SETARCH" # Let the user override the test with a path.
4308 ;;
4309 *)
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_path_SETARCH="$as_dir/$ac_word$ac_exec_ext"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321 done
4322 done
4323
4324 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH="no"
4325 ;;
4326 esac
4327 fi
4328 SETARCH=$ac_cv_path_SETARCH
4329
4330 if test -n "$SETARCH"; then
4331 echo "$as_me:$LINENO: result: $SETARCH" >&5
4332 echo "${ECHO_T}$SETARCH" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4336 fi
4337
4338
4339 if test "$SETARCH" != no && test "$machine" = "intel386"; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_EXECSHIELD 1
4343 _ACEOF
4344
4345 else
4346 case "`cat /proc/sys/kernel/exec-shield`" in
4347 0) ;;
4348 *)
4349 { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
4350 Emacs can not dump itself if exec-shield is turned on.
4351 See \`etc/PROBLEMS' for further information." >&5
4352 echo "$as_me: error: Exec-shield is turned on.
4353 Emacs can not dump itself if exec-shield is turned on.
4354 See \`etc/PROBLEMS' for further information." >&2;}
4355 { (exit 1); exit 1; }; }
4356 esac
4357 fi
4358 fi
4359
4360 #### Extract some information from the operating system and machine files.
4361
4362 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4363 - which libraries the lib-src programs will want, and
4364 - whether the GNU malloc routines are usable..." >&5
4365 echo "$as_me: checking the machine- and system-dependent files to find out
4366 - which libraries the lib-src programs will want, and
4367 - whether the GNU malloc routines are usable..." >&6;}
4368
4369 ### First figure out CFLAGS (which we use for running the compiler here)
4370 ### and REAL_CFLAGS (which we use for real compilation).
4371 ### The two are the same except on a few systems, where they are made
4372 ### different to work around various lossages. For example,
4373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4374 ### as implying static linking.
4375
4376 ### If the CFLAGS env var is specified, we use that value
4377 ### instead of the default.
4378
4379 ### It's not important that this name contain the PID; you can't run
4380 ### two configures in the same directory and have anything work
4381 ### anyway.
4382 tempcname="conftest.c"
4383
4384 echo '
4385 #include "'${srcdir}'/src/'${opsysfile}'"
4386 #include "'${srcdir}'/src/'${machfile}'"
4387 #ifndef LIBS_MACHINE
4388 #define LIBS_MACHINE
4389 #endif
4390 #ifndef LIBS_SYSTEM
4391 #define LIBS_SYSTEM
4392 #endif
4393 #ifndef C_SWITCH_SYSTEM
4394 #define C_SWITCH_SYSTEM
4395 #endif
4396 #ifndef C_SWITCH_MACHINE
4397 #define C_SWITCH_MACHINE
4398 #endif
4399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4400 configure___ c_switch_system=C_SWITCH_SYSTEM
4401 configure___ c_switch_machine=C_SWITCH_MACHINE
4402
4403 #ifndef LIB_X11_LIB
4404 #define LIB_X11_LIB -lX11
4405 #endif
4406
4407 #ifndef LIBX11_MACHINE
4408 #define LIBX11_MACHINE
4409 #endif
4410
4411 #ifndef LIBX11_SYSTEM
4412 #define LIBX11_SYSTEM
4413 #endif
4414 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4415
4416 #ifdef UNEXEC
4417 configure___ unexec=UNEXEC
4418 #else
4419 configure___ unexec=unexec.o
4420 #endif
4421
4422 #ifdef SYSTEM_MALLOC
4423 configure___ system_malloc=yes
4424 #else
4425 configure___ system_malloc=no
4426 #endif
4427
4428 #ifdef USE_MMAP_FOR_BUFFERS
4429 configure___ use_mmap_for_buffers=yes
4430 #else
4431 configure___ use_mmap_for_buffers=no
4432 #endif
4433
4434 #ifndef C_DEBUG_SWITCH
4435 #define C_DEBUG_SWITCH -g
4436 #endif
4437
4438 #ifndef C_OPTIMIZE_SWITCH
4439 #ifdef __GNUC__
4440 #define C_OPTIMIZE_SWITCH -O2
4441 #else
4442 #define C_OPTIMIZE_SWITCH -O
4443 #endif
4444 #endif
4445
4446 #ifndef LD_SWITCH_MACHINE
4447 #define LD_SWITCH_MACHINE
4448 #endif
4449
4450 #ifndef LD_SWITCH_SYSTEM
4451 #define LD_SWITCH_SYSTEM
4452 #endif
4453
4454 #ifndef LD_SWITCH_X_SITE_AUX
4455 #define LD_SWITCH_X_SITE_AUX
4456 #endif
4457
4458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4460
4461 #ifdef THIS_IS_CONFIGURE
4462
4463 /* Get the CFLAGS for tests in configure. */
4464 #ifdef __GNUC__
4465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4466 #else
4467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4468 #endif
4469
4470 #else /* not THIS_IS_CONFIGURE */
4471
4472 /* Get the CFLAGS for real compilation. */
4473 #ifdef __GNUC__
4474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4475 #else
4476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4477 #endif
4478
4479 #endif /* not THIS_IS_CONFIGURE */
4480 ' > ${tempcname}
4481
4482 # The value of CPP is a quoted variable reference, so we need to do this
4483 # to get its actual value...
4484 CPP=`eval "echo $CPP"`
4485 eval `${CPP} -Isrc ${tempcname} \
4486 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4487 if test "x$SPECIFIED_CFLAGS" = x; then
4488 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4489 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4490 else
4491 REAL_CFLAGS="$CFLAGS"
4492 fi
4493 rm ${tempcname}
4494
4495 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4496
4497 ### Make sure subsequent tests use flags consistent with the build flags.
4498
4499 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4500 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4501 else
4502 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4503 fi
4504
4505
4506
4507
4508 cat >>confdefs.h <<\_ACEOF
4509 #define _GNU_SOURCE 1
4510 _ACEOF
4511
4512
4513
4514 # Check whether --enable-largefile or --disable-largefile was given.
4515 if test "${enable_largefile+set}" = set; then
4516 enableval="$enable_largefile"
4517
4518 fi;
4519 if test "$enable_largefile" != no; then
4520
4521 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4522 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4523 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_cv_sys_largefile_CC=no
4527 if test "$GCC" != yes; then
4528 ac_save_CC=$CC
4529 while :; do
4530 # IRIX 6.2 and later do not support large files by default,
4531 # so use the C compiler's -n32 option if that helps.
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 /* Check that off_t can represent 2**63 - 1 correctly.
4540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4541 since some C++ compilers masquerading as C compilers
4542 incorrectly reject 9223372036854775807. */
4543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4545 && LARGE_OFF_T % 2147483647 == 1)
4546 ? 1 : -1];
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 break
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 fi
4582 rm -f conftest.err conftest.$ac_objext
4583 CC="$CC -n32"
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4587 ac_status=$?
4588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_sys_largefile_CC=' -n32'; break
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 fi
4611 rm -f conftest.err conftest.$ac_objext
4612 break
4613 done
4614 CC=$ac_save_CC
4615 rm -f conftest.$ac_ext
4616 fi
4617 fi
4618 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4619 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4620 if test "$ac_cv_sys_largefile_CC" != no; then
4621 CC=$CC$ac_cv_sys_largefile_CC
4622 fi
4623
4624 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4625 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 while :; do
4630 ac_cv_sys_file_offset_bits=no
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <sys/types.h>
4638 /* Check that off_t can represent 2**63 - 1 correctly.
4639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4640 since some C++ compilers masquerading as C compilers
4641 incorrectly reject 9223372036854775807. */
4642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4644 && LARGE_OFF_T % 2147483647 == 1)
4645 ? 1 : -1];
4646 int
4647 main ()
4648 {
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 break
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #define _FILE_OFFSET_BITS 64
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4697 ? 1 : -1];
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_sys_file_offset_bits=64; break
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 fi
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 break
4735 done
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4738 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4739 if test "$ac_cv_sys_file_offset_bits" != no; then
4740
4741 cat >>confdefs.h <<_ACEOF
4742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4743 _ACEOF
4744
4745 fi
4746 rm -f conftest*
4747 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4748 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4749 if test "${ac_cv_sys_large_files+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 while :; do
4753 ac_cv_sys_large_files=no
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4768 ? 1 : -1];
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 break
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #define _LARGE_FILES 1
4812 #include <sys/types.h>
4813 /* Check that off_t can represent 2**63 - 1 correctly.
4814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4815 since some C++ compilers masquerading as C compilers
4816 incorrectly reject 9223372036854775807. */
4817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4819 && LARGE_OFF_T % 2147483647 == 1)
4820 ? 1 : -1];
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_sys_large_files=1; break
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 break
4858 done
4859 fi
4860 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4861 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4862 if test "$ac_cv_sys_large_files" != no; then
4863
4864 cat >>confdefs.h <<_ACEOF
4865 #define _LARGE_FILES $ac_cv_sys_large_files
4866 _ACEOF
4867
4868 fi
4869 rm -f conftest*
4870 fi
4871
4872
4873 if test "${with_sound}" != "no"; then
4874 # Sound support for GNU/Linux and the free BSDs.
4875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4877 if test "${ac_cv_header_stdc+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 #include <stdlib.h>
4887 #include <stdarg.h>
4888 #include <string.h>
4889 #include <float.h>
4890
4891 int
4892 main ()
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_header_stdc=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_cv_header_stdc=no
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928
4929 if test $ac_cv_header_stdc = yes; then
4930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <string.h>
4938
4939 _ACEOF
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev/null 2>&1; then
4942 :
4943 else
4944 ac_cv_header_stdc=no
4945 fi
4946 rm -f conftest*
4947
4948 fi
4949
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <stdlib.h>
4959
4960 _ACEOF
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 $EGREP "free" >/dev/null 2>&1; then
4963 :
4964 else
4965 ac_cv_header_stdc=no
4966 fi
4967 rm -f conftest*
4968
4969 fi
4970
4971 if test $ac_cv_header_stdc = yes; then
4972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4973 if test "$cross_compiling" = yes; then
4974 :
4975 else
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <ctype.h>
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4986 #else
4987 # define ISLOWER(c) \
4988 (('a' <= (c) && (c) <= 'i') \
4989 || ('j' <= (c) && (c) <= 'r') \
4990 || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4992 #endif
4993
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 int
4996 main ()
4997 {
4998 int i;
4999 for (i = 0; i < 256; i++)
5000 if (XOR (islower (i), ISLOWER (i))
5001 || toupper (i) != TOUPPER (i))
5002 exit(2);
5003 exit (0);
5004 }
5005 _ACEOF
5006 rm -f conftest$ac_exeext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5008 (eval $ac_link) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 :
5018 else
5019 echo "$as_me: program exited with status $ac_status" >&5
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 ( exit $ac_status )
5024 ac_cv_header_stdc=no
5025 fi
5026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 fi
5029 fi
5030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5032 if test $ac_cv_header_stdc = yes; then
5033
5034 cat >>confdefs.h <<\_ACEOF
5035 #define STDC_HEADERS 1
5036 _ACEOF
5037
5038 fi
5039
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5051 inttypes.h stdint.h unistd.h
5052 do
5053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054 echo "$as_me:$LINENO: checking for $ac_header" >&5
5055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066
5067 #include <$ac_header>
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 eval "$as_ac_Header=yes"
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 eval "$as_ac_Header=no"
5096 fi
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5102 cat >>confdefs.h <<_ACEOF
5103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104 _ACEOF
5105
5106 fi
5107
5108 done
5109
5110
5111
5112
5113
5114 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5115 do
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 fi
5123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5125 else
5126 # Is the header compilable?
5127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 $ac_includes_default
5136 #include <$ac_header>
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_header_compiler=yes
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 ac_header_compiler=no
5165 fi
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5168 echo "${ECHO_T}$ac_header_compiler" >&6
5169
5170 # Is the header present?
5171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <$ac_header>
5180 _ACEOF
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_c_preproc_warn_flag
5191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5192 else
5193 ac_cpp_err=
5194 fi
5195 else
5196 ac_cpp_err=yes
5197 fi
5198 if test -z "$ac_cpp_err"; then
5199 ac_header_preproc=yes
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_header_preproc=no
5205 fi
5206 rm -f conftest.err conftest.$ac_ext
5207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6
5209
5210 # So? What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5212 yes:no: )
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217 ac_header_preproc=yes
5218 ;;
5219 no:yes:* )
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5232 (
5233 cat <<\_ASBOX
5234 ## ------------------------------------------ ##
5235 ## Report this to the AC_PACKAGE_NAME lists. ##
5236 ## ------------------------------------------ ##
5237 _ASBOX
5238 ) |
5239 sed "s/^/$as_me: WARNING: /" >&2
5240 ;;
5241 esac
5242 echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 eval "$as_ac_Header=\$ac_header_preproc"
5248 fi
5249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5251
5252 fi
5253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5254 cat >>confdefs.h <<_ACEOF
5255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 _ACEOF
5257
5258 fi
5259
5260 done
5261
5262 # Emulation library used on NetBSD.
5263 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5264 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5265 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 ac_check_lib_save_LIBS=$LIBS
5269 LIBS="-lossaudio $LIBS"
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276
5277 /* Override any gcc2 internal prototype to avoid an error. */
5278 #ifdef __cplusplus
5279 extern "C"
5280 #endif
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5283 char _oss_ioctl ();
5284 int
5285 main ()
5286 {
5287 _oss_ioctl ();
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext conftest$ac_exeext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ossaudio__oss_ioctl=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_cv_lib_ossaudio__oss_ioctl=no
5319 fi
5320 rm -f conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5323 fi
5324 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5325 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5326 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5327 LIBSOUND=-lossaudio
5328 else
5329 LIBSOUND=
5330 fi
5331
5332
5333 fi
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5359 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5360 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5361 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5362 do
5363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 fi
5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5372 else
5373 # Is the header compilable?
5374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5383 #include <$ac_header>
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_header_compiler=yes
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_header_compiler=no
5412 fi
5413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5415 echo "${ECHO_T}$ac_header_compiler" >&6
5416
5417 # Is the header present?
5418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <$ac_header>
5427 _ACEOF
5428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5439 else
5440 ac_cpp_err=
5441 fi
5442 else
5443 ac_cpp_err=yes
5444 fi
5445 if test -z "$ac_cpp_err"; then
5446 ac_header_preproc=yes
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ac_header_preproc=no
5452 fi
5453 rm -f conftest.err conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5455 echo "${ECHO_T}$ac_header_preproc" >&6
5456
5457 # So? What about this header?
5458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5459 yes:no: )
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5464 ac_header_preproc=yes
5465 ;;
5466 no:yes:* )
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5479 (
5480 cat <<\_ASBOX
5481 ## ------------------------------------------ ##
5482 ## Report this to the AC_PACKAGE_NAME lists. ##
5483 ## ------------------------------------------ ##
5484 _ASBOX
5485 ) |
5486 sed "s/^/$as_me: WARNING: /" >&2
5487 ;;
5488 esac
5489 echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494 eval "$as_ac_Header=\$ac_header_preproc"
5495 fi
5496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5498
5499 fi
5500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501 cat >>confdefs.h <<_ACEOF
5502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5503 _ACEOF
5504
5505 fi
5506
5507 done
5508
5509
5510 for ac_header in term.h
5511 do
5512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 echo "$as_me:$LINENO: checking for $ac_header" >&5
5514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <$ac_header>
5525 _ACEOF
5526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev/null; then
5534 if test -s conftest.err; then
5535 ac_cpp_err=$ac_c_preproc_warn_flag
5536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5537 else
5538 ac_cpp_err=
5539 fi
5540 else
5541 ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544 eval "$as_ac_Header=yes"
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 eval "$as_ac_Header=no"
5550 fi
5551 rm -f conftest.err conftest.$ac_ext
5552 fi
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5559
5560 fi
5561
5562 done
5563
5564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5566 if test "${ac_cv_header_stdc+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <stdlib.h>
5576 #include <stdarg.h>
5577 #include <string.h>
5578 #include <float.h>
5579
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <string.h>
5627
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev/null 2>&1; then
5631 :
5632 else
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest*
5636
5637 fi
5638
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648
5649 _ACEOF
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then
5652 :
5653 else
5654 ac_cv_header_stdc=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5663 :
5664 else
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <ctype.h>
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 #else
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #endif
5682
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 int
5685 main ()
5686 {
5687 int i;
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5691 exit(2);
5692 exit (0);
5693 }
5694 _ACEOF
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 :
5707 else
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ( exit $ac_status )
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 fi
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define STDC_HEADERS 1
5725 _ACEOF
5726
5727 fi
5728
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5742 #include <time.h>
5743
5744 int
5745 main ()
5746 {
5747 if ((struct tm *) 0)
5748 return 0;
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_header_time=yes
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 ac_cv_header_time=no
5780 fi
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5784 echo "${ECHO_T}$ac_cv_header_time" >&6
5785 if test $ac_cv_header_time = yes; then
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define TIME_WITH_SYS_TIME 1
5789 _ACEOF
5790
5791 fi
5792
5793 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5794 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5795 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 #ifndef sys_siglist
5809 char *p = (char *) sys_siglist;
5810 #endif
5811
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5837 ac_cv_have_decl_sys_siglist=yes
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_cv_have_decl_sys_siglist=no
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 fi
5846 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5847 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5848 if test $ac_cv_have_decl_sys_siglist = yes; then
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define HAVE_DECL_SYS_SIGLIST 1
5852 _ACEOF
5853
5854
5855 else
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_DECL_SYS_SIGLIST 0
5858 _ACEOF
5859
5860
5861 fi
5862
5863
5864 if test $ac_cv_have_decl_sys_siglist != yes; then
5865 # For Tru64, at least:
5866 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5867 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5868 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5878 int
5879 main ()
5880 {
5881 #ifndef __sys_siglist
5882 char *p = (char *) __sys_siglist;
5883 #endif
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5891 (eval $ac_compile) 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try='test -s conftest.$ac_objext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_have_decl___sys_siglist=yes
5911 else
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ac_cv_have_decl___sys_siglist=no
5916 fi
5917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5918 fi
5919 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5920 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5921 if test $ac_cv_have_decl___sys_siglist = yes; then
5922
5923 cat >>confdefs.h <<_ACEOF
5924 #define HAVE_DECL___SYS_SIGLIST 1
5925 _ACEOF
5926
5927
5928 else
5929 cat >>confdefs.h <<_ACEOF
5930 #define HAVE_DECL___SYS_SIGLIST 0
5931 _ACEOF
5932
5933
5934 fi
5935
5936
5937 if test $ac_cv_have_decl___sys_siglist = yes; then
5938
5939 cat >>confdefs.h <<\_ACEOF
5940 #define sys_siglist __sys_siglist
5941 _ACEOF
5942
5943 fi
5944 fi
5945 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5946 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5947 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 #include <sys/types.h>
5957 #include <sys/wait.h>
5958 #ifndef WEXITSTATUS
5959 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5960 #endif
5961 #ifndef WIFEXITED
5962 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5963 #endif
5964
5965 int
5966 main ()
5967 {
5968 int s;
5969 wait (&s);
5970 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5971 ;
5972 return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_header_sys_wait_h=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_cv_header_sys_wait_h=no
6002 fi
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6007 if test $ac_cv_header_sys_wait_h = yes; then
6008
6009 cat >>confdefs.h <<\_ACEOF
6010 #define HAVE_SYS_WAIT_H 1
6011 _ACEOF
6012
6013 fi
6014
6015
6016 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6017 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6018 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #ifdef TIME_WITH_SYS_TIME
6028 #include <sys/time.h>
6029 #include <time.h>
6030 #else
6031 #ifdef HAVE_SYS_TIME_H
6032 #include <sys/time.h>
6033 #else
6034 #include <time.h>
6035 #endif
6036 #endif
6037 #ifdef HAVE_UTIME_H
6038 #include <utime.h>
6039 #endif
6040 int
6041 main ()
6042 {
6043 static struct utimbuf x; x.actime = x.modtime;
6044 ;
6045 return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050 (eval $ac_compile) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 emacs_cv_struct_utimbuf=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 emacs_cv_struct_utimbuf=no
6075 fi
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6079 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6080 if test $emacs_cv_struct_utimbuf = yes; then
6081
6082 cat >>confdefs.h <<\_ACEOF
6083 #define HAVE_STRUCT_UTIMBUF 1
6084 _ACEOF
6085
6086 fi
6087
6088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6090 if test "${ac_cv_type_signal+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <signal.h>
6101 #ifdef signal
6102 # undef signal
6103 #endif
6104 #ifdef __cplusplus
6105 extern "C" void (*signal (int, void (*)(int)))(int);
6106 #else
6107 void (*signal ()) ();
6108 #endif
6109
6110 int
6111 main ()
6112 {
6113 int i;
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_type_signal=void
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_type_signal=int
6145 fi
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6149 echo "${ECHO_T}$ac_cv_type_signal" >&6
6150
6151 cat >>confdefs.h <<_ACEOF
6152 #define RETSIGTYPE $ac_cv_type_signal
6153 _ACEOF
6154
6155
6156
6157 echo "$as_me:$LINENO: checking for speed_t" >&5
6158 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6159 if test "${emacs_cv_speed_t+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <termios.h>
6169 int
6170 main ()
6171 {
6172 speed_t x = 1;
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 emacs_cv_speed_t=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 emacs_cv_speed_t=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6208 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6209 if test $emacs_cv_speed_t = yes; then
6210
6211 cat >>confdefs.h <<\_ACEOF
6212 #define HAVE_SPEED_T 1
6213 _ACEOF
6214
6215 fi
6216
6217 echo "$as_me:$LINENO: checking for struct timeval" >&5
6218 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6219 if test "${emacs_cv_struct_timeval+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #ifdef TIME_WITH_SYS_TIME
6229 #include <sys/time.h>
6230 #include <time.h>
6231 #else
6232 #ifdef HAVE_SYS_TIME_H
6233 #include <sys/time.h>
6234 #else
6235 #include <time.h>
6236 #endif
6237 #endif
6238 int
6239 main ()
6240 {
6241 static struct timeval x; x.tv_sec = x.tv_usec;
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 emacs_cv_struct_timeval=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 emacs_cv_struct_timeval=no
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6277 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6278 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6279 if test $emacs_cv_struct_timeval = yes; then
6280
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_TIMEVAL 1
6283 _ACEOF
6284
6285 fi
6286
6287 echo "$as_me:$LINENO: checking for struct exception" >&5
6288 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6289 if test "${emacs_cv_struct_exception+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <math.h>
6299 int
6300 main ()
6301 {
6302 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 emacs_cv_struct_exception=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 emacs_cv_struct_exception=no
6334 fi
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6338 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6339 HAVE_EXCEPTION=$emacs_cv_struct_exception
6340 if test $emacs_cv_struct_exception != yes; then
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define NO_MATHERR 1
6344 _ACEOF
6345
6346 fi
6347
6348
6349 for ac_header in sys/socket.h
6350 do
6351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo "$as_me:$LINENO: checking for $ac_header" >&5
6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 fi
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6360 else
6361 # Is the header compilable?
6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; } &&
6388 { ac_try='test -s conftest.$ac_objext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_header_compiler=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 ac_header_compiler=no
6400 fi
6401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6403 echo "${ECHO_T}$ac_header_compiler" >&6
6404
6405 # Is the header present?
6406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <$ac_header>
6415 _ACEOF
6416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } >/dev/null; then
6424 if test -s conftest.err; then
6425 ac_cpp_err=$ac_c_preproc_warn_flag
6426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6427 else
6428 ac_cpp_err=
6429 fi
6430 else
6431 ac_cpp_err=yes
6432 fi
6433 if test -z "$ac_cpp_err"; then
6434 ac_header_preproc=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_header_preproc=no
6440 fi
6441 rm -f conftest.err conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6
6444
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447 yes:no: )
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc=yes
6453 ;;
6454 no:yes:* )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6467 (
6468 cat <<\_ASBOX
6469 ## ------------------------------------------ ##
6470 ## Report this to the AC_PACKAGE_NAME lists. ##
6471 ## ------------------------------------------ ##
6472 _ASBOX
6473 ) |
6474 sed "s/^/$as_me: WARNING: /" >&2
6475 ;;
6476 esac
6477 echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 eval "$as_ac_Header=\$ac_header_preproc"
6483 fi
6484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6486
6487 fi
6488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6489 cat >>confdefs.h <<_ACEOF
6490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491 _ACEOF
6492
6493 fi
6494
6495 done
6496
6497
6498 for ac_header in net/if.h
6499 do
6500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 #if HAVE_SYS_SOCKET_H
6514 #include <sys/socket.h>
6515 #endif
6516
6517 #include <$ac_header>
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 eval "$as_ac_Header=yes"
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 eval "$as_ac_Header=no"
6546 fi
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 _ACEOF
6555
6556 fi
6557
6558 done
6559
6560
6561 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6563 if test "${ac_cv_struct_tm+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #include <sys/types.h>
6573 #include <time.h>
6574
6575 int
6576 main ()
6577 {
6578 struct tm *tp; tp->tm_sec;
6579 ;
6580 return 0;
6581 }
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_struct_tm=time.h
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_cv_struct_tm=sys/time.h
6610 fi
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6615 if test $ac_cv_struct_tm = sys/time.h; then
6616
6617 cat >>confdefs.h <<\_ACEOF
6618 #define TM_IN_SYS_TIME 1
6619 _ACEOF
6620
6621 fi
6622
6623 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6624 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6625 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <sys/types.h>
6635 #include <$ac_cv_struct_tm>
6636
6637
6638 int
6639 main ()
6640 {
6641 static struct tm ac_aggr;
6642 if (ac_aggr.tm_zone)
6643 return 0;
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_member_struct_tm_tm_zone=yes
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <$ac_cv_struct_tm>
6682
6683
6684 int
6685 main ()
6686 {
6687 static struct tm ac_aggr;
6688 if (sizeof ac_aggr.tm_zone)
6689 return 0;
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_member_struct_tm_tm_zone=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 ac_cv_member_struct_tm_tm_zone=no
6721 fi
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6723 fi
6724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 fi
6726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_STRUCT_TM_TM_ZONE 1
6732 _ACEOF
6733
6734
6735 fi
6736
6737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_TM_ZONE 1
6741 _ACEOF
6742
6743 else
6744 echo "$as_me:$LINENO: checking for tzname" >&5
6745 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6746 if test "${ac_cv_var_tzname+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <time.h>
6756 #ifndef tzname /* For SGI. */
6757 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6758 #endif
6759
6760 int
6761 main ()
6762 {
6763 atoi(*tzname);
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_var_tzname=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_var_tzname=no
6795 fi
6796 rm -f conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 fi
6799 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6800 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6801 if test $ac_cv_var_tzname = yes; then
6802
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_TZNAME 1
6805 _ACEOF
6806
6807 fi
6808 fi
6809
6810 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6811 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6812 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <time.h>
6822
6823 int
6824 main ()
6825 {
6826 static struct tm ac_aggr;
6827 if (ac_aggr.tm_gmtoff)
6828 return 0;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_member_struct_tm_tm_gmtoff=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <time.h>
6866
6867 int
6868 main ()
6869 {
6870 static struct tm ac_aggr;
6871 if (sizeof ac_aggr.tm_gmtoff)
6872 return 0;
6873 ;
6874 return 0;
6875 }
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try='test -s conftest.$ac_objext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_member_struct_tm_tm_gmtoff=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 ac_cv_member_struct_tm_tm_gmtoff=no
6904 fi
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6911 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_TM_GMTOFF 1
6915 _ACEOF
6916
6917 fi
6918
6919 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6920 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6921 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #if HAVE_SYS_SOCKET_H
6932 #include <sys/socket.h>
6933 #endif
6934 #if HAVE_NET_IF_H
6935 #include <net/if.h>
6936 #endif
6937
6938 int
6939 main ()
6940 {
6941 static struct ifreq ac_aggr;
6942 if (ac_aggr.ifr_flags)
6943 return 0;
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_member_struct_ifreq_ifr_flags=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6981 #if HAVE_SYS_SOCKET_H
6982 #include <sys/socket.h>
6983 #endif
6984 #if HAVE_NET_IF_H
6985 #include <net/if.h>
6986 #endif
6987
6988 int
6989 main ()
6990 {
6991 static struct ifreq ac_aggr;
6992 if (sizeof ac_aggr.ifr_flags)
6993 return 0;
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_member_struct_ifreq_ifr_flags=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 ac_cv_member_struct_ifreq_ifr_flags=no
7025 fi
7026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027 fi
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7031 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7032 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7036 _ACEOF
7037
7038
7039 fi
7040 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7041 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7042 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7052 #if HAVE_SYS_SOCKET_H
7053 #include <sys/socket.h>
7054 #endif
7055 #if HAVE_NET_IF_H
7056 #include <net/if.h>
7057 #endif
7058
7059 int
7060 main ()
7061 {
7062 static struct ifreq ac_aggr;
7063 if (ac_aggr.ifr_hwaddr)
7064 return 0;
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7102 #if HAVE_SYS_SOCKET_H
7103 #include <sys/socket.h>
7104 #endif
7105 #if HAVE_NET_IF_H
7106 #include <net/if.h>
7107 #endif
7108
7109 int
7110 main ()
7111 {
7112 static struct ifreq ac_aggr;
7113 if (sizeof ac_aggr.ifr_hwaddr)
7114 return 0;
7115 ;
7116 return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121 (eval $ac_compile) 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7146 fi
7147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7148 fi
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 fi
7151 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7152 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7153 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7154
7155 cat >>confdefs.h <<_ACEOF
7156 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7157 _ACEOF
7158
7159
7160 fi
7161 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7162 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7163 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7173 #if HAVE_SYS_SOCKET_H
7174 #include <sys/socket.h>
7175 #endif
7176 #if HAVE_NET_IF_H
7177 #include <net/if.h>
7178 #endif
7179
7180 int
7181 main ()
7182 {
7183 static struct ifreq ac_aggr;
7184 if (ac_aggr.ifr_netmask)
7185 return 0;
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_member_struct_ifreq_ifr_netmask=yes
7212 else
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 #if HAVE_SYS_SOCKET_H
7224 #include <sys/socket.h>
7225 #endif
7226 #if HAVE_NET_IF_H
7227 #include <net/if.h>
7228 #endif
7229
7230 int
7231 main ()
7232 {
7233 static struct ifreq ac_aggr;
7234 if (sizeof ac_aggr.ifr_netmask)
7235 return 0;
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_member_struct_ifreq_ifr_netmask=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 ac_cv_member_struct_ifreq_ifr_netmask=no
7267 fi
7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269 fi
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7273 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7274 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7275
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7278 _ACEOF
7279
7280
7281 fi
7282 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7283 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7284 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 $ac_includes_default
7294 #if HAVE_SYS_SOCKET_H
7295 #include <sys/socket.h>
7296 #endif
7297 #if HAVE_NET_IF_H
7298 #include <net/if.h>
7299 #endif
7300
7301 int
7302 main ()
7303 {
7304 static struct ifreq ac_aggr;
7305 if (ac_aggr.ifr_broadaddr)
7306 return 0;
7307 ;
7308 return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try='test -s conftest.$ac_objext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 #if HAVE_SYS_SOCKET_H
7345 #include <sys/socket.h>
7346 #endif
7347 #if HAVE_NET_IF_H
7348 #include <net/if.h>
7349 #endif
7350
7351 int
7352 main ()
7353 {
7354 static struct ifreq ac_aggr;
7355 if (sizeof ac_aggr.ifr_broadaddr)
7356 return 0;
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest.$ac_objext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7388 fi
7389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7390 fi
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7392 fi
7393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7394 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7395 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7396
7397 cat >>confdefs.h <<_ACEOF
7398 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7399 _ACEOF
7400
7401
7402 fi
7403 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7404 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7405 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 #if HAVE_SYS_SOCKET_H
7416 #include <sys/socket.h>
7417 #endif
7418 #if HAVE_NET_IF_H
7419 #include <net/if.h>
7420 #endif
7421
7422 int
7423 main ()
7424 {
7425 static struct ifreq ac_aggr;
7426 if (ac_aggr.ifr_addr)
7427 return 0;
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; } &&
7447 { ac_try='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_member_struct_ifreq_ifr_addr=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7465 #if HAVE_SYS_SOCKET_H
7466 #include <sys/socket.h>
7467 #endif
7468 #if HAVE_NET_IF_H
7469 #include <net/if.h>
7470 #endif
7471
7472 int
7473 main ()
7474 {
7475 static struct ifreq ac_aggr;
7476 if (sizeof ac_aggr.ifr_addr)
7477 return 0;
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_member_struct_ifreq_ifr_addr=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_member_struct_ifreq_ifr_addr=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513 fi
7514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7515 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7516 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7517
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7520 _ACEOF
7521
7522
7523 fi
7524
7525
7526
7527 echo "$as_me:$LINENO: checking for function prototypes" >&5
7528 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7529 if test "$ac_cv_prog_cc_stdc" != no; then
7530 echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532
7533 cat >>confdefs.h <<\_ACEOF
7534 #define PROTOTYPES 1
7535 _ACEOF
7536
7537
7538 cat >>confdefs.h <<\_ACEOF
7539 #define __PROTOTYPES 1
7540 _ACEOF
7541
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6
7545 fi
7546
7547 echo "$as_me:$LINENO: checking for working volatile" >&5
7548 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7549 if test "${ac_cv_c_volatile+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558
7559 int
7560 main ()
7561 {
7562
7563 volatile int x;
7564 int * volatile y;
7565 ;
7566 return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; } &&
7584 { ac_try='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_cv_c_volatile=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 ac_cv_c_volatile=no
7596 fi
7597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7600 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7601 if test $ac_cv_c_volatile = no; then
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define volatile
7605 _ACEOF
7606
7607 fi
7608
7609 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7610 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7611 if test "${ac_cv_c_const+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620
7621 int
7622 main ()
7623 {
7624 /* FIXME: Include the comments suggested by Paul. */
7625 #ifndef __cplusplus
7626 /* Ultrix mips cc rejects this. */
7627 typedef int charset[2];
7628 const charset x;
7629 /* SunOS 4.1.1 cc rejects this. */
7630 char const *const *ccp;
7631 char **p;
7632 /* NEC SVR4.0.2 mips cc rejects this. */
7633 struct point {int x, y;};
7634 static struct point const zero = {0,0};
7635 /* AIX XL C 1.02.0.0 rejects this.
7636 It does not let you subtract one const X* pointer from another in
7637 an arm of an if-expression whose if-part is not a constant
7638 expression */
7639 const char *g = "string";
7640 ccp = &g + (g ? g-g : 0);
7641 /* HPUX 7.0 cc rejects these. */
7642 ++ccp;
7643 p = (char**) ccp;
7644 ccp = (char const *const *) p;
7645 { /* SCO 3.2v4 cc rejects this. */
7646 char *t;
7647 char const *s = 0 ? (char *) 0 : (char const *) 0;
7648
7649 *t++ = 0;
7650 }
7651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7652 int x[] = {25, 17};
7653 const int *foo = &x[0];
7654 ++foo;
7655 }
7656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7657 typedef const int *iptr;
7658 iptr p = 0;
7659 ++p;
7660 }
7661 { /* AIX XL C 1.02.0.0 rejects this saying
7662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7663 struct s { int j; const int *ap[3]; };
7664 struct s *b; b->j = 5;
7665 }
7666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7667 const int foo = 10;
7668 }
7669 #endif
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_c_const=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_c_const=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 fi
7705 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7706 echo "${ECHO_T}$ac_cv_c_const" >&6
7707 if test $ac_cv_c_const = no; then
7708
7709 cat >>confdefs.h <<\_ACEOF
7710 #define const
7711 _ACEOF
7712
7713 fi
7714
7715 echo "$as_me:$LINENO: checking for void * support" >&5
7716 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7717 if test "${emacs_cv_void_star+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726
7727 int
7728 main ()
7729 {
7730 void * foo;
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 emacs_cv_void_star=yes
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 emacs_cv_void_star=no
7762 fi
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764 fi
7765 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7766 echo "${ECHO_T}$emacs_cv_void_star" >&6
7767 if test $emacs_cv_void_star = yes; then
7768 cat >>confdefs.h <<\_ACEOF
7769 #define POINTER_TYPE void
7770 _ACEOF
7771
7772 else
7773 cat >>confdefs.h <<\_ACEOF
7774 #define POINTER_TYPE char
7775 _ACEOF
7776
7777 fi
7778
7779
7780
7781 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7782 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 cat >conftest.make <<\_ACEOF
7788 all:
7789 @echo 'ac_maketemp="$(MAKE)"'
7790 _ACEOF
7791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7792 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7793 if test -n "$ac_maketemp"; then
7794 eval ac_cv_prog_make_${ac_make}_set=yes
7795 else
7796 eval ac_cv_prog_make_${ac_make}_set=no
7797 fi
7798 rm -f conftest.make
7799 fi
7800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7801 echo "$as_me:$LINENO: result: yes" >&5
7802 echo "${ECHO_T}yes" >&6
7803 SET_MAKE=
7804 else
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807 SET_MAKE="MAKE=${MAKE-make}"
7808 fi
7809
7810
7811 echo "$as_me:$LINENO: checking for long file names" >&5
7812 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7813 if test "${ac_cv_sys_long_file_names+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 ac_cv_sys_long_file_names=yes
7817 # Test for long file names in all the places we know might matter:
7818 # . the current directory, where building will happen
7819 # $prefix/lib where we will be installing things
7820 # $exec_prefix/lib likewise
7821 # eval it to expand exec_prefix.
7822 # $TMPDIR if set, where it might want to write temporary files
7823 # if $TMPDIR is not set:
7824 # /tmp where it might want to write temporary files
7825 # /var/tmp likewise
7826 # /usr/tmp likewise
7827 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7828 ac_tmpdirs=$TMPDIR
7829 else
7830 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7831 fi
7832 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7833 test -d $ac_dir || continue
7834 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7835 ac_xdir=$ac_dir/cf$$
7836 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7837 ac_tf1=$ac_xdir/conftest9012345
7838 ac_tf2=$ac_xdir/conftest9012346
7839 (echo 1 >$ac_tf1) 2>/dev/null
7840 (echo 2 >$ac_tf2) 2>/dev/null
7841 ac_val=`cat $ac_tf1 2>/dev/null`
7842 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7843 ac_cv_sys_long_file_names=no
7844 rm -rf $ac_xdir 2>/dev/null
7845 break
7846 fi
7847 rm -rf $ac_xdir 2>/dev/null
7848 done
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7851 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7852 if test $ac_cv_sys_long_file_names = yes; then
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_LONG_FILE_NAMES 1
7856 _ACEOF
7857
7858 fi
7859
7860
7861 #### Choose a window system.
7862
7863 echo "$as_me:$LINENO: checking for X" >&5
7864 echo $ECHO_N "checking for X... $ECHO_C" >&6
7865
7866 ac_path_x_has_been_run=yes
7867
7868 # Check whether --with-x or --without-x was given.
7869 if test "${with_x+set}" = set; then
7870 withval="$with_x"
7871
7872 fi;
7873 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7874 if test "x$with_x" = xno; then
7875 # The user explicitly disabled X.
7876 have_x=disabled
7877 else
7878 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7879 # Both variables are already set.
7880 have_x=yes
7881 else
7882 if test "${ac_cv_have_x+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 # One or both of the vars are not set, and there is no cached value.
7886 ac_x_includes=no ac_x_libraries=no
7887 rm -fr conftest.dir
7888 if mkdir conftest.dir; then
7889 cd conftest.dir
7890 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7891 cat >Imakefile <<'_ACEOF'
7892 acfindx:
7893 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7894 _ACEOF
7895 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7897 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7898 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7899 for ac_extension in a so sl; do
7900 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7901 test -f $ac_im_libdir/libX11.$ac_extension; then
7902 ac_im_usrlibdir=$ac_im_libdir; break
7903 fi
7904 done
7905 # Screen out bogus values from the imake configuration. They are
7906 # bogus both because they are the default anyway, and because
7907 # using them would break gcc on systems where it needs fixed includes.
7908 case $ac_im_incroot in
7909 /usr/include) ;;
7910 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7911 esac
7912 case $ac_im_usrlibdir in
7913 /usr/lib | /lib) ;;
7914 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7915 esac
7916 fi
7917 cd ..
7918 rm -fr conftest.dir
7919 fi
7920
7921 # Standard set of common directories for X headers.
7922 # Check X11 before X11Rn because it is often a symlink to the current release.
7923 ac_x_header_dirs='
7924 /usr/X11/include
7925 /usr/X11R6/include
7926 /usr/X11R5/include
7927 /usr/X11R4/include
7928
7929 /usr/include/X11
7930 /usr/include/X11R6
7931 /usr/include/X11R5
7932 /usr/include/X11R4
7933
7934 /usr/local/X11/include
7935 /usr/local/X11R6/include
7936 /usr/local/X11R5/include
7937 /usr/local/X11R4/include
7938
7939 /usr/local/include/X11
7940 /usr/local/include/X11R6
7941 /usr/local/include/X11R5
7942 /usr/local/include/X11R4
7943
7944 /usr/X386/include
7945 /usr/x386/include
7946 /usr/XFree86/include/X11
7947
7948 /usr/include
7949 /usr/local/include
7950 /usr/unsupported/include
7951 /usr/athena/include
7952 /usr/local/x11r5/include
7953 /usr/lpp/Xamples/include
7954
7955 /usr/openwin/include
7956 /usr/openwin/share/include'
7957
7958 if test "$ac_x_includes" = no; then
7959 # Guess where to find include files, by looking for a specified header file.
7960 # First, try using that file with no special directory specified.
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 #include <X11/Intrinsic.h>
7968 _ACEOF
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7980 else
7981 ac_cpp_err=
7982 fi
7983 else
7984 ac_cpp_err=yes
7985 fi
7986 if test -z "$ac_cpp_err"; then
7987 # We can compile using X headers with no special include directory.
7988 ac_x_includes=
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 for ac_dir in $ac_x_header_dirs; do
7994 if test -r "$ac_dir/X11/Intrinsic.h"; then
7995 ac_x_includes=$ac_dir
7996 break
7997 fi
7998 done
7999 fi
8000 rm -f conftest.err conftest.$ac_ext
8001 fi # $ac_x_includes = no
8002
8003 if test "$ac_x_libraries" = no; then
8004 # Check for the libraries.
8005 # See if we find them without any special options.
8006 # Don't add to $LIBS permanently.
8007 ac_save_LIBS=$LIBS
8008 LIBS="-lXt $LIBS"
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <X11/Intrinsic.h>
8016 int
8017 main ()
8018 {
8019 XtMalloc (0)
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 LIBS=$ac_save_LIBS
8046 # We can link X programs with no special library path.
8047 ac_x_libraries=
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 LIBS=$ac_save_LIBS
8053 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8054 do
8055 # Don't even attempt the hair of trying to link an X program!
8056 for ac_extension in a so sl; do
8057 if test -r $ac_dir/libXt.$ac_extension; then
8058 ac_x_libraries=$ac_dir
8059 break 2
8060 fi
8061 done
8062 done
8063 fi
8064 rm -f conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 fi # $ac_x_libraries = no
8067
8068 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8069 # Didn't find X anywhere. Cache the known absence of X.
8070 ac_cv_have_x="have_x=no"
8071 else
8072 # Record where we found X for the cache.
8073 ac_cv_have_x="have_x=yes \
8074 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8075 fi
8076 fi
8077
8078 fi
8079 eval "$ac_cv_have_x"
8080 fi # $with_x != no
8081
8082 if test "$have_x" != yes; then
8083 echo "$as_me:$LINENO: result: $have_x" >&5
8084 echo "${ECHO_T}$have_x" >&6
8085 no_x=yes
8086 else
8087 # If each of the values was on the command line, it overrides each guess.
8088 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8089 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8090 # Update the cache value to reflect the command line values.
8091 ac_cv_have_x="have_x=yes \
8092 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8093 # It might be that x_includes is empty (headers are found in the
8094 # standard search path. Then output the corresponding message
8095 ac_out_x_includes=$x_includes
8096 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8097 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8098 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8099 fi
8100
8101 if test "$no_x" = yes; then
8102 window_system=none
8103 else
8104 window_system=x11
8105 fi
8106
8107 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8108 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8109 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8110 x_default_search_path=""
8111 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8112 x_search_path="\
8113 ${x_library}/X11/%L/%T/%N%C%S:\
8114 ${x_library}/X11/%l/%T/%N%C%S:\
8115 ${x_library}/X11/%T/%N%C%S:\
8116 ${x_library}/X11/%L/%T/%N%S:\
8117 ${x_library}/X11/%l/%T/%N%S:\
8118 ${x_library}/X11/%T/%N%S"
8119 if test x"${x_default_search_path}" = x; then
8120 x_default_search_path=${x_search_path}
8121 else
8122 x_default_search_path="${x_search_path}:${x_default_search_path}"
8123 fi
8124 done
8125 fi
8126 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8127 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8128 fi
8129
8130 if test x"${x_includes}" = x; then
8131 bitmapdir=/usr/include/X11/bitmaps
8132 else
8133 # accumulate include directories that have X11 bitmap subdirectories
8134 bmd_acc="dummyval"
8135 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8136 if test -d "${bmd}/X11/bitmaps"; then
8137 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8138 fi
8139 if test -d "${bmd}/bitmaps"; then
8140 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8141 fi
8142 done
8143 if test ${bmd_acc} != "dummyval"; then
8144 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8145 fi
8146 fi
8147
8148 case "${window_system}" in
8149 x11 )
8150 HAVE_X_WINDOWS=yes
8151 HAVE_X11=yes
8152 case "${with_x_toolkit}" in
8153 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8154 motif ) USE_X_TOOLKIT=MOTIF ;;
8155 gtk ) with_gtk=yes
8156 USE_X_TOOLKIT=none ;;
8157 no ) USE_X_TOOLKIT=none ;;
8158 * ) USE_X_TOOLKIT=maybe ;;
8159 esac
8160 ;;
8161 none )
8162 HAVE_X_WINDOWS=no
8163 HAVE_X11=no
8164 USE_X_TOOLKIT=none
8165 ;;
8166 esac
8167
8168 ### If we're using X11, we should use the X menu package.
8169 HAVE_MENUS=no
8170 case ${HAVE_X11} in
8171 yes ) HAVE_MENUS=yes ;;
8172 esac
8173
8174 if test "${opsys}" = "hpux9"; then
8175 case "${x_libraries}" in
8176 *X11R4* )
8177 opsysfile="s/hpux9-x11r4.h"
8178 ;;
8179 esac
8180 fi
8181
8182 if test "${opsys}" = "hpux9shr"; then
8183 case "${x_libraries}" in
8184 *X11R4* )
8185 opsysfile="s/hpux9shxr4.h"
8186 ;;
8187 esac
8188 fi
8189
8190 ### Compute the unexec source name from the object name.
8191 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8192
8193 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8194 # Assume not, until told otherwise.
8195 GNU_MALLOC=yes
8196 doug_lea_malloc=yes
8197 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8198 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8199 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8210 #define malloc_get_state innocuous_malloc_get_state
8211
8212 /* System header to define __stub macros and hopefully few prototypes,
8213 which can conflict with char malloc_get_state (); below.
8214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215 <limits.h> exists even on freestanding compilers. */
8216
8217 #ifdef __STDC__
8218 # include <limits.h>
8219 #else
8220 # include <assert.h>
8221 #endif
8222
8223 #undef malloc_get_state
8224
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 {
8229 #endif
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232 char malloc_get_state ();
8233 /* The GNU C library defines this for functions which it implements
8234 to always fail with ENOSYS. Some functions are actually named
8235 something starting with __ and the normal name is an alias. */
8236 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8237 choke me
8238 #else
8239 char (*f) () = malloc_get_state;
8240 #endif
8241 #ifdef __cplusplus
8242 }
8243 #endif
8244
8245 int
8246 main ()
8247 {
8248 return f != malloc_get_state;
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_func_malloc_get_state=yes
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 ac_cv_func_malloc_get_state=no
8280 fi
8281 rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 fi
8284 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8285 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8286 if test $ac_cv_func_malloc_get_state = yes; then
8287 :
8288 else
8289 doug_lea_malloc=no
8290 fi
8291
8292 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8293 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8294 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8305 #define malloc_set_state innocuous_malloc_set_state
8306
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char malloc_set_state (); below.
8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 <limits.h> exists even on freestanding compilers. */
8311
8312 #ifdef __STDC__
8313 # include <limits.h>
8314 #else
8315 # include <assert.h>
8316 #endif
8317
8318 #undef malloc_set_state
8319
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 {
8324 #endif
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char malloc_set_state ();
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8332 choke me
8333 #else
8334 char (*f) () = malloc_set_state;
8335 #endif
8336 #ifdef __cplusplus
8337 }
8338 #endif
8339
8340 int
8341 main ()
8342 {
8343 return f != malloc_set_state;
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try='test -s conftest$ac_exeext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_func_malloc_set_state=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_cv_func_malloc_set_state=no
8375 fi
8376 rm -f conftest.err conftest.$ac_objext \
8377 conftest$ac_exeext conftest.$ac_ext
8378 fi
8379 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8380 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8381 if test $ac_cv_func_malloc_set_state = yes; then
8382 :
8383 else
8384 doug_lea_malloc=no
8385 fi
8386
8387 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8388 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8389 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 extern void (* __after_morecore_hook)();
8399 int
8400 main ()
8401 {
8402 __after_morecore_hook = 0
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 emacs_cv_var___after_morecore_hook=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 emacs_cv_var___after_morecore_hook=no
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 fi
8438 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8439 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8440 if test $emacs_cv_var___after_morecore_hook = no; then
8441 doug_lea_malloc=no
8442 fi
8443 if test "${system_malloc}" = "yes"; then
8444 GNU_MALLOC=no
8445 GNU_MALLOC_reason="
8446 (The GNU allocators don't work with this system configuration.)"
8447 fi
8448 if test "$doug_lea_malloc" = "yes" ; then
8449 if test "$GNU_MALLOC" = yes ; then
8450 GNU_MALLOC_reason="
8451 (Using Doug Lea's new malloc from the GNU C Library.)"
8452 fi
8453
8454 cat >>confdefs.h <<\_ACEOF
8455 #define DOUG_LEA_MALLOC 1
8456 _ACEOF
8457
8458 fi
8459
8460 if test x"${REL_ALLOC}" = x; then
8461 REL_ALLOC=${GNU_MALLOC}
8462 fi
8463
8464
8465
8466
8467 for ac_header in stdlib.h unistd.h
8468 do
8469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 fi
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 else
8479 # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #include <$ac_header>
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_header_compiler=yes
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_header_compiler=no
8518 fi
8519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521 echo "${ECHO_T}$ac_header_compiler" >&6
8522
8523 # Is the header present?
8524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <$ac_header>
8533 _ACEOF
8534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } >/dev/null; then
8542 if test -s conftest.err; then
8543 ac_cpp_err=$ac_c_preproc_warn_flag
8544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8545 else
8546 ac_cpp_err=
8547 fi
8548 else
8549 ac_cpp_err=yes
8550 fi
8551 if test -z "$ac_cpp_err"; then
8552 ac_header_preproc=yes
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_header_preproc=no
8558 fi
8559 rm -f conftest.err conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8561 echo "${ECHO_T}$ac_header_preproc" >&6
8562
8563 # So? What about this header?
8564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8565 yes:no: )
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8570 ac_header_preproc=yes
8571 ;;
8572 no:yes:* )
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8585 (
8586 cat <<\_ASBOX
8587 ## ------------------------------------------ ##
8588 ## Report this to the AC_PACKAGE_NAME lists. ##
8589 ## ------------------------------------------ ##
8590 _ASBOX
8591 ) |
8592 sed "s/^/$as_me: WARNING: /" >&2
8593 ;;
8594 esac
8595 echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600 eval "$as_ac_Header=\$ac_header_preproc"
8601 fi
8602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604
8605 fi
8606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8607 cat >>confdefs.h <<_ACEOF
8608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8609 _ACEOF
8610
8611 fi
8612
8613 done
8614
8615
8616 for ac_func in getpagesize
8617 do
8618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8619 echo "$as_me:$LINENO: checking for $ac_func" >&5
8620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_var+set}\" = set"; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8632 #define $ac_func innocuous_$ac_func
8633
8634 /* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func (); below.
8636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 <limits.h> exists even on freestanding compilers. */
8638
8639 #ifdef __STDC__
8640 # include <limits.h>
8641 #else
8642 # include <assert.h>
8643 #endif
8644
8645 #undef $ac_func
8646
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 #ifdef __cplusplus
8649 extern "C"
8650 {
8651 #endif
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char $ac_func ();
8655 /* The GNU C library defines this for functions which it implements
8656 to always fail with ENOSYS. Some functions are actually named
8657 something starting with __ and the normal name is an alias. */
8658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8659 choke me
8660 #else
8661 char (*f) () = $ac_func;
8662 #endif
8663 #ifdef __cplusplus
8664 }
8665 #endif
8666
8667 int
8668 main ()
8669 {
8670 return f != $ac_func;
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 eval "$as_ac_var=yes"
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 eval "$as_ac_var=no"
8702 fi
8703 rm -f conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 fi
8706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8708 if test `eval echo '${'$as_ac_var'}'` = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8711 _ACEOF
8712
8713 fi
8714 done
8715
8716 echo "$as_me:$LINENO: checking for working mmap" >&5
8717 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8718 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 if test "$cross_compiling" = yes; then
8722 ac_cv_func_mmap_fixed_mapped=no
8723 else
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 /* malloc might have been renamed as rpl_malloc. */
8732 #undef malloc
8733
8734 /* Thanks to Mike Haertel and Jim Avera for this test.
8735 Here is a matrix of mmap possibilities:
8736 mmap private not fixed
8737 mmap private fixed at somewhere currently unmapped
8738 mmap private fixed at somewhere already mapped
8739 mmap shared not fixed
8740 mmap shared fixed at somewhere currently unmapped
8741 mmap shared fixed at somewhere already mapped
8742 For private mappings, we should verify that changes cannot be read()
8743 back from the file, nor mmap's back from the file at a different
8744 address. (There have been systems where private was not correctly
8745 implemented like the infamous i386 svr4.0, and systems where the
8746 VM page cache was not coherent with the file system buffer cache
8747 like early versions of FreeBSD and possibly contemporary NetBSD.)
8748 For shared mappings, we should conversely verify that changes get
8749 propagated back to all the places they're supposed to be.
8750
8751 Grep wants private fixed already mapped.
8752 The main things grep needs to know about mmap are:
8753 * does it exist and is it safe to write into the mmap'd area
8754 * how to use it (BSD variants) */
8755
8756 #include <fcntl.h>
8757 #include <sys/mman.h>
8758
8759 #if !STDC_HEADERS && !HAVE_STDLIB_H
8760 char *malloc ();
8761 #endif
8762
8763 /* This mess was copied from the GNU getpagesize.h. */
8764 #if !HAVE_GETPAGESIZE
8765 /* Assume that all systems that can run configure have sys/param.h. */
8766 # if !HAVE_SYS_PARAM_H
8767 # define HAVE_SYS_PARAM_H 1
8768 # endif
8769
8770 # ifdef _SC_PAGESIZE
8771 # define getpagesize() sysconf(_SC_PAGESIZE)
8772 # else /* no _SC_PAGESIZE */
8773 # if HAVE_SYS_PARAM_H
8774 # include <sys/param.h>
8775 # ifdef EXEC_PAGESIZE
8776 # define getpagesize() EXEC_PAGESIZE
8777 # else /* no EXEC_PAGESIZE */
8778 # ifdef NBPG
8779 # define getpagesize() NBPG * CLSIZE
8780 # ifndef CLSIZE
8781 # define CLSIZE 1
8782 # endif /* no CLSIZE */
8783 # else /* no NBPG */
8784 # ifdef NBPC
8785 # define getpagesize() NBPC
8786 # else /* no NBPC */
8787 # ifdef PAGESIZE
8788 # define getpagesize() PAGESIZE
8789 # endif /* PAGESIZE */
8790 # endif /* no NBPC */
8791 # endif /* no NBPG */
8792 # endif /* no EXEC_PAGESIZE */
8793 # else /* no HAVE_SYS_PARAM_H */
8794 # define getpagesize() 8192 /* punt totally */
8795 # endif /* no HAVE_SYS_PARAM_H */
8796 # endif /* no _SC_PAGESIZE */
8797
8798 #endif /* no HAVE_GETPAGESIZE */
8799
8800 int
8801 main ()
8802 {
8803 char *data, *data2, *data3;
8804 int i, pagesize;
8805 int fd;
8806
8807 pagesize = getpagesize ();
8808
8809 /* First, make a file with some known garbage in it. */
8810 data = (char *) malloc (pagesize);
8811 if (!data)
8812 exit (1);
8813 for (i = 0; i < pagesize; ++i)
8814 *(data + i) = rand ();
8815 umask (0);
8816 fd = creat ("conftest.mmap", 0600);
8817 if (fd < 0)
8818 exit (1);
8819 if (write (fd, data, pagesize) != pagesize)
8820 exit (1);
8821 close (fd);
8822
8823 /* Next, try to mmap the file at a fixed address which already has
8824 something else allocated at it. If we can, also make sure that
8825 we see the same garbage. */
8826 fd = open ("conftest.mmap", O_RDWR);
8827 if (fd < 0)
8828 exit (1);
8829 data2 = (char *) malloc (2 * pagesize);
8830 if (!data2)
8831 exit (1);
8832 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8833 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8834 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8835 exit (1);
8836 for (i = 0; i < pagesize; ++i)
8837 if (*(data + i) != *(data2 + i))
8838 exit (1);
8839
8840 /* Finally, make sure that changes to the mapped area do not
8841 percolate back to the file as seen by read(). (This is a bug on
8842 some variants of i386 svr4.0.) */
8843 for (i = 0; i < pagesize; ++i)
8844 *(data2 + i) = *(data2 + i) + 1;
8845 data3 = (char *) malloc (pagesize);
8846 if (!data3)
8847 exit (1);
8848 if (read (fd, data3, pagesize) != pagesize)
8849 exit (1);
8850 for (i = 0; i < pagesize; ++i)
8851 if (*(data + i) != *(data3 + i))
8852 exit (1);
8853 close (fd);
8854 exit (0);
8855 }
8856 _ACEOF
8857 rm -f conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_func_mmap_fixed_mapped=yes
8869 else
8870 echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ( exit $ac_status )
8875 ac_cv_func_mmap_fixed_mapped=no
8876 fi
8877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 fi
8880 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8881 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8882 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_MMAP 1
8886 _ACEOF
8887
8888 fi
8889 rm -f conftest.mmap
8890
8891 if test $use_mmap_for_buffers = yes; then
8892 REL_ALLOC=no
8893 fi
8894
8895 LIBS="$libsrc_libs $LIBS"
8896
8897
8898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8899 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8900 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 ac_check_lib_save_LIBS=$LIBS
8904 LIBS="-ldnet $LIBS"
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h. */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911
8912 /* Override any gcc2 internal prototype to avoid an error. */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8918 char dnet_ntoa ();
8919 int
8920 main ()
8921 {
8922 dnet_ntoa ();
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_lib_dnet_dnet_ntoa=yes
8949 else
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 ac_cv_lib_dnet_dnet_ntoa=no
8954 fi
8955 rm -f conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8958 fi
8959 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8960 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8961 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_LIBDNET 1
8964 _ACEOF
8965
8966 LIBS="-ldnet $LIBS"
8967
8968 fi
8969
8970
8971 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8972 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8973 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976 ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lXbsd $LIBS"
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984
8985
8986 int
8987 main ()
8988 {
8989 main ();
8990 ;
8991 return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_lib_Xbsd_main=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_cv_lib_Xbsd_main=no
9021 fi
9022 rm -f conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LIBS=$ac_check_lib_save_LIBS
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9027 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9028 if test $ac_cv_lib_Xbsd_main = yes; then
9029 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9030 fi
9031
9032
9033
9034 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9035 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9036 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-lpthreads $LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047
9048 /* Override any gcc2 internal prototype to avoid an error. */
9049 #ifdef __cplusplus
9050 extern "C"
9051 #endif
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9054 char cma_open ();
9055 int
9056 main ()
9057 {
9058 cma_open ();
9059 ;
9060 return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_lib_pthreads_cma_open=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_cv_lib_pthreads_cma_open=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 LIBS=$ac_check_lib_save_LIBS
9094 fi
9095 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9096 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9097 if test $ac_cv_lib_pthreads_cma_open = yes; then
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_LIBPTHREADS 1
9100 _ACEOF
9101
9102 LIBS="-lpthreads $LIBS"
9103
9104 fi
9105
9106
9107 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9108 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9109 if test -d /usr/X386/include; then
9110 HAVE_XFREE386=yes
9111 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9112 else
9113 HAVE_XFREE386=no
9114 fi
9115 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9116 echo "${ECHO_T}$HAVE_XFREE386" >&6
9117
9118
9119 case ${host_os} in
9120 aix*)
9121 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9122 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9123 if test "${gdb_cv_bigtoc+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126
9127 case $GCC in
9128 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9129 *) gdb_cv_bigtoc=-bbigtoc ;;
9130 esac
9131
9132 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139
9140 int
9141 main ()
9142 {
9143 int i;
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 :
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 gdb_cv_bigtoc=
9175 fi
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178
9179 fi
9180 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9181 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9182 ;;
9183 esac
9184
9185 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9186 # used for the tests that follow. We set them back to REAL_CFLAGS and
9187 # REAL_CPPFLAGS later on.
9188
9189 REAL_CPPFLAGS="$CPPFLAGS"
9190
9191 if test "${HAVE_X11}" = "yes"; then
9192 DEFS="$C_SWITCH_X_SITE $DEFS"
9193 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9194 LIBS="$LIBX $LIBS"
9195 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9196 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9197
9198 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9199 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9200 # but it's more convenient here to set LD_RUN_PATH
9201 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9202 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9203 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9204 export LD_RUN_PATH
9205 fi
9206
9207 if test "${opsys}" = "gnu-linux"; then
9208 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9209 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216
9217 int
9218 main ()
9219 {
9220 XOpenDisplay ("foo");
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>conftest.er1
9228 ac_status=$?
9229 grep -v '^ *+' conftest.er1 >conftest.err
9230 rm -f conftest.er1
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 xlinux_first_failure=no
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 xlinux_first_failure=yes
9252 fi
9253 rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 if test "${xlinux_first_failure}" = "yes"; then
9256 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9257 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9258 OLD_CPPFLAGS="$CPPFLAGS"
9259 OLD_LIBS="$LIBS"
9260 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9261 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9262 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9263 LIBS="$LIBS -b i486-linuxaout"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270
9271 int
9272 main ()
9273 {
9274 XOpenDisplay ("foo");
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 xlinux_second_failure=no
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 xlinux_second_failure=yes
9306 fi
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 if test "${xlinux_second_failure}" = "yes"; then
9310 # If we get the same failure with -b, there is no use adding -b.
9311 # So take it out. This plays safe.
9312 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9313 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9314 CPPFLAGS="$OLD_CPPFLAGS"
9315 LIBS="$OLD_LIBS"
9316 echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9318 else
9319 echo "$as_me:$LINENO: result: yes" >&5
9320 echo "${ECHO_T}yes" >&6
9321 fi
9322 else
9323 echo "$as_me:$LINENO: result: no" >&5
9324 echo "${ECHO_T}no" >&6
9325 fi
9326 fi
9327
9328 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9329 # header files included from there.
9330 echo "$as_me:$LINENO: checking for Xkb" >&5
9331 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <X11/Xlib.h>
9339 #include <X11/XKBlib.h>
9340 int
9341 main ()
9342 {
9343 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9344 ;
9345 return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 emacs_xkb=yes
9370 else
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 emacs_xkb=no
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9379 echo "${ECHO_T}$emacs_xkb" >&6
9380 if test $emacs_xkb = yes; then
9381
9382 cat >>confdefs.h <<\_ACEOF
9383 #define HAVE_XKBGETKEYBOARD 1
9384 _ACEOF
9385
9386 fi
9387
9388
9389
9390
9391
9392 for ac_func in XrmSetDatabase XScreenResourceString \
9393 XScreenNumberOfScreen XSetWMProtocols
9394 do
9395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_func" >&5
9397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_var+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define $ac_func innocuous_$ac_func
9410
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9415
9416 #ifdef __STDC__
9417 # include <limits.h>
9418 #else
9419 # include <assert.h>
9420 #endif
9421
9422 #undef $ac_func
9423
9424 /* Override any gcc2 internal prototype to avoid an error. */
9425 #ifdef __cplusplus
9426 extern "C"
9427 {
9428 #endif
9429 /* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9431 char $ac_func ();
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9436 choke me
9437 #else
9438 char (*f) () = $ac_func;
9439 #endif
9440 #ifdef __cplusplus
9441 }
9442 #endif
9443
9444 int
9445 main ()
9446 {
9447 return f != $ac_func;
9448 ;
9449 return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try='test -s conftest$ac_exeext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 eval "$as_ac_var=yes"
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 eval "$as_ac_var=no"
9479 fi
9480 rm -f conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 fi
9483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9485 if test `eval echo '${'$as_ac_var'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9488 _ACEOF
9489
9490 fi
9491 done
9492
9493 fi
9494
9495 if test "${window_system}" = "x11"; then
9496 echo "$as_me:$LINENO: checking X11 version 6" >&5
9497 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9498 if test "${emacs_cv_x11_version_6+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <X11/Xlib.h>
9508 int
9509 main ()
9510 {
9511 #if XlibSpecificationRelease < 6
9512 fail;
9513 #endif
9514
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; } &&
9534 { ac_try='test -s conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 emacs_cv_x11_version_6=yes
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545 emacs_cv_x11_version_6=no
9546 fi
9547 rm -f conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 fi
9550
9551 if test $emacs_cv_x11_version_6 = yes; then
9552 echo "$as_me:$LINENO: result: 6 or newer" >&5
9553 echo "${ECHO_T}6 or newer" >&6
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define HAVE_X11R6 1
9557 _ACEOF
9558
9559 else
9560 echo "$as_me:$LINENO: result: before 6" >&5
9561 echo "${ECHO_T}before 6" >&6
9562 fi
9563 fi
9564
9565 if test "${window_system}" = "x11"; then
9566 echo "$as_me:$LINENO: checking X11 version 5" >&5
9567 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9568 if test "${emacs_cv_x11_version_5+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 #include <X11/Xlib.h>
9578 int
9579 main ()
9580 {
9581 #if XlibSpecificationRelease < 5
9582 fail;
9583 #endif
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 emacs_cv_x11_version_5=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615 emacs_cv_x11_version_5=no
9616 fi
9617 rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 fi
9620
9621 if test $emacs_cv_x11_version_5 = yes; then
9622 echo "$as_me:$LINENO: result: 5 or newer" >&5
9623 echo "${ECHO_T}5 or newer" >&6
9624 HAVE_X11R5=yes
9625
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_X11R5 1
9628 _ACEOF
9629
9630 else
9631 HAVE_X11R5=no
9632 echo "$as_me:$LINENO: result: before 5" >&5
9633 echo "${ECHO_T}before 5" >&6
9634 fi
9635 fi
9636
9637
9638
9639 HAVE_GTK=no
9640 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9641 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9642 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9643 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9644 { (exit 1); exit 1; }; };
9645 fi
9646 GLIB_REQUIRED=2.0.1
9647 GTK_REQUIRED=2.0.1
9648 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9649
9650 if test "X${with_pkg_config_prog}" != X; then
9651 PKG_CONFIG="${with_pkg_config_prog}"
9652 fi
9653
9654 succeeded=no
9655
9656 if test -z "$PKG_CONFIG"; then
9657 # Extract the first word of "pkg-config", so it can be a program name with args.
9658 set dummy pkg-config; ac_word=$2
9659 echo "$as_me:$LINENO: checking for $ac_word" >&5
9660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 case $PKG_CONFIG in
9665 [\\/]* | ?:[\\/]*)
9666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9667 ;;
9668 *)
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9679 fi
9680 done
9681 done
9682
9683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9684 ;;
9685 esac
9686 fi
9687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9688
9689 if test -n "$PKG_CONFIG"; then
9690 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9691 echo "${ECHO_T}$PKG_CONFIG" >&6
9692 else
9693 echo "$as_me:$LINENO: result: no" >&5
9694 echo "${ECHO_T}no" >&6
9695 fi
9696
9697 fi
9698
9699 if test "$PKG_CONFIG" = "no" ; then
9700 echo "*** The pkg-config script could not be found. Make sure it is"
9701 echo "*** in your path, or give the full path to pkg-config with"
9702 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9703 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9704 else
9705 PKG_CONFIG_MIN_VERSION=0.9.0
9706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9707 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9708 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9709
9710 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712 echo "${ECHO_T}yes" >&6
9713 succeeded=yes
9714
9715 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9716 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9717 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9718 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9719 echo "${ECHO_T}$GTK_CFLAGS" >&6
9720
9721 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9722 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9723 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9724 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9725 echo "${ECHO_T}$GTK_LIBS" >&6
9726 else
9727 GTK_CFLAGS=""
9728 GTK_LIBS=""
9729 ## If we have a custom action on failure, don't print errors, but
9730 ## do set a variable so people can do so.
9731 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9732 echo $GTK_PKG_ERRORS
9733 fi
9734
9735
9736
9737 else
9738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9740 fi
9741 fi
9742
9743 if test $succeeded = yes; then
9744 :
9745 else
9746 { { 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
9747 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;}
9748 { (exit 1); exit 1; }; }
9749 fi
9750
9751
9752
9753 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9754 CFLAGS="$CFLAGS $GTK_CFLAGS"
9755 LIBS="$GTK_LIBS $LIBS"
9756 HAVE_GTK=yes
9757
9758 cat >>confdefs.h <<\_ACEOF
9759 #define HAVE_GTK 1
9760 _ACEOF
9761
9762 USE_X_TOOLKIT=none
9763
9764 with_toolkit_scroll_bars=yes
9765
9766 HAVE_GTK_MULTIDISPLAY=no
9767
9768 for ac_func in gdk_display_open
9769 do
9770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9771 echo "$as_me:$LINENO: checking for $ac_func" >&5
9772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9773 if eval "test \"\${$as_ac_var+set}\" = set"; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define $ac_func innocuous_$ac_func
9785
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char $ac_func (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9790
9791 #ifdef __STDC__
9792 # include <limits.h>
9793 #else
9794 # include <assert.h>
9795 #endif
9796
9797 #undef $ac_func
9798
9799 /* Override any gcc2 internal prototype to avoid an error. */
9800 #ifdef __cplusplus
9801 extern "C"
9802 {
9803 #endif
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9806 char $ac_func ();
9807 /* The GNU C library defines this for functions which it implements
9808 to always fail with ENOSYS. Some functions are actually named
9809 something starting with __ and the normal name is an alias. */
9810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9811 choke me
9812 #else
9813 char (*f) () = $ac_func;
9814 #endif
9815 #ifdef __cplusplus
9816 }
9817 #endif
9818
9819 int
9820 main ()
9821 {
9822 return f != $ac_func;
9823 ;
9824 return 0;
9825 }
9826 _ACEOF
9827 rm -f conftest.$ac_objext conftest$ac_exeext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829 (eval $ac_link) 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 eval "$as_ac_var=yes"
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 eval "$as_ac_var=no"
9854 fi
9855 rm -f conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 fi
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9863 _ACEOF
9864 HAVE_GTK_MULTIDISPLAY=yes
9865 fi
9866 done
9867
9868 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9869
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_GTK_MULTIDISPLAY 1
9872 _ACEOF
9873
9874 fi
9875 fi
9876
9877 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9878 if test x"${HAVE_X11R5}" = xyes; then
9879 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9880 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9881 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890
9891 #include <X11/Intrinsic.h>
9892 #include <X11/Xaw/Simple.h>
9893 int
9894 main ()
9895 {
9896
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 emacs_cv_x11_version_5_with_xaw=yes
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 emacs_cv_x11_version_5_with_xaw=no
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 fi
9932
9933 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9934 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9935 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9936 USE_X_TOOLKIT=LUCID
9937 else
9938 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9939 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9940 USE_X_TOOLKIT=none
9941 fi
9942 else
9943 USE_X_TOOLKIT=none
9944 fi
9945 fi
9946
9947 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9948
9949 if test "${USE_X_TOOLKIT}" != "none"; then
9950 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9951 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9952 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <X11/Intrinsic.h>
9962 int
9963 main ()
9964 {
9965 #if XtSpecificationRelease < 6
9966 fail;
9967 #endif
9968
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 emacs_cv_x11_toolkit_version_6=yes
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999 emacs_cv_x11_toolkit_version_6=no
10000 fi
10001 rm -f conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 fi
10004
10005 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10006 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10007 echo "$as_me:$LINENO: result: 6 or newer" >&5
10008 echo "${ECHO_T}6 or newer" >&6
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_X11XTR6 1
10012 _ACEOF
10013
10014 else
10015 echo "$as_me:$LINENO: result: before 6" >&5
10016 echo "${ECHO_T}before 6" >&6
10017 fi
10018
10019 OLDLIBS="$LIBS"
10020 if test x$HAVE_X11XTR6 = xyes; then
10021 LIBS="-lXt -lSM -lICE $LIBS"
10022 else
10023 LIBS="-lXt $LIBS"
10024 fi
10025
10026 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10027 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10028 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-lXmu $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039
10040 /* Override any gcc2 internal prototype to avoid an error. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char XmuConvertStandardSelection ();
10047 int
10048 main ()
10049 {
10050 XmuConvertStandardSelection ();
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10082 fi
10083 rm -f conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10088 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10089 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10090 cat >>confdefs.h <<_ACEOF
10091 #define HAVE_LIBXMU 1
10092 _ACEOF
10093
10094 LIBS="-lXmu $LIBS"
10095
10096 fi
10097
10098 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10099 fi
10100
10101 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10102 if test "${HAVE_X11}" = "yes"; then
10103 if test "${USE_X_TOOLKIT}" != "none"; then
10104
10105 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10106 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10107 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lXext $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10125 char XShapeQueryExtension ();
10126 int
10127 main ()
10128 {
10129 XShapeQueryExtension ();
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_lib_Xext_XShapeQueryExtension=yes
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 ac_cv_lib_Xext_XShapeQueryExtension=no
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LIBS=$ac_check_lib_save_LIBS
10165 fi
10166 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10167 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10168 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_LIBXEXT 1
10171 _ACEOF
10172
10173 LIBS="-lXext $LIBS"
10174
10175 fi
10176
10177 fi
10178 fi
10179
10180 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10181 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10182 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10183 if test "${emacs_cv_lesstif+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186 # We put this in CFLAGS temporarily to precede other -I options
10187 # that might be in CFLAGS temporarily.
10188 # We put this in CPPFLAGS where it precedes the other -I options.
10189 OLD_CPPFLAGS=$CPPFLAGS
10190 OLD_CFLAGS=$CFLAGS
10191 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10192 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10200 int
10201 main ()
10202 {
10203 int x = 5;
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest.$ac_objext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 emacs_cv_lesstif=yes
10230 else
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 emacs_cv_lesstif=no
10235 fi
10236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10239 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10240 if test $emacs_cv_lesstif = yes; then
10241 # Make sure this -I option remains in CPPFLAGS after it is set
10242 # back to REAL_CPPFLAGS.
10243 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10244 # have those other -I options anyway. Ultimately, having this
10245 # directory ultimately in CPPFLAGS will be enough.
10246 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10247 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10248 else
10249 CFLAGS=$OLD_CFLAGS
10250 CPPFLAGS=$OLD_CPPFLAGS
10251 fi
10252 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10253 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10254 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <Xm/Xm.h>
10264 int
10265 main ()
10266 {
10267 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10268 int x = 5;
10269 #else
10270 Motif version prior to 2.1.
10271 #endif
10272 ;
10273 return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 emacs_cv_motif_version_2_1=yes
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 emacs_cv_motif_version_2_1=no
10303 fi
10304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10307 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10308 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10309 if test $emacs_cv_motif_version_2_1 = yes; then
10310 HAVE_LIBXP=no
10311
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_MOTIF_2_1 1
10314 _ACEOF
10315
10316 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10317 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10318 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-lXp $LIBS"
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329
10330 /* Override any gcc2 internal prototype to avoid an error. */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 /* We use char because int might match the return type of a gcc2
10335 builtin and then its argument prototype would still apply. */
10336 char XpCreateContext ();
10337 int
10338 main ()
10339 {
10340 XpCreateContext ();
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest$ac_exeext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_lib_Xp_XpCreateContext=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_cv_lib_Xp_XpCreateContext=no
10372 fi
10373 rm -f conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LIBS=$ac_check_lib_save_LIBS
10376 fi
10377 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10378 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10379 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10380 HAVE_LIBXP=yes
10381 fi
10382
10383 if test ${HAVE_LIBXP} = yes; then
10384
10385 cat >>confdefs.h <<\_ACEOF
10386 #define HAVE_LIBXP 1
10387 _ACEOF
10388
10389 fi
10390 fi
10391 fi
10392
10393 ### Is -lXaw3d available?
10394 HAVE_XAW3D=no
10395 if test "${HAVE_X11}" = "yes"; then
10396 if test "${USE_X_TOOLKIT}" != "none"; then
10397 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10398 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10399 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <X11/Xaw3d/Scrollbar.h>
10409 _ACEOF
10410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } >/dev/null; then
10418 if test -s conftest.err; then
10419 ac_cpp_err=$ac_c_preproc_warn_flag
10420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10421 else
10422 ac_cpp_err=
10423 fi
10424 else
10425 ac_cpp_err=yes
10426 fi
10427 if test -z "$ac_cpp_err"; then
10428 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10432
10433 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10434 fi
10435 rm -f conftest.err conftest.$ac_ext
10436 fi
10437 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10439 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10440 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10441 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10442 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-lXaw3d $LIBS"
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char XawScrollbarSetThumb ();
10461 int
10462 main ()
10463 {
10464 XawScrollbarSetThumb ();
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471 (eval $ac_link) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10491 else
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10496 fi
10497 rm -f conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10502 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10503 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10504 HAVE_XAW3D=yes
10505 fi
10506
10507 fi
10508
10509
10510 if test "${HAVE_XAW3D}" = "yes"; then
10511
10512 cat >>confdefs.h <<\_ACEOF
10513 #define HAVE_XAW3D 1
10514 _ACEOF
10515
10516 fi
10517 fi
10518 fi
10519
10520
10521
10522 USE_TOOLKIT_SCROLL_BARS=no
10523 if test "${with_toolkit_scroll_bars}" != "no"; then
10524 if test "${USE_X_TOOLKIT}" != "none"; then
10525 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define USE_TOOLKIT_SCROLL_BARS 1
10528 _ACEOF
10529
10530 HAVE_XAW3D=no
10531 USE_TOOLKIT_SCROLL_BARS=yes
10532 elif test "${HAVE_XAW3D}" = "yes"; then
10533 cat >>confdefs.h <<\_ACEOF
10534 #define USE_TOOLKIT_SCROLL_BARS 1
10535 _ACEOF
10536
10537 USE_TOOLKIT_SCROLL_BARS=yes
10538 fi
10539 elif test "${HAVE_GTK}" = "yes"; then
10540 cat >>confdefs.h <<\_ACEOF
10541 #define USE_TOOLKIT_SCROLL_BARS 1
10542 _ACEOF
10543
10544 USE_TOOLKIT_SCROLL_BARS=yes
10545 fi
10546 fi
10547
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554
10555 #include <X11/Xlib.h>
10556 #include <X11/Xresource.h>
10557 int
10558 main ()
10559 {
10560 XIMProc callback;
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 HAVE_XIM=yes
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_XIM 1
10590 _ACEOF
10591
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 HAVE_XIM=no
10597 fi
10598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10599
10600
10601 if test "${with_xim}" != "no"; then
10602
10603 cat >>confdefs.h <<\_ACEOF
10604 #define USE_XIM 1
10605 _ACEOF
10606
10607 fi
10608
10609
10610 if test "${HAVE_XIM}" != "no"; then
10611 late_CFLAGS=$CFLAGS
10612 if test "$GCC" = yes; then
10613 CFLAGS="$CFLAGS --pedantic-errors"
10614 fi
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621
10622 #include <X11/Xlib.h>
10623 #include <X11/Xresource.h>
10624 int
10625 main ()
10626 {
10627 Display *display;
10628 XrmDatabase db;
10629 char *res_name;
10630 char *res_class;
10631 XIMProc callback;
10632 XPointer *client_data;
10633 #ifndef __GNUC__
10634 /* If we're not using GCC, it's probably not XFree86, and this is
10635 probably right, but we can't use something like --pedantic-errors. */
10636 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10637 char*, XIMProc, XPointer*);
10638 #endif
10639 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10640 client_data);
10641 ;
10642 return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 emacs_cv_arg6_star=yes
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 fi
10672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10673
10674 if test "$emacs_cv_arg6_star" = yes; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10677 _ACEOF
10678
10679 else
10680 cat >>confdefs.h <<\_ACEOF
10681 #define XRegisterIMInstantiateCallback_arg6 XPointer
10682 _ACEOF
10683
10684 fi
10685 CFLAGS=$late_CFLAGS
10686 fi
10687
10688 ### Use -lXpm if available, unless `--with-xpm=no'.
10689 HAVE_XPM=no
10690 if test "${HAVE_X11}" = "yes"; then
10691 if test "${with_xpm}" != "no"; then
10692 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10693 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10694 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10695 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10699 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10700 else
10701 # Is the header compilable?
10702 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10703 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10704 cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h. */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 $ac_includes_default
10711 #include <X11/xpm.h>
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 (eval $ac_compile) 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_header_compiler=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_header_compiler=no
10740 fi
10741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10743 echo "${ECHO_T}$ac_header_compiler" >&6
10744
10745 # Is the header present?
10746 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10747 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 #include <X11/xpm.h>
10755 _ACEOF
10756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } >/dev/null; then
10764 if test -s conftest.err; then
10765 ac_cpp_err=$ac_c_preproc_warn_flag
10766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10767 else
10768 ac_cpp_err=
10769 fi
10770 else
10771 ac_cpp_err=yes
10772 fi
10773 if test -z "$ac_cpp_err"; then
10774 ac_header_preproc=yes
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_header_preproc=no
10780 fi
10781 rm -f conftest.err conftest.$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10783 echo "${ECHO_T}$ac_header_preproc" >&6
10784
10785 # So? What about this header?
10786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10787 yes:no: )
10788 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10789 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10791 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10792 ac_header_preproc=yes
10793 ;;
10794 no:yes:* )
10795 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10796 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10798 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10800 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10802 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10804 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10806 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10807 (
10808 cat <<\_ASBOX
10809 ## ------------------------------------------ ##
10810 ## Report this to the AC_PACKAGE_NAME lists. ##
10811 ## ------------------------------------------ ##
10812 _ASBOX
10813 ) |
10814 sed "s/^/$as_me: WARNING: /" >&2
10815 ;;
10816 esac
10817 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10818 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10819 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 ac_cv_header_X11_xpm_h=$ac_header_preproc
10823 fi
10824 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10825 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10826
10827 fi
10828 if test $ac_cv_header_X11_xpm_h = yes; then
10829 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10830 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10831 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-lXpm -lX11 $LIBS"
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
10843 /* Override any gcc2 internal prototype to avoid an error. */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10849 char XpmReadFileToPixmap ();
10850 int
10851 main ()
10852 {
10853 XpmReadFileToPixmap ();
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860 (eval $ac_link) 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10885 fi
10886 rm -f conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10889 fi
10890 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10891 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10892 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10893 HAVE_XPM=yes
10894 fi
10895
10896 fi
10897
10898
10899 if test "${HAVE_XPM}" = "yes"; then
10900 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10901 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include "X11/xpm.h"
10909 #ifndef XpmReturnAllocPixels
10910 no_return_alloc_pixels
10911 #endif
10912
10913 _ACEOF
10914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10915 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10916 HAVE_XPM=no
10917 else
10918 HAVE_XPM=yes
10919 fi
10920 rm -f conftest*
10921
10922
10923 if test "${HAVE_XPM}" = "yes"; then
10924 echo "$as_me:$LINENO: result: yes" >&5
10925 echo "${ECHO_T}yes" >&6
10926 else
10927 echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6
10929 fi
10930 fi
10931 fi
10932
10933 if test "${HAVE_XPM}" = "yes"; then
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_XPM 1
10937 _ACEOF
10938
10939 fi
10940 fi
10941
10942 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10943 HAVE_JPEG=no
10944 if test "${HAVE_X11}" = "yes"; then
10945 if test "${with_jpeg}" != "no"; then
10946 if test "${ac_cv_header_jerror_h+set}" = set; then
10947 echo "$as_me:$LINENO: checking for jerror.h" >&5
10948 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10949 if test "${ac_cv_header_jerror_h+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 fi
10952 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10953 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10954 else
10955 # Is the header compilable?
10956 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10957 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10965 #include <jerror.h>
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_header_compiler=yes
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_header_compiler=no
10994 fi
10995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10997 echo "${ECHO_T}$ac_header_compiler" >&6
10998
10999 # Is the header present?
11000 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11001 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h. */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <jerror.h>
11009 _ACEOF
11010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } >/dev/null; then
11018 if test -s conftest.err; then
11019 ac_cpp_err=$ac_c_preproc_warn_flag
11020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11021 else
11022 ac_cpp_err=
11023 fi
11024 else
11025 ac_cpp_err=yes
11026 fi
11027 if test -z "$ac_cpp_err"; then
11028 ac_header_preproc=yes
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_header_preproc=no
11034 fi
11035 rm -f conftest.err conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037 echo "${ECHO_T}$ac_header_preproc" >&6
11038
11039 # So? What about this header?
11040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 yes:no: )
11042 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11043 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11045 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11046 ac_header_preproc=yes
11047 ;;
11048 no:yes:* )
11049 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11050 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11052 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11054 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11056 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11058 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11060 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11061 (
11062 cat <<\_ASBOX
11063 ## ------------------------------------------ ##
11064 ## Report this to the AC_PACKAGE_NAME lists. ##
11065 ## ------------------------------------------ ##
11066 _ASBOX
11067 ) |
11068 sed "s/^/$as_me: WARNING: /" >&2
11069 ;;
11070 esac
11071 echo "$as_me:$LINENO: checking for jerror.h" >&5
11072 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11073 if test "${ac_cv_header_jerror_h+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 ac_cv_header_jerror_h=$ac_header_preproc
11077 fi
11078 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11079 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11080
11081 fi
11082 if test $ac_cv_header_jerror_h = yes; then
11083 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11084 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11085 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-ljpeg $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096
11097 /* Override any gcc2 internal prototype to avoid an error. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11103 char jpeg_destroy_compress ();
11104 int
11105 main ()
11106 {
11107 jpeg_destroy_compress ();
11108 ;
11109 return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest$ac_exeext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11139 fi
11140 rm -f conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142 LIBS=$ac_check_lib_save_LIBS
11143 fi
11144 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11145 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11146 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11147 HAVE_JPEG=yes
11148 fi
11149
11150 fi
11151
11152
11153 fi
11154
11155
11156 if test "${HAVE_JPEG}" = "yes"; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_JPEG 1
11159 _ACEOF
11160
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h. */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 #include <jpeglib.h>
11168 version=JPEG_LIB_VERSION
11169
11170 _ACEOF
11171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11172 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11173 cat >>confdefs.h <<\_ACEOF
11174 #define HAVE_JPEG 1
11175 _ACEOF
11176
11177 else
11178 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11179 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11180 HAVE_JPEG=no
11181 fi
11182 rm -f conftest*
11183
11184 fi
11185 fi
11186
11187 ### Use -lpng if available, unless `--with-png=no'.
11188 HAVE_PNG=no
11189 if test "${HAVE_X11}" = "yes"; then
11190 if test "${with_png}" != "no"; then
11191 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11192 # in /usr/include/libpng.
11193
11194
11195 for ac_header in png.h libpng/png.h
11196 do
11197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199 echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 fi
11204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11206 else
11207 # Is the header compilable?
11208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11217 #include <$ac_header>
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler=yes
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_header_compiler=no
11246 fi
11247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 echo "${ECHO_T}$ac_header_compiler" >&6
11250
11251 # Is the header present?
11252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <$ac_header>
11261 _ACEOF
11262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev/null; then
11270 if test -s conftest.err; then
11271 ac_cpp_err=$ac_c_preproc_warn_flag
11272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273 else
11274 ac_cpp_err=
11275 fi
11276 else
11277 ac_cpp_err=yes
11278 fi
11279 if test -z "$ac_cpp_err"; then
11280 ac_header_preproc=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_header_preproc=no
11286 fi
11287 rm -f conftest.err conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6
11290
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 yes:no: )
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11299 ;;
11300 no:yes:* )
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313 (
11314 cat <<\_ASBOX
11315 ## ------------------------------------------ ##
11316 ## Report this to the AC_PACKAGE_NAME lists. ##
11317 ## ------------------------------------------ ##
11318 _ASBOX
11319 ) |
11320 sed "s/^/$as_me: WARNING: /" >&2
11321 ;;
11322 esac
11323 echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 eval "$as_ac_Header=\$ac_header_preproc"
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332
11333 fi
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337 _ACEOF
11338
11339 fi
11340
11341 done
11342
11343 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11344 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11345 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11346 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-lpng -lz -lm $LIBS"
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357
11358 /* Override any gcc2 internal prototype to avoid an error. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char png_get_channels ();
11365 int
11366 main ()
11367 {
11368 png_get_channels ();
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_lib_png_png_get_channels=yes
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_cv_lib_png_png_get_channels=no
11400 fi
11401 rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11404 fi
11405 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11406 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11407 if test $ac_cv_lib_png_png_get_channels = yes; then
11408 HAVE_PNG=yes
11409 fi
11410
11411 fi
11412 fi
11413
11414 if test "${HAVE_PNG}" = "yes"; then
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_PNG 1
11418 _ACEOF
11419
11420 fi
11421 fi
11422
11423 ### Use -ltiff if available, unless `--with-tiff=no'.
11424 HAVE_TIFF=no
11425 if test "${HAVE_X11}" = "yes"; then
11426 if test "${with_tiff}" != "no"; then
11427 if test "${ac_cv_header_tiffio_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11429 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11430 if test "${ac_cv_header_tiffio_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11434 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11435 else
11436 # Is the header compilable?
11437 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11438 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 #include <tiffio.h>
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_header_compiler=yes
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 ac_header_compiler=no
11475 fi
11476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11478 echo "${ECHO_T}$ac_header_compiler" >&6
11479
11480 # Is the header present?
11481 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11482 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include <tiffio.h>
11490 _ACEOF
11491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev/null; then
11499 if test -s conftest.err; then
11500 ac_cpp_err=$ac_c_preproc_warn_flag
11501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11502 else
11503 ac_cpp_err=
11504 fi
11505 else
11506 ac_cpp_err=yes
11507 fi
11508 if test -z "$ac_cpp_err"; then
11509 ac_header_preproc=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515 fi
11516 rm -f conftest.err conftest.$ac_ext
11517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6
11519
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 yes:no: )
11523 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11528 ;;
11529 no:yes:* )
11530 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11542 (
11543 cat <<\_ASBOX
11544 ## ------------------------------------------ ##
11545 ## Report this to the AC_PACKAGE_NAME lists. ##
11546 ## ------------------------------------------ ##
11547 _ASBOX
11548 ) |
11549 sed "s/^/$as_me: WARNING: /" >&2
11550 ;;
11551 esac
11552 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11553 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11554 if test "${ac_cv_header_tiffio_h+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557 ac_cv_header_tiffio_h=$ac_header_preproc
11558 fi
11559 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11560 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11561
11562 fi
11563 if test $ac_cv_header_tiffio_h = yes; then
11564 tifflibs="-lz -lm"
11565 # At least one tiff package requires the jpeg library.
11566 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11567 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11568 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11569 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-ltiff $tifflibs $LIBS"
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580
11581 /* Override any gcc2 internal prototype to avoid an error. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 /* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11587 char TIFFGetVersion ();
11588 int
11589 main ()
11590 {
11591 TIFFGetVersion ();
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest.$ac_objext conftest$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_tiff_TIFFGetVersion=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_lib_tiff_TIFFGetVersion=no
11623 fi
11624 rm -f conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11629 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11630 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11631 HAVE_TIFF=yes
11632 fi
11633
11634 fi
11635
11636
11637 fi
11638
11639 if test "${HAVE_TIFF}" = "yes"; then
11640
11641 cat >>confdefs.h <<\_ACEOF
11642 #define HAVE_TIFF 1
11643 _ACEOF
11644
11645 fi
11646 fi
11647
11648 ### Use -lgif if available, unless `--with-gif=no'.
11649 HAVE_GIF=no
11650 if test "${HAVE_X11}" = "yes"; then
11651 if test "${with_gif}" != "no"; then
11652 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11653 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11654 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11655 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11659 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11660 else
11661 # Is the header compilable?
11662 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11663 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 $ac_includes_default
11671 #include <gif_lib.h>
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_header_compiler=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_header_compiler=no
11700 fi
11701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6
11704
11705 # Is the header present?
11706 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11707 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <gif_lib.h>
11715 _ACEOF
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11727 else
11728 ac_cpp_err=
11729 fi
11730 else
11731 ac_cpp_err=yes
11732 fi
11733 if test -z "$ac_cpp_err"; then
11734 ac_header_preproc=yes
11735 else
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ac_header_preproc=no
11740 fi
11741 rm -f conftest.err conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11744
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 yes:no: )
11748 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11753 ;;
11754 no:yes:* )
11755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11767 (
11768 cat <<\_ASBOX
11769 ## ------------------------------------------ ##
11770 ## Report this to the AC_PACKAGE_NAME lists. ##
11771 ## ------------------------------------------ ##
11772 _ASBOX
11773 ) |
11774 sed "s/^/$as_me: WARNING: /" >&2
11775 ;;
11776 esac
11777 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11778 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11779 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 ac_cv_header_gif_lib_h=$ac_header_preproc
11783 fi
11784 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11785 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11786
11787 fi
11788 if test $ac_cv_header_gif_lib_h = yes; then
11789 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11790 # Earlier versions can crash Emacs.
11791 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11792 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11793 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lungif $LIBS"
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804
11805 /* Override any gcc2 internal prototype to avoid an error. */
11806 #ifdef __cplusplus
11807 extern "C"
11808 #endif
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811 char EGifPutExtensionLast ();
11812 int
11813 main ()
11814 {
11815 EGifPutExtensionLast ();
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest$ac_exeext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 ac_cv_lib_ungif_EGifPutExtensionLast=no
11847 fi
11848 rm -f conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11851 fi
11852 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11853 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11854 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11855 HAVE_GIF=yes
11856 fi
11857
11858 fi
11859
11860
11861 fi
11862
11863 if test "${HAVE_GIF}" = "yes"; then
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_GIF 1
11867 _ACEOF
11868
11869 fi
11870 fi
11871
11872 ### Use Mac OS X Carbon API to implement GUI.
11873 HAVE_CARBON=no
11874 if test "${with_carbon}" != "no"; then
11875 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11876 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11877 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11878 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 fi
11881 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11882 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11883 else
11884 # Is the header compilable?
11885 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11886 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11894 #include <Carbon/Carbon.h>
11895 _ACEOF
11896 rm -f conftest.$ac_objext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11898 (eval $ac_compile) 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest.$ac_objext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_header_compiler=yes
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_header_compiler=no
11923 fi
11924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11926 echo "${ECHO_T}$ac_header_compiler" >&6
11927
11928 # Is the header present?
11929 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11930 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h. */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 #include <Carbon/Carbon.h>
11938 _ACEOF
11939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } >/dev/null; then
11947 if test -s conftest.err; then
11948 ac_cpp_err=$ac_c_preproc_warn_flag
11949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11950 else
11951 ac_cpp_err=
11952 fi
11953 else
11954 ac_cpp_err=yes
11955 fi
11956 if test -z "$ac_cpp_err"; then
11957 ac_header_preproc=yes
11958 else
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_header_preproc=no
11963 fi
11964 rm -f conftest.err conftest.$ac_ext
11965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11966 echo "${ECHO_T}$ac_header_preproc" >&6
11967
11968 # So? What about this header?
11969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11970 yes:no: )
11971 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11972 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11974 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11975 ac_header_preproc=yes
11976 ;;
11977 no:yes:* )
11978 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11979 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11981 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11983 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11985 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11987 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11989 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11990 (
11991 cat <<\_ASBOX
11992 ## ------------------------------------------ ##
11993 ## Report this to the AC_PACKAGE_NAME lists. ##
11994 ## ------------------------------------------ ##
11995 _ASBOX
11996 ) |
11997 sed "s/^/$as_me: WARNING: /" >&2
11998 ;;
11999 esac
12000 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12001 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12002 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12008 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12009
12010 fi
12011 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12012 HAVE_CARBON=yes
12013 fi
12014
12015
12016 fi
12017
12018 if test "${HAVE_CARBON}" = "yes"; then
12019
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_CARBON 1
12022 _ACEOF
12023
12024 window_system=mac
12025 ## Specify the install directory
12026 carbon_appdir=
12027 if test "${carbon_appdir_x}" != ""; then
12028 case ${carbon_appdir_x} in
12029 y | ye | yes) carbon_appdir=/Applications ;;
12030 * ) carbon_appdir=${carbon_appdir_x} ;;
12031 esac
12032 fi
12033 # We also have mouse menus.
12034 HAVE_MENUS=yes
12035 fi
12036
12037 ### Use session management (-lSM -lICE) if available
12038 HAVE_X_SM=no
12039 if test "${HAVE_X11}" = "yes"; then
12040 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12041 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12042 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12043 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12047 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12048 else
12049 # Is the header compilable?
12050 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12051 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 $ac_includes_default
12059 #include <X11/SM/SMlib.h>
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063 (eval $ac_compile) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_header_compiler=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_header_compiler=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12091 echo "${ECHO_T}$ac_header_compiler" >&6
12092
12093 # Is the header present?
12094 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12095 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 #include <X11/SM/SMlib.h>
12103 _ACEOF
12104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev/null; then
12112 if test -s conftest.err; then
12113 ac_cpp_err=$ac_c_preproc_warn_flag
12114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12115 else
12116 ac_cpp_err=
12117 fi
12118 else
12119 ac_cpp_err=yes
12120 fi
12121 if test -z "$ac_cpp_err"; then
12122 ac_header_preproc=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_header_preproc=no
12128 fi
12129 rm -f conftest.err conftest.$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131 echo "${ECHO_T}$ac_header_preproc" >&6
12132
12133 # So? What about this header?
12134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12135 yes:no: )
12136 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12137 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12139 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc=yes
12141 ;;
12142 no:yes:* )
12143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12144 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12146 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12148 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12150 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12152 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12154 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12155 (
12156 cat <<\_ASBOX
12157 ## ------------------------------------------ ##
12158 ## Report this to the AC_PACKAGE_NAME lists. ##
12159 ## ------------------------------------------ ##
12160 _ASBOX
12161 ) |
12162 sed "s/^/$as_me: WARNING: /" >&2
12163 ;;
12164 esac
12165 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12166 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12167 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12171 fi
12172 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12173 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12174
12175 fi
12176 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12177 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12178 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12179 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lSM -lICE $LIBS"
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190
12191 /* Override any gcc2 internal prototype to avoid an error. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char SmcOpenConnection ();
12198 int
12199 main ()
12200 {
12201 SmcOpenConnection ();
12202 ;
12203 return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_SM_SmcOpenConnection=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_cv_lib_SM_SmcOpenConnection=no
12233 fi
12234 rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12239 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12240 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12241 HAVE_X_SM=yes
12242 fi
12243
12244 fi
12245
12246
12247
12248 if test "${HAVE_X_SM}" = "yes"; then
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_X_SM 1
12252 _ACEOF
12253
12254 case "$LIBS" in
12255 *-lSM*) ;;
12256 *) LIBS="-lSM -lICE $LIBS" ;;
12257 esac
12258 fi
12259 fi
12260
12261 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12262 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12263 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12264 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 #include <netdb.h>
12274 int
12275 main ()
12276 {
12277 return h_errno;
12278 ;
12279 return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 emacs_cv_netdb_declares_h_errno=yes
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 emacs_cv_netdb_declares_h_errno=no
12309 fi
12310 rm -f conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312 fi
12313 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12314 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12315 if test $emacs_cv_netdb_declares_h_errno = yes; then
12316
12317 cat >>confdefs.h <<\_ACEOF
12318 #define HAVE_H_ERRNO 1
12319 _ACEOF
12320
12321 fi
12322
12323 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12324 # for constant arguments. Useless!
12325 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12326 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12327 if test "${ac_cv_working_alloca_h+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h. */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #include <alloca.h>
12337 int
12338 main ()
12339 {
12340 char *p = (char *) alloca (2 * sizeof (int));
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_working_alloca_h=yes
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12370
12371 ac_cv_working_alloca_h=no
12372 fi
12373 rm -f conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 fi
12376 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12377 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12378 if test $ac_cv_working_alloca_h = yes; then
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_ALLOCA_H 1
12382 _ACEOF
12383
12384 fi
12385
12386 echo "$as_me:$LINENO: checking for alloca" >&5
12387 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12388 if test "${ac_cv_func_alloca_works+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 #ifdef __GNUC__
12398 # define alloca __builtin_alloca
12399 #else
12400 # ifdef _MSC_VER
12401 # include <malloc.h>
12402 # define alloca _alloca
12403 # else
12404 # if HAVE_ALLOCA_H
12405 # include <alloca.h>
12406 # else
12407 # ifdef _AIX
12408 #pragma alloca
12409 # else
12410 # ifndef alloca /* predefined by HP cc +Olibcalls */
12411 char *alloca ();
12412 # endif
12413 # endif
12414 # endif
12415 # endif
12416 #endif
12417
12418 int
12419 main ()
12420 {
12421 char *p = (char *) alloca (1);
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_func_alloca_works=yes
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_cv_func_alloca_works=no
12453 fi
12454 rm -f conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 fi
12457 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12458 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12459
12460 if test $ac_cv_func_alloca_works = yes; then
12461
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_ALLOCA 1
12464 _ACEOF
12465
12466 else
12467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12468 # that cause trouble. Some versions do not even contain alloca or
12469 # contain a buggy version. If you still want to use their alloca,
12470 # use ar to extract alloca.o from them instead of compiling alloca.c.
12471
12472 ALLOCA=alloca.$ac_objext
12473
12474 cat >>confdefs.h <<\_ACEOF
12475 #define C_ALLOCA 1
12476 _ACEOF
12477
12478
12479 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12480 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12481 if test "${ac_cv_os_cray+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #if defined(CRAY) && ! defined(CRAY2)
12491 webecray
12492 #else
12493 wenotbecray
12494 #endif
12495
12496 _ACEOF
12497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12498 $EGREP "webecray" >/dev/null 2>&1; then
12499 ac_cv_os_cray=yes
12500 else
12501 ac_cv_os_cray=no
12502 fi
12503 rm -f conftest*
12504
12505 fi
12506 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12507 echo "${ECHO_T}$ac_cv_os_cray" >&6
12508 if test $ac_cv_os_cray = yes; then
12509 for ac_func in _getb67 GETB67 getb67; do
12510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12511 echo "$as_me:$LINENO: checking for $ac_func" >&5
12512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12513 if eval "test \"\${$as_ac_var+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12524 #define $ac_func innocuous_$ac_func
12525
12526 /* System header to define __stub macros and hopefully few prototypes,
12527 which can conflict with char $ac_func (); below.
12528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529 <limits.h> exists even on freestanding compilers. */
12530
12531 #ifdef __STDC__
12532 # include <limits.h>
12533 #else
12534 # include <assert.h>
12535 #endif
12536
12537 #undef $ac_func
12538
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 {
12543 #endif
12544 /* We use char because int might match the return type of a gcc2
12545 builtin and then its argument prototype would still apply. */
12546 char $ac_func ();
12547 /* The GNU C library defines this for functions which it implements
12548 to always fail with ENOSYS. Some functions are actually named
12549 something starting with __ and the normal name is an alias. */
12550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12551 choke me
12552 #else
12553 char (*f) () = $ac_func;
12554 #endif
12555 #ifdef __cplusplus
12556 }
12557 #endif
12558
12559 int
12560 main ()
12561 {
12562 return f != $ac_func;
12563 ;
12564 return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest.$ac_objext conftest$ac_exeext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12569 (eval $ac_link) 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 eval "$as_ac_var=no"
12594 fi
12595 rm -f conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597 fi
12598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12600 if test `eval echo '${'$as_ac_var'}'` = yes; then
12601
12602 cat >>confdefs.h <<_ACEOF
12603 #define CRAY_STACKSEG_END $ac_func
12604 _ACEOF
12605
12606 break
12607 fi
12608
12609 done
12610 fi
12611
12612 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12613 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12614 if test "${ac_cv_c_stack_direction+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 if test "$cross_compiling" = yes; then
12618 ac_cv_c_stack_direction=0
12619 else
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 int
12627 find_stack_direction ()
12628 {
12629 static char *addr = 0;
12630 auto char dummy;
12631 if (addr == 0)
12632 {
12633 addr = &dummy;
12634 return find_stack_direction ();
12635 }
12636 else
12637 return (&dummy > addr) ? 1 : -1;
12638 }
12639
12640 int
12641 main ()
12642 {
12643 exit (find_stack_direction () < 0);
12644 }
12645 _ACEOF
12646 rm -f conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_c_stack_direction=1
12658 else
12659 echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ( exit $ac_status )
12664 ac_cv_c_stack_direction=-1
12665 fi
12666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 fi
12669 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12670 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12671
12672 cat >>confdefs.h <<_ACEOF
12673 #define STACK_DIRECTION $ac_cv_c_stack_direction
12674 _ACEOF
12675
12676
12677 fi
12678
12679
12680 # fmod, logb, and frexp are found in -lm on most systems.
12681 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12682
12683 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12684 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12685 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lm $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696
12697 /* Override any gcc2 internal prototype to avoid an error. */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12703 char sqrt ();
12704 int
12705 main ()
12706 {
12707 sqrt ();
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_lib_m_sqrt=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_cv_lib_m_sqrt=no
12739 fi
12740 rm -f conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742 LIBS=$ac_check_lib_save_LIBS
12743 fi
12744 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12745 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12746 if test $ac_cv_lib_m_sqrt = yes; then
12747 cat >>confdefs.h <<_ACEOF
12748 #define HAVE_LIBM 1
12749 _ACEOF
12750
12751 LIBS="-lm $LIBS"
12752
12753 fi
12754
12755
12756 # Check for mail-locking functions in a "mail" library. Probably this should
12757 # have the same check as for liblockfile below.
12758
12759 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12760 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12761 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764 ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-lmail $LIBS"
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772
12773 /* Override any gcc2 internal prototype to avoid an error. */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 /* We use char because int might match the return type of a gcc2
12778 builtin and then its argument prototype would still apply. */
12779 char maillock ();
12780 int
12781 main ()
12782 {
12783 maillock ();
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_mail_maillock=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_cv_lib_mail_maillock=no
12815 fi
12816 rm -f conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12821 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12822 if test $ac_cv_lib_mail_maillock = yes; then
12823 cat >>confdefs.h <<_ACEOF
12824 #define HAVE_LIBMAIL 1
12825 _ACEOF
12826
12827 LIBS="-lmail $LIBS"
12828
12829 fi
12830
12831
12832 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12833 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12834 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 ac_check_lib_save_LIBS=$LIBS
12838 LIBS="-llockfile $LIBS"
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12852 char maillock ();
12853 int
12854 main ()
12855 {
12856 maillock ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try='test -s conftest$ac_exeext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_cv_lib_lockfile_maillock=yes
12883 else
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 ac_cv_lib_lockfile_maillock=no
12888 fi
12889 rm -f conftest.err conftest.$ac_objext \
12890 conftest$ac_exeext conftest.$ac_ext
12891 LIBS=$ac_check_lib_save_LIBS
12892 fi
12893 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12894 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12895 if test $ac_cv_lib_lockfile_maillock = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897 #define HAVE_LIBLOCKFILE 1
12898 _ACEOF
12899
12900 LIBS="-llockfile $LIBS"
12901
12902 fi
12903
12904 # If we have the shared liblockfile, assume we must use it for mail
12905 # locking (e.g. Debian). If we couldn't link against liblockfile
12906 # (no liblockfile.a installed), ensure that we don't need to.
12907 if test "$ac_cv_lib_lockfile_maillock" = no; then
12908 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12909 set dummy liblockfile.so; ac_word=$2
12910 echo "$as_me:$LINENO: checking for $ac_word" >&5
12911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912 if test "${ac_cv_prog_liblockfile+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 if test -n "$liblockfile"; then
12916 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12917 else
12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12920 for as_dir in $as_dummy
12921 do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12926 ac_cv_prog_liblockfile="yes"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930 done
12931 done
12932
12933 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12934 fi
12935 fi
12936 liblockfile=$ac_cv_prog_liblockfile
12937 if test -n "$liblockfile"; then
12938 echo "$as_me:$LINENO: result: $liblockfile" >&5
12939 echo "${ECHO_T}$liblockfile" >&6
12940 else
12941 echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6
12943 fi
12944
12945 if test $ac_cv_prog_liblockfile = yes; then
12946 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12947 This probably means that movemail could lose mail.
12948 There may be a \`development' package to install containing liblockfile." >&5
12949 echo "$as_me: error: Shared liblockfile found but can't link against it.
12950 This probably means that movemail could lose mail.
12951 There may be a \`development' package to install containing liblockfile." >&2;}
12952 { (exit 1); exit 1; }; }
12953 else :
12954 fi
12955 fi
12956
12957 for ac_func in touchlock
12958 do
12959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 echo "$as_me:$LINENO: checking for $ac_func" >&5
12961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_var+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12973 #define $ac_func innocuous_$ac_func
12974
12975 /* System header to define __stub macros and hopefully few prototypes,
12976 which can conflict with char $ac_func (); below.
12977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12978 <limits.h> exists even on freestanding compilers. */
12979
12980 #ifdef __STDC__
12981 # include <limits.h>
12982 #else
12983 # include <assert.h>
12984 #endif
12985
12986 #undef $ac_func
12987
12988 /* Override any gcc2 internal prototype to avoid an error. */
12989 #ifdef __cplusplus
12990 extern "C"
12991 {
12992 #endif
12993 /* We use char because int might match the return type of a gcc2
12994 builtin and then its argument prototype would still apply. */
12995 char $ac_func ();
12996 /* The GNU C library defines this for functions which it implements
12997 to always fail with ENOSYS. Some functions are actually named
12998 something starting with __ and the normal name is an alias. */
12999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13000 choke me
13001 #else
13002 char (*f) () = $ac_func;
13003 #endif
13004 #ifdef __cplusplus
13005 }
13006 #endif
13007
13008 int
13009 main ()
13010 {
13011 return f != $ac_func;
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_var=yes"
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 eval "$as_ac_var=no"
13043 fi
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 fi
13047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13049 if test `eval echo '${'$as_ac_var'}'` = yes; then
13050 cat >>confdefs.h <<_ACEOF
13051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13052 _ACEOF
13053
13054 fi
13055 done
13056
13057
13058 for ac_header in maillock.h
13059 do
13060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo "$as_me:$LINENO: checking for $ac_header" >&5
13063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 fi
13067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13069 else
13070 # Is the header compilable?
13071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13080 #include <$ac_header>
13081 _ACEOF
13082 rm -f conftest.$ac_objext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest.$ac_objext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_header_compiler=yes
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_header_compiler=no
13109 fi
13110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13112 echo "${ECHO_T}$ac_header_compiler" >&6
13113
13114 # Is the header present?
13115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <$ac_header>
13124 _ACEOF
13125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } >/dev/null; then
13133 if test -s conftest.err; then
13134 ac_cpp_err=$ac_c_preproc_warn_flag
13135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13136 else
13137 ac_cpp_err=
13138 fi
13139 else
13140 ac_cpp_err=yes
13141 fi
13142 if test -z "$ac_cpp_err"; then
13143 ac_header_preproc=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_header_preproc=no
13149 fi
13150 rm -f conftest.err conftest.$ac_ext
13151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6
13153
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 yes:no: )
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
13162 ;;
13163 no:yes:* )
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13176 (
13177 cat <<\_ASBOX
13178 ## ------------------------------------------ ##
13179 ## Report this to the AC_PACKAGE_NAME lists. ##
13180 ## ------------------------------------------ ##
13181 _ASBOX
13182 ) |
13183 sed "s/^/$as_me: WARNING: /" >&2
13184 ;;
13185 esac
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191 eval "$as_ac_Header=\$ac_header_preproc"
13192 fi
13193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13195
13196 fi
13197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13198 cat >>confdefs.h <<_ACEOF
13199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13200 _ACEOF
13201
13202 fi
13203
13204 done
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273 for ac_func in gethostname getdomainname dup2 \
13274 rename closedir mkdir rmdir sysinfo \
13275 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13276 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13277 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13278 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13279 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13280 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13281 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13282 do
13283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13284 echo "$as_me:$LINENO: checking for $ac_func" >&5
13285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_var+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13297 #define $ac_func innocuous_$ac_func
13298
13299 /* System header to define __stub macros and hopefully few prototypes,
13300 which can conflict with char $ac_func (); below.
13301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13302 <limits.h> exists even on freestanding compilers. */
13303
13304 #ifdef __STDC__
13305 # include <limits.h>
13306 #else
13307 # include <assert.h>
13308 #endif
13309
13310 #undef $ac_func
13311
13312 /* Override any gcc2 internal prototype to avoid an error. */
13313 #ifdef __cplusplus
13314 extern "C"
13315 {
13316 #endif
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13319 char $ac_func ();
13320 /* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13324 choke me
13325 #else
13326 char (*f) () = $ac_func;
13327 #endif
13328 #ifdef __cplusplus
13329 }
13330 #endif
13331
13332 int
13333 main ()
13334 {
13335 return f != $ac_func;
13336 ;
13337 return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 eval "$as_ac_var=yes"
13362 else
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 eval "$as_ac_var=no"
13367 fi
13368 rm -f conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 fi
13371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13373 if test `eval echo '${'$as_ac_var'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13376 _ACEOF
13377
13378 fi
13379 done
13380
13381
13382
13383 for ac_header in sys/un.h
13384 do
13385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo "$as_me:$LINENO: checking for $ac_header" >&5
13388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 fi
13392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13394 else
13395 # Is the header compilable?
13396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13398 cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h. */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 $ac_includes_default
13405 #include <$ac_header>
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_header_compiler=yes
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_header_compiler=no
13434 fi
13435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13437 echo "${ECHO_T}$ac_header_compiler" >&6
13438
13439 # Is the header present?
13440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h. */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <$ac_header>
13449 _ACEOF
13450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
13460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13461 else
13462 ac_cpp_err=
13463 fi
13464 else
13465 ac_cpp_err=yes
13466 fi
13467 if test -z "$ac_cpp_err"; then
13468 ac_header_preproc=yes
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_header_preproc=no
13474 fi
13475 rm -f conftest.err conftest.$ac_ext
13476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477 echo "${ECHO_T}$ac_header_preproc" >&6
13478
13479 # So? What about this header?
13480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 yes:no: )
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc=yes
13487 ;;
13488 no:yes:* )
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13501 (
13502 cat <<\_ASBOX
13503 ## ------------------------------------------ ##
13504 ## Report this to the AC_PACKAGE_NAME lists. ##
13505 ## ------------------------------------------ ##
13506 _ASBOX
13507 ) |
13508 sed "s/^/$as_me: WARNING: /" >&2
13509 ;;
13510 esac
13511 echo "$as_me:$LINENO: checking for $ac_header" >&5
13512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 eval "$as_ac_Header=\$ac_header_preproc"
13517 fi
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520
13521 fi
13522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525 _ACEOF
13526
13527 fi
13528
13529 done
13530
13531
13532
13533
13534
13535 for ac_header in stdlib.h sys/time.h unistd.h
13536 do
13537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13539 echo "$as_me:$LINENO: checking for $ac_header" >&5
13540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 fi
13544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13546 else
13547 # Is the header compilable?
13548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h. */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13557 #include <$ac_header>
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_header_compiler=yes
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 ac_header_compiler=no
13586 fi
13587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13590
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <$ac_header>
13601 _ACEOF
13602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null; then
13610 if test -s conftest.err; then
13611 ac_cpp_err=$ac_c_preproc_warn_flag
13612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13613 else
13614 ac_cpp_err=
13615 fi
13616 else
13617 ac_cpp_err=yes
13618 fi
13619 if test -z "$ac_cpp_err"; then
13620 ac_header_preproc=yes
13621 else
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625 ac_header_preproc=no
13626 fi
13627 rm -f conftest.err conftest.$ac_ext
13628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6
13630
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13633 yes:no: )
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13638 ac_header_preproc=yes
13639 ;;
13640 no:yes:* )
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13653 (
13654 cat <<\_ASBOX
13655 ## ------------------------------------------ ##
13656 ## Report this to the AC_PACKAGE_NAME lists. ##
13657 ## ------------------------------------------ ##
13658 _ASBOX
13659 ) |
13660 sed "s/^/$as_me: WARNING: /" >&2
13661 ;;
13662 esac
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 eval "$as_ac_Header=\$ac_header_preproc"
13669 fi
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13672
13673 fi
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679 fi
13680
13681 done
13682
13683
13684 for ac_func in alarm
13685 do
13686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13687 echo "$as_me:$LINENO: checking for $ac_func" >&5
13688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13689 if eval "test \"\${$as_ac_var+set}\" = set"; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13700 #define $ac_func innocuous_$ac_func
13701
13702 /* System header to define __stub macros and hopefully few prototypes,
13703 which can conflict with char $ac_func (); below.
13704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13705 <limits.h> exists even on freestanding compilers. */
13706
13707 #ifdef __STDC__
13708 # include <limits.h>
13709 #else
13710 # include <assert.h>
13711 #endif
13712
13713 #undef $ac_func
13714
13715 /* Override any gcc2 internal prototype to avoid an error. */
13716 #ifdef __cplusplus
13717 extern "C"
13718 {
13719 #endif
13720 /* We use char because int might match the return type of a gcc2
13721 builtin and then its argument prototype would still apply. */
13722 char $ac_func ();
13723 /* The GNU C library defines this for functions which it implements
13724 to always fail with ENOSYS. Some functions are actually named
13725 something starting with __ and the normal name is an alias. */
13726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13727 choke me
13728 #else
13729 char (*f) () = $ac_func;
13730 #endif
13731 #ifdef __cplusplus
13732 }
13733 #endif
13734
13735 int
13736 main ()
13737 {
13738 return f != $ac_func;
13739 ;
13740 return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 eval "$as_ac_var=yes"
13765 else
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 eval "$as_ac_var=no"
13770 fi
13771 rm -f conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13773 fi
13774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13776 if test `eval echo '${'$as_ac_var'}'` = yes; then
13777 cat >>confdefs.h <<_ACEOF
13778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13779 _ACEOF
13780
13781 fi
13782 done
13783
13784 echo "$as_me:$LINENO: checking for working mktime" >&5
13785 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13786 if test "${ac_cv_func_working_mktime+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789 if test "$cross_compiling" = yes; then
13790 ac_cv_func_working_mktime=no
13791 else
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 /* Test program from Paul Eggert and Tony Leneis. */
13799 #if TIME_WITH_SYS_TIME
13800 # include <sys/time.h>
13801 # include <time.h>
13802 #else
13803 # if HAVE_SYS_TIME_H
13804 # include <sys/time.h>
13805 # else
13806 # include <time.h>
13807 # endif
13808 #endif
13809
13810 #if HAVE_STDLIB_H
13811 # include <stdlib.h>
13812 #endif
13813
13814 #if HAVE_UNISTD_H
13815 # include <unistd.h>
13816 #endif
13817
13818 #if !HAVE_ALARM
13819 # define alarm(X) /* empty */
13820 #endif
13821
13822 /* Work around redefinition to rpl_putenv by other config tests. */
13823 #undef putenv
13824
13825 static time_t time_t_max;
13826 static time_t time_t_min;
13827
13828 /* Values we'll use to set the TZ environment variable. */
13829 static char *tz_strings[] = {
13830 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13831 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13832 };
13833 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13834
13835 /* Fail if mktime fails to convert a date in the spring-forward gap.
13836 Based on a problem report from Andreas Jaeger. */
13837 static void
13838 spring_forward_gap ()
13839 {
13840 /* glibc (up to about 1998-10-07) failed this test. */
13841 struct tm tm;
13842
13843 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13844 instead of "TZ=America/Vancouver" in order to detect the bug even
13845 on systems that don't support the Olson extension, or don't have the
13846 full zoneinfo tables installed. */
13847 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13848
13849 tm.tm_year = 98;
13850 tm.tm_mon = 3;
13851 tm.tm_mday = 5;
13852 tm.tm_hour = 2;
13853 tm.tm_min = 0;
13854 tm.tm_sec = 0;
13855 tm.tm_isdst = -1;
13856 if (mktime (&tm) == (time_t)-1)
13857 exit (1);
13858 }
13859
13860 static void
13861 mktime_test1 (now)
13862 time_t now;
13863 {
13864 struct tm *lt;
13865 if ((lt = localtime (&now)) && mktime (lt) != now)
13866 exit (1);
13867 }
13868
13869 static void
13870 mktime_test (now)
13871 time_t now;
13872 {
13873 mktime_test1 (now);
13874 mktime_test1 ((time_t) (time_t_max - now));
13875 mktime_test1 ((time_t) (time_t_min + now));
13876 }
13877
13878 static void
13879 irix_6_4_bug ()
13880 {
13881 /* Based on code from Ariel Faigon. */
13882 struct tm tm;
13883 tm.tm_year = 96;
13884 tm.tm_mon = 3;
13885 tm.tm_mday = 0;
13886 tm.tm_hour = 0;
13887 tm.tm_min = 0;
13888 tm.tm_sec = 0;
13889 tm.tm_isdst = -1;
13890 mktime (&tm);
13891 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13892 exit (1);
13893 }
13894
13895 static void
13896 bigtime_test (j)
13897 int j;
13898 {
13899 struct tm tm;
13900 time_t now;
13901 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13902 now = mktime (&tm);
13903 if (now != (time_t) -1)
13904 {
13905 struct tm *lt = localtime (&now);
13906 if (! (lt
13907 && lt->tm_year == tm.tm_year
13908 && lt->tm_mon == tm.tm_mon
13909 && lt->tm_mday == tm.tm_mday
13910 && lt->tm_hour == tm.tm_hour
13911 && lt->tm_min == tm.tm_min
13912 && lt->tm_sec == tm.tm_sec
13913 && lt->tm_yday == tm.tm_yday
13914 && lt->tm_wday == tm.tm_wday
13915 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13916 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13917 exit (1);
13918 }
13919 }
13920
13921 int
13922 main ()
13923 {
13924 time_t t, delta;
13925 int i, j;
13926
13927 /* This test makes some buggy mktime implementations loop.
13928 Give up after 60 seconds; a mktime slower than that
13929 isn't worth using anyway. */
13930 alarm (60);
13931
13932 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13933 continue;
13934 time_t_max--;
13935 if ((time_t) -1 < 0)
13936 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13937 continue;
13938 delta = time_t_max / 997; /* a suitable prime number */
13939 for (i = 0; i < N_STRINGS; i++)
13940 {
13941 if (tz_strings[i])
13942 putenv (tz_strings[i]);
13943
13944 for (t = 0; t <= time_t_max - delta; t += delta)
13945 mktime_test (t);
13946 mktime_test ((time_t) 1);
13947 mktime_test ((time_t) (60 * 60));
13948 mktime_test ((time_t) (60 * 60 * 24));
13949
13950 for (j = 1; 0 < j; j *= 2)
13951 bigtime_test (j);
13952 bigtime_test (j - 1);
13953 }
13954 irix_6_4_bug ();
13955 spring_forward_gap ();
13956 exit (0);
13957 }
13958 _ACEOF
13959 rm -f conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_func_working_mktime=yes
13971 else
13972 echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ( exit $ac_status )
13977 ac_cv_func_working_mktime=no
13978 fi
13979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 fi
13982 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13983 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13984 if test $ac_cv_func_working_mktime = no; then
13985 case $LIBOBJS in
13986 "mktime.$ac_objext" | \
13987 *" mktime.$ac_objext" | \
13988 "mktime.$ac_objext "* | \
13989 *" mktime.$ac_objext "* ) ;;
13990 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13991 esac
13992
13993 fi
13994
13995 if test "$ac_cv_func_working_mktime" = no; then
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define BROKEN_MKTIME 1
13999 _ACEOF
14000
14001 fi
14002
14003 ac_have_func=no # yes means we've found a way to get the load average.
14004
14005 # Make sure getloadavg.c is where it belongs, at configure-time.
14006 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14007 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14008 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14009 { (exit 1); exit 1; }; }
14010
14011 ac_save_LIBS=$LIBS
14012
14013 # Check for getloadavg, but be sure not to touch the cache variable.
14014 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14015 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14016 if test "${ac_cv_func_getloadavg+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14027 #define getloadavg innocuous_getloadavg
14028
14029 /* System header to define __stub macros and hopefully few prototypes,
14030 which can conflict with char getloadavg (); below.
14031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14032 <limits.h> exists even on freestanding compilers. */
14033
14034 #ifdef __STDC__
14035 # include <limits.h>
14036 #else
14037 # include <assert.h>
14038 #endif
14039
14040 #undef getloadavg
14041
14042 /* Override any gcc2 internal prototype to avoid an error. */
14043 #ifdef __cplusplus
14044 extern "C"
14045 {
14046 #endif
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char getloadavg ();
14050 /* The GNU C library defines this for functions which it implements
14051 to always fail with ENOSYS. Some functions are actually named
14052 something starting with __ and the normal name is an alias. */
14053 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14054 choke me
14055 #else
14056 char (*f) () = getloadavg;
14057 #endif
14058 #ifdef __cplusplus
14059 }
14060 #endif
14061
14062 int
14063 main ()
14064 {
14065 return f != getloadavg;
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try='test -s conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_func_getloadavg=yes
14092 else
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ac_cv_func_getloadavg=no
14097 fi
14098 rm -f conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 fi
14101 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14102 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14103 if test $ac_cv_func_getloadavg = yes; then
14104 exit 0
14105 else
14106 exit 1
14107 fi
14108 ) && ac_have_func=yes
14109
14110 # On HPUX9, an unprivileged user can get load averages through this function.
14111
14112 for ac_func in pstat_getdynamic
14113 do
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14129
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14134
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14140
14141 #undef $ac_func
14142
14143 /* Override any gcc2 internal prototype to avoid an error. */
14144 #ifdef __cplusplus
14145 extern "C"
14146 {
14147 #endif
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14150 char $ac_func ();
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 char (*f) () = $ac_func;
14158 #endif
14159 #ifdef __cplusplus
14160 }
14161 #endif
14162
14163 int
14164 main ()
14165 {
14166 return f != $ac_func;
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 eval "$as_ac_var=yes"
14193 else
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 eval "$as_ac_var=no"
14198 fi
14199 rm -f conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 fi
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14204 if test `eval echo '${'$as_ac_var'}'` = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14207 _ACEOF
14208
14209 fi
14210 done
14211
14212
14213 # Solaris has libkstat which does not require root.
14214
14215 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14216 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14217 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lkstat $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228
14229 /* Override any gcc2 internal prototype to avoid an error. */
14230 #ifdef __cplusplus
14231 extern "C"
14232 #endif
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char kstat_open ();
14236 int
14237 main ()
14238 {
14239 kstat_open ();
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest$ac_exeext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_cv_lib_kstat_kstat_open=yes
14266 else
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 ac_cv_lib_kstat_kstat_open=no
14271 fi
14272 rm -f conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14275 fi
14276 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14277 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14278 if test $ac_cv_lib_kstat_kstat_open = yes; then
14279 cat >>confdefs.h <<_ACEOF
14280 #define HAVE_LIBKSTAT 1
14281 _ACEOF
14282
14283 LIBS="-lkstat $LIBS"
14284
14285 fi
14286
14287 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14288
14289 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14290 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14291 # to get the right answer into the cache.
14292 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14293 if test $ac_have_func = no; then
14294 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14295 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14296 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 ac_check_lib_save_LIBS=$LIBS
14300 LIBS="-lelf $LIBS"
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307
14308 /* Override any gcc2 internal prototype to avoid an error. */
14309 #ifdef __cplusplus
14310 extern "C"
14311 #endif
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14314 char elf_begin ();
14315 int
14316 main ()
14317 {
14318 elf_begin ();
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>conftest.er1
14326 ac_status=$?
14327 grep -v '^ *+' conftest.er1 >conftest.err
14328 rm -f conftest.er1
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_lib_elf_elf_begin=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_cv_lib_elf_elf_begin=no
14350 fi
14351 rm -f conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS
14354 fi
14355 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14356 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14357 if test $ac_cv_lib_elf_elf_begin = yes; then
14358 LIBS="-lelf $LIBS"
14359 fi
14360
14361 fi
14362 if test $ac_have_func = no; then
14363 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14364 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14365 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 ac_check_lib_save_LIBS=$LIBS
14369 LIBS="-lkvm $LIBS"
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h. */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376
14377 /* Override any gcc2 internal prototype to avoid an error. */
14378 #ifdef __cplusplus
14379 extern "C"
14380 #endif
14381 /* We use char because int might match the return type of a gcc2
14382 builtin and then its argument prototype would still apply. */
14383 char kvm_open ();
14384 int
14385 main ()
14386 {
14387 kvm_open ();
14388 ;
14389 return 0;
14390 }
14391 _ACEOF
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_cv_lib_kvm_kvm_open=yes
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418 ac_cv_lib_kvm_kvm_open=no
14419 fi
14420 rm -f conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS
14423 fi
14424 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14425 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14426 if test $ac_cv_lib_kvm_kvm_open = yes; then
14427 LIBS="-lkvm $LIBS"
14428 fi
14429
14430 # Check for the 4.4BSD definition of getloadavg.
14431 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14432 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14433 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-lutil $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444
14445 /* Override any gcc2 internal prototype to avoid an error. */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451 char getloadavg ();
14452 int
14453 main ()
14454 {
14455 getloadavg ();
14456 ;
14457 return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest$ac_exeext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_lib_util_getloadavg=yes
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_lib_util_getloadavg=no
14487 fi
14488 rm -f conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LIBS=$ac_check_lib_save_LIBS
14491 fi
14492 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14493 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14494 if test $ac_cv_lib_util_getloadavg = yes; then
14495 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14496 fi
14497
14498 fi
14499
14500 if test $ac_have_func = no; then
14501 # There is a commonly available library for RS/6000 AIX.
14502 # Since it is not a standard part of AIX, it might be installed locally.
14503 ac_getloadavg_LIBS=$LIBS
14504 LIBS="-L/usr/local/lib $LIBS"
14505 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14506 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14507 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 ac_check_lib_save_LIBS=$LIBS
14511 LIBS="-lgetloadavg $LIBS"
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char getloadavg ();
14526 int
14527 main ()
14528 {
14529 getloadavg ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_getloadavg_getloadavg=yes
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_cv_lib_getloadavg_getloadavg=no
14561 fi
14562 rm -f conftest.err conftest.$ac_objext \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14565 fi
14566 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14567 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14568 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14569 LIBS="-lgetloadavg $LIBS"
14570 else
14571 LIBS=$ac_getloadavg_LIBS
14572 fi
14573
14574 fi
14575
14576 # Make sure it is really in the library, if we think we found it,
14577 # otherwise set up the replacement function.
14578
14579 for ac_func in getloadavg
14580 do
14581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14582 echo "$as_me:$LINENO: checking for $ac_func" >&5
14583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14584 if eval "test \"\${$as_ac_var+set}\" = set"; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h. */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14595 #define $ac_func innocuous_$ac_func
14596
14597 /* System header to define __stub macros and hopefully few prototypes,
14598 which can conflict with char $ac_func (); below.
14599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14600 <limits.h> exists even on freestanding compilers. */
14601
14602 #ifdef __STDC__
14603 # include <limits.h>
14604 #else
14605 # include <assert.h>
14606 #endif
14607
14608 #undef $ac_func
14609
14610 /* Override any gcc2 internal prototype to avoid an error. */
14611 #ifdef __cplusplus
14612 extern "C"
14613 {
14614 #endif
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14617 char $ac_func ();
14618 /* The GNU C library defines this for functions which it implements
14619 to always fail with ENOSYS. Some functions are actually named
14620 something starting with __ and the normal name is an alias. */
14621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14622 choke me
14623 #else
14624 char (*f) () = $ac_func;
14625 #endif
14626 #ifdef __cplusplus
14627 }
14628 #endif
14629
14630 int
14631 main ()
14632 {
14633 return f != $ac_func;
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 eval "$as_ac_var=no"
14665 fi
14666 rm -f conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14668 fi
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14671 if test `eval echo '${'$as_ac_var'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14674 _ACEOF
14675
14676 else
14677 case $LIBOBJS in
14678 "getloadavg.$ac_objext" | \
14679 *" getloadavg.$ac_objext" | \
14680 "getloadavg.$ac_objext "* | \
14681 *" getloadavg.$ac_objext "* ) ;;
14682 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14683 esac
14684
14685
14686 cat >>confdefs.h <<\_ACEOF
14687 #define C_GETLOADAVG 1
14688 _ACEOF
14689
14690 # Figure out what our getloadavg.c needs.
14691 ac_have_func=no
14692 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14693 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14694 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14695 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 fi
14698 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14699 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14700 else
14701 # Is the header compilable?
14702 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14703 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h. */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 #include <sys/dg_sys_info.h>
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14715 (eval $ac_compile) 2>conftest.er1
14716 ac_status=$?
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_header_compiler=yes
14735 else
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 ac_header_compiler=no
14740 fi
14741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 echo "${ECHO_T}$ac_header_compiler" >&6
14744
14745 # Is the header present?
14746 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14747 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h. */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <sys/dg_sys_info.h>
14755 _ACEOF
14756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } >/dev/null; then
14764 if test -s conftest.err; then
14765 ac_cpp_err=$ac_c_preproc_warn_flag
14766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14767 else
14768 ac_cpp_err=
14769 fi
14770 else
14771 ac_cpp_err=yes
14772 fi
14773 if test -z "$ac_cpp_err"; then
14774 ac_header_preproc=yes
14775 else
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 ac_header_preproc=no
14780 fi
14781 rm -f conftest.err conftest.$ac_ext
14782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6
14784
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 yes:no: )
14788 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14793 ;;
14794 no:yes:* )
14795 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14807 (
14808 cat <<\_ASBOX
14809 ## ------------------------------------------ ##
14810 ## Report this to the AC_PACKAGE_NAME lists. ##
14811 ## ------------------------------------------ ##
14812 _ASBOX
14813 ) |
14814 sed "s/^/$as_me: WARNING: /" >&2
14815 ;;
14816 esac
14817 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14818 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14819 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14823 fi
14824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14825 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14826
14827 fi
14828 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14829 ac_have_func=yes
14830
14831 cat >>confdefs.h <<\_ACEOF
14832 #define DGUX 1
14833 _ACEOF
14834
14835
14836 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14837 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14838 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841 ac_check_lib_save_LIBS=$LIBS
14842 LIBS="-ldgc $LIBS"
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 #ifdef __cplusplus
14852 extern "C"
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char dg_sys_info ();
14857 int
14858 main ()
14859 {
14860 dg_sys_info ();
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext conftest$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_dgc_dg_sys_info=yes
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ac_cv_lib_dgc_dg_sys_info=no
14892 fi
14893 rm -f conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_lib_save_LIBS
14896 fi
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14898 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14899 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_LIBDGC 1
14902 _ACEOF
14903
14904 LIBS="-ldgc $LIBS"
14905
14906 fi
14907
14908 fi
14909
14910
14911
14912 if test "${ac_cv_header_locale_h+set}" = set; then
14913 echo "$as_me:$LINENO: checking for locale.h" >&5
14914 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14915 if test "${ac_cv_header_locale_h+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 fi
14918 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14920 else
14921 # Is the header compilable?
14922 echo "$as_me:$LINENO: checking locale.h usability" >&5
14923 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 #include <locale.h>
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest.$ac_objext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_header_compiler=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 ac_header_compiler=no
14960 fi
14961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14963 echo "${ECHO_T}$ac_header_compiler" >&6
14964
14965 # Is the header present?
14966 echo "$as_me:$LINENO: checking locale.h presence" >&5
14967 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <locale.h>
14975 _ACEOF
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev/null; then
14984 if test -s conftest.err; then
14985 ac_cpp_err=$ac_c_preproc_warn_flag
14986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14987 else
14988 ac_cpp_err=
14989 fi
14990 else
14991 ac_cpp_err=yes
14992 fi
14993 if test -z "$ac_cpp_err"; then
14994 ac_header_preproc=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ac_header_preproc=no
15000 fi
15001 rm -f conftest.err conftest.$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15003 echo "${ECHO_T}$ac_header_preproc" >&6
15004
15005 # So? What about this header?
15006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15007 yes:no: )
15008 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15009 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15011 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15012 ac_header_preproc=yes
15013 ;;
15014 no:yes:* )
15015 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15016 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15018 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15020 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15022 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15024 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15026 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15027 (
15028 cat <<\_ASBOX
15029 ## ------------------------------------------ ##
15030 ## Report this to the AC_PACKAGE_NAME lists. ##
15031 ## ------------------------------------------ ##
15032 _ASBOX
15033 ) |
15034 sed "s/^/$as_me: WARNING: /" >&2
15035 ;;
15036 esac
15037 echo "$as_me:$LINENO: checking for locale.h" >&5
15038 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15039 if test "${ac_cv_header_locale_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042 ac_cv_header_locale_h=$ac_header_preproc
15043 fi
15044 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15045 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15046
15047 fi
15048
15049
15050
15051 for ac_func in setlocale
15052 do
15053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15054 echo "$as_me:$LINENO: checking for $ac_func" >&5
15055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_var+set}\" = set"; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15067 #define $ac_func innocuous_$ac_func
15068
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func (); below.
15071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15072 <limits.h> exists even on freestanding compilers. */
15073
15074 #ifdef __STDC__
15075 # include <limits.h>
15076 #else
15077 # include <assert.h>
15078 #endif
15079
15080 #undef $ac_func
15081
15082 /* Override any gcc2 internal prototype to avoid an error. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 {
15086 #endif
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15089 char $ac_func ();
15090 /* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15094 choke me
15095 #else
15096 char (*f) () = $ac_func;
15097 #endif
15098 #ifdef __cplusplus
15099 }
15100 #endif
15101
15102 int
15103 main ()
15104 {
15105 return f != $ac_func;
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest$ac_exeext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 eval "$as_ac_var=yes"
15132 else
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 eval "$as_ac_var=no"
15137 fi
15138 rm -f conftest.err conftest.$ac_objext \
15139 conftest$ac_exeext conftest.$ac_ext
15140 fi
15141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15143 if test `eval echo '${'$as_ac_var'}'` = yes; then
15144 cat >>confdefs.h <<_ACEOF
15145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15146 _ACEOF
15147
15148 fi
15149 done
15150
15151
15152 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15153 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15154 # Irix 4.0.5F has the header but not the library.
15155 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15156 ac_have_func=yes
15157
15158 cat >>confdefs.h <<\_ACEOF
15159 #define SVR4 1
15160 _ACEOF
15161
15162 fi
15163
15164 if test $ac_have_func = no; then
15165 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15166 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15167 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15168 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 fi
15171 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15172 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15173 else
15174 # Is the header compilable?
15175 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15176 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15184 #include <inq_stats/cpustats.h>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188 (eval $ac_compile) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try='test -s conftest.$ac_objext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_header_compiler=yes
15208 else
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ac_header_compiler=no
15213 fi
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15216 echo "${ECHO_T}$ac_header_compiler" >&6
15217
15218 # Is the header present?
15219 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15220 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 #include <inq_stats/cpustats.h>
15228 _ACEOF
15229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } >/dev/null; then
15237 if test -s conftest.err; then
15238 ac_cpp_err=$ac_c_preproc_warn_flag
15239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15240 else
15241 ac_cpp_err=
15242 fi
15243 else
15244 ac_cpp_err=yes
15245 fi
15246 if test -z "$ac_cpp_err"; then
15247 ac_header_preproc=yes
15248 else
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 ac_header_preproc=no
15253 fi
15254 rm -f conftest.err conftest.$ac_ext
15255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15256 echo "${ECHO_T}$ac_header_preproc" >&6
15257
15258 # So? What about this header?
15259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15260 yes:no: )
15261 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15262 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15264 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15265 ac_header_preproc=yes
15266 ;;
15267 no:yes:* )
15268 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15269 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15271 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15273 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15275 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15277 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15279 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15280 (
15281 cat <<\_ASBOX
15282 ## ------------------------------------------ ##
15283 ## Report this to the AC_PACKAGE_NAME lists. ##
15284 ## ------------------------------------------ ##
15285 _ASBOX
15286 ) |
15287 sed "s/^/$as_me: WARNING: /" >&2
15288 ;;
15289 esac
15290 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15291 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15292 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15296 fi
15297 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15298 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15299
15300 fi
15301 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15302 ac_have_func=yes
15303
15304 cat >>confdefs.h <<\_ACEOF
15305 #define UMAX 1
15306 _ACEOF
15307
15308
15309 cat >>confdefs.h <<\_ACEOF
15310 #define UMAX4_3 1
15311 _ACEOF
15312
15313 fi
15314
15315
15316 fi
15317
15318 if test $ac_have_func = no; then
15319 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15320 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15321 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15322 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 fi
15325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15326 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15327 else
15328 # Is the header compilable?
15329 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15330 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <sys/cpustats.h>
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_header_compiler=yes
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_header_compiler=no
15367 fi
15368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370 echo "${ECHO_T}$ac_header_compiler" >&6
15371
15372 # Is the header present?
15373 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15374 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <sys/cpustats.h>
15382 _ACEOF
15383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } >/dev/null; then
15391 if test -s conftest.err; then
15392 ac_cpp_err=$ac_c_preproc_warn_flag
15393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15394 else
15395 ac_cpp_err=
15396 fi
15397 else
15398 ac_cpp_err=yes
15399 fi
15400 if test -z "$ac_cpp_err"; then
15401 ac_header_preproc=yes
15402 else
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_header_preproc=no
15407 fi
15408 rm -f conftest.err conftest.$ac_ext
15409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15410 echo "${ECHO_T}$ac_header_preproc" >&6
15411
15412 # So? What about this header?
15413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15414 yes:no: )
15415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15416 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15418 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15419 ac_header_preproc=yes
15420 ;;
15421 no:yes:* )
15422 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15423 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15425 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15427 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15429 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15431 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15433 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15434 (
15435 cat <<\_ASBOX
15436 ## ------------------------------------------ ##
15437 ## Report this to the AC_PACKAGE_NAME lists. ##
15438 ## ------------------------------------------ ##
15439 _ASBOX
15440 ) |
15441 sed "s/^/$as_me: WARNING: /" >&2
15442 ;;
15443 esac
15444 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15445 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15446 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15450 fi
15451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15452 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15453
15454 fi
15455 if test $ac_cv_header_sys_cpustats_h = yes; then
15456 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15457 #define UMAX 1
15458 _ACEOF
15459
15460 fi
15461
15462
15463 fi
15464
15465 if test $ac_have_func = no; then
15466
15467 for ac_header in mach/mach.h
15468 do
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471 echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 fi
15476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15478 else
15479 # Is the header compilable?
15480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15489 #include <$ac_header>
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_header_compiler=yes
15513 else
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_header_compiler=no
15518 fi
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15521 echo "${ECHO_T}$ac_header_compiler" >&6
15522
15523 # Is the header present?
15524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 #include <$ac_header>
15533 _ACEOF
15534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } >/dev/null; then
15542 if test -s conftest.err; then
15543 ac_cpp_err=$ac_c_preproc_warn_flag
15544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545 else
15546 ac_cpp_err=
15547 fi
15548 else
15549 ac_cpp_err=yes
15550 fi
15551 if test -z "$ac_cpp_err"; then
15552 ac_header_preproc=yes
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557 ac_header_preproc=no
15558 fi
15559 rm -f conftest.err conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6
15562
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565 yes:no: )
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15571 ;;
15572 no:yes:* )
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585 (
15586 cat <<\_ASBOX
15587 ## ------------------------------------------ ##
15588 ## Report this to the AC_PACKAGE_NAME lists. ##
15589 ## ------------------------------------------ ##
15590 _ASBOX
15591 ) |
15592 sed "s/^/$as_me: WARNING: /" >&2
15593 ;;
15594 esac
15595 echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600 eval "$as_ac_Header=\$ac_header_preproc"
15601 fi
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15604
15605 fi
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 _ACEOF
15610
15611 fi
15612
15613 done
15614
15615 fi
15616
15617
15618 for ac_header in nlist.h
15619 do
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15622 echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 fi
15627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15629 else
15630 # Is the header compilable?
15631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 $ac_includes_default
15640 #include <$ac_header>
15641 _ACEOF
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_header_compiler=yes
15664 else
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 ac_header_compiler=no
15669 fi
15670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15672 echo "${ECHO_T}$ac_header_compiler" >&6
15673
15674 # Is the header present?
15675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <$ac_header>
15684 _ACEOF
15685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev/null; then
15693 if test -s conftest.err; then
15694 ac_cpp_err=$ac_c_preproc_warn_flag
15695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696 else
15697 ac_cpp_err=
15698 fi
15699 else
15700 ac_cpp_err=yes
15701 fi
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc=yes
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_header_preproc=no
15709 fi
15710 rm -f conftest.err conftest.$ac_ext
15711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15712 echo "${ECHO_T}$ac_header_preproc" >&6
15713
15714 # So? What about this header?
15715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15716 yes:no: )
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15721 ac_header_preproc=yes
15722 ;;
15723 no:yes:* )
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15736 (
15737 cat <<\_ASBOX
15738 ## ------------------------------------------ ##
15739 ## Report this to the AC_PACKAGE_NAME lists. ##
15740 ## ------------------------------------------ ##
15741 _ASBOX
15742 ) |
15743 sed "s/^/$as_me: WARNING: /" >&2
15744 ;;
15745 esac
15746 echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751 eval "$as_ac_Header=\$ac_header_preproc"
15752 fi
15753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15755
15756 fi
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 _ACEOF
15761 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15762 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15763 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <nlist.h>
15773
15774 int
15775 main ()
15776 {
15777 static struct nlist ac_aggr;
15778 if (ac_aggr.n_un.n_name)
15779 return 0;
15780 ;
15781 return 0;
15782 }
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_member_struct_nlist_n_un_n_name=yes
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 #include <nlist.h>
15817
15818 int
15819 main ()
15820 {
15821 static struct nlist ac_aggr;
15822 if (sizeof ac_aggr.n_un.n_name)
15823 return 0;
15824 ;
15825 return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>conftest.er1
15831 ac_status=$?
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
15837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_member_struct_nlist_n_un_n_name=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_member_struct_nlist_n_un_n_name=no
15855 fi
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859 fi
15860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15861 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15862 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15863
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15866 _ACEOF
15867
15868
15869 cat >>confdefs.h <<\_ACEOF
15870 #define NLIST_NAME_UNION 1
15871 _ACEOF
15872
15873 fi
15874
15875
15876 fi
15877
15878 done
15879
15880 fi
15881 done
15882
15883
15884 # Some definitions of getloadavg require that the program be installed setgid.
15885 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15886 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15887 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15897 #ifdef LDAV_PRIVILEGED
15898 Yowza Am I SETGID yet
15899 #endif
15900 _ACEOF
15901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15902 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15903 ac_cv_func_getloadavg_setgid=yes
15904 else
15905 ac_cv_func_getloadavg_setgid=no
15906 fi
15907 rm -f conftest*
15908
15909 fi
15910 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15911 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15912 if test $ac_cv_func_getloadavg_setgid = yes; then
15913 NEED_SETGID=true
15914
15915 cat >>confdefs.h <<\_ACEOF
15916 #define GETLOADAVG_PRIVILEGED 1
15917 _ACEOF
15918
15919 else
15920 NEED_SETGID=false
15921 fi
15922
15923 if test $ac_cv_func_getloadavg_setgid = yes; then
15924 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15925 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15926 if test "${ac_cv_group_kmem+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15930 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15931 # If we got an error (system does not support symlinks), try without -L.
15932 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15933 ac_cv_group_kmem=`echo $ac_ls_output \
15934 | sed -ne 's/[ ][ ]*/ /g;
15935 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15936 / /s/.* //;p;'`
15937
15938 fi
15939 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15940 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15941 KMEM_GROUP=$ac_cv_group_kmem
15942 fi
15943 if test "x$ac_save_LIBS" = x; then
15944 GETLOADAVG_LIBS=$LIBS
15945 else
15946 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15947 fi
15948 LIBS=$ac_save_LIBS
15949
15950
15951
15952 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15953 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15954 if test "${ac_cv_sys_largefile_source+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 while :; do
15958 ac_cv_sys_largefile_source=no
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 #include <stdio.h>
15966 int
15967 main ()
15968 {
15969 return !fseeko;
15970 ;
15971 return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15976 (eval $ac_compile) 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 break
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 fi
16001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 #define _LARGEFILE_SOURCE 1
16009 #include <stdio.h>
16010 int
16011 main ()
16012 {
16013 return !fseeko;
16014 ;
16015 return 0;
16016 }
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020 (eval $ac_compile) 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest.$ac_objext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_sys_largefile_source=1; break
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 fi
16045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16046 break
16047 done
16048 fi
16049 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16050 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16051 if test "$ac_cv_sys_largefile_source" != no; then
16052
16053 cat >>confdefs.h <<_ACEOF
16054 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16055 _ACEOF
16056
16057 fi
16058 rm -f conftest*
16059
16060 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16061 # in glibc 2.1.3, but that breaks too many other things.
16062 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16063 echo "$as_me:$LINENO: checking for fseeko" >&5
16064 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16065 if test "${ac_cv_func_fseeko+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <stdio.h>
16075 int
16076 main ()
16077 {
16078 return fseeko && fseeko (stdin, 0, 0);
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085 (eval $ac_link) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest$ac_exeext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_func_fseeko=yes
16105 else
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_cv_func_fseeko=no
16110 fi
16111 rm -f conftest.err conftest.$ac_objext \
16112 conftest$ac_exeext conftest.$ac_ext
16113 fi
16114 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16115 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16116 if test $ac_cv_func_fseeko = yes; then
16117
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_FSEEKO 1
16120 _ACEOF
16121
16122 fi
16123
16124
16125 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16126 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16127 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 # Use it with a single arg.
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16138 int
16139 main ()
16140 {
16141 getpgrp (0);
16142 ;
16143 return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 (eval $ac_compile) 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_func_getpgrp_void=no
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 ac_cv_func_getpgrp_void=yes
16173 fi
16174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16175
16176 fi
16177 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16178 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16179 if test $ac_cv_func_getpgrp_void = yes; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define GETPGRP_VOID 1
16183 _ACEOF
16184
16185 fi
16186
16187
16188
16189 for ac_func in strftime
16190 do
16191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16192 echo "$as_me:$LINENO: checking for $ac_func" >&5
16193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_var+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16205 #define $ac_func innocuous_$ac_func
16206
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char $ac_func (); below.
16209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16210 <limits.h> exists even on freestanding compilers. */
16211
16212 #ifdef __STDC__
16213 # include <limits.h>
16214 #else
16215 # include <assert.h>
16216 #endif
16217
16218 #undef $ac_func
16219
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 #ifdef __cplusplus
16222 extern "C"
16223 {
16224 #endif
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16227 char $ac_func ();
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 choke me
16233 #else
16234 char (*f) () = $ac_func;
16235 #endif
16236 #ifdef __cplusplus
16237 }
16238 #endif
16239
16240 int
16241 main ()
16242 {
16243 return f != $ac_func;
16244 ;
16245 return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 eval "$as_ac_var=no"
16275 fi
16276 rm -f conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16278 fi
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 _ACEOF
16285
16286 else
16287 # strftime is in -lintl on SCO UNIX.
16288 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16289 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16290 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293 ac_check_lib_save_LIBS=$LIBS
16294 LIBS="-lintl $LIBS"
16295 cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h. */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301
16302 /* Override any gcc2 internal prototype to avoid an error. */
16303 #ifdef __cplusplus
16304 extern "C"
16305 #endif
16306 /* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16308 char strftime ();
16309 int
16310 main ()
16311 {
16312 strftime ();
16313 ;
16314 return 0;
16315 }
16316 _ACEOF
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16319 (eval $ac_link) 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest$ac_exeext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_cv_lib_intl_strftime=yes
16339 else
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_cv_lib_intl_strftime=no
16344 fi
16345 rm -f conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16348 fi
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16350 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16351 if test $ac_cv_lib_intl_strftime = yes; then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STRFTIME 1
16354 _ACEOF
16355
16356 LIBS="-lintl $LIBS"
16357 fi
16358
16359 fi
16360 done
16361
16362
16363 # UNIX98 PTYs.
16364
16365 for ac_func in grantpt
16366 do
16367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16381 #define $ac_func innocuous_$ac_func
16382
16383 /* System header to define __stub macros and hopefully few prototypes,
16384 which can conflict with char $ac_func (); below.
16385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16386 <limits.h> exists even on freestanding compilers. */
16387
16388 #ifdef __STDC__
16389 # include <limits.h>
16390 #else
16391 # include <assert.h>
16392 #endif
16393
16394 #undef $ac_func
16395
16396 /* Override any gcc2 internal prototype to avoid an error. */
16397 #ifdef __cplusplus
16398 extern "C"
16399 {
16400 #endif
16401 /* We use char because int might match the return type of a gcc2
16402 builtin and then its argument prototype would still apply. */
16403 char $ac_func ();
16404 /* The GNU C library defines this for functions which it implements
16405 to always fail with ENOSYS. Some functions are actually named
16406 something starting with __ and the normal name is an alias. */
16407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16408 choke me
16409 #else
16410 char (*f) () = $ac_func;
16411 #endif
16412 #ifdef __cplusplus
16413 }
16414 #endif
16415
16416 int
16417 main ()
16418 {
16419 return f != $ac_func;
16420 ;
16421 return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest$ac_exeext'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 eval "$as_ac_var=yes"
16446 else
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 eval "$as_ac_var=no"
16451 fi
16452 rm -f conftest.err conftest.$ac_objext \
16453 conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 _ACEOF
16461
16462 fi
16463 done
16464
16465
16466 # PTY-related GNU extensions.
16467
16468 for ac_func in getpt
16469 do
16470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16471 echo "$as_me:$LINENO: checking for $ac_func" >&5
16472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16473 if eval "test \"\${$as_ac_var+set}\" = set"; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16484 #define $ac_func innocuous_$ac_func
16485
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func (); below.
16488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16489 <limits.h> exists even on freestanding compilers. */
16490
16491 #ifdef __STDC__
16492 # include <limits.h>
16493 #else
16494 # include <assert.h>
16495 #endif
16496
16497 #undef $ac_func
16498
16499 /* Override any gcc2 internal prototype to avoid an error. */
16500 #ifdef __cplusplus
16501 extern "C"
16502 {
16503 #endif
16504 /* We use char because int might match the return type of a gcc2
16505 builtin and then its argument prototype would still apply. */
16506 char $ac_func ();
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16511 choke me
16512 #else
16513 char (*f) () = $ac_func;
16514 #endif
16515 #ifdef __cplusplus
16516 }
16517 #endif
16518
16519 int
16520 main ()
16521 {
16522 return f != $ac_func;
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16529 (eval $ac_link) 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 eval "$as_ac_var=yes"
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16552
16553 eval "$as_ac_var=no"
16554 fi
16555 rm -f conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16557 fi
16558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16560 if test `eval echo '${'$as_ac_var'}'` = yes; then
16561 cat >>confdefs.h <<_ACEOF
16562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16563 _ACEOF
16564
16565 fi
16566 done
16567
16568
16569 # Check this now, so that we will NOT find the above functions in ncurses.
16570 # That is because we have not set up to link ncurses in lib-src.
16571 # It's better to believe a function is not available
16572 # than to expect to find it in ncurses.
16573
16574 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16575 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16576 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579 ac_check_lib_save_LIBS=$LIBS
16580 LIBS="-lncurses $LIBS"
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587
16588 /* Override any gcc2 internal prototype to avoid an error. */
16589 #ifdef __cplusplus
16590 extern "C"
16591 #endif
16592 /* We use char because int might match the return type of a gcc2
16593 builtin and then its argument prototype would still apply. */
16594 char tparm ();
16595 int
16596 main ()
16597 {
16598 tparm ();
16599 ;
16600 return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_ncurses_tparm=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 ac_cv_lib_ncurses_tparm=no
16630 fi
16631 rm -f conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16633 LIBS=$ac_check_lib_save_LIBS
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16637 if test $ac_cv_lib_ncurses_tparm = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_LIBNCURSES 1
16640 _ACEOF
16641
16642 LIBS="-lncurses $LIBS"
16643
16644 fi
16645
16646
16647 # Do we need the Hesiod library to provide the support routines?
16648 if test "$with_hesiod" = yes ; then
16649 # Don't set $LIBS here -- see comments above.
16650 resolv=no
16651 echo "$as_me:$LINENO: checking for res_send" >&5
16652 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16653 if test "${ac_cv_func_res_send+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define res_send innocuous_res_send
16665
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char res_send (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16670
16671 #ifdef __STDC__
16672 # include <limits.h>
16673 #else
16674 # include <assert.h>
16675 #endif
16676
16677 #undef res_send
16678
16679 /* Override any gcc2 internal prototype to avoid an error. */
16680 #ifdef __cplusplus
16681 extern "C"
16682 {
16683 #endif
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16686 char res_send ();
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_res_send) || defined (__stub___res_send)
16691 choke me
16692 #else
16693 char (*f) () = res_send;
16694 #endif
16695 #ifdef __cplusplus
16696 }
16697 #endif
16698
16699 int
16700 main ()
16701 {
16702 return f != res_send;
16703 ;
16704 return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_cv_func_res_send=yes
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 ac_cv_func_res_send=no
16734 fi
16735 rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16739 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16740 if test $ac_cv_func_res_send = yes; then
16741 :
16742 else
16743 echo "$as_me:$LINENO: checking for __res_send" >&5
16744 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16745 if test "${ac_cv_func___res_send+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16756 #define __res_send innocuous___res_send
16757
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char __res_send (); below.
16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761 <limits.h> exists even on freestanding compilers. */
16762
16763 #ifdef __STDC__
16764 # include <limits.h>
16765 #else
16766 # include <assert.h>
16767 #endif
16768
16769 #undef __res_send
16770
16771 /* Override any gcc2 internal prototype to avoid an error. */
16772 #ifdef __cplusplus
16773 extern "C"
16774 {
16775 #endif
16776 /* We use char because int might match the return type of a gcc2
16777 builtin and then its argument prototype would still apply. */
16778 char __res_send ();
16779 /* The GNU C library defines this for functions which it implements
16780 to always fail with ENOSYS. Some functions are actually named
16781 something starting with __ and the normal name is an alias. */
16782 #if defined (__stub___res_send) || defined (__stub_____res_send)
16783 choke me
16784 #else
16785 char (*f) () = __res_send;
16786 #endif
16787 #ifdef __cplusplus
16788 }
16789 #endif
16790
16791 int
16792 main ()
16793 {
16794 return f != __res_send;
16795 ;
16796 return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_func___res_send=yes
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 ac_cv_func___res_send=no
16826 fi
16827 rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 fi
16830 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16831 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16832 if test $ac_cv_func___res_send = yes; then
16833 :
16834 else
16835 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16836 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16837 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-lresolv $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848
16849 /* Override any gcc2 internal prototype to avoid an error. */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 /* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
16855 char res_send ();
16856 int
16857 main ()
16858 {
16859 res_send ();
16860 ;
16861 return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest$ac_exeext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_lib_resolv_res_send=yes
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_cv_lib_resolv_res_send=no
16891 fi
16892 rm -f conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16895 fi
16896 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16897 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16898 if test $ac_cv_lib_resolv_res_send = yes; then
16899 resolv=yes
16900 else
16901 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16902 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16903 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 ac_check_lib_save_LIBS=$LIBS
16907 LIBS="-lresolv $LIBS"
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914
16915 /* Override any gcc2 internal prototype to avoid an error. */
16916 #ifdef __cplusplus
16917 extern "C"
16918 #endif
16919 /* We use char because int might match the return type of a gcc2
16920 builtin and then its argument prototype would still apply. */
16921 char __res_send ();
16922 int
16923 main ()
16924 {
16925 __res_send ();
16926 ;
16927 return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>conftest.er1
16933 ac_status=$?
16934 grep -v '^ *+' conftest.er1 >conftest.err
16935 rm -f conftest.er1
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_lib_resolv___res_send=yes
16952 else
16953 echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16955
16956 ac_cv_lib_resolv___res_send=no
16957 fi
16958 rm -f conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16960 LIBS=$ac_check_lib_save_LIBS
16961 fi
16962 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16963 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16964 if test $ac_cv_lib_resolv___res_send = yes; then
16965 resolv=yes
16966 fi
16967
16968 fi
16969
16970 fi
16971
16972 fi
16973
16974 if test "$resolv" = yes ; then
16975 RESOLVLIB=-lresolv
16976
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_LIBRESOLV 1
16979 _ACEOF
16980
16981 else
16982 RESOLVLIB=
16983 fi
16984 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16985 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16986 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define hes_getmailhost innocuous_hes_getmailhost
16998
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char hes_getmailhost (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17003
17004 #ifdef __STDC__
17005 # include <limits.h>
17006 #else
17007 # include <assert.h>
17008 #endif
17009
17010 #undef hes_getmailhost
17011
17012 /* Override any gcc2 internal prototype to avoid an error. */
17013 #ifdef __cplusplus
17014 extern "C"
17015 {
17016 #endif
17017 /* We use char because int might match the return type of a gcc2
17018 builtin and then its argument prototype would still apply. */
17019 char hes_getmailhost ();
17020 /* The GNU C library defines this for functions which it implements
17021 to always fail with ENOSYS. Some functions are actually named
17022 something starting with __ and the normal name is an alias. */
17023 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17024 choke me
17025 #else
17026 char (*f) () = hes_getmailhost;
17027 #endif
17028 #ifdef __cplusplus
17029 }
17030 #endif
17031
17032 int
17033 main ()
17034 {
17035 return f != hes_getmailhost;
17036 ;
17037 return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_func_hes_getmailhost=yes
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_cv_func_hes_getmailhost=no
17067 fi
17068 rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070 fi
17071 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17072 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17073 if test $ac_cv_func_hes_getmailhost = yes; then
17074 :
17075 else
17076 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17077 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17078 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 ac_check_lib_save_LIBS=$LIBS
17082 LIBS="-lhesiod $RESOLVLIB $LIBS"
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089
17090 /* Override any gcc2 internal prototype to avoid an error. */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 /* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17096 char hes_getmailhost ();
17097 int
17098 main ()
17099 {
17100 hes_getmailhost ();
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_lib_hesiod_hes_getmailhost=yes
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 ac_cv_lib_hesiod_hes_getmailhost=no
17132 fi
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17136 fi
17137 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17138 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17139 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17140
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_LIBHESIOD 1
17143 _ACEOF
17144
17145 else
17146 :
17147 fi
17148
17149 fi
17150
17151 fi
17152
17153 # These tell us which Kerberos-related libraries to use.
17154 if test "${with_kerberos+set}" = set; then
17155
17156 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17157 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17158 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-lcom_err $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169
17170 /* Override any gcc2 internal prototype to avoid an error. */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 /* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17176 char com_err ();
17177 int
17178 main ()
17179 {
17180 com_err ();
17181 ;
17182 return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest$ac_exeext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_lib_com_err_com_err=yes
17207 else
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211 ac_cv_lib_com_err_com_err=no
17212 fi
17213 rm -f conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17216 fi
17217 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17218 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17219 if test $ac_cv_lib_com_err_com_err = yes; then
17220 cat >>confdefs.h <<_ACEOF
17221 #define HAVE_LIBCOM_ERR 1
17222 _ACEOF
17223
17224 LIBS="-lcom_err $LIBS"
17225
17226 fi
17227
17228
17229 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17230 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17231 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 ac_check_lib_save_LIBS=$LIBS
17235 LIBS="-lk5crypto $LIBS"
17236 cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h. */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242
17243 /* Override any gcc2 internal prototype to avoid an error. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 /* We use char because int might match the return type of a gcc2
17248 builtin and then its argument prototype would still apply. */
17249 char mit_des_cbc_encrypt ();
17250 int
17251 main ()
17252 {
17253 mit_des_cbc_encrypt ();
17254 ;
17255 return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17260 (eval $ac_link) 2>conftest.er1
17261 ac_status=$?
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest$ac_exeext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17280 else
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17285 fi
17286 rm -f conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17288 LIBS=$ac_check_lib_save_LIBS
17289 fi
17290 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17291 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17292 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17293 cat >>confdefs.h <<_ACEOF
17294 #define HAVE_LIBK5CRYPTO 1
17295 _ACEOF
17296
17297 LIBS="-lk5crypto $LIBS"
17298
17299 fi
17300
17301
17302 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17303 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17304 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-lcrypto $LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315
17316 /* Override any gcc2 internal prototype to avoid an error. */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 /* We use char because int might match the return type of a gcc2
17321 builtin and then its argument prototype would still apply. */
17322 char mit_des_cbc_encrypt ();
17323 int
17324 main ()
17325 {
17326 mit_des_cbc_encrypt ();
17327 ;
17328 return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext conftest$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest$ac_exeext'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17353 else
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17358 fi
17359 rm -f conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361 LIBS=$ac_check_lib_save_LIBS
17362 fi
17363 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17364 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17365 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17366 cat >>confdefs.h <<_ACEOF
17367 #define HAVE_LIBCRYPTO 1
17368 _ACEOF
17369
17370 LIBS="-lcrypto $LIBS"
17371
17372 fi
17373
17374
17375 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17376 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17377 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380 ac_check_lib_save_LIBS=$LIBS
17381 LIBS="-lkrb5 $LIBS"
17382 cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h. */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388
17389 /* Override any gcc2 internal prototype to avoid an error. */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17395 char krb5_init_context ();
17396 int
17397 main ()
17398 {
17399 krb5_init_context ();
17400 ;
17401 return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest$ac_exeext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_lib_krb5_krb5_init_context=yes
17426 else
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430 ac_cv_lib_krb5_krb5_init_context=no
17431 fi
17432 rm -f conftest.err conftest.$ac_objext \
17433 conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_lib_save_LIBS
17435 fi
17436 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17437 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17438 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17439 cat >>confdefs.h <<_ACEOF
17440 #define HAVE_LIBKRB5 1
17441 _ACEOF
17442
17443 LIBS="-lkrb5 $LIBS"
17444
17445 fi
17446
17447 if test "${with_kerberos5+set}" != set; then
17448
17449 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17450 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17451 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454 ac_check_lib_save_LIBS=$LIBS
17455 LIBS="-ldes425 $LIBS"
17456 cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h. */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462
17463 /* Override any gcc2 internal prototype to avoid an error. */
17464 #ifdef __cplusplus
17465 extern "C"
17466 #endif
17467 /* We use char because int might match the return type of a gcc2
17468 builtin and then its argument prototype would still apply. */
17469 char des_cbc_encrypt ();
17470 int
17471 main ()
17472 {
17473 des_cbc_encrypt ();
17474 ;
17475 return 0;
17476 }
17477 _ACEOF
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_lib_des425_des_cbc_encrypt=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ac_cv_lib_des425_des_cbc_encrypt=no
17505 fi
17506 rm -f conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508 LIBS=$ac_check_lib_save_LIBS
17509 fi
17510 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17511 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17512 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17513 cat >>confdefs.h <<_ACEOF
17514 #define HAVE_LIBDES425 1
17515 _ACEOF
17516
17517 LIBS="-ldes425 $LIBS"
17518
17519 else
17520
17521 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17522 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17523 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526 ac_check_lib_save_LIBS=$LIBS
17527 LIBS="-ldes $LIBS"
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534
17535 /* Override any gcc2 internal prototype to avoid an error. */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17541 char des_cbc_encrypt ();
17542 int
17543 main ()
17544 {
17545 des_cbc_encrypt ();
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>conftest.er1
17553 ac_status=$?
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_cv_lib_des_des_cbc_encrypt=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_cv_lib_des_des_cbc_encrypt=no
17577 fi
17578 rm -f conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17581 fi
17582 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17583 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17584 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_LIBDES 1
17587 _ACEOF
17588
17589 LIBS="-ldes $LIBS"
17590
17591 fi
17592
17593 fi
17594
17595
17596 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17597 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17598 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601 ac_check_lib_save_LIBS=$LIBS
17602 LIBS="-lkrb4 $LIBS"
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609
17610 /* Override any gcc2 internal prototype to avoid an error. */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char krb_get_cred ();
17617 int
17618 main ()
17619 {
17620 krb_get_cred ();
17621 ;
17622 return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_lib_krb4_krb_get_cred=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_lib_krb4_krb_get_cred=no
17652 fi
17653 rm -f conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17656 fi
17657 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17658 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17659 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17660 cat >>confdefs.h <<_ACEOF
17661 #define HAVE_LIBKRB4 1
17662 _ACEOF
17663
17664 LIBS="-lkrb4 $LIBS"
17665
17666 else
17667
17668 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17669 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 ac_check_lib_save_LIBS=$LIBS
17674 LIBS="-lkrb $LIBS"
17675 cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h. */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681
17682 /* Override any gcc2 internal prototype to avoid an error. */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 /* We use char because int might match the return type of a gcc2
17687 builtin and then its argument prototype would still apply. */
17688 char krb_get_cred ();
17689 int
17690 main ()
17691 {
17692 krb_get_cred ();
17693 ;
17694 return 0;
17695 }
17696 _ACEOF
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17699 (eval $ac_link) 2>conftest.er1
17700 ac_status=$?
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_lib_krb_krb_get_cred=yes
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 ac_cv_lib_krb_krb_get_cred=no
17724 fi
17725 rm -f conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17727 LIBS=$ac_check_lib_save_LIBS
17728 fi
17729 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17730 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17731 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17732 cat >>confdefs.h <<_ACEOF
17733 #define HAVE_LIBKRB 1
17734 _ACEOF
17735
17736 LIBS="-lkrb $LIBS"
17737
17738 fi
17739
17740 fi
17741
17742 fi
17743
17744 if test "${with_kerberos5+set}" = set; then
17745
17746 for ac_header in krb5.h
17747 do
17748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17750 echo "$as_me:$LINENO: checking for $ac_header" >&5
17751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 fi
17755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17757 else
17758 # Is the header compilable?
17759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17761 cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h. */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 $ac_includes_default
17768 #include <$ac_header>
17769 _ACEOF
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_header_compiler=yes
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_header_compiler=no
17797 fi
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17800 echo "${ECHO_T}$ac_header_compiler" >&6
17801
17802 # Is the header present?
17803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 #include <$ac_header>
17812 _ACEOF
17813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } >/dev/null; then
17821 if test -s conftest.err; then
17822 ac_cpp_err=$ac_c_preproc_warn_flag
17823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17824 else
17825 ac_cpp_err=
17826 fi
17827 else
17828 ac_cpp_err=yes
17829 fi
17830 if test -z "$ac_cpp_err"; then
17831 ac_header_preproc=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 ac_header_preproc=no
17837 fi
17838 rm -f conftest.err conftest.$ac_ext
17839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17840 echo "${ECHO_T}$ac_header_preproc" >&6
17841
17842 # So? What about this header?
17843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17844 yes:no: )
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17849 ac_header_preproc=yes
17850 ;;
17851 no:yes:* )
17852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17864 (
17865 cat <<\_ASBOX
17866 ## ------------------------------------------ ##
17867 ## Report this to the AC_PACKAGE_NAME lists. ##
17868 ## ------------------------------------------ ##
17869 _ASBOX
17870 ) |
17871 sed "s/^/$as_me: WARNING: /" >&2
17872 ;;
17873 esac
17874 echo "$as_me:$LINENO: checking for $ac_header" >&5
17875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879 eval "$as_ac_Header=\$ac_header_preproc"
17880 fi
17881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17883
17884 fi
17885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17886 cat >>confdefs.h <<_ACEOF
17887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17888 _ACEOF
17889
17890 fi
17891
17892 done
17893
17894 else
17895
17896 for ac_header in des.h
17897 do
17898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17900 echo "$as_me:$LINENO: checking for $ac_header" >&5
17901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 fi
17905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17907 else
17908 # Is the header compilable?
17909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917 $ac_includes_default
17918 #include <$ac_header>
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_header_compiler=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_header_compiler=no
17947 fi
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6
17951
17952 # Is the header present?
17953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <$ac_header>
17962 _ACEOF
17963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17965 ac_status=$?
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } >/dev/null; then
17971 if test -s conftest.err; then
17972 ac_cpp_err=$ac_c_preproc_warn_flag
17973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17974 else
17975 ac_cpp_err=
17976 fi
17977 else
17978 ac_cpp_err=yes
17979 fi
17980 if test -z "$ac_cpp_err"; then
17981 ac_header_preproc=yes
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986 ac_header_preproc=no
17987 fi
17988 rm -f conftest.err conftest.$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17990 echo "${ECHO_T}$ac_header_preproc" >&6
17991
17992 # So? What about this header?
17993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994 yes:no: )
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17999 ac_header_preproc=yes
18000 ;;
18001 no:yes:* )
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18014 (
18015 cat <<\_ASBOX
18016 ## ------------------------------------------ ##
18017 ## Report this to the AC_PACKAGE_NAME lists. ##
18018 ## ------------------------------------------ ##
18019 _ASBOX
18020 ) |
18021 sed "s/^/$as_me: WARNING: /" >&2
18022 ;;
18023 esac
18024 echo "$as_me:$LINENO: checking for $ac_header" >&5
18025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029 eval "$as_ac_Header=\$ac_header_preproc"
18030 fi
18031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18033
18034 fi
18035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18038 _ACEOF
18039
18040 else
18041
18042 for ac_header in kerberosIV/des.h
18043 do
18044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 fi
18051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18053 else
18054 # Is the header compilable?
18055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h. */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 $ac_includes_default
18064 #include <$ac_header>
18065 _ACEOF
18066 rm -f conftest.$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068 (eval $ac_compile) 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest.$ac_objext'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 ac_header_compiler=yes
18088 else
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18091
18092 ac_header_compiler=no
18093 fi
18094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18096 echo "${ECHO_T}$ac_header_compiler" >&6
18097
18098 # Is the header present?
18099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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. */
18107 #include <$ac_header>
18108 _ACEOF
18109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } >/dev/null; then
18117 if test -s conftest.err; then
18118 ac_cpp_err=$ac_c_preproc_warn_flag
18119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18120 else
18121 ac_cpp_err=
18122 fi
18123 else
18124 ac_cpp_err=yes
18125 fi
18126 if test -z "$ac_cpp_err"; then
18127 ac_header_preproc=yes
18128 else
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_header_preproc=no
18133 fi
18134 rm -f conftest.err conftest.$ac_ext
18135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18136 echo "${ECHO_T}$ac_header_preproc" >&6
18137
18138 # So? What about this header?
18139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18140 yes:no: )
18141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18145 ac_header_preproc=yes
18146 ;;
18147 no:yes:* )
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18160 (
18161 cat <<\_ASBOX
18162 ## ------------------------------------------ ##
18163 ## Report this to the AC_PACKAGE_NAME lists. ##
18164 ## ------------------------------------------ ##
18165 _ASBOX
18166 ) |
18167 sed "s/^/$as_me: WARNING: /" >&2
18168 ;;
18169 esac
18170 echo "$as_me:$LINENO: checking for $ac_header" >&5
18171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175 eval "$as_ac_Header=\$ac_header_preproc"
18176 fi
18177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18179
18180 fi
18181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18184 _ACEOF
18185
18186 else
18187
18188 for ac_header in kerberos/des.h
18189 do
18190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18192 echo "$as_me:$LINENO: checking for $ac_header" >&5
18193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 fi
18197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18199 else
18200 # Is the header compilable?
18201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18203 cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h. */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 $ac_includes_default
18210 #include <$ac_header>
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_header_compiler=yes
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 ac_header_compiler=no
18239 fi
18240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18242 echo "${ECHO_T}$ac_header_compiler" >&6
18243
18244 # Is the header present?
18245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 #include <$ac_header>
18254 _ACEOF
18255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } >/dev/null; then
18263 if test -s conftest.err; then
18264 ac_cpp_err=$ac_c_preproc_warn_flag
18265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18266 else
18267 ac_cpp_err=
18268 fi
18269 else
18270 ac_cpp_err=yes
18271 fi
18272 if test -z "$ac_cpp_err"; then
18273 ac_header_preproc=yes
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 ac_header_preproc=no
18279 fi
18280 rm -f conftest.err conftest.$ac_ext
18281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18282 echo "${ECHO_T}$ac_header_preproc" >&6
18283
18284 # So? What about this header?
18285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18286 yes:no: )
18287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18291 ac_header_preproc=yes
18292 ;;
18293 no:yes:* )
18294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18306 (
18307 cat <<\_ASBOX
18308 ## ------------------------------------------ ##
18309 ## Report this to the AC_PACKAGE_NAME lists. ##
18310 ## ------------------------------------------ ##
18311 _ASBOX
18312 ) |
18313 sed "s/^/$as_me: WARNING: /" >&2
18314 ;;
18315 esac
18316 echo "$as_me:$LINENO: checking for $ac_header" >&5
18317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321 eval "$as_ac_Header=\$ac_header_preproc"
18322 fi
18323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18325
18326 fi
18327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18328 cat >>confdefs.h <<_ACEOF
18329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18330 _ACEOF
18331
18332 fi
18333
18334 done
18335
18336 fi
18337
18338 done
18339
18340 fi
18341
18342 done
18343
18344
18345 for ac_header in krb.h
18346 do
18347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18349 echo "$as_me:$LINENO: checking for $ac_header" >&5
18350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 fi
18354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18356 else
18357 # Is the header compilable?
18358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18367 #include <$ac_header>
18368 _ACEOF
18369 rm -f conftest.$ac_objext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>conftest.er1
18372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest.$ac_objext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_header_compiler=yes
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_header_compiler=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18399 echo "${ECHO_T}$ac_header_compiler" >&6
18400
18401 # Is the header present?
18402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 #include <$ac_header>
18411 _ACEOF
18412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } >/dev/null; then
18420 if test -s conftest.err; then
18421 ac_cpp_err=$ac_c_preproc_warn_flag
18422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18423 else
18424 ac_cpp_err=
18425 fi
18426 else
18427 ac_cpp_err=yes
18428 fi
18429 if test -z "$ac_cpp_err"; then
18430 ac_header_preproc=yes
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 ac_header_preproc=no
18436 fi
18437 rm -f conftest.err conftest.$ac_ext
18438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18439 echo "${ECHO_T}$ac_header_preproc" >&6
18440
18441 # So? What about this header?
18442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18443 yes:no: )
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18448 ac_header_preproc=yes
18449 ;;
18450 no:yes:* )
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18463 (
18464 cat <<\_ASBOX
18465 ## ------------------------------------------ ##
18466 ## Report this to the AC_PACKAGE_NAME lists. ##
18467 ## ------------------------------------------ ##
18468 _ASBOX
18469 ) |
18470 sed "s/^/$as_me: WARNING: /" >&2
18471 ;;
18472 esac
18473 echo "$as_me:$LINENO: checking for $ac_header" >&5
18474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478 eval "$as_ac_Header=\$ac_header_preproc"
18479 fi
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18482
18483 fi
18484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18487 _ACEOF
18488
18489 else
18490
18491 for ac_header in kerberosIV/krb.h
18492 do
18493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo "$as_me:$LINENO: checking for $ac_header" >&5
18496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 fi
18500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18502 else
18503 # Is the header compilable?
18504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 $ac_includes_default
18513 #include <$ac_header>
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_header_compiler=yes
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 ac_header_compiler=no
18542 fi
18543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18545 echo "${ECHO_T}$ac_header_compiler" >&6
18546
18547 # Is the header present?
18548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <$ac_header>
18557 _ACEOF
18558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18560 ac_status=$?
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } >/dev/null; then
18566 if test -s conftest.err; then
18567 ac_cpp_err=$ac_c_preproc_warn_flag
18568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18569 else
18570 ac_cpp_err=
18571 fi
18572 else
18573 ac_cpp_err=yes
18574 fi
18575 if test -z "$ac_cpp_err"; then
18576 ac_header_preproc=yes
18577 else
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18580
18581 ac_header_preproc=no
18582 fi
18583 rm -f conftest.err conftest.$ac_ext
18584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18585 echo "${ECHO_T}$ac_header_preproc" >&6
18586
18587 # So? What about this header?
18588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18589 yes:no: )
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18594 ac_header_preproc=yes
18595 ;;
18596 no:yes:* )
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18609 (
18610 cat <<\_ASBOX
18611 ## ------------------------------------------ ##
18612 ## Report this to the AC_PACKAGE_NAME lists. ##
18613 ## ------------------------------------------ ##
18614 _ASBOX
18615 ) |
18616 sed "s/^/$as_me: WARNING: /" >&2
18617 ;;
18618 esac
18619 echo "$as_me:$LINENO: checking for $ac_header" >&5
18620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624 eval "$as_ac_Header=\$ac_header_preproc"
18625 fi
18626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18628
18629 fi
18630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18631 cat >>confdefs.h <<_ACEOF
18632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18633 _ACEOF
18634
18635 else
18636
18637 for ac_header in kerberos/krb.h
18638 do
18639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo "$as_me:$LINENO: checking for $ac_header" >&5
18642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 fi
18646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18648 else
18649 # Is the header compilable?
18650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h. */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18658 $ac_includes_default
18659 #include <$ac_header>
18660 _ACEOF
18661 rm -f conftest.$ac_objext
18662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_header_compiler=yes
18683 else
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 ac_header_compiler=no
18688 fi
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18691 echo "${ECHO_T}$ac_header_compiler" >&6
18692
18693 # Is the header present?
18694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <$ac_header>
18703 _ACEOF
18704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } >/dev/null; then
18712 if test -s conftest.err; then
18713 ac_cpp_err=$ac_c_preproc_warn_flag
18714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18715 else
18716 ac_cpp_err=
18717 fi
18718 else
18719 ac_cpp_err=yes
18720 fi
18721 if test -z "$ac_cpp_err"; then
18722 ac_header_preproc=yes
18723 else
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727 ac_header_preproc=no
18728 fi
18729 rm -f conftest.err conftest.$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18731 echo "${ECHO_T}$ac_header_preproc" >&6
18732
18733 # So? What about this header?
18734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18735 yes:no: )
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18740 ac_header_preproc=yes
18741 ;;
18742 no:yes:* )
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18755 (
18756 cat <<\_ASBOX
18757 ## ------------------------------------------ ##
18758 ## Report this to the AC_PACKAGE_NAME lists. ##
18759 ## ------------------------------------------ ##
18760 _ASBOX
18761 ) |
18762 sed "s/^/$as_me: WARNING: /" >&2
18763 ;;
18764 esac
18765 echo "$as_me:$LINENO: checking for $ac_header" >&5
18766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770 eval "$as_ac_Header=\$ac_header_preproc"
18771 fi
18772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18774
18775 fi
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777 cat >>confdefs.h <<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18779 _ACEOF
18780
18781 fi
18782
18783 done
18784
18785 fi
18786
18787 done
18788
18789 fi
18790
18791 done
18792
18793 fi
18794
18795 for ac_header in com_err.h
18796 do
18797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo "$as_me:$LINENO: checking for $ac_header" >&5
18800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 fi
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18806 else
18807 # Is the header compilable?
18808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 $ac_includes_default
18817 #include <$ac_header>
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>conftest.er1
18822 ac_status=$?
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 ac_header_compiler=yes
18841 else
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845 ac_header_compiler=no
18846 fi
18847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18849 echo "${ECHO_T}$ac_header_compiler" >&6
18850
18851 # Is the header present?
18852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 #include <$ac_header>
18861 _ACEOF
18862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } >/dev/null; then
18870 if test -s conftest.err; then
18871 ac_cpp_err=$ac_c_preproc_warn_flag
18872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18873 else
18874 ac_cpp_err=
18875 fi
18876 else
18877 ac_cpp_err=yes
18878 fi
18879 if test -z "$ac_cpp_err"; then
18880 ac_header_preproc=yes
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 ac_header_preproc=no
18886 fi
18887 rm -f conftest.err conftest.$ac_ext
18888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18889 echo "${ECHO_T}$ac_header_preproc" >&6
18890
18891 # So? What about this header?
18892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18893 yes:no: )
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18898 ac_header_preproc=yes
18899 ;;
18900 no:yes:* )
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18913 (
18914 cat <<\_ASBOX
18915 ## ------------------------------------------ ##
18916 ## Report this to the AC_PACKAGE_NAME lists. ##
18917 ## ------------------------------------------ ##
18918 _ASBOX
18919 ) |
18920 sed "s/^/$as_me: WARNING: /" >&2
18921 ;;
18922 esac
18923 echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928 eval "$as_ac_Header=\$ac_header_preproc"
18929 fi
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18932
18933 fi
18934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18937 _ACEOF
18938
18939 fi
18940
18941 done
18942
18943 fi
18944
18945 # Solaris requires -lintl if you want strerror (which calls dgettext)
18946 # to return localized messages.
18947
18948 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18949 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18950 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953 ac_check_lib_save_LIBS=$LIBS
18954 LIBS="-lintl $LIBS"
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961
18962 /* Override any gcc2 internal prototype to avoid an error. */
18963 #ifdef __cplusplus
18964 extern "C"
18965 #endif
18966 /* We use char because int might match the return type of a gcc2
18967 builtin and then its argument prototype would still apply. */
18968 char dgettext ();
18969 int
18970 main ()
18971 {
18972 dgettext ();
18973 ;
18974 return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_lib_intl_dgettext=yes
18999 else
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19002
19003 ac_cv_lib_intl_dgettext=no
19004 fi
19005 rm -f conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
19007 LIBS=$ac_check_lib_save_LIBS
19008 fi
19009 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19010 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19011 if test $ac_cv_lib_intl_dgettext = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define HAVE_LIBINTL 1
19014 _ACEOF
19015
19016 LIBS="-lintl $LIBS"
19017
19018 fi
19019
19020
19021 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19022 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19023 if test "${emacs_cv_localtime_cache+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026 if test x$ac_cv_func_tzset = xyes; then
19027 if test "$cross_compiling" = yes; then
19028 # If we have tzset, assume the worst when cross-compiling.
19029 emacs_cv_localtime_cache=yes
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <time.h>
19038 extern char **environ;
19039 unset_TZ ()
19040 {
19041 char **from, **to;
19042 for (to = from = environ; (*to = *from); from++)
19043 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19044 to++;
19045 }
19046 char TZ_GMT0[] = "TZ=GMT0";
19047 char TZ_PST8[] = "TZ=PST8";
19048 main()
19049 {
19050 time_t now = time ((time_t *) 0);
19051 int hour_GMT0, hour_unset;
19052 if (putenv (TZ_GMT0) != 0)
19053 exit (1);
19054 hour_GMT0 = localtime (&now)->tm_hour;
19055 unset_TZ ();
19056 hour_unset = localtime (&now)->tm_hour;
19057 if (putenv (TZ_PST8) != 0)
19058 exit (1);
19059 if (localtime (&now)->tm_hour == hour_GMT0)
19060 exit (1);
19061 unset_TZ ();
19062 if (localtime (&now)->tm_hour != hour_unset)
19063 exit (1);
19064 exit (0);
19065 }
19066 _ACEOF
19067 rm -f conftest$ac_exeext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069 (eval $ac_link) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 emacs_cv_localtime_cache=no
19079 else
19080 echo "$as_me: program exited with status $ac_status" >&5
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ( exit $ac_status )
19085 emacs_cv_localtime_cache=yes
19086 fi
19087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19088 fi
19089 else
19090 # If we lack tzset, report that localtime does not cache TZ,
19091 # since we can't invalidate the cache if we don't have tzset.
19092 emacs_cv_localtime_cache=no
19093 fi
19094 fi
19095 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19096 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19097 if test $emacs_cv_localtime_cache = yes; then
19098
19099 cat >>confdefs.h <<\_ACEOF
19100 #define LOCALTIME_CACHE 1
19101 _ACEOF
19102
19103 fi
19104
19105 if test "x$HAVE_TIMEVAL" = xyes; then
19106
19107 for ac_func in gettimeofday
19108 do
19109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 echo "$as_me:$LINENO: checking for $ac_func" >&5
19111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112 if eval "test \"\${$as_ac_var+set}\" = set"; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123 #define $ac_func innocuous_$ac_func
19124
19125 /* System header to define __stub macros and hopefully few prototypes,
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19129
19130 #ifdef __STDC__
19131 # include <limits.h>
19132 #else
19133 # include <assert.h>
19134 #endif
19135
19136 #undef $ac_func
19137
19138 /* Override any gcc2 internal prototype to avoid an error. */
19139 #ifdef __cplusplus
19140 extern "C"
19141 {
19142 #endif
19143 /* We use char because int might match the return type of a gcc2
19144 builtin and then its argument prototype would still apply. */
19145 char $ac_func ();
19146 /* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
19149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19150 choke me
19151 #else
19152 char (*f) () = $ac_func;
19153 #endif
19154 #ifdef __cplusplus
19155 }
19156 #endif
19157
19158 int
19159 main ()
19160 {
19161 return f != $ac_func;
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 eval "$as_ac_var=yes"
19188 else
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192 eval "$as_ac_var=no"
19193 fi
19194 rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 fi
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19199 if test `eval echo '${'$as_ac_var'}'` = yes; then
19200 cat >>confdefs.h <<_ACEOF
19201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19202 _ACEOF
19203
19204 fi
19205 done
19206
19207 if test $ac_cv_func_gettimeofday = yes; then
19208 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19209 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19210 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h. */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219
19220 #ifdef TIME_WITH_SYS_TIME
19221 #include <sys/time.h>
19222 #include <time.h>
19223 #else
19224 #ifdef HAVE_SYS_TIME_H
19225 #include <sys/time.h>
19226 #else
19227 #include <time.h>
19228 #endif
19229 #endif
19230 int
19231 main ()
19232 {
19233 struct timeval time;
19234 gettimeofday (&time, 0);
19235 ;
19236 return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19260 emacs_cv_gettimeofday_two_arguments=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 emacs_cv_gettimeofday_two_arguments=no
19266 fi
19267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19268 fi
19269 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19270 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19271 if test $emacs_cv_gettimeofday_two_arguments = no; then
19272
19273 cat >>confdefs.h <<\_ACEOF
19274 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19275 _ACEOF
19276
19277 fi
19278 fi
19279 fi
19280
19281 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19282 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19283 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19284 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19294 #include <$ac_cv_struct_tm>
19295
19296
19297 int
19298 main ()
19299 {
19300 static struct tm ac_aggr;
19301 if (ac_aggr.tm_zone)
19302 return 0;
19303 ;
19304 return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19309 (eval $ac_compile) 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_cv_member_struct_tm_tm_zone=yes
19329 else
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h. */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339 #include <sys/types.h>
19340 #include <$ac_cv_struct_tm>
19341
19342
19343 int
19344 main ()
19345 {
19346 static struct tm ac_aggr;
19347 if (sizeof ac_aggr.tm_zone)
19348 return 0;
19349 ;
19350 return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_member_struct_tm_tm_zone=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_member_struct_tm_tm_zone=no
19380 fi
19381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19382 fi
19383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384 fi
19385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19388
19389 cat >>confdefs.h <<_ACEOF
19390 #define HAVE_STRUCT_TM_TM_ZONE 1
19391 _ACEOF
19392
19393
19394 fi
19395
19396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define HAVE_TM_ZONE 1
19400 _ACEOF
19401
19402 else
19403 echo "$as_me:$LINENO: checking for tzname" >&5
19404 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19405 if test "${ac_cv_var_tzname+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <time.h>
19415 #ifndef tzname /* For SGI. */
19416 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19417 #endif
19418
19419 int
19420 main ()
19421 {
19422 atoi(*tzname);
19423 ;
19424 return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19429 (eval $ac_link) 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest$ac_exeext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_var_tzname=yes
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 ac_cv_var_tzname=no
19454 fi
19455 rm -f conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
19457 fi
19458 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19459 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19460 if test $ac_cv_var_tzname = yes; then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_TZNAME 1
19464 _ACEOF
19465
19466 fi
19467 fi
19468
19469
19470 if test "$ac_cv_func_gettimeofday" = yes; then
19471 echo "$as_me:$LINENO: checking for struct timezone" >&5
19472 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19473 if test "${emacs_cv_struct_timezone+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 #include <sys/time.h>
19483 int
19484 main ()
19485 {
19486 struct timezone tz;
19487 ;
19488 return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 if test "$cross_compiling" = yes; then
19513 emacs_cv_struct_timezone=yes
19514 else
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521
19522 #ifdef TIME_WITH_SYS_TIME
19523 #include <sys/time.h>
19524 #include <time.h>
19525 #else
19526 #ifdef HAVE_SYS_TIME_H
19527 #include <sys/time.h>
19528 #else
19529 #include <time.h>
19530 #endif
19531 #endif
19532 main () {
19533 struct timeval time;
19534 struct timezone dummy;
19535 exit (gettimeofday (&time, &dummy));
19536 }
19537 _ACEOF
19538 rm -f conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 emacs_cv_struct_timezone=yes
19550 else
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555 ( exit $ac_status )
19556 emacs_cv_struct_timezone=no
19557 fi
19558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19559 fi
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 emacs_cv_struct_timezone=no
19565 fi
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19569 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19570 fi
19571
19572 ok_so_far=yes
19573 echo "$as_me:$LINENO: checking for socket" >&5
19574 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19575 if test "${ac_cv_func_socket+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19586 #define socket innocuous_socket
19587
19588 /* System header to define __stub macros and hopefully few prototypes,
19589 which can conflict with char socket (); below.
19590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19591 <limits.h> exists even on freestanding compilers. */
19592
19593 #ifdef __STDC__
19594 # include <limits.h>
19595 #else
19596 # include <assert.h>
19597 #endif
19598
19599 #undef socket
19600
19601 /* Override any gcc2 internal prototype to avoid an error. */
19602 #ifdef __cplusplus
19603 extern "C"
19604 {
19605 #endif
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19608 char socket ();
19609 /* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
19612 #if defined (__stub_socket) || defined (__stub___socket)
19613 choke me
19614 #else
19615 char (*f) () = socket;
19616 #endif
19617 #ifdef __cplusplus
19618 }
19619 #endif
19620
19621 int
19622 main ()
19623 {
19624 return f != socket;
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest$ac_exeext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_socket=yes
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_func_socket=no
19656 fi
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 fi
19660 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19661 echo "${ECHO_T}$ac_cv_func_socket" >&6
19662 if test $ac_cv_func_socket = yes; then
19663 :
19664 else
19665 ok_so_far=no
19666 fi
19667
19668 if test $ok_so_far = yes; then
19669 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19670 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19671 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19672 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 fi
19675 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19676 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19677 else
19678 # Is the header compilable?
19679 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19680 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 $ac_includes_default
19688 #include <netinet/in.h>
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_header_compiler=yes
19712 else
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_compiler=no
19717 fi
19718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720 echo "${ECHO_T}$ac_header_compiler" >&6
19721
19722 # Is the header present?
19723 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19724 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <netinet/in.h>
19732 _ACEOF
19733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } >/dev/null; then
19741 if test -s conftest.err; then
19742 ac_cpp_err=$ac_c_preproc_warn_flag
19743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19744 else
19745 ac_cpp_err=
19746 fi
19747 else
19748 ac_cpp_err=yes
19749 fi
19750 if test -z "$ac_cpp_err"; then
19751 ac_header_preproc=yes
19752 else
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_header_preproc=no
19757 fi
19758 rm -f conftest.err conftest.$ac_ext
19759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19760 echo "${ECHO_T}$ac_header_preproc" >&6
19761
19762 # So? What about this header?
19763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19764 yes:no: )
19765 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19766 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19768 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19769 ac_header_preproc=yes
19770 ;;
19771 no:yes:* )
19772 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19773 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19775 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19776 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19777 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19778 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19779 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19781 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19783 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19784 (
19785 cat <<\_ASBOX
19786 ## ------------------------------------------ ##
19787 ## Report this to the AC_PACKAGE_NAME lists. ##
19788 ## ------------------------------------------ ##
19789 _ASBOX
19790 ) |
19791 sed "s/^/$as_me: WARNING: /" >&2
19792 ;;
19793 esac
19794 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19795 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19796 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19799 ac_cv_header_netinet_in_h=$ac_header_preproc
19800 fi
19801 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19802 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19803
19804 fi
19805 if test $ac_cv_header_netinet_in_h = yes; then
19806 :
19807 else
19808 ok_so_far=no
19809 fi
19810
19811
19812 fi
19813 if test $ok_so_far = yes; then
19814 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19815 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19816 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19817 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 fi
19820 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19822 else
19823 # Is the header compilable?
19824 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19825 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h. */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19833 #include <arpa/inet.h>
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_header_compiler=yes
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 ac_header_compiler=no
19862 fi
19863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19865 echo "${ECHO_T}$ac_header_compiler" >&6
19866
19867 # Is the header present?
19868 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19869 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h. */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 #include <arpa/inet.h>
19877 _ACEOF
19878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } >/dev/null; then
19886 if test -s conftest.err; then
19887 ac_cpp_err=$ac_c_preproc_warn_flag
19888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19889 else
19890 ac_cpp_err=
19891 fi
19892 else
19893 ac_cpp_err=yes
19894 fi
19895 if test -z "$ac_cpp_err"; then
19896 ac_header_preproc=yes
19897 else
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 ac_header_preproc=no
19902 fi
19903 rm -f conftest.err conftest.$ac_ext
19904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19905 echo "${ECHO_T}$ac_header_preproc" >&6
19906
19907 # So? What about this header?
19908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19909 yes:no: )
19910 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19911 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19913 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19914 ac_header_preproc=yes
19915 ;;
19916 no:yes:* )
19917 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19918 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19920 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19922 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19924 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19926 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19928 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19929 (
19930 cat <<\_ASBOX
19931 ## ------------------------------------------ ##
19932 ## Report this to the AC_PACKAGE_NAME lists. ##
19933 ## ------------------------------------------ ##
19934 _ASBOX
19935 ) |
19936 sed "s/^/$as_me: WARNING: /" >&2
19937 ;;
19938 esac
19939 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19940 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19941 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944 ac_cv_header_arpa_inet_h=$ac_header_preproc
19945 fi
19946 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19947 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19948
19949 fi
19950 if test $ac_cv_header_arpa_inet_h = yes; then
19951 :
19952 else
19953 ok_so_far=no
19954 fi
19955
19956
19957 fi
19958 if test $ok_so_far = yes; then
19959
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_INET_SOCKETS 1
19962 _ACEOF
19963
19964 fi
19965
19966
19967 for ac_header in sys/ioctl.h
19968 do
19969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971 echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 fi
19976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19978 else
19979 # Is the header compilable?
19980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 #include <$ac_header>
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_header_compiler=no
20018 fi
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20022
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20033 _ACEOF
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045 else
20046 ac_cpp_err=
20047 fi
20048 else
20049 ac_cpp_err=yes
20050 fi
20051 if test -z "$ac_cpp_err"; then
20052 ac_header_preproc=yes
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_header_preproc=no
20058 fi
20059 rm -f conftest.err conftest.$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20062
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20071 ;;
20072 no:yes:* )
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20085 (
20086 cat <<\_ASBOX
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists. ##
20089 ## ------------------------------------------ ##
20090 _ASBOX
20091 ) |
20092 sed "s/^/$as_me: WARNING: /" >&2
20093 ;;
20094 esac
20095 echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 eval "$as_ac_Header=\$ac_header_preproc"
20101 fi
20102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20104
20105 fi
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20109 _ACEOF
20110
20111 fi
20112
20113 done
20114
20115
20116 if test -f /usr/lpp/X11/bin/smt.exp; then
20117
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_AIX_SMT_EXP 1
20120 _ACEOF
20121
20122 fi
20123
20124 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20125 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20126 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20127 echo "$as_me:$LINENO: result: yes" >&5
20128 echo "${ECHO_T}yes" >&6
20129
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_DEV_PTMX 1
20132 _ACEOF
20133
20134 else
20135 echo "$as_me:$LINENO: result: no" >&5
20136 echo "${ECHO_T}no" >&6
20137 fi
20138
20139 echo "$as_me:$LINENO: checking for pid_t" >&5
20140 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20141 if test "${ac_cv_type_pid_t+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 int
20152 main ()
20153 {
20154 if ((pid_t *) 0)
20155 return 0;
20156 if (sizeof (pid_t))
20157 return 0;
20158 ;
20159 return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_pid_t=yes
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 ac_cv_type_pid_t=no
20189 fi
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 fi
20192 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20193 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20194 if test $ac_cv_type_pid_t = yes; then
20195 :
20196 else
20197
20198 cat >>confdefs.h <<_ACEOF
20199 #define pid_t int
20200 _ACEOF
20201
20202 fi
20203
20204
20205
20206 for ac_header in unistd.h vfork.h
20207 do
20208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 fi
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20217 else
20218 # Is the header compilable?
20219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 #include <$ac_header>
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag" || 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 ac_header_compiler=yes
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 ac_header_compiler=no
20257 fi
20258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6
20261
20262 # Is the header present?
20263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <$ac_header>
20272 _ACEOF
20273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } >/dev/null; then
20281 if test -s conftest.err; then
20282 ac_cpp_err=$ac_c_preproc_warn_flag
20283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20284 else
20285 ac_cpp_err=
20286 fi
20287 else
20288 ac_cpp_err=yes
20289 fi
20290 if test -z "$ac_cpp_err"; then
20291 ac_header_preproc=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 ac_header_preproc=no
20297 fi
20298 rm -f conftest.err conftest.$ac_ext
20299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20300 echo "${ECHO_T}$ac_header_preproc" >&6
20301
20302 # So? What about this header?
20303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20304 yes:no: )
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20309 ac_header_preproc=yes
20310 ;;
20311 no:yes:* )
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20324 (
20325 cat <<\_ASBOX
20326 ## ------------------------------------------ ##
20327 ## Report this to the AC_PACKAGE_NAME lists. ##
20328 ## ------------------------------------------ ##
20329 _ASBOX
20330 ) |
20331 sed "s/^/$as_me: WARNING: /" >&2
20332 ;;
20333 esac
20334 echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 eval "$as_ac_Header=\$ac_header_preproc"
20340 fi
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20343
20344 fi
20345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20348 _ACEOF
20349
20350 fi
20351
20352 done
20353
20354
20355
20356 for ac_func in fork vfork
20357 do
20358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20359 echo "$as_me:$LINENO: checking for $ac_func" >&5
20360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_var+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20372 #define $ac_func innocuous_$ac_func
20373
20374 /* System header to define __stub macros and hopefully few prototypes,
20375 which can conflict with char $ac_func (); below.
20376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20377 <limits.h> exists even on freestanding compilers. */
20378
20379 #ifdef __STDC__
20380 # include <limits.h>
20381 #else
20382 # include <assert.h>
20383 #endif
20384
20385 #undef $ac_func
20386
20387 /* Override any gcc2 internal prototype to avoid an error. */
20388 #ifdef __cplusplus
20389 extern "C"
20390 {
20391 #endif
20392 /* We use char because int might match the return type of a gcc2
20393 builtin and then its argument prototype would still apply. */
20394 char $ac_func ();
20395 /* The GNU C library defines this for functions which it implements
20396 to always fail with ENOSYS. Some functions are actually named
20397 something starting with __ and the normal name is an alias. */
20398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20399 choke me
20400 #else
20401 char (*f) () = $ac_func;
20402 #endif
20403 #ifdef __cplusplus
20404 }
20405 #endif
20406
20407 int
20408 main ()
20409 {
20410 return f != $ac_func;
20411 ;
20412 return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext conftest$ac_exeext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20417 (eval $ac_link) 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; } &&
20430 { ac_try='test -s conftest$ac_exeext'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 eval "$as_ac_var=yes"
20437 else
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 eval "$as_ac_var=no"
20442 fi
20443 rm -f conftest.err conftest.$ac_objext \
20444 conftest$ac_exeext conftest.$ac_ext
20445 fi
20446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20448 if test `eval echo '${'$as_ac_var'}'` = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20451 _ACEOF
20452
20453 fi
20454 done
20455
20456 if test "x$ac_cv_func_fork" = xyes; then
20457 echo "$as_me:$LINENO: checking for working fork" >&5
20458 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20459 if test "${ac_cv_func_fork_works+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462 if test "$cross_compiling" = yes; then
20463 ac_cv_func_fork_works=cross
20464 else
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* By Ruediger Kuhlmann. */
20467 #include <sys/types.h>
20468 #if HAVE_UNISTD_H
20469 # include <unistd.h>
20470 #endif
20471 /* Some systems only have a dummy stub for fork() */
20472 int main ()
20473 {
20474 if (fork() < 0)
20475 exit (1);
20476 exit (0);
20477 }
20478 _ACEOF
20479 rm -f conftest$ac_exeext
20480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20481 (eval $ac_link) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 ac_cv_func_fork_works=yes
20491 else
20492 echo "$as_me: program exited with status $ac_status" >&5
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ( exit $ac_status )
20497 ac_cv_func_fork_works=no
20498 fi
20499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20500 fi
20501 fi
20502 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20503 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20504
20505 else
20506 ac_cv_func_fork_works=$ac_cv_func_fork
20507 fi
20508 if test "x$ac_cv_func_fork_works" = xcross; then
20509 case $host in
20510 *-*-amigaos* | *-*-msdosdjgpp*)
20511 # Override, as these systems have only a dummy fork() stub
20512 ac_cv_func_fork_works=no
20513 ;;
20514 *)
20515 ac_cv_func_fork_works=yes
20516 ;;
20517 esac
20518 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20519 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20520 fi
20521 ac_cv_func_vfork_works=$ac_cv_func_vfork
20522 if test "x$ac_cv_func_vfork" = xyes; then
20523 echo "$as_me:$LINENO: checking for working vfork" >&5
20524 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20525 if test "${ac_cv_func_vfork_works+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528 if test "$cross_compiling" = yes; then
20529 ac_cv_func_vfork_works=cross
20530 else
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 /* Thanks to Paul Eggert for this test. */
20538 #include <stdio.h>
20539 #include <stdlib.h>
20540 #include <sys/types.h>
20541 #include <sys/stat.h>
20542 #include <sys/wait.h>
20543 #if HAVE_UNISTD_H
20544 # include <unistd.h>
20545 #endif
20546 #if HAVE_VFORK_H
20547 # include <vfork.h>
20548 #endif
20549 /* On some sparc systems, changes by the child to local and incoming
20550 argument registers are propagated back to the parent. The compiler
20551 is told about this with #include <vfork.h>, but some compilers
20552 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20553 static variable whose address is put into a register that is
20554 clobbered by the vfork. */
20555 static void
20556 #ifdef __cplusplus
20557 sparc_address_test (int arg)
20558 # else
20559 sparc_address_test (arg) int arg;
20560 #endif
20561 {
20562 static pid_t child;
20563 if (!child) {
20564 child = vfork ();
20565 if (child < 0) {
20566 perror ("vfork");
20567 _exit(2);
20568 }
20569 if (!child) {
20570 arg = getpid();
20571 write(-1, "", 0);
20572 _exit (arg);
20573 }
20574 }
20575 }
20576
20577 int
20578 main ()
20579 {
20580 pid_t parent = getpid ();
20581 pid_t child;
20582
20583 sparc_address_test (0);
20584
20585 child = vfork ();
20586
20587 if (child == 0) {
20588 /* Here is another test for sparc vfork register problems. This
20589 test uses lots of local variables, at least as many local
20590 variables as main has allocated so far including compiler
20591 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20592 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20593 reuse the register of parent for one of the local variables,
20594 since it will think that parent can't possibly be used any more
20595 in this routine. Assigning to the local variable will thus
20596 munge parent in the parent process. */
20597 pid_t
20598 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20599 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20600 /* Convince the compiler that p..p7 are live; otherwise, it might
20601 use the same hardware register for all 8 local variables. */
20602 if (p != p1 || p != p2 || p != p3 || p != p4
20603 || p != p5 || p != p6 || p != p7)
20604 _exit(1);
20605
20606 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20607 from child file descriptors. If the child closes a descriptor
20608 before it execs or exits, this munges the parent's descriptor
20609 as well. Test for this by closing stdout in the child. */
20610 _exit(close(fileno(stdout)) != 0);
20611 } else {
20612 int status;
20613 struct stat st;
20614
20615 while (wait(&status) != child)
20616 ;
20617 exit(
20618 /* Was there some problem with vforking? */
20619 child < 0
20620
20621 /* Did the child fail? (This shouldn't happen.) */
20622 || status
20623
20624 /* Did the vfork/compiler bug occur? */
20625 || parent != getpid()
20626
20627 /* Did the file descriptor bug occur? */
20628 || fstat(fileno(stdout), &st) != 0
20629 );
20630 }
20631 }
20632 _ACEOF
20633 rm -f conftest$ac_exeext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20635 (eval $ac_link) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_func_vfork_works=yes
20645 else
20646 echo "$as_me: program exited with status $ac_status" >&5
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649
20650 ( exit $ac_status )
20651 ac_cv_func_vfork_works=no
20652 fi
20653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20654 fi
20655 fi
20656 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20657 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20658
20659 fi;
20660 if test "x$ac_cv_func_fork_works" = xcross; then
20661 ac_cv_func_vfork_works=$ac_cv_func_vfork
20662 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20663 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20664 fi
20665
20666 if test "x$ac_cv_func_vfork_works" = xyes; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_WORKING_VFORK 1
20670 _ACEOF
20671
20672 else
20673
20674 cat >>confdefs.h <<\_ACEOF
20675 #define vfork fork
20676 _ACEOF
20677
20678 fi
20679 if test "x$ac_cv_func_fork_works" = xyes; then
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_WORKING_FORK 1
20683 _ACEOF
20684
20685 fi
20686
20687
20688 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20689 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20690 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 #include <langinfo.h>
20700 int
20701 main ()
20702 {
20703 char* cs = nl_langinfo(CODESET);
20704 ;
20705 return 0;
20706 }
20707 _ACEOF
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710 (eval $ac_link) 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try='test -s conftest$ac_exeext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 emacs_cv_langinfo_codeset=yes
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734 emacs_cv_langinfo_codeset=no
20735 fi
20736 rm -f conftest.err conftest.$ac_objext \
20737 conftest$ac_exeext conftest.$ac_ext
20738
20739 fi
20740 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20741 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20742 if test $emacs_cv_langinfo_codeset = yes; then
20743
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_LANGINFO_CODESET 1
20746 _ACEOF
20747
20748 fi
20749
20750 echo "$as_me:$LINENO: checking for size_t" >&5
20751 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20752 if test "${ac_cv_type_size_t+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 $ac_includes_default
20762 int
20763 main ()
20764 {
20765 if ((size_t *) 0)
20766 return 0;
20767 if (sizeof (size_t))
20768 return 0;
20769 ;
20770 return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775 (eval $ac_compile) 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_type_size_t=yes
20795 else
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_cv_type_size_t=no
20800 fi
20801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802 fi
20803 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20804 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20805 if test $ac_cv_type_size_t = yes; then
20806
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_SIZE_T 1
20809 _ACEOF
20810
20811
20812 fi
20813
20814
20815 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20816 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20817 if test "${ac_cv_type_mbstate_t+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h. */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 $ac_includes_default
20827 # include <wchar.h>
20828 int
20829 main ()
20830 {
20831 mbstate_t x; return sizeof x;
20832 ;
20833 return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_type_mbstate_t=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 ac_cv_type_mbstate_t=no
20863 fi
20864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20867 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20868 if test $ac_cv_type_mbstate_t = yes; then
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_MBSTATE_T 1
20872 _ACEOF
20873
20874 else
20875
20876 cat >>confdefs.h <<\_ACEOF
20877 #define mbstate_t int
20878 _ACEOF
20879
20880 fi
20881
20882 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20883 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20884 if test "${emacs_cv_c_restrict+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 void fred (int *restrict x);
20894 int
20895 main ()
20896 {
20897
20898 ;
20899 return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904 (eval $ac_compile) 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest.$ac_objext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 emacs_cv_c_restrict=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934 void fred (int *__restrict x);
20935 int
20936 main ()
20937 {
20938
20939 ;
20940 return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20945 (eval $ac_compile) 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest.$ac_objext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 emacs_cv_c_restrict=__restrict
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 emacs_cv_c_restrict=no
20970 fi
20971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20972 fi
20973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20974 fi
20975 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
20976 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
20977 case "$emacs_cv_c_restrict" in
20978 yes) emacs_restrict=restrict;;
20979 no) emacs_restrict="";;
20980 *) emacs_restrict="$emacs_cv_c_restrict";;
20981 esac
20982 if test "$emacs_restrict" != __restrict; then
20983
20984 cat >>confdefs.h <<_ACEOF
20985 #define __restrict $emacs_restrict
20986 _ACEOF
20987
20988 fi
20989
20990 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
20991 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
20992 if test "${emacs_cv_c_restrict_arr+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 void fred (int x[__restrict]);
21002 int
21003 main ()
21004 {
21005
21006 ;
21007 return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012 (eval $ac_compile) 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 emacs_cv_c_restrict_arr=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 emacs_cv_c_restrict_arr=no
21037 fi
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21039 fi
21040 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21041 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21042 if test "$emacs_cv_c_restrict_arr" = yes; then
21043
21044 cat >>confdefs.h <<\_ACEOF
21045 #define __restrict_arr __restrict
21046 _ACEOF
21047
21048 fi
21049
21050
21051
21052 # Set up the CFLAGS for real compilation, so we can substitute it.
21053 CFLAGS="$REAL_CFLAGS"
21054 CPPFLAGS="$REAL_CPPFLAGS"
21055
21056 #### Find out which version of Emacs this is.
21057 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21058 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21059 if test x"${version}" = x; then
21060 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21061 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21062 { (exit 1); exit 1; }; }
21063 fi
21064
21065 ### Specify what sort of things we'll be editing into Makefile and config.h.
21066 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102 cat >>confdefs.h <<_ACEOF
21103 #define EMACS_CONFIGURATION "${canonical}"
21104 _ACEOF
21105
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21109 _ACEOF
21110
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define config_machfile "${machfile}"
21114 _ACEOF
21115
21116
21117 cat >>confdefs.h <<_ACEOF
21118 #define config_opsysfile "${opsysfile}"
21119 _ACEOF
21120
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21124 _ACEOF
21125
21126
21127 cat >>confdefs.h <<_ACEOF
21128 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21129 _ACEOF
21130
21131
21132 cat >>confdefs.h <<_ACEOF
21133 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21134 _ACEOF
21135
21136
21137 cat >>confdefs.h <<_ACEOF
21138 #define UNEXEC_SRC ${UNEXEC_SRC}
21139 _ACEOF
21140
21141
21142 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21143
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_X_WINDOWS 1
21146 _ACEOF
21147
21148 fi
21149 if test "${USE_X_TOOLKIT}" != "none" ; then
21150
21151 cat >>confdefs.h <<\_ACEOF
21152 #define USE_X_TOOLKIT 1
21153 _ACEOF
21154
21155 fi
21156 if test "${HAVE_X11}" = "yes" ; then
21157
21158 cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_X11 1
21160 _ACEOF
21161
21162 fi
21163 if test "${HAVE_XFREE386}" = "yes" ; then
21164
21165 cat >>confdefs.h <<\_ACEOF
21166 #define HAVE_XFREE386 1
21167 _ACEOF
21168
21169 fi
21170 if test "${HAVE_MENUS}" = "yes" ; then
21171
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_MENUS 1
21174 _ACEOF
21175
21176 fi
21177 if test "${GNU_MALLOC}" = "yes" ; then
21178
21179 cat >>confdefs.h <<\_ACEOF
21180 #define GNU_MALLOC 1
21181 _ACEOF
21182
21183 fi
21184 if test "${REL_ALLOC}" = "yes" ; then
21185
21186 cat >>confdefs.h <<\_ACEOF
21187 #define REL_ALLOC 1
21188 _ACEOF
21189
21190 fi
21191
21192
21193
21194
21195
21196 #### Report on what we decided to do.
21197 #### Report GTK as a toolkit, even if it doesn't use Xt.
21198 #### It makes printing result more understandable as using GTK sets
21199 #### toolkit_scroll_bars to yes by default.
21200 if test "${HAVE_GTK}" = "yes"; then
21201 USE_X_TOOLKIT=GTK
21202 fi
21203
21204 echo "
21205 Configured for \`${canonical}'.
21206
21207 Where should the build process find the source code? ${srcdir}
21208 What operating system and machine description files should Emacs use?
21209 \`${opsysfile}' and \`${machfile}'
21210 What compiler should emacs be built with? ${CC} ${CFLAGS}
21211 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21212 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21213 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21214 What window system should Emacs use? ${window_system}
21215 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21216
21217 if test -n "${x_includes}"; then
21218 echo " Where do we find X Windows header files? ${x_includes}"
21219 else
21220 echo " Where do we find X Windows header files? Standard dirs"
21221 fi
21222 if test -n "${x_libraries}"; then
21223 echo " Where do we find X Windows libraries? ${x_libraries}"
21224 else
21225 echo " Where do we find X Windows libraries? Standard dirs"
21226 fi
21227
21228 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21229 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21230 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21231 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21232 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21233 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21234 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21235 echo
21236
21237 # Remove any trailing slashes in these variables.
21238 test "${prefix}" != NONE &&
21239 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21240 test "${exec_prefix}" != NONE &&
21241 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21242
21243 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21244 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21245 ## from Makefile.c can correctly provide the arg `-traditional' to the
21246 ## C preprocessor.
21247
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 yes..yes
21255 _ACEOF
21256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21257 $EGREP "yes..yes" >/dev/null 2>&1; then
21258 CPP_NEED_TRADITIONAL=no
21259 else
21260 CPP_NEED_TRADITIONAL=yes
21261 fi
21262 rm -f conftest*
21263
21264
21265 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"
21266 ac_config_commands="$ac_config_commands default"
21267 cat >confcache <<\_ACEOF
21268 # This file is a shell script that caches the results of configure
21269 # tests run on this system so they can be shared between configure
21270 # scripts and configure runs, see configure's option --config-cache.
21271 # It is not useful on other systems. If it contains results you don't
21272 # want to keep, you may remove or edit it.
21273 #
21274 # config.status only pays attention to the cache file if you give it
21275 # the --recheck option to rerun configure.
21276 #
21277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21279 # following values.
21280
21281 _ACEOF
21282
21283 # The following way of writing the cache mishandles newlines in values,
21284 # but we know of no workaround that is simple, portable, and efficient.
21285 # So, don't put newlines in cache variables' values.
21286 # Ultrix sh set writes to stderr and can't be redirected directly,
21287 # and sets the high bit in the cache file unless we assign to the vars.
21288 {
21289 (set) 2>&1 |
21290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21291 *ac_space=\ *)
21292 # `set' does not quote correctly, so add quotes (double-quote
21293 # substitution turns \\\\ into \\, and sed turns \\ into \).
21294 sed -n \
21295 "s/'/'\\\\''/g;
21296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21297 ;;
21298 *)
21299 # `set' quotes correctly as required by POSIX, so do not add quotes.
21300 sed -n \
21301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21302 ;;
21303 esac;
21304 } |
21305 sed '
21306 t clear
21307 : clear
21308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21309 t end
21310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21311 : end' >>confcache
21312 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21313 if test -w $cache_file; then
21314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21315 cat confcache >$cache_file
21316 else
21317 echo "not updating unwritable cache $cache_file"
21318 fi
21319 fi
21320 rm -f confcache
21321
21322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21323 # Let make expand exec_prefix.
21324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21325
21326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21328 # trailing colons and then remove the whole line if VPATH becomes empty
21329 # (actually we leave an empty line to preserve line numbers).
21330 if test "x$srcdir" = x.; then
21331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21332 s/:*\$(srcdir):*/:/;
21333 s/:*\${srcdir}:*/:/;
21334 s/:*@srcdir@:*/:/;
21335 s/^\([^=]*=[ ]*\):*/\1/;
21336 s/:*$//;
21337 s/^[^=]*=[ ]*$//;
21338 }'
21339 fi
21340
21341 DEFS=-DHAVE_CONFIG_H
21342
21343 ac_libobjs=
21344 ac_ltlibobjs=
21345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21346 # 1. Remove the extension, and $U if already installed.
21347 ac_i=`echo "$ac_i" |
21348 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21349 # 2. Add them.
21350 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21351 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21352 done
21353 LIBOBJS=$ac_libobjs
21354
21355 LTLIBOBJS=$ac_ltlibobjs
21356
21357
21358
21359 : ${CONFIG_STATUS=./config.status}
21360 ac_clean_files_save=$ac_clean_files
21361 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21362 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21363 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21364 cat >$CONFIG_STATUS <<_ACEOF
21365 #! $SHELL
21366 # Generated by $as_me.
21367 # Run this file to recreate the current configuration.
21368 # Compiler output produced by configure, useful for debugging
21369 # configure, is in config.log if it exists.
21370
21371 debug=false
21372 ac_cs_recheck=false
21373 ac_cs_silent=false
21374 SHELL=\${CONFIG_SHELL-$SHELL}
21375 _ACEOF
21376
21377 cat >>$CONFIG_STATUS <<\_ACEOF
21378 ## --------------------- ##
21379 ## M4sh Initialization. ##
21380 ## --------------------- ##
21381
21382 # Be Bourne compatible
21383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21384 emulate sh
21385 NULLCMD=:
21386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21387 # is contrary to our usage. Disable this feature.
21388 alias -g '${1+"$@"}'='"$@"'
21389 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21390 set -o posix
21391 fi
21392 DUALCASE=1; export DUALCASE # for MKS sh
21393
21394 # Support unset when possible.
21395 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21396 as_unset=unset
21397 else
21398 as_unset=false
21399 fi
21400
21401
21402 # Work around bugs in pre-3.0 UWIN ksh.
21403 $as_unset ENV MAIL MAILPATH
21404 PS1='$ '
21405 PS2='> '
21406 PS4='+ '
21407
21408 # NLS nuisances.
21409 for as_var in \
21410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21412 LC_TELEPHONE LC_TIME
21413 do
21414 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21415 eval $as_var=C; export $as_var
21416 else
21417 $as_unset $as_var
21418 fi
21419 done
21420
21421 # Required to use basename.
21422 if expr a : '\(a\)' >/dev/null 2>&1; then
21423 as_expr=expr
21424 else
21425 as_expr=false
21426 fi
21427
21428 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21429 as_basename=basename
21430 else
21431 as_basename=false
21432 fi
21433
21434
21435 # Name of the executable.
21436 as_me=`$as_basename "$0" ||
21437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21438 X"$0" : 'X\(//\)$' \| \
21439 X"$0" : 'X\(/\)$' \| \
21440 . : '\(.\)' 2>/dev/null ||
21441 echo X/"$0" |
21442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21443 /^X\/\(\/\/\)$/{ s//\1/; q; }
21444 /^X\/\(\/\).*/{ s//\1/; q; }
21445 s/.*/./; q'`
21446
21447
21448 # PATH needs CR, and LINENO needs CR and PATH.
21449 # Avoid depending upon Character Ranges.
21450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21453 as_cr_digits='0123456789'
21454 as_cr_alnum=$as_cr_Letters$as_cr_digits
21455
21456 # The user is always right.
21457 if test "${PATH_SEPARATOR+set}" != set; then
21458 echo "#! /bin/sh" >conf$$.sh
21459 echo "exit 0" >>conf$$.sh
21460 chmod +x conf$$.sh
21461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21462 PATH_SEPARATOR=';'
21463 else
21464 PATH_SEPARATOR=:
21465 fi
21466 rm -f conf$$.sh
21467 fi
21468
21469
21470 as_lineno_1=$LINENO
21471 as_lineno_2=$LINENO
21472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21473 test "x$as_lineno_1" != "x$as_lineno_2" &&
21474 test "x$as_lineno_3" = "x$as_lineno_2" || {
21475 # Find who we are. Look in the path if we contain no path at all
21476 # relative or not.
21477 case $0 in
21478 *[\\/]* ) as_myself=$0 ;;
21479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21480 for as_dir in $PATH
21481 do
21482 IFS=$as_save_IFS
21483 test -z "$as_dir" && as_dir=.
21484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21485 done
21486
21487 ;;
21488 esac
21489 # We did not find ourselves, most probably we were run as `sh COMMAND'
21490 # in which case we are not to be found in the path.
21491 if test "x$as_myself" = x; then
21492 as_myself=$0
21493 fi
21494 if test ! -f "$as_myself"; then
21495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21497 { (exit 1); exit 1; }; }
21498 fi
21499 case $CONFIG_SHELL in
21500 '')
21501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21502 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21503 do
21504 IFS=$as_save_IFS
21505 test -z "$as_dir" && as_dir=.
21506 for as_base in sh bash ksh sh5; do
21507 case $as_dir in
21508 /*)
21509 if ("$as_dir/$as_base" -c '
21510 as_lineno_1=$LINENO
21511 as_lineno_2=$LINENO
21512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21513 test "x$as_lineno_1" != "x$as_lineno_2" &&
21514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21515 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21516 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21517 CONFIG_SHELL=$as_dir/$as_base
21518 export CONFIG_SHELL
21519 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21520 fi;;
21521 esac
21522 done
21523 done
21524 ;;
21525 esac
21526
21527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21528 # uniformly replaced by the line number. The first 'sed' inserts a
21529 # line-number line before each line; the second 'sed' does the real
21530 # work. The second script uses 'N' to pair each line-number line
21531 # with the numbered line, and appends trailing '-' during
21532 # substitution so that $LINENO is not a special case at line end.
21533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21534 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21535 sed '=' <$as_myself |
21536 sed '
21537 N
21538 s,$,-,
21539 : loop
21540 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21541 t loop
21542 s,-$,,
21543 s,^['$as_cr_digits']*\n,,
21544 ' >$as_me.lineno &&
21545 chmod +x $as_me.lineno ||
21546 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21547 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21548 { (exit 1); exit 1; }; }
21549
21550 # Don't try to exec as it changes $[0], causing all sort of problems
21551 # (the dirname of $[0] is not the place where we might find the
21552 # original and so on. Autoconf is especially sensible to this).
21553 . ./$as_me.lineno
21554 # Exit status is that of the last command.
21555 exit
21556 }
21557
21558
21559 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21560 *c*,-n*) ECHO_N= ECHO_C='
21561 ' ECHO_T=' ' ;;
21562 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21563 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21564 esac
21565
21566 if expr a : '\(a\)' >/dev/null 2>&1; then
21567 as_expr=expr
21568 else
21569 as_expr=false
21570 fi
21571
21572 rm -f conf$$ conf$$.exe conf$$.file
21573 echo >conf$$.file
21574 if ln -s conf$$.file conf$$ 2>/dev/null; then
21575 # We could just check for DJGPP; but this test a) works b) is more generic
21576 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21577 if test -f conf$$.exe; then
21578 # Don't use ln at all; we don't have any links
21579 as_ln_s='cp -p'
21580 else
21581 as_ln_s='ln -s'
21582 fi
21583 elif ln conf$$.file conf$$ 2>/dev/null; then
21584 as_ln_s=ln
21585 else
21586 as_ln_s='cp -p'
21587 fi
21588 rm -f conf$$ conf$$.exe conf$$.file
21589
21590 if mkdir -p . 2>/dev/null; then
21591 as_mkdir_p=:
21592 else
21593 test -d ./-p && rmdir ./-p
21594 as_mkdir_p=false
21595 fi
21596
21597 as_executable_p="test -f"
21598
21599 # Sed expression to map a string onto a valid CPP name.
21600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21601
21602 # Sed expression to map a string onto a valid variable name.
21603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21604
21605
21606 # IFS
21607 # We need space, tab and new line, in precisely that order.
21608 as_nl='
21609 '
21610 IFS=" $as_nl"
21611
21612 # CDPATH.
21613 $as_unset CDPATH
21614
21615 exec 6>&1
21616
21617 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21618 # report actual input values of CONFIG_FILES etc. instead of their
21619 # values after options handling. Logging --version etc. is OK.
21620 exec 5>>config.log
21621 {
21622 echo
21623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21624 ## Running $as_me. ##
21625 _ASBOX
21626 } >&5
21627 cat >&5 <<_CSEOF
21628
21629 This file was extended by $as_me, which was
21630 generated by GNU Autoconf 2.59. Invocation command line was
21631
21632 CONFIG_FILES = $CONFIG_FILES
21633 CONFIG_HEADERS = $CONFIG_HEADERS
21634 CONFIG_LINKS = $CONFIG_LINKS
21635 CONFIG_COMMANDS = $CONFIG_COMMANDS
21636 $ $0 $@
21637
21638 _CSEOF
21639 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21640 echo >&5
21641 _ACEOF
21642
21643 # Files that config.status was made for.
21644 if test -n "$ac_config_files"; then
21645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21646 fi
21647
21648 if test -n "$ac_config_headers"; then
21649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21650 fi
21651
21652 if test -n "$ac_config_links"; then
21653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21654 fi
21655
21656 if test -n "$ac_config_commands"; then
21657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21658 fi
21659
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661
21662 ac_cs_usage="\
21663 \`$as_me' instantiates files from templates according to the
21664 current configuration.
21665
21666 Usage: $0 [OPTIONS] [FILE]...
21667
21668 -h, --help print this help, then exit
21669 -V, --version print version number, then exit
21670 -q, --quiet do not print progress messages
21671 -d, --debug don't remove temporary files
21672 --recheck update $as_me by reconfiguring in the same conditions
21673 --file=FILE[:TEMPLATE]
21674 instantiate the configuration file FILE
21675 --header=FILE[:TEMPLATE]
21676 instantiate the configuration header FILE
21677
21678 Configuration files:
21679 $config_files
21680
21681 Configuration headers:
21682 $config_headers
21683
21684 Configuration commands:
21685 $config_commands
21686
21687 Report bugs to <bug-autoconf@gnu.org>."
21688 _ACEOF
21689
21690 cat >>$CONFIG_STATUS <<_ACEOF
21691 ac_cs_version="\\
21692 config.status
21693 configured by $0, generated by GNU Autoconf 2.59,
21694 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21695
21696 Copyright (C) 2003 Free Software Foundation, Inc.
21697 This config.status script is free software; the Free Software Foundation
21698 gives unlimited permission to copy, distribute and modify it."
21699 srcdir=$srcdir
21700 INSTALL="$INSTALL"
21701 _ACEOF
21702
21703 cat >>$CONFIG_STATUS <<\_ACEOF
21704 # If no file are specified by the user, then we need to provide default
21705 # value. By we need to know if files were specified by the user.
21706 ac_need_defaults=:
21707 while test $# != 0
21708 do
21709 case $1 in
21710 --*=*)
21711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21713 ac_shift=:
21714 ;;
21715 -*)
21716 ac_option=$1
21717 ac_optarg=$2
21718 ac_shift=shift
21719 ;;
21720 *) # This is not an option, so the user has probably given explicit
21721 # arguments.
21722 ac_option=$1
21723 ac_need_defaults=false;;
21724 esac
21725
21726 case $ac_option in
21727 # Handling of the options.
21728 _ACEOF
21729 cat >>$CONFIG_STATUS <<\_ACEOF
21730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21731 ac_cs_recheck=: ;;
21732 --version | --vers* | -V )
21733 echo "$ac_cs_version"; exit 0 ;;
21734 --he | --h)
21735 # Conflict between --help and --header
21736 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21737 Try \`$0 --help' for more information." >&5
21738 echo "$as_me: error: ambiguous option: $1
21739 Try \`$0 --help' for more information." >&2;}
21740 { (exit 1); exit 1; }; };;
21741 --help | --hel | -h )
21742 echo "$ac_cs_usage"; exit 0 ;;
21743 --debug | --d* | -d )
21744 debug=: ;;
21745 --file | --fil | --fi | --f )
21746 $ac_shift
21747 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21748 ac_need_defaults=false;;
21749 --header | --heade | --head | --hea )
21750 $ac_shift
21751 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21752 ac_need_defaults=false;;
21753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21755 ac_cs_silent=: ;;
21756
21757 # This is an error.
21758 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21759 Try \`$0 --help' for more information." >&5
21760 echo "$as_me: error: unrecognized option: $1
21761 Try \`$0 --help' for more information." >&2;}
21762 { (exit 1); exit 1; }; } ;;
21763
21764 *) ac_config_targets="$ac_config_targets $1" ;;
21765
21766 esac
21767 shift
21768 done
21769
21770 ac_configure_extra_args=
21771
21772 if $ac_cs_silent; then
21773 exec 6>/dev/null
21774 ac_configure_extra_args="$ac_configure_extra_args --silent"
21775 fi
21776
21777 _ACEOF
21778 cat >>$CONFIG_STATUS <<_ACEOF
21779 if \$ac_cs_recheck; then
21780 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21781 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21782 fi
21783
21784 _ACEOF
21785
21786 cat >>$CONFIG_STATUS <<_ACEOF
21787 #
21788 # INIT-COMMANDS section.
21789 #
21790
21791 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21792
21793 _ACEOF
21794
21795
21796
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 for ac_config_target in $ac_config_targets
21799 do
21800 case "$ac_config_target" in
21801 # Handling of arguments.
21802 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21803 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21804 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21805 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21806 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21807 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21808 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21809 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21810 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21811 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21812 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21813 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21814 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21815 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21816 { (exit 1); exit 1; }; };;
21817 esac
21818 done
21819
21820 # If the user did not use the arguments to specify the items to instantiate,
21821 # then the envvar interface is used. Set only those that are not.
21822 # We use the long form for the default assignment because of an extremely
21823 # bizarre bug on SunOS 4.1.3.
21824 if $ac_need_defaults; then
21825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21828 fi
21829
21830 # Have a temporary directory for convenience. Make it in the build tree
21831 # simply because there is no reason to put it here, and in addition,
21832 # creating and moving files from /tmp can sometimes cause problems.
21833 # Create a temporary directory, and hook for its removal unless debugging.
21834 $debug ||
21835 {
21836 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21837 trap '{ (exit 1); exit 1; }' 1 2 13 15
21838 }
21839
21840 # Create a (secure) tmp directory for tmp files.
21841
21842 {
21843 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21844 test -n "$tmp" && test -d "$tmp"
21845 } ||
21846 {
21847 tmp=./confstat$$-$RANDOM
21848 (umask 077 && mkdir $tmp)
21849 } ||
21850 {
21851 echo "$me: cannot create a temporary directory in ." >&2
21852 { (exit 1); exit 1; }
21853 }
21854
21855 _ACEOF
21856
21857 cat >>$CONFIG_STATUS <<_ACEOF
21858
21859 #
21860 # CONFIG_FILES section.
21861 #
21862
21863 # No need to generate the scripts if there are no CONFIG_FILES.
21864 # This happens for instance when ./config.status config.h
21865 if test -n "\$CONFIG_FILES"; then
21866 # Protect against being on the right side of a sed subst in config.status.
21867 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21868 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21869 s,@SHELL@,$SHELL,;t t
21870 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21871 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21872 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21873 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21874 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21875 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21876 s,@exec_prefix@,$exec_prefix,;t t
21877 s,@prefix@,$prefix,;t t
21878 s,@program_transform_name@,$program_transform_name,;t t
21879 s,@bindir@,$bindir,;t t
21880 s,@sbindir@,$sbindir,;t t
21881 s,@libexecdir@,$libexecdir,;t t
21882 s,@datadir@,$datadir,;t t
21883 s,@sysconfdir@,$sysconfdir,;t t
21884 s,@sharedstatedir@,$sharedstatedir,;t t
21885 s,@localstatedir@,$localstatedir,;t t
21886 s,@libdir@,$libdir,;t t
21887 s,@includedir@,$includedir,;t t
21888 s,@oldincludedir@,$oldincludedir,;t t
21889 s,@infodir@,$infodir,;t t
21890 s,@mandir@,$mandir,;t t
21891 s,@build_alias@,$build_alias,;t t
21892 s,@host_alias@,$host_alias,;t t
21893 s,@target_alias@,$target_alias,;t t
21894 s,@DEFS@,$DEFS,;t t
21895 s,@ECHO_C@,$ECHO_C,;t t
21896 s,@ECHO_N@,$ECHO_N,;t t
21897 s,@ECHO_T@,$ECHO_T,;t t
21898 s,@LIBS@,$LIBS,;t t
21899 s,@MAINT@,$MAINT,;t t
21900 s,@build@,$build,;t t
21901 s,@build_cpu@,$build_cpu,;t t
21902 s,@build_vendor@,$build_vendor,;t t
21903 s,@build_os@,$build_os,;t t
21904 s,@host@,$host,;t t
21905 s,@host_cpu@,$host_cpu,;t t
21906 s,@host_vendor@,$host_vendor,;t t
21907 s,@host_os@,$host_os,;t t
21908 s,@CC@,$CC,;t t
21909 s,@CFLAGS@,$CFLAGS,;t t
21910 s,@LDFLAGS@,$LDFLAGS,;t t
21911 s,@CPPFLAGS@,$CPPFLAGS,;t t
21912 s,@ac_ct_CC@,$ac_ct_CC,;t t
21913 s,@EXEEXT@,$EXEEXT,;t t
21914 s,@OBJEXT@,$OBJEXT,;t t
21915 s,@LN_S@,$LN_S,;t t
21916 s,@CPP@,$CPP,;t t
21917 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21918 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21919 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21920 s,@RANLIB@,$RANLIB,;t t
21921 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21922 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21923 s,@EGREP@,$EGREP,;t t
21924 s,@SETARCH@,$SETARCH,;t t
21925 s,@LIBSOUND@,$LIBSOUND,;t t
21926 s,@SET_MAKE@,$SET_MAKE,;t t
21927 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21928 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21929 s,@GTK_LIBS@,$GTK_LIBS,;t t
21930 s,@ALLOCA@,$ALLOCA,;t t
21931 s,@liblockfile@,$liblockfile,;t t
21932 s,@LIBOBJS@,$LIBOBJS,;t t
21933 s,@NEED_SETGID@,$NEED_SETGID,;t t
21934 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21935 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21936 s,@version@,$version,;t t
21937 s,@configuration@,$configuration,;t t
21938 s,@canonical@,$canonical,;t t
21939 s,@srcdir@,$srcdir,;t t
21940 s,@lispdir@,$lispdir,;t t
21941 s,@locallisppath@,$locallisppath,;t t
21942 s,@lisppath@,$lisppath,;t t
21943 s,@x_default_search_path@,$x_default_search_path,;t t
21944 s,@etcdir@,$etcdir,;t t
21945 s,@archlibdir@,$archlibdir,;t t
21946 s,@docdir@,$docdir,;t t
21947 s,@bitmapdir@,$bitmapdir,;t t
21948 s,@gamedir@,$gamedir,;t t
21949 s,@gameuser@,$gameuser,;t t
21950 s,@c_switch_system@,$c_switch_system,;t t
21951 s,@c_switch_machine@,$c_switch_machine,;t t
21952 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21953 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21954 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21955 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21956 s,@machfile@,$machfile,;t t
21957 s,@opsysfile@,$opsysfile,;t t
21958 s,@carbon_appdir@,$carbon_appdir,;t t
21959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21960 CEOF
21961
21962 _ACEOF
21963
21964 cat >>$CONFIG_STATUS <<\_ACEOF
21965 # Split the substitutions into bite-sized pieces for seds with
21966 # small command number limits, like on Digital OSF/1 and HP-UX.
21967 ac_max_sed_lines=48
21968 ac_sed_frag=1 # Number of current file.
21969 ac_beg=1 # First line for current file.
21970 ac_end=$ac_max_sed_lines # Line after last line for current file.
21971 ac_more_lines=:
21972 ac_sed_cmds=
21973 while $ac_more_lines; do
21974 if test $ac_beg -gt 1; then
21975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21976 else
21977 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21978 fi
21979 if test ! -s $tmp/subs.frag; then
21980 ac_more_lines=false
21981 else
21982 # The purpose of the label and of the branching condition is to
21983 # speed up the sed processing (if there are no `@' at all, there
21984 # is no need to browse any of the substitutions).
21985 # These are the two extra sed commands mentioned above.
21986 (echo ':t
21987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21988 if test -z "$ac_sed_cmds"; then
21989 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21990 else
21991 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21992 fi
21993 ac_sed_frag=`expr $ac_sed_frag + 1`
21994 ac_beg=$ac_end
21995 ac_end=`expr $ac_end + $ac_max_sed_lines`
21996 fi
21997 done
21998 if test -z "$ac_sed_cmds"; then
21999 ac_sed_cmds=cat
22000 fi
22001 fi # test -n "$CONFIG_FILES"
22002
22003 _ACEOF
22004 cat >>$CONFIG_STATUS <<\_ACEOF
22005 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22007 case $ac_file in
22008 - | *:- | *:-:* ) # input from stdin
22009 cat >$tmp/stdin
22010 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22012 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22014 * ) ac_file_in=$ac_file.in ;;
22015 esac
22016
22017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22018 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22020 X"$ac_file" : 'X\(//\)[^/]' \| \
22021 X"$ac_file" : 'X\(//\)$' \| \
22022 X"$ac_file" : 'X\(/\)' \| \
22023 . : '\(.\)' 2>/dev/null ||
22024 echo X"$ac_file" |
22025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22027 /^X\(\/\/\)$/{ s//\1/; q; }
22028 /^X\(\/\).*/{ s//\1/; q; }
22029 s/.*/./; q'`
22030 { if $as_mkdir_p; then
22031 mkdir -p "$ac_dir"
22032 else
22033 as_dir="$ac_dir"
22034 as_dirs=
22035 while test ! -d "$as_dir"; do
22036 as_dirs="$as_dir $as_dirs"
22037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22039 X"$as_dir" : 'X\(//\)[^/]' \| \
22040 X"$as_dir" : 'X\(//\)$' \| \
22041 X"$as_dir" : 'X\(/\)' \| \
22042 . : '\(.\)' 2>/dev/null ||
22043 echo X"$as_dir" |
22044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22046 /^X\(\/\/\)$/{ s//\1/; q; }
22047 /^X\(\/\).*/{ s//\1/; q; }
22048 s/.*/./; q'`
22049 done
22050 test ! -n "$as_dirs" || mkdir $as_dirs
22051 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22053 { (exit 1); exit 1; }; }; }
22054
22055 ac_builddir=.
22056
22057 if test "$ac_dir" != .; then
22058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22059 # A "../" for each directory in $ac_dir_suffix.
22060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22061 else
22062 ac_dir_suffix= ac_top_builddir=
22063 fi
22064
22065 case $srcdir in
22066 .) # No --srcdir option. We are building in place.
22067 ac_srcdir=.
22068 if test -z "$ac_top_builddir"; then
22069 ac_top_srcdir=.
22070 else
22071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22072 fi ;;
22073 [\\/]* | ?:[\\/]* ) # Absolute path.
22074 ac_srcdir=$srcdir$ac_dir_suffix;
22075 ac_top_srcdir=$srcdir ;;
22076 *) # Relative path.
22077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22079 esac
22080
22081 # Do not use `cd foo && pwd` to compute absolute paths, because
22082 # the directories may not exist.
22083 case `pwd` in
22084 .) ac_abs_builddir="$ac_dir";;
22085 *)
22086 case "$ac_dir" in
22087 .) ac_abs_builddir=`pwd`;;
22088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22090 esac;;
22091 esac
22092 case $ac_abs_builddir in
22093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22094 *)
22095 case ${ac_top_builddir}. in
22096 .) ac_abs_top_builddir=$ac_abs_builddir;;
22097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22099 esac;;
22100 esac
22101 case $ac_abs_builddir in
22102 .) ac_abs_srcdir=$ac_srcdir;;
22103 *)
22104 case $ac_srcdir in
22105 .) ac_abs_srcdir=$ac_abs_builddir;;
22106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22108 esac;;
22109 esac
22110 case $ac_abs_builddir in
22111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22112 *)
22113 case $ac_top_srcdir in
22114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22117 esac;;
22118 esac
22119
22120
22121 case $INSTALL in
22122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22123 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22124 esac
22125
22126 # Let's still pretend it is `configure' which instantiates (i.e., don't
22127 # use $as_me), people would be surprised to read:
22128 # /* config.h. Generated by config.status. */
22129 if test x"$ac_file" = x-; then
22130 configure_input=
22131 else
22132 configure_input="$ac_file. "
22133 fi
22134 configure_input=$configure_input"Generated from `echo $ac_file_in |
22135 sed 's,.*/,,'` by configure."
22136
22137 # First look for the input files in the build tree, otherwise in the
22138 # src tree.
22139 ac_file_inputs=`IFS=:
22140 for f in $ac_file_in; do
22141 case $f in
22142 -) echo $tmp/stdin ;;
22143 [\\/$]*)
22144 # Absolute (can't be DOS-style, as IFS=:)
22145 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22146 echo "$as_me: error: cannot find input file: $f" >&2;}
22147 { (exit 1); exit 1; }; }
22148 echo "$f";;
22149 *) # Relative
22150 if test -f "$f"; then
22151 # Build tree
22152 echo "$f"
22153 elif test -f "$srcdir/$f"; then
22154 # Source tree
22155 echo "$srcdir/$f"
22156 else
22157 # /dev/null tree
22158 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22159 echo "$as_me: error: cannot find input file: $f" >&2;}
22160 { (exit 1); exit 1; }; }
22161 fi;;
22162 esac
22163 done` || { (exit 1); exit 1; }
22164
22165 if test x"$ac_file" != x-; then
22166 { echo "$as_me:$LINENO: creating $ac_file" >&5
22167 echo "$as_me: creating $ac_file" >&6;}
22168 rm -f "$ac_file"
22169 fi
22170 _ACEOF
22171 cat >>$CONFIG_STATUS <<_ACEOF
22172 sed "$ac_vpsub
22173 $extrasub
22174 _ACEOF
22175 cat >>$CONFIG_STATUS <<\_ACEOF
22176 :t
22177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22178 s,@configure_input@,$configure_input,;t t
22179 s,@srcdir@,$ac_srcdir,;t t
22180 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22181 s,@top_srcdir@,$ac_top_srcdir,;t t
22182 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22183 s,@builddir@,$ac_builddir,;t t
22184 s,@abs_builddir@,$ac_abs_builddir,;t t
22185 s,@top_builddir@,$ac_top_builddir,;t t
22186 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22187 s,@INSTALL@,$ac_INSTALL,;t t
22188 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22189 rm -f $tmp/stdin
22190 if test x"$ac_file" != x-; then
22191 mv $tmp/out $ac_file
22192 else
22193 cat $tmp/out
22194 rm -f $tmp/out
22195 fi
22196
22197 done
22198 _ACEOF
22199 cat >>$CONFIG_STATUS <<\_ACEOF
22200
22201 #
22202 # CONFIG_HEADER section.
22203 #
22204
22205 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22206 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22207 #
22208 # ac_d sets the value in "#define NAME VALUE" lines.
22209 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22210 ac_dB='[ ].*$,\1#\2'
22211 ac_dC=' '
22212 ac_dD=',;t'
22213 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22214 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22215 ac_uB='$,\1#\2define\3'
22216 ac_uC=' '
22217 ac_uD=',;t'
22218
22219 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22221 case $ac_file in
22222 - | *:- | *:-:* ) # input from stdin
22223 cat >$tmp/stdin
22224 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22226 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22228 * ) ac_file_in=$ac_file.in ;;
22229 esac
22230
22231 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22232 echo "$as_me: creating $ac_file" >&6;}
22233
22234 # First look for the input files in the build tree, otherwise in the
22235 # src tree.
22236 ac_file_inputs=`IFS=:
22237 for f in $ac_file_in; do
22238 case $f in
22239 -) echo $tmp/stdin ;;
22240 [\\/$]*)
22241 # Absolute (can't be DOS-style, as IFS=:)
22242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22243 echo "$as_me: error: cannot find input file: $f" >&2;}
22244 { (exit 1); exit 1; }; }
22245 # Do quote $f, to prevent DOS paths from being IFS'd.
22246 echo "$f";;
22247 *) # Relative
22248 if test -f "$f"; then
22249 # Build tree
22250 echo "$f"
22251 elif test -f "$srcdir/$f"; then
22252 # Source tree
22253 echo "$srcdir/$f"
22254 else
22255 # /dev/null tree
22256 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22257 echo "$as_me: error: cannot find input file: $f" >&2;}
22258 { (exit 1); exit 1; }; }
22259 fi;;
22260 esac
22261 done` || { (exit 1); exit 1; }
22262 # Remove the trailing spaces.
22263 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22264
22265 _ACEOF
22266
22267 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22268 # `conftest.undefs', that substitutes the proper values into
22269 # config.h.in to produce config.h. The first handles `#define'
22270 # templates, and the second `#undef' templates.
22271 # And first: Protect against being on the right side of a sed subst in
22272 # config.status. Protect against being in an unquoted here document
22273 # in config.status.
22274 rm -f conftest.defines conftest.undefs
22275 # Using a here document instead of a string reduces the quoting nightmare.
22276 # Putting comments in sed scripts is not portable.
22277 #
22278 # `end' is used to avoid that the second main sed command (meant for
22279 # 0-ary CPP macros) applies to n-ary macro definitions.
22280 # See the Autoconf documentation for `clear'.
22281 cat >confdef2sed.sed <<\_ACEOF
22282 s/[\\&,]/\\&/g
22283 s,[\\$`],\\&,g
22284 t clear
22285 : clear
22286 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22287 t end
22288 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22289 : end
22290 _ACEOF
22291 # If some macros were called several times there might be several times
22292 # the same #defines, which is useless. Nevertheless, we may not want to
22293 # sort them, since we want the *last* AC-DEFINE to be honored.
22294 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22295 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22296 rm -f confdef2sed.sed
22297
22298 # This sed command replaces #undef with comments. This is necessary, for
22299 # example, in the case of _POSIX_SOURCE, which is predefined and required
22300 # on some systems where configure will not decide to define it.
22301 cat >>conftest.undefs <<\_ACEOF
22302 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22303 _ACEOF
22304
22305 # Break up conftest.defines because some shells have a limit on the size
22306 # of here documents, and old seds have small limits too (100 cmds).
22307 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22308 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22309 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22310 echo ' :' >>$CONFIG_STATUS
22311 rm -f conftest.tail
22312 while grep . conftest.defines >/dev/null
22313 do
22314 # Write a limited-size here document to $tmp/defines.sed.
22315 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22316 # Speed up: don't consider the non `#define' lines.
22317 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22318 # Work around the forget-to-reset-the-flag bug.
22319 echo 't clr' >>$CONFIG_STATUS
22320 echo ': clr' >>$CONFIG_STATUS
22321 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22322 echo 'CEOF
22323 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22324 rm -f $tmp/in
22325 mv $tmp/out $tmp/in
22326 ' >>$CONFIG_STATUS
22327 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22328 rm -f conftest.defines
22329 mv conftest.tail conftest.defines
22330 done
22331 rm -f conftest.defines
22332 echo ' fi # grep' >>$CONFIG_STATUS
22333 echo >>$CONFIG_STATUS
22334
22335 # Break up conftest.undefs because some shells have a limit on the size
22336 # of here documents, and old seds have small limits too (100 cmds).
22337 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22338 rm -f conftest.tail
22339 while grep . conftest.undefs >/dev/null
22340 do
22341 # Write a limited-size here document to $tmp/undefs.sed.
22342 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22343 # Speed up: don't consider the non `#undef'
22344 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22345 # Work around the forget-to-reset-the-flag bug.
22346 echo 't clr' >>$CONFIG_STATUS
22347 echo ': clr' >>$CONFIG_STATUS
22348 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22349 echo 'CEOF
22350 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22351 rm -f $tmp/in
22352 mv $tmp/out $tmp/in
22353 ' >>$CONFIG_STATUS
22354 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22355 rm -f conftest.undefs
22356 mv conftest.tail conftest.undefs
22357 done
22358 rm -f conftest.undefs
22359
22360 cat >>$CONFIG_STATUS <<\_ACEOF
22361 # Let's still pretend it is `configure' which instantiates (i.e., don't
22362 # use $as_me), people would be surprised to read:
22363 # /* config.h. Generated by config.status. */
22364 if test x"$ac_file" = x-; then
22365 echo "/* Generated by configure. */" >$tmp/config.h
22366 else
22367 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22368 fi
22369 cat $tmp/in >>$tmp/config.h
22370 rm -f $tmp/in
22371 if test x"$ac_file" != x-; then
22372 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22373 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22374 echo "$as_me: $ac_file is unchanged" >&6;}
22375 else
22376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$ac_file" : 'X\(//\)[^/]' \| \
22379 X"$ac_file" : 'X\(//\)$' \| \
22380 X"$ac_file" : 'X\(/\)' \| \
22381 . : '\(.\)' 2>/dev/null ||
22382 echo X"$ac_file" |
22383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22385 /^X\(\/\/\)$/{ s//\1/; q; }
22386 /^X\(\/\).*/{ s//\1/; q; }
22387 s/.*/./; q'`
22388 { if $as_mkdir_p; then
22389 mkdir -p "$ac_dir"
22390 else
22391 as_dir="$ac_dir"
22392 as_dirs=
22393 while test ! -d "$as_dir"; do
22394 as_dirs="$as_dir $as_dirs"
22395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22397 X"$as_dir" : 'X\(//\)[^/]' \| \
22398 X"$as_dir" : 'X\(//\)$' \| \
22399 X"$as_dir" : 'X\(/\)' \| \
22400 . : '\(.\)' 2>/dev/null ||
22401 echo X"$as_dir" |
22402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22404 /^X\(\/\/\)$/{ s//\1/; q; }
22405 /^X\(\/\).*/{ s//\1/; q; }
22406 s/.*/./; q'`
22407 done
22408 test ! -n "$as_dirs" || mkdir $as_dirs
22409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22411 { (exit 1); exit 1; }; }; }
22412
22413 rm -f $ac_file
22414 mv $tmp/config.h $ac_file
22415 fi
22416 else
22417 cat $tmp/config.h
22418 rm -f $tmp/config.h
22419 fi
22420 done
22421 _ACEOF
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22423
22424 #
22425 # CONFIG_COMMANDS section.
22426 #
22427 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22428 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22429 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22430 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22431 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22432 X"$ac_dest" : 'X\(//\)[^/]' \| \
22433 X"$ac_dest" : 'X\(//\)$' \| \
22434 X"$ac_dest" : 'X\(/\)' \| \
22435 . : '\(.\)' 2>/dev/null ||
22436 echo X"$ac_dest" |
22437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22439 /^X\(\/\/\)$/{ s//\1/; q; }
22440 /^X\(\/\).*/{ s//\1/; q; }
22441 s/.*/./; q'`
22442 { if $as_mkdir_p; then
22443 mkdir -p "$ac_dir"
22444 else
22445 as_dir="$ac_dir"
22446 as_dirs=
22447 while test ! -d "$as_dir"; do
22448 as_dirs="$as_dir $as_dirs"
22449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| \
22454 . : '\(.\)' 2>/dev/null ||
22455 echo X"$as_dir" |
22456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22458 /^X\(\/\/\)$/{ s//\1/; q; }
22459 /^X\(\/\).*/{ s//\1/; q; }
22460 s/.*/./; q'`
22461 done
22462 test ! -n "$as_dirs" || mkdir $as_dirs
22463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22465 { (exit 1); exit 1; }; }; }
22466
22467 ac_builddir=.
22468
22469 if test "$ac_dir" != .; then
22470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22471 # A "../" for each directory in $ac_dir_suffix.
22472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22473 else
22474 ac_dir_suffix= ac_top_builddir=
22475 fi
22476
22477 case $srcdir in
22478 .) # No --srcdir option. We are building in place.
22479 ac_srcdir=.
22480 if test -z "$ac_top_builddir"; then
22481 ac_top_srcdir=.
22482 else
22483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22484 fi ;;
22485 [\\/]* | ?:[\\/]* ) # Absolute path.
22486 ac_srcdir=$srcdir$ac_dir_suffix;
22487 ac_top_srcdir=$srcdir ;;
22488 *) # Relative path.
22489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22491 esac
22492
22493 # Do not use `cd foo && pwd` to compute absolute paths, because
22494 # the directories may not exist.
22495 case `pwd` in
22496 .) ac_abs_builddir="$ac_dir";;
22497 *)
22498 case "$ac_dir" in
22499 .) ac_abs_builddir=`pwd`;;
22500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22501 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22502 esac;;
22503 esac
22504 case $ac_abs_builddir in
22505 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22506 *)
22507 case ${ac_top_builddir}. in
22508 .) ac_abs_top_builddir=$ac_abs_builddir;;
22509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22511 esac;;
22512 esac
22513 case $ac_abs_builddir in
22514 .) ac_abs_srcdir=$ac_srcdir;;
22515 *)
22516 case $ac_srcdir in
22517 .) ac_abs_srcdir=$ac_abs_builddir;;
22518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22520 esac;;
22521 esac
22522 case $ac_abs_builddir in
22523 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22524 *)
22525 case $ac_top_srcdir in
22526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22529 esac;;
22530 esac
22531
22532
22533 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22534 echo "$as_me: executing $ac_dest commands" >&6;}
22535 case $ac_dest in
22536 default )
22537
22538 ### Make the necessary directories, if they don't exist.
22539 for dir in etc lisp ; do
22540 test -d ${dir} || mkdir ${dir}
22541 done
22542
22543 # Build src/Makefile from ${srcdir}/src/Makefile.c
22544 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22545 # This must be done after src/config.h is built, since we rely on that file.
22546
22547 # Now get this: Some word that is part of the ${srcdir} directory name
22548 # or the ${configuration} value might, just might, happen to be an
22549 # identifier like `sun4' or `i386' or something, and be predefined by
22550 # the C preprocessor to some helpful value like 1, or maybe the empty
22551 # string. Needless to say consequent macro substitutions are less
22552 # than conducive to the makefile finding the correct directory.
22553 undefs="`echo $top_srcdir $configuration $canonical |
22554 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22555 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22556 `"
22557
22558 echo creating src/epaths.h
22559 ${MAKE-make} epaths-force
22560
22561 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22562 # `..' to `. .' unless invoked with -traditional
22563
22564 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22565 CPPFLAGS="$CPPFLAGS -traditional"
22566 fi
22567
22568 echo creating lib-src/Makefile
22569 ( cd lib-src
22570 rm -f junk.c junk1.c junk2.c
22571 sed -e '/start of cpp stuff/q' \
22572 < Makefile.c > junk1.c
22573 sed -e '1,/start of cpp stuff/d'\
22574 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22575 < Makefile.c > junk.c
22576 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22577 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22578 cat junk1.c junk2.c > Makefile.new
22579 rm -f junk.c junk1.c junk2.c
22580 chmod 444 Makefile.new
22581 mv -f Makefile.new Makefile
22582 )
22583
22584 echo creating src/Makefile
22585 ( cd src
22586 rm -f junk.c junk1.c junk2.c
22587 sed -e '/start of cpp stuff/q' \
22588 < Makefile.c > junk1.c
22589 sed -e '1,/start of cpp stuff/d'\
22590 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22591 < Makefile.c > junk.c
22592 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22593 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22594 cat junk1.c junk2.c > Makefile.new
22595 rm -f junk.c junk1.c junk2.c
22596 chmod 444 Makefile.new
22597 mv -f Makefile.new Makefile
22598 )
22599
22600 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22601 echo creating src/.gdbinit
22602 echo source $srcdir/src/.gdbinit > src/.gdbinit
22603 fi
22604
22605 # This is how we know whether to re-run configure in certain cases.
22606 touch src/config.stamp
22607
22608 ;;
22609 esac
22610 done
22611 _ACEOF
22612
22613 cat >>$CONFIG_STATUS <<\_ACEOF
22614
22615 { (exit 0); exit 0; }
22616 _ACEOF
22617 chmod +x $CONFIG_STATUS
22618 ac_clean_files=$ac_clean_files_save
22619
22620
22621 # configure is writing to config.log, and then calls config.status.
22622 # config.status does its own redirection, appending to config.log.
22623 # Unfortunately, on DOS this fails, as config.log is still kept open
22624 # by configure, so config.status won't be able to write to it; its
22625 # output is simply discarded. So we exec the FD to /dev/null,
22626 # effectively closing config.log, so it can be properly (re)opened and
22627 # appended to by config.status. When coming back to configure, we
22628 # need to make the FD available again.
22629 if test "$no_create" != yes; then
22630 ac_cs_success=:
22631 ac_config_status_args=
22632 test "$silent" = yes &&
22633 ac_config_status_args="$ac_config_status_args --quiet"
22634 exec 5>/dev/null
22635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22636 exec 5>>config.log
22637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22638 # would make configure fail if this is the last instruction.
22639 $ac_cs_success || { (exit 1); exit 1; }
22640 fi
22641
22642