]> code.delx.au - gnu-emacs/blob - configure
* configure.in: Added --enable-asserts.
[gnu-emacs] / 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 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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-largefile omit support for large files
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-gcc don't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version 5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server host
872 --without-sound don't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
887
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CPP C preprocessor
896
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
899
900 _ACEOF
901 fi
902
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
909
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 else
915 ac_dir_suffix= ac_top_builddir=
916 fi
917
918 case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 esac
933
934 # Do not use `cd foo && pwd` to compute absolute paths, because
935 # the directories may not exist.
936 case `pwd` in
937 .) ac_abs_builddir="$ac_dir";;
938 *)
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *)
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
956 *)
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *)
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971 esac
972
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 fi
988 cd $ac_popdir
989 done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994 cat <<\_ACEOF
995
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000 exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1009
1010 $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1240 fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1336
1337
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1350
1351
1352 lispdir='${datadir}/emacs/${version}/lisp'
1353 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath='${locallisppath}:${lispdir}'
1356 etcdir='${datadir}/emacs/${version}/etc'
1357 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir='${datadir}/emacs/${version}/etc'
1359 gamedir='${localstatedir}/games/emacs'
1360
1361 gameuser=games
1362
1363
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1366 withval="$with_gcc"
1367
1368 fi;
1369
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1372 withval="$with_pop"
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define MAIL_USE_POP 1
1376 _ACEOF
1377
1378 else :
1379 fi
1380 else
1381 cat >>confdefs.h <<\_ACEOF
1382 #define MAIL_USE_POP 1
1383 _ACEOF
1384
1385 fi;
1386
1387
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval="$with_kerberos"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define KERBEROS 1
1393 _ACEOF
1394
1395 fi;
1396
1397
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1403 with_kerberos=yes
1404 cat >>confdefs.h <<\_ACEOF
1405 #define KERBEROS 1
1406 _ACEOF
1407
1408 fi
1409 fi
1410
1411 cat >>confdefs.h <<\_ACEOF
1412 #define KERBEROS5 1
1413 _ACEOF
1414
1415 fi;
1416
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval="$with_hesiod"
1420
1421 cat >>confdefs.h <<\_ACEOF
1422 #define HESIOD 1
1423 _ACEOF
1424
1425 fi;
1426
1427
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval="$with_sound"
1431
1432 fi;
1433
1434
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye | yes ) val=athena ;;
1440 n | no ) val=no ;;
1441 l | lu | luc | luci | lucid ) val=lucid ;;
1442 a | at | ath | athe | athen | athena ) val=athena ;;
1443 m | mo | mot | moti | motif ) val=motif ;;
1444 g | gt | gtk ) val=gtk ;;
1445 * )
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1453 ;;
1454 esac
1455 with_x_toolkit=$val
1456
1457 fi;
1458
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1461 withval="$with_xpm"
1462
1463 fi;
1464
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval="$with_jpeg"
1468
1469 fi;
1470
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval="$with_tiff"
1474
1475 fi;
1476
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1479 withval="$with_gif"
1480
1481 fi;
1482
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1485 withval="$with_png"
1486
1487 fi;
1488
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1491 withval="$with_gtk"
1492
1493 fi;
1494
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval="$with_pkg_config_prog"
1498
1499 fi;
1500
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval="$with_toolkit_scroll_bars"
1504
1505 fi;
1506
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1509 withval="$with_xim"
1510
1511 fi;
1512
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval="$with_carbon"
1516
1517 fi;
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval="$enable_carbon_app"
1521 carbon_appdir_x=${enableval}
1522 fi;
1523
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval="$enable_asserts"
1527 USE_XASSERTS=$enableval
1528 else
1529 USE_XASSERTS=no
1530 fi;
1531
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE=$enableval
1536 else
1537 USE_MAINTAINER_MODE=no
1538 fi;
1539 if test $USE_MAINTAINER_MODE = yes; then
1540 MAINT=
1541 else
1542 MAINT=#
1543 fi
1544
1545
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1551 unset CDPATH
1552 case "${srcdir}" in
1553 /* ) ;;
1554 . )
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1561 then
1562 srcdir="$PWD"
1563 else
1564 srcdir="`(cd ${srcdir}; pwd)`"
1565 fi
1566 ;;
1567 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1568 esac
1569
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1585 fi
1586
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1589
1590 ### Canonicalize the configuration name.
1591
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1606 fi
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1612 fi
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 canonical=$host
1672 configuration=${host_alias-$host}
1673
1674
1675
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1679
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1688 ###
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1694 ###
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1698
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1701
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1715
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1719
1720 fi
1721
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
1821 machine=macppc opsys=gnu-linux
1822 ;;
1823
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1827 ;;
1828
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1832 ;;
1833
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1837 ;;
1838
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1842 ;;
1843
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1847 ;;
1848
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1852 ;;
1853
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1857 ;;
1858
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1862 ;;
1863
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1865
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1872 ;;
1873
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1881 ;;
1882
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1886 ;;
1887
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1893 ;;
1894
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1898 ;;
1899
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1903 ;;
1904
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1913 ;;
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1918 ;;
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1921 ;;
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1924 ;;
1925
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1931 ;;
1932
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1936 ;;
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1939 ;;
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1942 ;;
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1945 ;;
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1948 ;;
1949
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1958 fi
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1963 fi
1964 fi
1965 ;;
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1972 ;;
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1975 ;;
1976
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1980 ;;
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1983 ;;
1984
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1988 ;;
1989
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1993 ;;
1994
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1997
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2001 ;;
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2004 ;;
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2007 ;;
2008
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2018 ;;
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2022 ;;
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2027 ;;
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2031 ;;
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2034 ;;
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2038 ;;
2039
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2043 ;;
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2055 ;;
2056
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2060 ;;
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2063 ;;
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2066 ;;
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2069 ;;
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2072 ;;
2073 hppa*-hp-hpux10* )
2074 machine=hp800 opsys=hpux10
2075 ;;
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2078 ;;
2079
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2082 ;;
2083
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2095 ;;
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2098 ;;
2099
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2103 ;;
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2106 ;;
2107
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2111 ;;
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2114 ;;
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2117 ;;
2118 s390-*-linux-gnu* )
2119 machine=ibms390 opsys=gnu-linux
2120 ;;
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2123 ;;
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2126 ;;
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2129 ;;
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2132 ;;
2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2134 machine=ibmrs6000 opsys=aix4-2
2135 ;;
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2138 ;;
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2141 ;;
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2144 ;;
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2147 ;;
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2150 ;;
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2156 ;;
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2159 ;;
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2162 ;;
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2165 ;;
2166
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2170 ;;
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2173 ;;
2174
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2178 ;;
2179
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2183 ;;
2184
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2188 ;;
2189
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2194 ;;
2195
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2201 ;;
2202
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2206 ;;
2207
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2212 ;;
2213
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2217 ;;
2218
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2224 ;;
2225
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2229 ;;
2230
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2234 ;;
2235
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2239 ;;
2240
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2244
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2255 ;;
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2265 ;;
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2268 ;;
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2271 ;;
2272
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2276 ;;
2277
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2281 ;;
2282
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2286 ;;
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2289 ;;
2290
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2294 ;;
2295
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2299 ;;
2300
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2304 ;;
2305
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2309 ;;
2310
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2316 ;;
2317
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2321 ;;
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2324 ;;
2325
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 ;;
2332
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2337 ;;
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2340 ;;
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2344 ;;
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2347 ;;
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2355 ;;
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS=-32
2363 ;;
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2366 ;;
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2369 ;;
2370
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2374 ;;
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2377 ;;
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2380 ;;
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2383 ;;
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2386 ;;
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2389 ;;
2390
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2394 ;;
2395
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2399 ;;
2400
2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2430 ;;
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2435 ;;
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 ;;
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2454 ;;
2455 *-sunos5* | *-solaris* )
2456 opsys=sol2-6
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 ;;
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2468 fi
2469 ;;
2470 *) ;;
2471 esac
2472 ;;
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2475 ;;
2476
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2480 ;;
2481
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2485 ;;
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2488 ;;
2489
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2498 ;;
2499
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2503 ;;
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2508 ;;
2509
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2514 ;;
2515
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2519 ;;
2520
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2533 ;;
2534
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2540 ;;
2541
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2545 ;;
2546
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2550 ;;
2551
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
2556 *-cygwin ) opsys=cygwin ;;
2557 *-lynxos* ) opsys=lynxos ;;
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2564 ;;
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2571 *-sco3.2v5* ) opsys=sco5
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2576 ;;
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2580 *-386bsd* ) opsys=386bsd ;;
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2584 ;;
2585
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2589 ;;
2590
2591 ## Mips Linux-based GNU system
2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2593 machine=mips opsys=gnu-linux
2594 ;;
2595
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2601 ;;
2602
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2606 ;;
2607
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2618 fi
2619 ;;
2620
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
2623 machine=amdx86-64 opsys=gnu-linux
2624 ;;
2625
2626 * )
2627 unported=yes
2628 ;;
2629 esac
2630
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2636 ### above.
2637 if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2659 fi
2660 fi
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2663 * )
2664 unported=yes
2665 ;;
2666 esac
2667 fi
2668
2669
2670
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2677 fi
2678
2679 machfile="m/${machine}.h"
2680 opsysfile="s/${opsys}.h"
2681
2682
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified=yes
2685
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS="$CFLAGS"
2688
2689 case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
2692 * )
2693 esac
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2730 else
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2733 fi
2734
2735 fi
2736 if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761
2762 fi
2763 fi
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2771 fi
2772
2773 CC=$ac_ct_CC
2774 else
2775 CC="$ac_cv_prog_CC"
2776 fi
2777
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2813 fi
2814
2815 fi
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841
2842 fi
2843 fi
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852
2853 CC=$ac_ct_CC
2854 else
2855 CC="$ac_cv_prog_CC"
2856 fi
2857
2858 fi
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2881 fi
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899 fi
2900 fi
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2910 fi
2911
2912 fi
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2916 do
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938 done
2939 done
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952 test -n "$CC" && break
2953 done
2954 fi
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2958 do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2989 else
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2992 fi
2993
2994 test -n "$ac_ct_CC" && break
2995 done
2996
2997 CC=$ac_ct_CC
2998 fi
2999
3000 fi
3001
3002
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035
3036 int
3037 main ()
3038 {
3039
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059 # resort.
3060
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063 ac_cv_exeext=
3064 # b.out is created by i960 compilers.
3065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3066 do
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3070 ;;
3071 conftest.$ac_ext )
3072 # This is the source file.
3073 ;;
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
3085 * )
3086 break;;
3087 esac
3088 done
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3098 fi
3099
3100 ac_exeext=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3103
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
3118 else
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3129 fi
3130 fi
3131 fi
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3134
3135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3143
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 export ac_cv_exeext
3161 break;;
3162 * ) break;;
3163 esac
3164 done
3165 else
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3171 fi
3172
3173 rm -f conftest$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3176
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191
3192 int
3193 main ()
3194 {
3195
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212 done
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3222 fi
3223
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_compiler_gnu=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3284
3285 fi
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 CFLAGS="-g"
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_g=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 ac_cv_prog_cc_g=no
3340 fi
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342 fi
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3352 fi
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3358 fi
3359 fi
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_prog_cc_stdc=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3383 {
3384 return p[i];
3385 }
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3387 {
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3394 }
3395
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427 do
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452 break
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 fi
3458 rm -f conftest.err conftest.$ac_objext
3459 done
3460 rm -f conftest.$ac_ext conftest.$ac_objext
3461 CC=$ac_save_CC
3462
3463 fi
3464
3465 case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3469 *)
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473 esac
3474
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #ifndef __cplusplus
3481 choke me
3482 #endif
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
3507 '' \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3512 'void exit (int);'
3513 do
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_declaration
3521 #include <stdlib.h>
3522 int
3523 main ()
3524 {
3525 exit (42);
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 :
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 continue
3558 fi
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_declaration
3567 int
3568 main ()
3569 {
3570 exit (42);
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 break
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 fi
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 rm -f conftest*
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3610 fi
3611
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 fi
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623
3624
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3628 fi
3629
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634 then
3635 CPP="$NON_GNU_CPP"
3636 fi
3637
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643 then
3644 CC="$NON_GNU_CC"
3645 fi
3646
3647 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $GCC_TEST_OPTIONS"
3650 fi
3651
3652 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3655 fi
3656
3657 #### Some other nice autoconf tests.
3658
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661 LN_S=$as_ln_s
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3668 fi
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3680 fi
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3687 do
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3690 do
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708 Syntax error
3709 _ACEOF
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721 else
3722 ac_cpp_err=
3723 fi
3724 else
3725 ac_cpp_err=yes
3726 fi
3727 if test -z "$ac_cpp_err"; then
3728 :
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 # Broken: fails on valid input.
3734 continue
3735 fi
3736 rm -f conftest.err conftest.$ac_ext
3737
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3759 else
3760 ac_cpp_err=
3761 fi
3762 else
3763 ac_cpp_err=yes
3764 fi
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767 continue
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 # Passes both tests.
3773 ac_preproc_ok=:
3774 break
3775 fi
3776 rm -f conftest.err conftest.$ac_ext
3777
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3782 break
3783 fi
3784
3785 done
3786 ac_cv_prog_CPP=$CPP
3787
3788 fi
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3792 fi
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3797 do
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815 Syntax error
3816 _ACEOF
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3828 else
3829 ac_cpp_err=
3830 fi
3831 else
3832 ac_cpp_err=yes
3833 fi
3834 if test -z "$ac_cpp_err"; then
3835 :
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 # Broken: fails on valid input.
3841 continue
3842 fi
3843 rm -f conftest.err conftest.$ac_ext
3844
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 else
3867 ac_cpp_err=
3868 fi
3869 else
3870 ac_cpp_err=yes
3871 fi
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874 continue
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 # Passes both tests.
3880 ac_preproc_ok=:
3881 break
3882 fi
3883 rm -f conftest.err conftest.$ac_ext
3884
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then
3889 :
3890 else
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3910 # AIX /bin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929 case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3933 /usr/ucb/* ) ;;
3934 *)
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3944 :
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3948 :
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3952 fi
3953 fi
3954 done
3955 done
3956 ;;
3957 esac
3958 done
3959
3960
3961 fi
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL=$ac_cv_path_install
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL=$ac_install_sh
3970 fi
3971 fi
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3974
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3980
3981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982
3983 if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006 done
4007 done
4008
4009 fi
4010 fi
4011 RANLIB=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020 fi
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4048 fi
4049 fi
4050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4057 fi
4058
4059 RANLIB=$ac_ct_RANLIB
4060 else
4061 RANLIB="$ac_cv_prog_RANLIB"
4062 fi
4063
4064 fi
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4075 ;;
4076 *)
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088 done
4089 done
4090
4091 ;;
4092 esac
4093 fi
4094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4095
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4102 fi
4103
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4114 ;;
4115 *)
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in /usr/sbin
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129
4130 ;;
4131 esac
4132 fi
4133 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4134
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4153 ;;
4154 *)
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in /sbin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4170 ;;
4171 esac
4172 fi
4173 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4174
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183
4184
4185 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4188 fi
4189
4190 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4193 fi
4194
4195
4196 late_LDFLAGS=$LDFLAGS
4197 if test "$GCC" = yes; then
4198 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4199 else
4200 LDFLAGS="$LDFLAGS -znocombreloc"
4201 fi
4202
4203 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4205
4206 cat >conftest.$ac_ext <<_ACEOF
4207 main(){return 0;}
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 LDFLAGS=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4240 fi
4241 rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243
4244
4245 echo "$as_me:$LINENO: checking for egrep" >&5
4246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247 if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251 then ac_cv_prog_egrep='grep -E'
4252 else ac_cv_prog_egrep='egrep'
4253 fi
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
4258
4259
4260
4261 echo "$as_me:$LINENO: checking for AIX" >&5
4262 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #ifdef _AIX
4270 yes
4271 #endif
4272
4273 _ACEOF
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "yes" >/dev/null 2>&1; then
4276 echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278 cat >>confdefs.h <<\_ACEOF
4279 #define _ALL_SOURCE 1
4280 _ACEOF
4281
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4285 fi
4286 rm -f conftest*
4287
4288
4289
4290
4291 #### Extract some information from the operating system and machine files.
4292
4293 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4294 - which libraries the lib-src programs will want, and
4295 - whether the GNU malloc routines are usable..." >&5
4296 echo "$as_me: checking the machine- and system-dependent files to find out
4297 - which libraries the lib-src programs will want, and
4298 - whether the GNU malloc routines are usable..." >&6;}
4299
4300 ### First figure out CFLAGS (which we use for running the compiler here)
4301 ### and REAL_CFLAGS (which we use for real compilation).
4302 ### The two are the same except on a few systems, where they are made
4303 ### different to work around various lossages. For example,
4304 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4305 ### as implying static linking.
4306
4307 ### If the CFLAGS env var is specified, we use that value
4308 ### instead of the default.
4309
4310 ### It's not important that this name contain the PID; you can't run
4311 ### two configures in the same directory and have anything work
4312 ### anyway.
4313 tempcname="conftest.c"
4314
4315 echo '
4316 #include "'${srcdir}'/src/'${opsysfile}'"
4317 #include "'${srcdir}'/src/'${machfile}'"
4318 #ifndef LIBS_MACHINE
4319 #define LIBS_MACHINE
4320 #endif
4321 #ifndef LIBS_SYSTEM
4322 #define LIBS_SYSTEM
4323 #endif
4324 #ifndef C_SWITCH_SYSTEM
4325 #define C_SWITCH_SYSTEM
4326 #endif
4327 #ifndef C_SWITCH_MACHINE
4328 #define C_SWITCH_MACHINE
4329 #endif
4330 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4331 configure___ c_switch_system=C_SWITCH_SYSTEM
4332 configure___ c_switch_machine=C_SWITCH_MACHINE
4333
4334 #ifndef LIB_X11_LIB
4335 #define LIB_X11_LIB -lX11
4336 #endif
4337
4338 #ifndef LIBX11_MACHINE
4339 #define LIBX11_MACHINE
4340 #endif
4341
4342 #ifndef LIBX11_SYSTEM
4343 #define LIBX11_SYSTEM
4344 #endif
4345 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4346
4347 #ifdef UNEXEC
4348 configure___ unexec=UNEXEC
4349 #else
4350 configure___ unexec=unexec.o
4351 #endif
4352
4353 #ifdef SYSTEM_MALLOC
4354 configure___ system_malloc=yes
4355 #else
4356 configure___ system_malloc=no
4357 #endif
4358
4359 #ifdef USE_MMAP_FOR_BUFFERS
4360 configure___ use_mmap_for_buffers=yes
4361 #else
4362 configure___ use_mmap_for_buffers=no
4363 #endif
4364
4365 #ifndef C_DEBUG_SWITCH
4366 #define C_DEBUG_SWITCH -g
4367 #endif
4368
4369 #ifndef C_OPTIMIZE_SWITCH
4370 #ifdef __GNUC__
4371 #define C_OPTIMIZE_SWITCH -O2
4372 #else
4373 #define C_OPTIMIZE_SWITCH -O
4374 #endif
4375 #endif
4376
4377 #ifndef LD_SWITCH_MACHINE
4378 #define LD_SWITCH_MACHINE
4379 #endif
4380
4381 #ifndef LD_SWITCH_SYSTEM
4382 #define LD_SWITCH_SYSTEM
4383 #endif
4384
4385 #ifndef LD_SWITCH_X_SITE_AUX
4386 #define LD_SWITCH_X_SITE_AUX
4387 #endif
4388
4389 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4390 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4391
4392 #ifdef THIS_IS_CONFIGURE
4393
4394 /* Get the CFLAGS for tests in configure. */
4395 #ifdef __GNUC__
4396 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4400
4401 #else /* not THIS_IS_CONFIGURE */
4402
4403 /* Get the CFLAGS for real compilation. */
4404 #ifdef __GNUC__
4405 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4406 #else
4407 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4408 #endif
4409
4410 #endif /* not THIS_IS_CONFIGURE */
4411 ' > ${tempcname}
4412
4413 # The value of CPP is a quoted variable reference, so we need to do this
4414 # to get its actual value...
4415 CPP=`eval "echo $CPP"`
4416 eval `${CPP} -Isrc ${tempcname} \
4417 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4418 if test "x$SPECIFIED_CFLAGS" = x; then
4419 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4420 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4421 else
4422 REAL_CFLAGS="$CFLAGS"
4423 fi
4424 rm ${tempcname}
4425
4426 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4427
4428 ### Make sure subsequent tests use flags consistent with the build flags.
4429
4430 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4431 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4432 else
4433 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4434 fi
4435
4436
4437
4438
4439 cat >>confdefs.h <<\_ACEOF
4440 #define _GNU_SOURCE 1
4441 _ACEOF
4442
4443
4444
4445 # Check whether --enable-largefile or --disable-largefile was given.
4446 if test "${enable_largefile+set}" = set; then
4447 enableval="$enable_largefile"
4448
4449 fi;
4450 if test "$enable_largefile" != no; then
4451
4452 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4453 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4454 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 ac_cv_sys_largefile_CC=no
4458 if test "$GCC" != yes; then
4459 ac_save_CC=$CC
4460 while :; do
4461 # IRIX 6.2 and later do not support large files by default,
4462 # so use the C compiler's -n32 option if that helps.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 /* Check that off_t can represent 2**63 - 1 correctly.
4471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472 since some C++ compilers masquerading as C compilers
4473 incorrectly reject 9223372036854775807. */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476 && LARGE_OFF_T % 2147483647 == 1)
4477 ? 1 : -1];
4478 int
4479 main ()
4480 {
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 break
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 fi
4514 rm -f conftest.err conftest.$ac_objext
4515 CC="$CC -n32"
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_sys_largefile_CC=' -n32'; break
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 fi
4544 rm -f conftest.err conftest.$ac_objext
4545 break
4546 done
4547 CC=$ac_save_CC
4548 rm -f conftest.$ac_ext
4549 fi
4550 fi
4551 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4552 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4553 if test "$ac_cv_sys_largefile_CC" != no; then
4554 CC=$CC$ac_cv_sys_largefile_CC
4555 fi
4556
4557 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4558 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4559 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 while :; do
4563 ac_cv_sys_file_offset_bits=no
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 /* Check that off_t can represent 2**63 - 1 correctly.
4572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4573 since some C++ compilers masquerading as C compilers
4574 incorrectly reject 9223372036854775807. */
4575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4577 && LARGE_OFF_T % 2147483647 == 1)
4578 ? 1 : -1];
4579 int
4580 main ()
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 break
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 fi
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #define _FILE_OFFSET_BITS 64
4623 #include <sys/types.h>
4624 /* Check that off_t can represent 2**63 - 1 correctly.
4625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4626 since some C++ compilers masquerading as C compilers
4627 incorrectly reject 9223372036854775807. */
4628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4630 && LARGE_OFF_T % 2147483647 == 1)
4631 ? 1 : -1];
4632 int
4633 main ()
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits=64; break
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 break
4670 done
4671 fi
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no; then
4675
4676 cat >>confdefs.h <<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4678 _ACEOF
4679
4680 fi
4681 rm -f conftest*
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 while :; do
4688 ac_cv_sys_large_files=no
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4704 int
4705 main ()
4706 {
4707
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 break
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 fi
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #define _LARGE_FILES 1
4748 #include <sys/types.h>
4749 /* Check that off_t can represent 2**63 - 1 correctly.
4750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4751 since some C++ compilers masquerading as C compilers
4752 incorrectly reject 9223372036854775807. */
4753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4755 && LARGE_OFF_T % 2147483647 == 1)
4756 ? 1 : -1];
4757 int
4758 main ()
4759 {
4760
4761 ;
4762 return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_sys_large_files=1; break
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 fi
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 break
4795 done
4796 fi
4797 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4798 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4799 if test "$ac_cv_sys_large_files" != no; then
4800
4801 cat >>confdefs.h <<_ACEOF
4802 #define _LARGE_FILES $ac_cv_sys_large_files
4803 _ACEOF
4804
4805 fi
4806 rm -f conftest*
4807 fi
4808
4809
4810 if test "${with_sound}" != "no"; then
4811 # Sound support for GNU/Linux and the free BSDs.
4812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4814 if test "${ac_cv_header_stdc+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <stdlib.h>
4824 #include <stdarg.h>
4825 #include <string.h>
4826 #include <float.h>
4827
4828 int
4829 main ()
4830 {
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_header_stdc=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_cv_header_stdc=no
4864 fi
4865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866
4867 if test $ac_cv_header_stdc = yes; then
4868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <string.h>
4876
4877 _ACEOF
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "memchr" >/dev/null 2>&1; then
4880 :
4881 else
4882 ac_cv_header_stdc=no
4883 fi
4884 rm -f conftest*
4885
4886 fi
4887
4888 if test $ac_cv_header_stdc = yes; then
4889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <stdlib.h>
4897
4898 _ACEOF
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "free" >/dev/null 2>&1; then
4901 :
4902 else
4903 ac_cv_header_stdc=no
4904 fi
4905 rm -f conftest*
4906
4907 fi
4908
4909 if test $ac_cv_header_stdc = yes; then
4910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4911 if test "$cross_compiling" = yes; then
4912 :
4913 else
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <ctype.h>
4921 #if ((' ' & 0x0FF) == 0x020)
4922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4924 #else
4925 # define ISLOWER(c) \
4926 (('a' <= (c) && (c) <= 'i') \
4927 || ('j' <= (c) && (c) <= 'r') \
4928 || ('s' <= (c) && (c) <= 'z'))
4929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4930 #endif
4931
4932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4933 int
4934 main ()
4935 {
4936 int i;
4937 for (i = 0; i < 256; i++)
4938 if (XOR (islower (i), ISLOWER (i))
4939 || toupper (i) != TOUPPER (i))
4940 exit(2);
4941 exit (0);
4942 }
4943 _ACEOF
4944 rm -f conftest$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 :
4956 else
4957 echo "$as_me: program exited with status $ac_status" >&5
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 ( exit $ac_status )
4962 ac_cv_header_stdc=no
4963 fi
4964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 fi
4967 fi
4968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4970 if test $ac_cv_header_stdc = yes; then
4971
4972 cat >>confdefs.h <<\_ACEOF
4973 #define STDC_HEADERS 1
4974 _ACEOF
4975
4976 fi
4977
4978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989 inttypes.h stdint.h unistd.h
4990 do
4991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 echo "$as_me:$LINENO: checking for $ac_header" >&5
4993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5004
5005 #include <$ac_header>
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_Header=yes"
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 eval "$as_ac_Header=no"
5035 fi
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043 _ACEOF
5044
5045 fi
5046
5047 done
5048
5049
5050
5051
5052
5053 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5054 do
5055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 fi
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5064 else
5065 # Is the header compilable?
5066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler=yes
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ac_header_compiler=no
5105 fi
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5109
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <$ac_header>
5120 _ACEOF
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null; then
5129 if test -s conftest.err; then
5130 ac_cpp_err=$ac_c_preproc_warn_flag
5131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5132 else
5133 ac_cpp_err=
5134 fi
5135 else
5136 ac_cpp_err=yes
5137 fi
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ac_header_preproc=no
5145 fi
5146 rm -f conftest.err conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5149
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5152 yes:no: )
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5157 ac_header_preproc=yes
5158 ;;
5159 no:yes:* )
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5172 (
5173 cat <<\_ASBOX
5174 ## ------------------------------------------ ##
5175 ## Report this to the AC_PACKAGE_NAME lists. ##
5176 ## ------------------------------------------ ##
5177 _ASBOX
5178 ) |
5179 sed "s/^/$as_me: WARNING: /" >&2
5180 ;;
5181 esac
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 eval "$as_ac_Header=\$ac_header_preproc"
5188 fi
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5191
5192 fi
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h <<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 _ACEOF
5197
5198 fi
5199
5200 done
5201
5202 # Emulation library used on NetBSD.
5203 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5204 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5205 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 ac_check_lib_save_LIBS=$LIBS
5209 LIBS="-lossaudio $LIBS"
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216
5217 /* Override any gcc2 internal prototype to avoid an error. */
5218 #ifdef __cplusplus
5219 extern "C"
5220 #endif
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char _oss_ioctl ();
5224 int
5225 main ()
5226 {
5227 _oss_ioctl ();
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_lib_ossaudio__oss_ioctl=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_lib_ossaudio__oss_ioctl=no
5260 fi
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5266 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5267 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5268 LIBSOUND=-lossaudio
5269 else
5270 LIBSOUND=
5271 fi
5272
5273
5274 fi
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5301 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5302 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5303 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5304 sys/utsname.h
5305 do
5306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo "$as_me:$LINENO: checking for $ac_header" >&5
5309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 fi
5313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5315 else
5316 # Is the header compilable?
5317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5326 #include <$ac_header>
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_header_compiler=yes
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_header_compiler=no
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6
5360
5361 # Is the header present?
5362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383 else
5384 ac_cpp_err=
5385 fi
5386 else
5387 ac_cpp_err=yes
5388 fi
5389 if test -z "$ac_cpp_err"; then
5390 ac_header_preproc=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_header_preproc=no
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5400
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 yes:no: )
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc=yes
5409 ;;
5410 no:yes:* )
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5423 (
5424 cat <<\_ASBOX
5425 ## ------------------------------------------ ##
5426 ## Report this to the AC_PACKAGE_NAME lists. ##
5427 ## ------------------------------------------ ##
5428 _ASBOX
5429 ) |
5430 sed "s/^/$as_me: WARNING: /" >&2
5431 ;;
5432 esac
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 eval "$as_ac_Header=\$ac_header_preproc"
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442
5443 fi
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5448
5449 fi
5450
5451 done
5452
5453
5454 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5455 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <sys/personality.h>
5463 int
5464 main ()
5465 {
5466 personality (PER_LINUX32)
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 emacs_cv_personality_linux32=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 emacs_cv_personality_linux32=no
5499 fi
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5502 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5503
5504 if test $emacs_cv_personality_linux32 = yes; then
5505
5506 cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_PERSONALITY_LINUX32 1
5508 _ACEOF
5509
5510 fi
5511
5512
5513 for ac_header in term.h
5514 do
5515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <$ac_header>
5528 _ACEOF
5529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5540 else
5541 ac_cpp_err=
5542 fi
5543 else
5544 ac_cpp_err=yes
5545 fi
5546 if test -z "$ac_cpp_err"; then
5547 eval "$as_ac_Header=yes"
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 eval "$as_ac_Header=no"
5553 fi
5554 rm -f conftest.err conftest.$ac_ext
5555 fi
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559 cat >>confdefs.h <<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5562
5563 fi
5564
5565 done
5566
5567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5569 if test "${ac_cv_header_stdc+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <stdlib.h>
5579 #include <stdarg.h>
5580 #include <string.h>
5581 #include <float.h>
5582
5583 int
5584 main ()
5585 {
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_header_stdc=yes
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 ac_cv_header_stdc=no
5619 fi
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621
5622 if test $ac_cv_header_stdc = yes; then
5623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <string.h>
5631
5632 _ACEOF
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev/null 2>&1; then
5635 :
5636 else
5637 ac_cv_header_stdc=no
5638 fi
5639 rm -f conftest*
5640
5641 fi
5642
5643 if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <stdlib.h>
5652
5653 _ACEOF
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev/null 2>&1; then
5656 :
5657 else
5658 ac_cv_header_stdc=no
5659 fi
5660 rm -f conftest*
5661
5662 fi
5663
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then
5667 :
5668 else
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <ctype.h>
5676 #if ((' ' & 0x0FF) == 0x020)
5677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5679 #else
5680 # define ISLOWER(c) \
5681 (('a' <= (c) && (c) <= 'i') \
5682 || ('j' <= (c) && (c) <= 'r') \
5683 || ('s' <= (c) && (c) <= 'z'))
5684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5685 #endif
5686
5687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 int
5689 main ()
5690 {
5691 int i;
5692 for (i = 0; i < 256; i++)
5693 if (XOR (islower (i), ISLOWER (i))
5694 || toupper (i) != TOUPPER (i))
5695 exit(2);
5696 exit (0);
5697 }
5698 _ACEOF
5699 rm -f conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 :
5711 else
5712 echo "$as_me: program exited with status $ac_status" >&5
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 ( exit $ac_status )
5717 ac_cv_header_stdc=no
5718 fi
5719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5720 fi
5721 fi
5722 fi
5723 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5724 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5725 if test $ac_cv_header_stdc = yes; then
5726
5727 cat >>confdefs.h <<\_ACEOF
5728 #define STDC_HEADERS 1
5729 _ACEOF
5730
5731 fi
5732
5733 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5735 if test "${ac_cv_header_time+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 #include <sys/time.h>
5746 #include <time.h>
5747
5748 int
5749 main ()
5750 {
5751 if ((struct tm *) 0)
5752 return 0;
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_header_time=yes
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_header_time=no
5785 fi
5786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5789 echo "${ECHO_T}$ac_cv_header_time" >&6
5790 if test $ac_cv_header_time = yes; then
5791
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TIME_WITH_SYS_TIME 1
5794 _ACEOF
5795
5796 fi
5797
5798 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5799 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5800 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5810 int
5811 main ()
5812 {
5813 #ifndef sys_siglist
5814 char *p = (char *) sys_siglist;
5815 #endif
5816
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_have_decl_sys_siglist=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_cv_have_decl_sys_siglist=no
5849 fi
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5853 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5854 if test $ac_cv_have_decl_sys_siglist = yes; then
5855
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_DECL_SYS_SIGLIST 1
5858 _ACEOF
5859
5860
5861 else
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE_DECL_SYS_SIGLIST 0
5864 _ACEOF
5865
5866
5867 fi
5868
5869
5870 if test $ac_cv_have_decl_sys_siglist != yes; then
5871 # For Tru64, at least:
5872 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5873 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5874 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 int
5885 main ()
5886 {
5887 #ifndef __sys_siglist
5888 char *p = (char *) __sys_siglist;
5889 #endif
5890
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_have_decl___sys_siglist=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 ac_cv_have_decl___sys_siglist=no
5923 fi
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5925 fi
5926 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5927 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5928 if test $ac_cv_have_decl___sys_siglist = yes; then
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define HAVE_DECL___SYS_SIGLIST 1
5932 _ACEOF
5933
5934
5935 else
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_DECL___SYS_SIGLIST 0
5938 _ACEOF
5939
5940
5941 fi
5942
5943
5944 if test $ac_cv_have_decl___sys_siglist = yes; then
5945
5946 cat >>confdefs.h <<\_ACEOF
5947 #define sys_siglist __sys_siglist
5948 _ACEOF
5949
5950 fi
5951 fi
5952 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5953 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5954 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <sys/wait.h>
5965 #ifndef WEXITSTATUS
5966 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5967 #endif
5968 #ifndef WIFEXITED
5969 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5970 #endif
5971
5972 int
5973 main ()
5974 {
5975 int s;
5976 wait (&s);
5977 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_header_sys_wait_h=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 ac_cv_header_sys_wait_h=no
6010 fi
6011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6014 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6015 if test $ac_cv_header_sys_wait_h = yes; then
6016
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_SYS_WAIT_H 1
6019 _ACEOF
6020
6021 fi
6022
6023
6024 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6025 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6026 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #ifdef TIME_WITH_SYS_TIME
6036 #include <sys/time.h>
6037 #include <time.h>
6038 #else
6039 #ifdef HAVE_SYS_TIME_H
6040 #include <sys/time.h>
6041 #else
6042 #include <time.h>
6043 #endif
6044 #endif
6045 #ifdef HAVE_UTIME_H
6046 #include <utime.h>
6047 #endif
6048 int
6049 main ()
6050 {
6051 static struct utimbuf x; x.actime = x.modtime;
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 emacs_cv_struct_utimbuf=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 emacs_cv_struct_utimbuf=no
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 fi
6087 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6088 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6089 if test $emacs_cv_struct_utimbuf = yes; then
6090
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_STRUCT_UTIMBUF 1
6093 _ACEOF
6094
6095 fi
6096
6097 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6098 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6099 if test "${ac_cv_type_signal+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <sys/types.h>
6109 #include <signal.h>
6110 #ifdef signal
6111 # undef signal
6112 #endif
6113 #ifdef __cplusplus
6114 extern "C" void (*signal (int, void (*)(int)))(int);
6115 #else
6116 void (*signal ()) ();
6117 #endif
6118
6119 int
6120 main ()
6121 {
6122 int i;
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_type_signal=void
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_type_signal=int
6155 fi
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157 fi
6158 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6159 echo "${ECHO_T}$ac_cv_type_signal" >&6
6160
6161 cat >>confdefs.h <<_ACEOF
6162 #define RETSIGTYPE $ac_cv_type_signal
6163 _ACEOF
6164
6165
6166
6167 echo "$as_me:$LINENO: checking for speed_t" >&5
6168 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6169 if test "${emacs_cv_speed_t+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <termios.h>
6179 int
6180 main ()
6181 {
6182 speed_t x = 1;
6183 ;
6184 return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_speed_t=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 emacs_cv_speed_t=no
6215 fi
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6219 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6220 if test $emacs_cv_speed_t = yes; then
6221
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SPEED_T 1
6224 _ACEOF
6225
6226 fi
6227
6228 echo "$as_me:$LINENO: checking for struct timeval" >&5
6229 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6230 if test "${emacs_cv_struct_timeval+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #ifdef TIME_WITH_SYS_TIME
6240 #include <sys/time.h>
6241 #include <time.h>
6242 #else
6243 #ifdef HAVE_SYS_TIME_H
6244 #include <sys/time.h>
6245 #else
6246 #include <time.h>
6247 #endif
6248 #endif
6249 int
6250 main ()
6251 {
6252 static struct timeval x; x.tv_sec = x.tv_usec;
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 emacs_cv_struct_timeval=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 emacs_cv_struct_timeval=no
6285 fi
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287 fi
6288 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6289 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6290 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6291 if test $emacs_cv_struct_timeval = yes; then
6292
6293 cat >>confdefs.h <<\_ACEOF
6294 #define HAVE_TIMEVAL 1
6295 _ACEOF
6296
6297 fi
6298
6299 echo "$as_me:$LINENO: checking for struct exception" >&5
6300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6301 if test "${emacs_cv_struct_exception+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <math.h>
6311 int
6312 main ()
6313 {
6314 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 emacs_cv_struct_exception=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 emacs_cv_struct_exception=no
6347 fi
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 fi
6350 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6351 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6352 HAVE_EXCEPTION=$emacs_cv_struct_exception
6353 if test $emacs_cv_struct_exception != yes; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define NO_MATHERR 1
6357 _ACEOF
6358
6359 fi
6360
6361
6362 for ac_header in sys/socket.h
6363 do
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 else
6374 # Is the header compilable?
6375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 #include <$ac_header>
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_header_compiler=no
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6429 _ACEOF
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441 else
6442 ac_cpp_err=
6443 fi
6444 else
6445 ac_cpp_err=yes
6446 fi
6447 if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_preproc=no
6454 fi
6455 rm -f conftest.err conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 yes:no: )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6467 ;;
6468 no:yes:* )
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6481 (
6482 cat <<\_ASBOX
6483 ## ------------------------------------------ ##
6484 ## Report this to the AC_PACKAGE_NAME lists. ##
6485 ## ------------------------------------------ ##
6486 _ASBOX
6487 ) |
6488 sed "s/^/$as_me: WARNING: /" >&2
6489 ;;
6490 esac
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501 fi
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6506
6507 fi
6508
6509 done
6510
6511
6512 for ac_header in net/if.h
6513 do
6514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #if HAVE_SYS_SOCKET_H
6528 #include <sys/socket.h>
6529 #endif
6530
6531 #include <$ac_header>
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535 (eval $ac_compile) 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -z "$ac_c_werror_flag"
6543 || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 eval "$as_ac_Header=yes"
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 eval "$as_ac_Header=no"
6561 fi
6562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6563 fi
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6570
6571 fi
6572
6573 done
6574
6575
6576 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6577 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6578 if test "${ac_cv_struct_tm+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <time.h>
6589
6590 int
6591 main ()
6592 {
6593 struct tm *tp; tp->tm_sec;
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -z "$ac_c_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_struct_tm=time.h
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_struct_tm=sys/time.h
6626 fi
6627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 fi
6629 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6630 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6631 if test $ac_cv_struct_tm = sys/time.h; then
6632
6633 cat >>confdefs.h <<\_ACEOF
6634 #define TM_IN_SYS_TIME 1
6635 _ACEOF
6636
6637 fi
6638
6639 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6640 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6641 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6651 #include <$ac_cv_struct_tm>
6652
6653
6654 int
6655 main ()
6656 {
6657 static struct tm ac_aggr;
6658 if (ac_aggr.tm_zone)
6659 return 0;
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_member_struct_tm_tm_zone=yes
6687 else
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 #include <$ac_cv_struct_tm>
6699
6700
6701 int
6702 main ()
6703 {
6704 static struct tm ac_aggr;
6705 if (sizeof ac_aggr.tm_zone)
6706 return 0;
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_member_struct_tm_tm_zone=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_cv_member_struct_tm_tm_zone=no
6739 fi
6740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 fi
6744 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6745 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6746 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_STRUCT_TM_TM_ZONE 1
6750 _ACEOF
6751
6752
6753 fi
6754
6755 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6756
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_TM_ZONE 1
6759 _ACEOF
6760
6761 else
6762 echo "$as_me:$LINENO: checking for tzname" >&5
6763 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6764 if test "${ac_cv_var_tzname+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <time.h>
6774 #ifndef tzname /* For SGI. */
6775 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6776 #endif
6777
6778 int
6779 main ()
6780 {
6781 atoi(*tzname);
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788 (eval $ac_link) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_var_tzname=yes
6809 else
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_cv_var_tzname=no
6814 fi
6815 rm -f conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
6817 fi
6818 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6819 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6820 if test $ac_cv_var_tzname = yes; then
6821
6822 cat >>confdefs.h <<\_ACEOF
6823 #define HAVE_TZNAME 1
6824 _ACEOF
6825
6826 fi
6827 fi
6828
6829 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6830 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6831 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 #include <time.h>
6841
6842 int
6843 main ()
6844 {
6845 static struct tm ac_aggr;
6846 if (ac_aggr.tm_gmtoff)
6847 return 0;
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest.$ac_objext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_member_struct_tm_tm_gmtoff=yes
6875 else
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <time.h>
6886
6887 int
6888 main ()
6889 {
6890 static struct tm ac_aggr;
6891 if (sizeof ac_aggr.tm_gmtoff)
6892 return 0;
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_member_struct_tm_tm_gmtoff=yes
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_cv_member_struct_tm_tm_gmtoff=no
6925 fi
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_TM_GMTOFF 1
6936 _ACEOF
6937
6938 fi
6939
6940 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6952 #if HAVE_SYS_SOCKET_H
6953 #include <sys/socket.h>
6954 #endif
6955 #if HAVE_NET_IF_H
6956 #include <net/if.h>
6957 #endif
6958
6959 int
6960 main ()
6961 {
6962 static struct ifreq ac_aggr;
6963 if (ac_aggr.ifr_flags)
6964 return 0;
6965 ;
6966 return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_member_struct_ifreq_ifr_flags=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 #if HAVE_SYS_SOCKET_H
7004 #include <sys/socket.h>
7005 #endif
7006 #if HAVE_NET_IF_H
7007 #include <net/if.h>
7008 #endif
7009
7010 int
7011 main ()
7012 {
7013 static struct ifreq ac_aggr;
7014 if (sizeof ac_aggr.ifr_flags)
7015 return 0;
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_member_struct_ifreq_ifr_flags=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047 ac_cv_member_struct_ifreq_ifr_flags=no
7048 fi
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 fi
7053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7054 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7055 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7059 _ACEOF
7060
7061
7062 fi
7063 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7064 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7065 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 #if HAVE_SYS_SOCKET_H
7076 #include <sys/socket.h>
7077 #endif
7078 #if HAVE_NET_IF_H
7079 #include <net/if.h>
7080 #endif
7081
7082 int
7083 main ()
7084 {
7085 static struct ifreq ac_aggr;
7086 if (ac_aggr.ifr_hwaddr)
7087 return 0;
7088 ;
7089 return 0;
7090 }
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #if HAVE_SYS_SOCKET_H
7127 #include <sys/socket.h>
7128 #endif
7129 #if HAVE_NET_IF_H
7130 #include <net/if.h>
7131 #endif
7132
7133 int
7134 main ()
7135 {
7136 static struct ifreq ac_aggr;
7137 if (sizeof ac_aggr.ifr_hwaddr)
7138 return 0;
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7171 fi
7172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7173 fi
7174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7175 fi
7176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7177 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7178 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7179
7180 cat >>confdefs.h <<_ACEOF
7181 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7182 _ACEOF
7183
7184
7185 fi
7186 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7187 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7188 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7198 #if HAVE_SYS_SOCKET_H
7199 #include <sys/socket.h>
7200 #endif
7201 #if HAVE_NET_IF_H
7202 #include <net/if.h>
7203 #endif
7204
7205 int
7206 main ()
7207 {
7208 static struct ifreq ac_aggr;
7209 if (ac_aggr.ifr_netmask)
7210 return 0;
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_member_struct_ifreq_ifr_netmask=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 #if HAVE_SYS_SOCKET_H
7250 #include <sys/socket.h>
7251 #endif
7252 #if HAVE_NET_IF_H
7253 #include <net/if.h>
7254 #endif
7255
7256 int
7257 main ()
7258 {
7259 static struct ifreq ac_aggr;
7260 if (sizeof ac_aggr.ifr_netmask)
7261 return 0;
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_member_struct_ifreq_ifr_netmask=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_cv_member_struct_ifreq_ifr_netmask=no
7294 fi
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7300 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7301 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7302
7303 cat >>confdefs.h <<_ACEOF
7304 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7305 _ACEOF
7306
7307
7308 fi
7309 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7310 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7311 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #if HAVE_SYS_SOCKET_H
7322 #include <sys/socket.h>
7323 #endif
7324 #if HAVE_NET_IF_H
7325 #include <net/if.h>
7326 #endif
7327
7328 int
7329 main ()
7330 {
7331 static struct ifreq ac_aggr;
7332 if (ac_aggr.ifr_broadaddr)
7333 return 0;
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7372 #if HAVE_SYS_SOCKET_H
7373 #include <sys/socket.h>
7374 #endif
7375 #if HAVE_NET_IF_H
7376 #include <net/if.h>
7377 #endif
7378
7379 int
7380 main ()
7381 {
7382 static struct ifreq ac_aggr;
7383 if (sizeof ac_aggr.ifr_broadaddr)
7384 return 0;
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7417 fi
7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7424 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7428 _ACEOF
7429
7430
7431 fi
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7446 #endif
7447 #if HAVE_NET_IF_H
7448 #include <net/if.h>
7449 #endif
7450
7451 int
7452 main ()
7453 {
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_addr)
7456 return 0;
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_addr=yes
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7497 #endif
7498 #if HAVE_NET_IF_H
7499 #include <net/if.h>
7500 #endif
7501
7502 int
7503 main ()
7504 {
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_addr)
7507 return 0;
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_addr=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7538
7539 ac_cv_member_struct_ifreq_ifr_addr=no
7540 fi
7541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7542 fi
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7548
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7551 _ACEOF
7552
7553
7554 fi
7555
7556
7557
7558 echo "$as_me:$LINENO: checking for function prototypes" >&5
7559 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7560 if test "$ac_cv_prog_cc_stdc" != no; then
7561 echo "$as_me:$LINENO: result: yes" >&5
7562 echo "${ECHO_T}yes" >&6
7563
7564 cat >>confdefs.h <<\_ACEOF
7565 #define PROTOTYPES 1
7566 _ACEOF
7567
7568
7569 cat >>confdefs.h <<\_ACEOF
7570 #define __PROTOTYPES 1
7571 _ACEOF
7572
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 fi
7577
7578 echo "$as_me:$LINENO: checking for working volatile" >&5
7579 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7580 if test "${ac_cv_c_volatile+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589
7590 int
7591 main ()
7592 {
7593
7594 volatile int x;
7595 int * volatile y;
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_c_volatile=yes
7623 else
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627 ac_cv_c_volatile=no
7628 fi
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7632 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7633 if test $ac_cv_c_volatile = no; then
7634
7635 cat >>confdefs.h <<\_ACEOF
7636 #define volatile
7637 _ACEOF
7638
7639 fi
7640
7641 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7643 if test "${ac_cv_c_const+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652
7653 int
7654 main ()
7655 {
7656 /* FIXME: Include the comments suggested by Paul. */
7657 #ifndef __cplusplus
7658 /* Ultrix mips cc rejects this. */
7659 typedef int charset[2];
7660 const charset x;
7661 /* SunOS 4.1.1 cc rejects this. */
7662 char const *const *ccp;
7663 char **p;
7664 /* NEC SVR4.0.2 mips cc rejects this. */
7665 struct point {int x, y;};
7666 static struct point const zero = {0,0};
7667 /* AIX XL C 1.02.0.0 rejects this.
7668 It does not let you subtract one const X* pointer from another in
7669 an arm of an if-expression whose if-part is not a constant
7670 expression */
7671 const char *g = "string";
7672 ccp = &g + (g ? g-g : 0);
7673 /* HPUX 7.0 cc rejects these. */
7674 ++ccp;
7675 p = (char**) ccp;
7676 ccp = (char const *const *) p;
7677 { /* SCO 3.2v4 cc rejects this. */
7678 char *t;
7679 char const *s = 0 ? (char *) 0 : (char const *) 0;
7680
7681 *t++ = 0;
7682 }
7683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7684 int x[] = {25, 17};
7685 const int *foo = &x[0];
7686 ++foo;
7687 }
7688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7689 typedef const int *iptr;
7690 iptr p = 0;
7691 ++p;
7692 }
7693 { /* AIX XL C 1.02.0.0 rejects this saying
7694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7695 struct s { int j; const int *ap[3]; };
7696 struct s *b; b->j = 5;
7697 }
7698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7699 const int foo = 10;
7700 }
7701 #endif
7702
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_c_const=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_c_const=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7739 echo "${ECHO_T}$ac_cv_c_const" >&6
7740 if test $ac_cv_c_const = no; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define const
7744 _ACEOF
7745
7746 fi
7747
7748 echo "$as_me:$LINENO: checking for void * support" >&5
7749 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7750 if test "${emacs_cv_void_star+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759
7760 int
7761 main ()
7762 {
7763 void * foo;
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 emacs_cv_void_star=yes
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 emacs_cv_void_star=no
7796 fi
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7800 echo "${ECHO_T}$emacs_cv_void_star" >&6
7801 if test $emacs_cv_void_star = yes; then
7802 cat >>confdefs.h <<\_ACEOF
7803 #define POINTER_TYPE void
7804 _ACEOF
7805
7806 else
7807 cat >>confdefs.h <<\_ACEOF
7808 #define POINTER_TYPE char
7809 _ACEOF
7810
7811 fi
7812
7813
7814
7815
7816
7817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 cat >conftest.make <<\_ACEOF
7824 all:
7825 @echo 'ac_maketemp="$(MAKE)"'
7826 _ACEOF
7827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7829 if test -n "$ac_maketemp"; then
7830 eval ac_cv_prog_make_${ac_make}_set=yes
7831 else
7832 eval ac_cv_prog_make_${ac_make}_set=no
7833 fi
7834 rm -f conftest.make
7835 fi
7836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7837 echo "$as_me:$LINENO: result: yes" >&5
7838 echo "${ECHO_T}yes" >&6
7839 SET_MAKE=
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6
7843 SET_MAKE="MAKE=${MAKE-make}"
7844 fi
7845
7846
7847 echo "$as_me:$LINENO: checking for long file names" >&5
7848 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7849 if test "${ac_cv_sys_long_file_names+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 ac_cv_sys_long_file_names=yes
7853 # Test for long file names in all the places we know might matter:
7854 # . the current directory, where building will happen
7855 # $prefix/lib where we will be installing things
7856 # $exec_prefix/lib likewise
7857 # eval it to expand exec_prefix.
7858 # $TMPDIR if set, where it might want to write temporary files
7859 # if $TMPDIR is not set:
7860 # /tmp where it might want to write temporary files
7861 # /var/tmp likewise
7862 # /usr/tmp likewise
7863 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7864 ac_tmpdirs=$TMPDIR
7865 else
7866 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7867 fi
7868 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7869 test -d $ac_dir || continue
7870 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7871 ac_xdir=$ac_dir/cf$$
7872 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7873 ac_tf1=$ac_xdir/conftest9012345
7874 ac_tf2=$ac_xdir/conftest9012346
7875 (echo 1 >$ac_tf1) 2>/dev/null
7876 (echo 2 >$ac_tf2) 2>/dev/null
7877 ac_val=`cat $ac_tf1 2>/dev/null`
7878 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7879 ac_cv_sys_long_file_names=no
7880 rm -rf $ac_xdir 2>/dev/null
7881 break
7882 fi
7883 rm -rf $ac_xdir 2>/dev/null
7884 done
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7887 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7888 if test $ac_cv_sys_long_file_names = yes; then
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_LONG_FILE_NAMES 1
7892 _ACEOF
7893
7894 fi
7895
7896
7897 #### Choose a window system.
7898
7899 echo "$as_me:$LINENO: checking for X" >&5
7900 echo $ECHO_N "checking for X... $ECHO_C" >&6
7901
7902
7903 # Check whether --with-x or --without-x was given.
7904 if test "${with_x+set}" = set; then
7905 withval="$with_x"
7906
7907 fi;
7908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7909 if test "x$with_x" = xno; then
7910 # The user explicitly disabled X.
7911 have_x=disabled
7912 else
7913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7914 # Both variables are already set.
7915 have_x=yes
7916 else
7917 if test "${ac_cv_have_x+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 # One or both of the vars are not set, and there is no cached value.
7921 ac_x_includes=no ac_x_libraries=no
7922 rm -fr conftest.dir
7923 if mkdir conftest.dir; then
7924 cd conftest.dir
7925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7926 cat >Imakefile <<'_ACEOF'
7927 acfindx:
7928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7929 _ACEOF
7930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7934 for ac_extension in a so sl; do
7935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7936 test -f $ac_im_libdir/libX11.$ac_extension; then
7937 ac_im_usrlibdir=$ac_im_libdir; break
7938 fi
7939 done
7940 # Screen out bogus values from the imake configuration. They are
7941 # bogus both because they are the default anyway, and because
7942 # using them would break gcc on systems where it needs fixed includes.
7943 case $ac_im_incroot in
7944 /usr/include) ;;
7945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7946 esac
7947 case $ac_im_usrlibdir in
7948 /usr/lib | /lib) ;;
7949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7950 esac
7951 fi
7952 cd ..
7953 rm -fr conftest.dir
7954 fi
7955
7956 # Standard set of common directories for X headers.
7957 # Check X11 before X11Rn because it is often a symlink to the current release.
7958 ac_x_header_dirs='
7959 /usr/X11/include
7960 /usr/X11R6/include
7961 /usr/X11R5/include
7962 /usr/X11R4/include
7963
7964 /usr/include/X11
7965 /usr/include/X11R6
7966 /usr/include/X11R5
7967 /usr/include/X11R4
7968
7969 /usr/local/X11/include
7970 /usr/local/X11R6/include
7971 /usr/local/X11R5/include
7972 /usr/local/X11R4/include
7973
7974 /usr/local/include/X11
7975 /usr/local/include/X11R6
7976 /usr/local/include/X11R5
7977 /usr/local/include/X11R4
7978
7979 /usr/X386/include
7980 /usr/x386/include
7981 /usr/XFree86/include/X11
7982
7983 /usr/include
7984 /usr/local/include
7985 /usr/unsupported/include
7986 /usr/athena/include
7987 /usr/local/x11r5/include
7988 /usr/lpp/Xamples/include
7989
7990 /usr/openwin/include
7991 /usr/openwin/share/include'
7992
7993 if test "$ac_x_includes" = no; then
7994 # Guess where to find include files, by looking for Intrinsic.h.
7995 # First, try using that file with no special directory specified.
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <X11/Intrinsic.h>
8003 _ACEOF
8004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev/null; then
8012 if test -s conftest.err; then
8013 ac_cpp_err=$ac_c_preproc_warn_flag
8014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8015 else
8016 ac_cpp_err=
8017 fi
8018 else
8019 ac_cpp_err=yes
8020 fi
8021 if test -z "$ac_cpp_err"; then
8022 # We can compile using X headers with no special include directory.
8023 ac_x_includes=
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 for ac_dir in $ac_x_header_dirs; do
8029 if test -r "$ac_dir/X11/Intrinsic.h"; then
8030 ac_x_includes=$ac_dir
8031 break
8032 fi
8033 done
8034 fi
8035 rm -f conftest.err conftest.$ac_ext
8036 fi # $ac_x_includes = no
8037
8038 if test "$ac_x_libraries" = no; then
8039 # Check for the libraries.
8040 # See if we find them without any special options.
8041 # Don't add to $LIBS permanently.
8042 ac_save_LIBS=$LIBS
8043 LIBS="-lXt $LIBS"
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Intrinsic.h>
8051 int
8052 main ()
8053 {
8054 XtMalloc (0)
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 LIBS=$ac_save_LIBS
8082 # We can link X programs with no special library path.
8083 ac_x_libraries=
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 LIBS=$ac_save_LIBS
8089 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8090 do
8091 # Don't even attempt the hair of trying to link an X program!
8092 for ac_extension in a so sl; do
8093 if test -r $ac_dir/libXt.$ac_extension; then
8094 ac_x_libraries=$ac_dir
8095 break 2
8096 fi
8097 done
8098 done
8099 fi
8100 rm -f conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 fi # $ac_x_libraries = no
8103
8104 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8105 # Didn't find X anywhere. Cache the known absence of X.
8106 ac_cv_have_x="have_x=no"
8107 else
8108 # Record where we found X for the cache.
8109 ac_cv_have_x="have_x=yes \
8110 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8111 fi
8112 fi
8113
8114 fi
8115 eval "$ac_cv_have_x"
8116 fi # $with_x != no
8117
8118 if test "$have_x" != yes; then
8119 echo "$as_me:$LINENO: result: $have_x" >&5
8120 echo "${ECHO_T}$have_x" >&6
8121 no_x=yes
8122 else
8123 # If each of the values was on the command line, it overrides each guess.
8124 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8125 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8126 # Update the cache value to reflect the command line values.
8127 ac_cv_have_x="have_x=yes \
8128 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8129 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8130 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8131 fi
8132
8133 if test "$no_x" = yes; then
8134 window_system=none
8135 else
8136 window_system=x11
8137 fi
8138
8139 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8140 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8141 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8142 x_default_search_path=""
8143 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8144 x_search_path="\
8145 ${x_library}/X11/%L/%T/%N%C%S:\
8146 ${x_library}/X11/%l/%T/%N%C%S:\
8147 ${x_library}/X11/%T/%N%C%S:\
8148 ${x_library}/X11/%L/%T/%N%S:\
8149 ${x_library}/X11/%l/%T/%N%S:\
8150 ${x_library}/X11/%T/%N%S"
8151 if test x"${x_default_search_path}" = x; then
8152 x_default_search_path=${x_search_path}
8153 else
8154 x_default_search_path="${x_search_path}:${x_default_search_path}"
8155 fi
8156 done
8157 fi
8158 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8159 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8160 fi
8161
8162 if test x"${x_includes}" = x; then
8163 bitmapdir=/usr/include/X11/bitmaps
8164 else
8165 # accumulate include directories that have X11 bitmap subdirectories
8166 bmd_acc="dummyval"
8167 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8168 if test -d "${bmd}/X11/bitmaps"; then
8169 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8170 fi
8171 if test -d "${bmd}/bitmaps"; then
8172 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8173 fi
8174 done
8175 if test ${bmd_acc} != "dummyval"; then
8176 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8177 fi
8178 fi
8179
8180 case "${window_system}" in
8181 x11 )
8182 HAVE_X_WINDOWS=yes
8183 HAVE_X11=yes
8184 case "${with_x_toolkit}" in
8185 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8186 motif ) USE_X_TOOLKIT=MOTIF ;;
8187 gtk ) with_gtk=yes
8188 USE_X_TOOLKIT=none ;;
8189 no ) USE_X_TOOLKIT=none ;;
8190 * ) USE_X_TOOLKIT=maybe ;;
8191 esac
8192 ;;
8193 none )
8194 HAVE_X_WINDOWS=no
8195 HAVE_X11=no
8196 USE_X_TOOLKIT=none
8197 ;;
8198 esac
8199
8200 ### If we're using X11, we should use the X menu package.
8201 HAVE_MENUS=no
8202 case ${HAVE_X11} in
8203 yes ) HAVE_MENUS=yes ;;
8204 esac
8205
8206 if test "${opsys}" = "hpux9"; then
8207 case "${x_libraries}" in
8208 *X11R4* )
8209 opsysfile="s/hpux9-x11r4.h"
8210 ;;
8211 esac
8212 fi
8213
8214 if test "${opsys}" = "hpux9shr"; then
8215 case "${x_libraries}" in
8216 *X11R4* )
8217 opsysfile="s/hpux9shxr4.h"
8218 ;;
8219 esac
8220 fi
8221
8222 ### Compute the unexec source name from the object name.
8223 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8224
8225 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8226 # Assume not, until told otherwise.
8227 GNU_MALLOC=yes
8228 doug_lea_malloc=yes
8229 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8230 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8231 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8242 #define malloc_get_state innocuous_malloc_get_state
8243
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char malloc_get_state (); below.
8246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8247 <limits.h> exists even on freestanding compilers. */
8248
8249 #ifdef __STDC__
8250 # include <limits.h>
8251 #else
8252 # include <assert.h>
8253 #endif
8254
8255 #undef malloc_get_state
8256
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 #ifdef __cplusplus
8259 extern "C"
8260 {
8261 #endif
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8264 char malloc_get_state ();
8265 /* The GNU C library defines this for functions which it implements
8266 to always fail with ENOSYS. Some functions are actually named
8267 something starting with __ and the normal name is an alias. */
8268 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8269 choke me
8270 #else
8271 char (*f) () = malloc_get_state;
8272 #endif
8273 #ifdef __cplusplus
8274 }
8275 #endif
8276
8277 int
8278 main ()
8279 {
8280 return f != malloc_get_state;
8281 ;
8282 return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_func_malloc_get_state=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 ac_cv_func_malloc_get_state=no
8313 fi
8314 rm -f conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8318 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8319 if test $ac_cv_func_malloc_get_state = yes; then
8320 :
8321 else
8322 doug_lea_malloc=no
8323 fi
8324
8325 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8326 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8327 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define malloc_set_state innocuous_malloc_set_state
8339
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char malloc_set_state (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8344
8345 #ifdef __STDC__
8346 # include <limits.h>
8347 #else
8348 # include <assert.h>
8349 #endif
8350
8351 #undef malloc_set_state
8352
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 #ifdef __cplusplus
8355 extern "C"
8356 {
8357 #endif
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8360 char malloc_set_state ();
8361 /* The GNU C library defines this for functions which it implements
8362 to always fail with ENOSYS. Some functions are actually named
8363 something starting with __ and the normal name is an alias. */
8364 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8365 choke me
8366 #else
8367 char (*f) () = malloc_set_state;
8368 #endif
8369 #ifdef __cplusplus
8370 }
8371 #endif
8372
8373 int
8374 main ()
8375 {
8376 return f != malloc_set_state;
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_func_malloc_set_state=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_func_malloc_set_state=no
8409 fi
8410 rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 fi
8413 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8414 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8415 if test $ac_cv_func_malloc_set_state = yes; then
8416 :
8417 else
8418 doug_lea_malloc=no
8419 fi
8420
8421 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8422 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8423 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 extern void (* __after_morecore_hook)();
8433 int
8434 main ()
8435 {
8436 __after_morecore_hook = 0
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 emacs_cv_var___after_morecore_hook=yes
8464 else
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468 emacs_cv_var___after_morecore_hook=no
8469 fi
8470 rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 fi
8473 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8474 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8475 if test $emacs_cv_var___after_morecore_hook = no; then
8476 doug_lea_malloc=no
8477 fi
8478 if test "${system_malloc}" = "yes"; then
8479 GNU_MALLOC=no
8480 GNU_MALLOC_reason="
8481 (The GNU allocators don't work with this system configuration.)"
8482 fi
8483 if test "$doug_lea_malloc" = "yes" ; then
8484 if test "$GNU_MALLOC" = yes ; then
8485 GNU_MALLOC_reason="
8486 (Using Doug Lea's new malloc from the GNU C Library.)"
8487 fi
8488
8489 cat >>confdefs.h <<\_ACEOF
8490 #define DOUG_LEA_MALLOC 1
8491 _ACEOF
8492
8493 fi
8494
8495 if test x"${REL_ALLOC}" = x; then
8496 REL_ALLOC=${GNU_MALLOC}
8497 fi
8498
8499
8500
8501
8502 for ac_header in stdlib.h unistd.h
8503 do
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo "$as_me:$LINENO: checking for $ac_header" >&5
8507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 fi
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 else
8514 # Is the header compilable?
8515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_header_compiler=no
8554 fi
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8558
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <$ac_header>
8569 _ACEOF
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev/null; then
8578 if test -s conftest.err; then
8579 ac_cpp_err=$ac_c_preproc_warn_flag
8580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8581 else
8582 ac_cpp_err=
8583 fi
8584 else
8585 ac_cpp_err=yes
8586 fi
8587 if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_header_preproc=no
8594 fi
8595 rm -f conftest.err conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8598
8599 # So? What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8607 ;;
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8621 (
8622 cat <<\_ASBOX
8623 ## ------------------------------------------ ##
8624 ## Report this to the AC_PACKAGE_NAME lists. ##
8625 ## ------------------------------------------ ##
8626 _ASBOX
8627 ) |
8628 sed "s/^/$as_me: WARNING: /" >&2
8629 ;;
8630 esac
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 eval "$as_ac_Header=\$ac_header_preproc"
8637 fi
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640
8641 fi
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645 _ACEOF
8646
8647 fi
8648
8649 done
8650
8651
8652 for ac_func in getpagesize
8653 do
8654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655 echo "$as_me:$LINENO: checking for $ac_func" >&5
8656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_var+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8668 #define $ac_func innocuous_$ac_func
8669
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char $ac_func (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8674
8675 #ifdef __STDC__
8676 # include <limits.h>
8677 #else
8678 # include <assert.h>
8679 #endif
8680
8681 #undef $ac_func
8682
8683 /* Override any gcc2 internal prototype to avoid an error. */
8684 #ifdef __cplusplus
8685 extern "C"
8686 {
8687 #endif
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690 char $ac_func ();
8691 /* The GNU C library defines this for functions which it implements
8692 to always fail with ENOSYS. Some functions are actually named
8693 something starting with __ and the normal name is an alias. */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8695 choke me
8696 #else
8697 char (*f) () = $ac_func;
8698 #endif
8699 #ifdef __cplusplus
8700 }
8701 #endif
8702
8703 int
8704 main ()
8705 {
8706 return f != $ac_func;
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_var=yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 eval "$as_ac_var=no"
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 fi
8751 done
8752
8753 echo "$as_me:$LINENO: checking for working mmap" >&5
8754 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_mmap_fixed_mapped=no
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 /* malloc might have been renamed as rpl_malloc. */
8769 #undef malloc
8770
8771 /* Thanks to Mike Haertel and Jim Avera for this test.
8772 Here is a matrix of mmap possibilities:
8773 mmap private not fixed
8774 mmap private fixed at somewhere currently unmapped
8775 mmap private fixed at somewhere already mapped
8776 mmap shared not fixed
8777 mmap shared fixed at somewhere currently unmapped
8778 mmap shared fixed at somewhere already mapped
8779 For private mappings, we should verify that changes cannot be read()
8780 back from the file, nor mmap's back from the file at a different
8781 address. (There have been systems where private was not correctly
8782 implemented like the infamous i386 svr4.0, and systems where the
8783 VM page cache was not coherent with the file system buffer cache
8784 like early versions of FreeBSD and possibly contemporary NetBSD.)
8785 For shared mappings, we should conversely verify that changes get
8786 propagated back to all the places they're supposed to be.
8787
8788 Grep wants private fixed already mapped.
8789 The main things grep needs to know about mmap are:
8790 * does it exist and is it safe to write into the mmap'd area
8791 * how to use it (BSD variants) */
8792
8793 #include <fcntl.h>
8794 #include <sys/mman.h>
8795
8796 #if !STDC_HEADERS && !HAVE_STDLIB_H
8797 char *malloc ();
8798 #endif
8799
8800 /* This mess was copied from the GNU getpagesize.h. */
8801 #if !HAVE_GETPAGESIZE
8802 /* Assume that all systems that can run configure have sys/param.h. */
8803 # if !HAVE_SYS_PARAM_H
8804 # define HAVE_SYS_PARAM_H 1
8805 # endif
8806
8807 # ifdef _SC_PAGESIZE
8808 # define getpagesize() sysconf(_SC_PAGESIZE)
8809 # else /* no _SC_PAGESIZE */
8810 # if HAVE_SYS_PARAM_H
8811 # include <sys/param.h>
8812 # ifdef EXEC_PAGESIZE
8813 # define getpagesize() EXEC_PAGESIZE
8814 # else /* no EXEC_PAGESIZE */
8815 # ifdef NBPG
8816 # define getpagesize() NBPG * CLSIZE
8817 # ifndef CLSIZE
8818 # define CLSIZE 1
8819 # endif /* no CLSIZE */
8820 # else /* no NBPG */
8821 # ifdef NBPC
8822 # define getpagesize() NBPC
8823 # else /* no NBPC */
8824 # ifdef PAGESIZE
8825 # define getpagesize() PAGESIZE
8826 # endif /* PAGESIZE */
8827 # endif /* no NBPC */
8828 # endif /* no NBPG */
8829 # endif /* no EXEC_PAGESIZE */
8830 # else /* no HAVE_SYS_PARAM_H */
8831 # define getpagesize() 8192 /* punt totally */
8832 # endif /* no HAVE_SYS_PARAM_H */
8833 # endif /* no _SC_PAGESIZE */
8834
8835 #endif /* no HAVE_GETPAGESIZE */
8836
8837 int
8838 main ()
8839 {
8840 char *data, *data2, *data3;
8841 int i, pagesize;
8842 int fd;
8843
8844 pagesize = getpagesize ();
8845
8846 /* First, make a file with some known garbage in it. */
8847 data = (char *) malloc (pagesize);
8848 if (!data)
8849 exit (1);
8850 for (i = 0; i < pagesize; ++i)
8851 *(data + i) = rand ();
8852 umask (0);
8853 fd = creat ("conftest.mmap", 0600);
8854 if (fd < 0)
8855 exit (1);
8856 if (write (fd, data, pagesize) != pagesize)
8857 exit (1);
8858 close (fd);
8859
8860 /* Next, try to mmap the file at a fixed address which already has
8861 something else allocated at it. If we can, also make sure that
8862 we see the same garbage. */
8863 fd = open ("conftest.mmap", O_RDWR);
8864 if (fd < 0)
8865 exit (1);
8866 data2 = (char *) malloc (2 * pagesize);
8867 if (!data2)
8868 exit (1);
8869 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8872 exit (1);
8873 for (i = 0; i < pagesize; ++i)
8874 if (*(data + i) != *(data2 + i))
8875 exit (1);
8876
8877 /* Finally, make sure that changes to the mapped area do not
8878 percolate back to the file as seen by read(). (This is a bug on
8879 some variants of i386 svr4.0.) */
8880 for (i = 0; i < pagesize; ++i)
8881 *(data2 + i) = *(data2 + i) + 1;
8882 data3 = (char *) malloc (pagesize);
8883 if (!data3)
8884 exit (1);
8885 if (read (fd, data3, pagesize) != pagesize)
8886 exit (1);
8887 for (i = 0; i < pagesize; ++i)
8888 if (*(data + i) != *(data3 + i))
8889 exit (1);
8890 close (fd);
8891 exit (0);
8892 }
8893 _ACEOF
8894 rm -f conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_func_mmap_fixed_mapped=yes
8906 else
8907 echo "$as_me: program exited with status $ac_status" >&5
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ( exit $ac_status )
8912 ac_cv_func_mmap_fixed_mapped=no
8913 fi
8914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 fi
8917 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8920
8921 cat >>confdefs.h <<\_ACEOF
8922 #define HAVE_MMAP 1
8923 _ACEOF
8924
8925 fi
8926 rm -f conftest.mmap
8927
8928 if test $use_mmap_for_buffers = yes; then
8929 REL_ALLOC=no
8930 fi
8931
8932 LIBS="$libsrc_libs $LIBS"
8933
8934
8935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8936 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8937 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-ldnet $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char dnet_ntoa ();
8956 int
8957 main ()
8958 {
8959 dnet_ntoa ();
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_lib_dnet_dnet_ntoa=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 ac_cv_lib_dnet_dnet_ntoa=no
8992 fi
8993 rm -f conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_lib_save_LIBS
8996 fi
8997 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8998 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8999 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_LIBDNET 1
9002 _ACEOF
9003
9004 LIBS="-ldnet $LIBS"
9005
9006 fi
9007
9008
9009 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9010 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9011 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lXbsd $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022
9023
9024 int
9025 main ()
9026 {
9027 main ();
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_Xbsd_main=yes
9055 else
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 ac_cv_lib_Xbsd_main=no
9060 fi
9061 rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9066 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9067 if test $ac_cv_lib_Xbsd_main = yes; then
9068 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9069 fi
9070
9071
9072
9073 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9074 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9075 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lpthreads $LIBS"
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086
9087 /* Override any gcc2 internal prototype to avoid an error. */
9088 #ifdef __cplusplus
9089 extern "C"
9090 #endif
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9093 char cma_open ();
9094 int
9095 main ()
9096 {
9097 cma_open ();
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_cv_lib_pthreads_cma_open=yes
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 ac_cv_lib_pthreads_cma_open=no
9130 fi
9131 rm -f conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9134 fi
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9136 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9137 if test $ac_cv_lib_pthreads_cma_open = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_LIBPTHREADS 1
9140 _ACEOF
9141
9142 LIBS="-lpthreads $LIBS"
9143
9144 fi
9145
9146
9147 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9148 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9149 if test -d /usr/X386/include; then
9150 HAVE_XFREE386=yes
9151 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9152 else
9153 HAVE_XFREE386=no
9154 fi
9155 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9156 echo "${ECHO_T}$HAVE_XFREE386" >&6
9157
9158
9159 case ${host_os} in
9160 aix*)
9161 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9162 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9163 if test "${gdb_cv_bigtoc+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166
9167 case $GCC in
9168 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9169 *) gdb_cv_bigtoc=-bbigtoc ;;
9170 esac
9171
9172 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179
9180 int
9181 main ()
9182 {
9183 int i;
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 :
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 gdb_cv_bigtoc=
9216 fi
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219
9220 fi
9221 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9222 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9223 ;;
9224 esac
9225
9226 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9227 # used for the tests that follow. We set them back to REAL_CFLAGS and
9228 # REAL_CPPFLAGS later on.
9229
9230 REAL_CPPFLAGS="$CPPFLAGS"
9231
9232 if test "${HAVE_X11}" = "yes"; then
9233 DEFS="$C_SWITCH_X_SITE $DEFS"
9234 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9235 LIBS="$LIBX $LIBS"
9236 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9237 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9238
9239 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9240 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9241 # but it's more convenient here to set LD_RUN_PATH
9242 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9243 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9244 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9245 export LD_RUN_PATH
9246 fi
9247
9248 if test "${opsys}" = "gnu-linux"; then
9249 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9250 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257
9258 int
9259 main ()
9260 {
9261 XOpenDisplay ("foo");
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 xlinux_first_failure=no
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 xlinux_first_failure=yes
9294 fi
9295 rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 if test "${xlinux_first_failure}" = "yes"; then
9298 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9299 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9300 OLD_CPPFLAGS="$CPPFLAGS"
9301 OLD_LIBS="$LIBS"
9302 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9303 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9304 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9305 LIBS="$LIBS -b i486-linuxaout"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312
9313 int
9314 main ()
9315 {
9316 XOpenDisplay ("foo");
9317 ;
9318 return 0;
9319 }
9320 _ACEOF
9321 rm -f conftest.$ac_objext conftest$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 xlinux_second_failure=no
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 xlinux_second_failure=yes
9349 fi
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 if test "${xlinux_second_failure}" = "yes"; then
9353 # If we get the same failure with -b, there is no use adding -b.
9354 # So take it out. This plays safe.
9355 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9356 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9357 CPPFLAGS="$OLD_CPPFLAGS"
9358 LIBS="$OLD_LIBS"
9359 echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9361 else
9362 echo "$as_me:$LINENO: result: yes" >&5
9363 echo "${ECHO_T}yes" >&6
9364 fi
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367 echo "${ECHO_T}no" >&6
9368 fi
9369 fi
9370
9371 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9372 # header files included from there.
9373 echo "$as_me:$LINENO: checking for Xkb" >&5
9374 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <X11/Xlib.h>
9382 #include <X11/XKBlib.h>
9383 int
9384 main ()
9385 {
9386 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 emacs_xkb=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 emacs_xkb=no
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9423 echo "${ECHO_T}$emacs_xkb" >&6
9424 if test $emacs_xkb = yes; then
9425
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_XKBGETKEYBOARD 1
9428 _ACEOF
9429
9430 fi
9431
9432
9433
9434
9435
9436 for ac_func in XrmSetDatabase XScreenResourceString \
9437 XScreenNumberOfScreen XSetWMProtocols
9438 do
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9454
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9459
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9465
9466 #undef $ac_func
9467
9468 /* Override any gcc2 internal prototype to avoid an error. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 {
9472 #endif
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9475 char $ac_func ();
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480 choke me
9481 #else
9482 char (*f) () = $ac_func;
9483 #endif
9484 #ifdef __cplusplus
9485 }
9486 #endif
9487
9488 int
9489 main ()
9490 {
9491 return f != $ac_func;
9492 ;
9493 return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 eval "$as_ac_var=no"
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534
9535 fi
9536 done
9537
9538 fi
9539
9540 if test "${window_system}" = "x11"; then
9541 echo "$as_me:$LINENO: checking X11 version 6" >&5
9542 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9543 if test "${emacs_cv_x11_version_6+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 #include <X11/Xlib.h>
9553 int
9554 main ()
9555 {
9556 #if XlibSpecificationRelease < 6
9557 fail;
9558 #endif
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 emacs_cv_x11_version_6=yes
9587 else
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 emacs_cv_x11_version_6=no
9592 fi
9593 rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 fi
9596
9597 if test $emacs_cv_x11_version_6 = yes; then
9598 echo "$as_me:$LINENO: result: 6 or newer" >&5
9599 echo "${ECHO_T}6 or newer" >&6
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_X11R6 1
9603 _ACEOF
9604
9605 else
9606 echo "$as_me:$LINENO: result: before 6" >&5
9607 echo "${ECHO_T}before 6" >&6
9608 fi
9609 fi
9610
9611 if test "${window_system}" = "x11"; then
9612 echo "$as_me:$LINENO: checking X11 version 5" >&5
9613 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9614 if test "${emacs_cv_x11_version_5+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <X11/Xlib.h>
9624 int
9625 main ()
9626 {
9627 #if XlibSpecificationRelease < 5
9628 fail;
9629 #endif
9630
9631 ;
9632 return 0;
9633 }
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 emacs_cv_x11_version_5=yes
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662 emacs_cv_x11_version_5=no
9663 fi
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 fi
9667
9668 if test $emacs_cv_x11_version_5 = yes; then
9669 echo "$as_me:$LINENO: result: 5 or newer" >&5
9670 echo "${ECHO_T}5 or newer" >&6
9671 HAVE_X11R5=yes
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_X11R5 1
9675 _ACEOF
9676
9677 else
9678 HAVE_X11R5=no
9679 echo "$as_me:$LINENO: result: before 5" >&5
9680 echo "${ECHO_T}before 5" >&6
9681 fi
9682 fi
9683
9684
9685
9686 HAVE_GTK=no
9687 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9688 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9689 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9690 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9691 { (exit 1); exit 1; }; };
9692 fi
9693 GLIB_REQUIRED=2.0.1
9694 GTK_REQUIRED=2.0.1
9695 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9696
9697 if test "X${with_pkg_config_prog}" != X; then
9698 PKG_CONFIG="${with_pkg_config_prog}"
9699 fi
9700
9701 succeeded=no
9702
9703 if test -z "$PKG_CONFIG"; then
9704 # Extract the first word of "pkg-config", so it can be a program name with args.
9705 set dummy pkg-config; ac_word=$2
9706 echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 case $PKG_CONFIG in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9714 ;;
9715 *)
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9718 do
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9726 fi
9727 done
9728 done
9729
9730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9731 ;;
9732 esac
9733 fi
9734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9735
9736 if test -n "$PKG_CONFIG"; then
9737 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9738 echo "${ECHO_T}$PKG_CONFIG" >&6
9739 else
9740 echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9742 fi
9743
9744 fi
9745
9746 if test "$PKG_CONFIG" = "no" ; then
9747 echo "*** The pkg-config script could not be found. Make sure it is"
9748 echo "*** in your path, or give the full path to pkg-config with"
9749 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9750 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9751 else
9752 PKG_CONFIG_MIN_VERSION=0.9.0
9753 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9754 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9755 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9756
9757 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9758 echo "$as_me:$LINENO: result: yes" >&5
9759 echo "${ECHO_T}yes" >&6
9760 succeeded=yes
9761
9762 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9763 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9764 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9765 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9766 echo "${ECHO_T}$GTK_CFLAGS" >&6
9767
9768 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9769 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9770 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9771 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9772 echo "${ECHO_T}$GTK_LIBS" >&6
9773 else
9774 GTK_CFLAGS=""
9775 GTK_LIBS=""
9776 ## If we have a custom action on failure, don't print errors, but
9777 ## do set a variable so people can do so.
9778 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9779 echo $GTK_PKG_ERRORS
9780 fi
9781
9782
9783
9784 else
9785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9787 fi
9788 fi
9789
9790 if test $succeeded = yes; then
9791 :
9792 else
9793 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9794 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9795 { (exit 1); exit 1; }; }
9796 fi
9797
9798
9799
9800 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9801 CFLAGS="$CFLAGS $GTK_CFLAGS"
9802 LIBS="$GTK_LIBS $LIBS"
9803 HAVE_GTK=yes
9804
9805 cat >>confdefs.h <<\_ACEOF
9806 #define HAVE_GTK 1
9807 _ACEOF
9808
9809 USE_X_TOOLKIT=none
9810
9811 if test "$with_toolkit_scroll_bars" != no; then
9812 with_toolkit_scroll_bars=yes
9813 fi
9814
9815 HAVE_GTK_MULTIDISPLAY=no
9816
9817 for ac_func in gdk_display_open
9818 do
9819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_func" >&5
9821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_var+set}\" = set"; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define $ac_func innocuous_$ac_func
9834
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9845
9846 #undef $ac_func
9847
9848 /* Override any gcc2 internal prototype to avoid an error. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 {
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char $ac_func ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9860 choke me
9861 #else
9862 char (*f) () = $ac_func;
9863 #endif
9864 #ifdef __cplusplus
9865 }
9866 #endif
9867
9868 int
9869 main ()
9870 {
9871 return f != $ac_func;
9872 ;
9873 return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 eval "$as_ac_var=yes"
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 eval "$as_ac_var=no"
9904 fi
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 fi
9908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9910 if test `eval echo '${'$as_ac_var'}'` = yes; then
9911 cat >>confdefs.h <<_ACEOF
9912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9913 _ACEOF
9914 HAVE_GTK_MULTIDISPLAY=yes
9915 fi
9916 done
9917
9918 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9919
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_GTK_MULTIDISPLAY 1
9922 _ACEOF
9923
9924 fi
9925 HAVE_GTK_FILE_SELECTION=no
9926
9927 for ac_func in gtk_file_selection_new
9928 do
9929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9930 echo "$as_me:$LINENO: checking for $ac_func" >&5
9931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9932 if eval "test \"\${$as_ac_var+set}\" = set"; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9943 #define $ac_func innocuous_$ac_func
9944
9945 /* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char $ac_func (); below.
9947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9948 <limits.h> exists even on freestanding compilers. */
9949
9950 #ifdef __STDC__
9951 # include <limits.h>
9952 #else
9953 # include <assert.h>
9954 #endif
9955
9956 #undef $ac_func
9957
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 {
9962 #endif
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9965 char $ac_func ();
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 choke me
9971 #else
9972 char (*f) () = $ac_func;
9973 #endif
9974 #ifdef __cplusplus
9975 }
9976 #endif
9977
9978 int
9979 main ()
9980 {
9981 return f != $ac_func;
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 eval "$as_ac_var=yes"
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013 eval "$as_ac_var=no"
10014 fi
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 fi
10018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10020 if test `eval echo '${'$as_ac_var'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10023 _ACEOF
10024 HAVE_GTK_FILE_SELECTION=yes
10025 fi
10026 done
10027
10028
10029 HAVE_GTK_FILE_CHOOSER=no
10030
10031 for ac_func in gtk_file_chooser_dialog_new
10032 do
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10048
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10053
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10059
10060 #undef $ac_func
10061
10062 /* Override any gcc2 internal prototype to avoid an error. */
10063 #ifdef __cplusplus
10064 extern "C"
10065 {
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074 choke me
10075 #else
10076 char (*f) () = $ac_func;
10077 #endif
10078 #ifdef __cplusplus
10079 }
10080 #endif
10081
10082 int
10083 main ()
10084 {
10085 return f != $ac_func;
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 eval "$as_ac_var=no"
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128 HAVE_GTK_FILE_CHOOSER=yes
10129 fi
10130 done
10131
10132
10133 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10134 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_GTK_FILE_BOTH 1
10138 _ACEOF
10139
10140 fi
10141
10142 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10143 HAVE_GTK_AND_PTHREAD=no
10144
10145 for ac_header in pthread.h
10146 do
10147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo "$as_me:$LINENO: checking for $ac_header" >&5
10150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 fi
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10156 else
10157 # Is the header compilable?
10158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #include <$ac_header>
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_header_compiler=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_header_compiler=no
10197 fi
10198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10200 echo "${ECHO_T}$ac_header_compiler" >&6
10201
10202 # Is the header present?
10203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <$ac_header>
10212 _ACEOF
10213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null; then
10221 if test -s conftest.err; then
10222 ac_cpp_err=$ac_c_preproc_warn_flag
10223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10224 else
10225 ac_cpp_err=
10226 fi
10227 else
10228 ac_cpp_err=yes
10229 fi
10230 if test -z "$ac_cpp_err"; then
10231 ac_header_preproc=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_header_preproc=no
10237 fi
10238 rm -f conftest.err conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10240 echo "${ECHO_T}$ac_header_preproc" >&6
10241
10242 # So? What about this header?
10243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10244 yes:no: )
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10249 ac_header_preproc=yes
10250 ;;
10251 no:yes:* )
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10264 (
10265 cat <<\_ASBOX
10266 ## ------------------------------------------ ##
10267 ## Report this to the AC_PACKAGE_NAME lists. ##
10268 ## ------------------------------------------ ##
10269 _ASBOX
10270 ) |
10271 sed "s/^/$as_me: WARNING: /" >&2
10272 ;;
10273 esac
10274 echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 eval "$as_ac_Header=\$ac_header_preproc"
10280 fi
10281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10283
10284 fi
10285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10286 cat >>confdefs.h <<_ACEOF
10287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 _ACEOF
10289
10290 fi
10291
10292 done
10293
10294 if test "$ac_cv_header_pthread_h"; then
10295 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10296 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10297 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lpthread $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315 char pthread_self ();
10316 int
10317 main ()
10318 {
10319 pthread_self ();
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_lib_pthread_pthread_self=yes
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ac_cv_lib_pthread_pthread_self=no
10352 fi
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10356 fi
10357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10358 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10359 if test $ac_cv_lib_pthread_pthread_self = yes; then
10360 HAVE_GTK_AND_PTHREAD=yes
10361 fi
10362
10363 fi
10364 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10365 GTK_LIBS="$GTK_LIBS -lpthread"
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_GTK_AND_PTHREAD 1
10369 _ACEOF
10370
10371 fi
10372 fi
10373 fi
10374
10375 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10376 if test x"${HAVE_X11R5}" = xyes; then
10377 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10378 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10379 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h. */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388
10389 #include <X11/Intrinsic.h>
10390 #include <X11/Xaw/Simple.h>
10391 int
10392 main ()
10393 {
10394
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -z "$ac_c_werror_flag"
10409 || test ! -s conftest.err'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 emacs_cv_x11_version_5_with_xaw=yes
10422 else
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 emacs_cv_x11_version_5_with_xaw=no
10427 fi
10428 rm -f conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 fi
10431
10432 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10433 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10434 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10435 USE_X_TOOLKIT=LUCID
10436 else
10437 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10438 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10439 USE_X_TOOLKIT=none
10440 fi
10441 else
10442 USE_X_TOOLKIT=none
10443 fi
10444 fi
10445
10446 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10447
10448 if test "${USE_X_TOOLKIT}" != "none"; then
10449 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10450 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10451 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <X11/Intrinsic.h>
10461 int
10462 main ()
10463 {
10464 #if XtSpecificationRelease < 6
10465 fail;
10466 #endif
10467
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 emacs_cv_x11_toolkit_version_6=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 emacs_cv_x11_toolkit_version_6=no
10500 fi
10501 rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503 fi
10504
10505 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10506 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10507 echo "$as_me:$LINENO: result: 6 or newer" >&5
10508 echo "${ECHO_T}6 or newer" >&6
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_X11XTR6 1
10512 _ACEOF
10513
10514 else
10515 echo "$as_me:$LINENO: result: before 6" >&5
10516 echo "${ECHO_T}before 6" >&6
10517 fi
10518
10519 OLDLIBS="$LIBS"
10520 if test x$HAVE_X11XTR6 = xyes; then
10521 LIBS="-lXt -lSM -lICE $LIBS"
10522 else
10523 LIBS="-lXt $LIBS"
10524 fi
10525
10526 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10527 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10528 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lXmu $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char XmuConvertStandardSelection ();
10547 int
10548 main ()
10549 {
10550 XmuConvertStandardSelection ();
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10583 fi
10584 rm -f conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10587 fi
10588 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10589 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10590 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_LIBXMU 1
10593 _ACEOF
10594
10595 LIBS="-lXmu $LIBS"
10596
10597 fi
10598
10599 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10600 fi
10601
10602 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10603 if test "${HAVE_X11}" = "yes"; then
10604 if test "${USE_X_TOOLKIT}" != "none"; then
10605
10606 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10607 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10608 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-lXext $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char XShapeQueryExtension ();
10627 int
10628 main ()
10629 {
10630 XShapeQueryExtension ();
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_lib_Xext_XShapeQueryExtension=yes
10658 else
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 ac_cv_lib_Xext_XShapeQueryExtension=no
10663 fi
10664 rm -f conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10669 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10670 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define HAVE_LIBXEXT 1
10673 _ACEOF
10674
10675 LIBS="-lXext $LIBS"
10676
10677 fi
10678
10679 fi
10680 fi
10681
10682 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10683 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10684 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10685 if test "${emacs_cv_lesstif+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 # We put this in CFLAGS temporarily to precede other -I options
10689 # that might be in CFLAGS temporarily.
10690 # We put this in CPPFLAGS where it precedes the other -I options.
10691 OLD_CPPFLAGS=$CPPFLAGS
10692 OLD_CFLAGS=$CFLAGS
10693 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10694 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10702 int
10703 main ()
10704 {
10705 int x = 5;
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 emacs_cv_lesstif=yes
10733 else
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737 emacs_cv_lesstif=no
10738 fi
10739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740 fi
10741 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10742 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10743 if test $emacs_cv_lesstif = yes; then
10744 # Make sure this -I option remains in CPPFLAGS after it is set
10745 # back to REAL_CPPFLAGS.
10746 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10747 # have those other -I options anyway. Ultimately, having this
10748 # directory ultimately in CPPFLAGS will be enough.
10749 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10750 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10751 else
10752 CFLAGS=$OLD_CFLAGS
10753 CPPFLAGS=$OLD_CPPFLAGS
10754 fi
10755 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10756 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10757 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 #include <Xm/Xm.h>
10767 int
10768 main ()
10769 {
10770 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10771 int x = 5;
10772 #else
10773 Motif version prior to 2.1.
10774 #endif
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 emacs_cv_motif_version_2_1=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 emacs_cv_motif_version_2_1=no
10807 fi
10808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10809 fi
10810 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10811 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10812 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10813 if test $emacs_cv_motif_version_2_1 = yes; then
10814 HAVE_LIBXP=no
10815
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_MOTIF_2_1 1
10818 _ACEOF
10819
10820 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10821 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10822 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lXp $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833
10834 /* Override any gcc2 internal prototype to avoid an error. */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10840 char XpCreateContext ();
10841 int
10842 main ()
10843 {
10844 XpCreateContext ();
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_lib_Xp_XpCreateContext=yes
10872 else
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_lib_Xp_XpCreateContext=no
10877 fi
10878 rm -f conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10881 fi
10882 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10883 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10884 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10885 HAVE_LIBXP=yes
10886 fi
10887
10888 if test ${HAVE_LIBXP} = yes; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_LIBXP 1
10892 _ACEOF
10893
10894 fi
10895 fi
10896 fi
10897
10898 ### Is -lXaw3d available?
10899 HAVE_XAW3D=no
10900 if test "${HAVE_X11}" = "yes"; then
10901 if test "${USE_X_TOOLKIT}" != "none"; then
10902 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10903 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10904 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <X11/Xaw3d/Scrollbar.h>
10914 _ACEOF
10915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926 else
10927 ac_cpp_err=
10928 fi
10929 else
10930 ac_cpp_err=yes
10931 fi
10932 if test -z "$ac_cpp_err"; then
10933 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10939 fi
10940 rm -f conftest.err conftest.$ac_ext
10941 fi
10942 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10943 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10944 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10945 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10946 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10947 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-lXaw3d $LIBS"
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958
10959 /* Override any gcc2 internal prototype to avoid an error. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10965 char XawScrollbarSetThumb ();
10966 int
10967 main ()
10968 {
10969 XawScrollbarSetThumb ();
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag"
10984 || test ! -s conftest.err'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11002 fi
11003 rm -f conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11008 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11009 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11010 HAVE_XAW3D=yes
11011 fi
11012
11013 fi
11014
11015
11016 if test "${HAVE_XAW3D}" = "yes"; then
11017
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_XAW3D 1
11020 _ACEOF
11021
11022 fi
11023 fi
11024 fi
11025
11026
11027
11028 USE_TOOLKIT_SCROLL_BARS=no
11029 if test "${with_toolkit_scroll_bars}" != "no"; then
11030 if test "${USE_X_TOOLKIT}" != "none"; then
11031 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11032 cat >>confdefs.h <<\_ACEOF
11033 #define USE_TOOLKIT_SCROLL_BARS 1
11034 _ACEOF
11035
11036 HAVE_XAW3D=no
11037 USE_TOOLKIT_SCROLL_BARS=yes
11038 elif test "${HAVE_XAW3D}" = "yes"; then
11039 cat >>confdefs.h <<\_ACEOF
11040 #define USE_TOOLKIT_SCROLL_BARS 1
11041 _ACEOF
11042
11043 USE_TOOLKIT_SCROLL_BARS=yes
11044 fi
11045 elif test "${HAVE_GTK}" = "yes"; then
11046 cat >>confdefs.h <<\_ACEOF
11047 #define USE_TOOLKIT_SCROLL_BARS 1
11048 _ACEOF
11049
11050 USE_TOOLKIT_SCROLL_BARS=yes
11051 fi
11052 fi
11053
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060
11061 #include <X11/Xlib.h>
11062 #include <X11/Xresource.h>
11063 int
11064 main ()
11065 {
11066 XIMProc callback;
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 HAVE_XIM=yes
11094
11095 cat >>confdefs.h <<\_ACEOF
11096 #define HAVE_XIM 1
11097 _ACEOF
11098
11099 else
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103 HAVE_XIM=no
11104 fi
11105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11106
11107
11108 if test "${with_xim}" != "no"; then
11109
11110 cat >>confdefs.h <<\_ACEOF
11111 #define USE_XIM 1
11112 _ACEOF
11113
11114 fi
11115
11116
11117 if test "${HAVE_XIM}" != "no"; then
11118 late_CFLAGS=$CFLAGS
11119 if test "$GCC" = yes; then
11120 CFLAGS="$CFLAGS --pedantic-errors"
11121 fi
11122 cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h. */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128
11129 #include <X11/Xlib.h>
11130 #include <X11/Xresource.h>
11131 int
11132 main ()
11133 {
11134 Display *display;
11135 XrmDatabase db;
11136 char *res_name;
11137 char *res_class;
11138 XIMProc callback;
11139 XPointer *client_data;
11140 #ifndef __GNUC__
11141 /* If we're not using GCC, it's probably not XFree86, and this is
11142 probably right, but we can't use something like --pedantic-errors. */
11143 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11144 char*, XIMProc, XPointer*);
11145 #endif
11146 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11147 client_data);
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 emacs_cv_arg6_star=yes
11175 else
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181
11182 if test "$emacs_cv_arg6_star" = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11185 _ACEOF
11186
11187 else
11188 cat >>confdefs.h <<\_ACEOF
11189 #define XRegisterIMInstantiateCallback_arg6 XPointer
11190 _ACEOF
11191
11192 fi
11193 CFLAGS=$late_CFLAGS
11194 fi
11195
11196 ### Use -lXpm if available, unless `--with-xpm=no'.
11197 HAVE_XPM=no
11198 if test "${HAVE_X11}" = "yes"; then
11199 if test "${with_xpm}" != "no"; then
11200 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11201 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11202 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11203 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 fi
11206 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11207 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11208 else
11209 # Is the header compilable?
11210 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11211 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 #include <X11/xpm.h>
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_header_compiler=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 ac_header_compiler=no
11249 fi
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252 echo "${ECHO_T}$ac_header_compiler" >&6
11253
11254 # Is the header present?
11255 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11256 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <X11/xpm.h>
11264 _ACEOF
11265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } >/dev/null; then
11273 if test -s conftest.err; then
11274 ac_cpp_err=$ac_c_preproc_warn_flag
11275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276 else
11277 ac_cpp_err=
11278 fi
11279 else
11280 ac_cpp_err=yes
11281 fi
11282 if test -z "$ac_cpp_err"; then
11283 ac_header_preproc=yes
11284 else
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_header_preproc=no
11289 fi
11290 rm -f conftest.err conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292 echo "${ECHO_T}$ac_header_preproc" >&6
11293
11294 # So? What about this header?
11295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11296 yes:no: )
11297 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11301 ac_header_preproc=yes
11302 ;;
11303 no:yes:* )
11304 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11305 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11307 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11309 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11311 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11313 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11315 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11316 (
11317 cat <<\_ASBOX
11318 ## ------------------------------------------ ##
11319 ## Report this to the AC_PACKAGE_NAME lists. ##
11320 ## ------------------------------------------ ##
11321 _ASBOX
11322 ) |
11323 sed "s/^/$as_me: WARNING: /" >&2
11324 ;;
11325 esac
11326 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11327 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11328 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331 ac_cv_header_X11_xpm_h=$ac_header_preproc
11332 fi
11333 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11334 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11335
11336 fi
11337 if test $ac_cv_header_X11_xpm_h = yes; then
11338 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11339 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11340 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-lXpm -lX11 $LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351
11352 /* Override any gcc2 internal prototype to avoid an error. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char XpmReadFileToPixmap ();
11359 int
11360 main ()
11361 {
11362 XpmReadFileToPixmap ();
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11395 fi
11396 rm -f conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11401 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11402 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11403 HAVE_XPM=yes
11404 fi
11405
11406 fi
11407
11408
11409 if test "${HAVE_XPM}" = "yes"; then
11410 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11411 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #include "X11/xpm.h"
11419 #ifndef XpmReturnAllocPixels
11420 no_return_alloc_pixels
11421 #endif
11422
11423 _ACEOF
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11426 HAVE_XPM=no
11427 else
11428 HAVE_XPM=yes
11429 fi
11430 rm -f conftest*
11431
11432
11433 if test "${HAVE_XPM}" = "yes"; then
11434 echo "$as_me:$LINENO: result: yes" >&5
11435 echo "${ECHO_T}yes" >&6
11436 else
11437 echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6
11439 fi
11440 fi
11441 fi
11442
11443 if test "${HAVE_XPM}" = "yes"; then
11444
11445 cat >>confdefs.h <<\_ACEOF
11446 #define HAVE_XPM 1
11447 _ACEOF
11448
11449 fi
11450 fi
11451
11452 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11453 HAVE_JPEG=no
11454 if test "${HAVE_X11}" = "yes"; then
11455 if test "${with_jpeg}" != "no"; then
11456 if test "${ac_cv_header_jerror_h+set}" = set; then
11457 echo "$as_me:$LINENO: checking for jerror.h" >&5
11458 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11459 if test "${ac_cv_header_jerror_h+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 fi
11462 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11464 else
11465 # Is the header compilable?
11466 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11467 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <jerror.h>
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_header_compiler=yes
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 ac_header_compiler=no
11505 fi
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11508 echo "${ECHO_T}$ac_header_compiler" >&6
11509
11510 # Is the header present?
11511 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11512 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <jerror.h>
11520 _ACEOF
11521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532 else
11533 ac_cpp_err=
11534 fi
11535 else
11536 ac_cpp_err=yes
11537 fi
11538 if test -z "$ac_cpp_err"; then
11539 ac_header_preproc=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_header_preproc=no
11545 fi
11546 rm -f conftest.err conftest.$ac_ext
11547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6
11549
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 yes:no: )
11553 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11558 ;;
11559 no:yes:* )
11560 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11572 (
11573 cat <<\_ASBOX
11574 ## ------------------------------------------ ##
11575 ## Report this to the AC_PACKAGE_NAME lists. ##
11576 ## ------------------------------------------ ##
11577 _ASBOX
11578 ) |
11579 sed "s/^/$as_me: WARNING: /" >&2
11580 ;;
11581 esac
11582 echo "$as_me:$LINENO: checking for jerror.h" >&5
11583 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11584 if test "${ac_cv_header_jerror_h+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 ac_cv_header_jerror_h=$ac_header_preproc
11588 fi
11589 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11590 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11591
11592 fi
11593 if test $ac_cv_header_jerror_h = yes; then
11594 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11595 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11596 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ljpeg $LIBS"
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607
11608 /* Override any gcc2 internal prototype to avoid an error. */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 /* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11614 char jpeg_destroy_compress ();
11615 int
11616 main ()
11617 {
11618 jpeg_destroy_compress ();
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625 (eval $ac_link) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11651 fi
11652 rm -f conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11657 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11658 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11659 HAVE_JPEG=yes
11660 fi
11661
11662 fi
11663
11664
11665 fi
11666
11667
11668 if test "${HAVE_JPEG}" = "yes"; then
11669 cat >>confdefs.h <<\_ACEOF
11670 #define HAVE_JPEG 1
11671 _ACEOF
11672
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 #include <jpeglib.h>
11680 version=JPEG_LIB_VERSION
11681
11682 _ACEOF
11683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11685 cat >>confdefs.h <<\_ACEOF
11686 #define HAVE_JPEG 1
11687 _ACEOF
11688
11689 else
11690 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11691 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11692 HAVE_JPEG=no
11693 fi
11694 rm -f conftest*
11695
11696 fi
11697 fi
11698
11699 ### Use -lpng if available, unless `--with-png=no'.
11700 HAVE_PNG=no
11701 if test "${HAVE_X11}" = "yes"; then
11702 if test "${with_png}" != "no"; then
11703 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11704 # in /usr/include/libpng.
11705
11706
11707 for ac_header in png.h libpng/png.h
11708 do
11709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 fi
11716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11718 else
11719 # Is the header compilable?
11720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 $ac_includes_default
11729 #include <$ac_header>
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_header_compiler=yes
11754 else
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 ac_header_compiler=no
11759 fi
11760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6
11763
11764 # Is the header present?
11765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <$ac_header>
11774 _ACEOF
11775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } >/dev/null; then
11783 if test -s conftest.err; then
11784 ac_cpp_err=$ac_c_preproc_warn_flag
11785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11786 else
11787 ac_cpp_err=
11788 fi
11789 else
11790 ac_cpp_err=yes
11791 fi
11792 if test -z "$ac_cpp_err"; then
11793 ac_header_preproc=yes
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_header_preproc=no
11799 fi
11800 rm -f conftest.err conftest.$ac_ext
11801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11802 echo "${ECHO_T}$ac_header_preproc" >&6
11803
11804 # So? What about this header?
11805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11806 yes:no: )
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11811 ac_header_preproc=yes
11812 ;;
11813 no:yes:* )
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11826 (
11827 cat <<\_ASBOX
11828 ## ------------------------------------------ ##
11829 ## Report this to the AC_PACKAGE_NAME lists. ##
11830 ## ------------------------------------------ ##
11831 _ASBOX
11832 ) |
11833 sed "s/^/$as_me: WARNING: /" >&2
11834 ;;
11835 esac
11836 echo "$as_me:$LINENO: checking for $ac_header" >&5
11837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 eval "$as_ac_Header=\$ac_header_preproc"
11842 fi
11843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11845
11846 fi
11847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11848 cat >>confdefs.h <<_ACEOF
11849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11850 _ACEOF
11851
11852 fi
11853
11854 done
11855
11856 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11857 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11858 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11859 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 ac_check_lib_save_LIBS=$LIBS
11863 LIBS="-lpng -lz -lm $LIBS"
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 /* We use char because int might match the return type of a gcc2
11876 builtin and then its argument prototype would still apply. */
11877 char png_get_channels ();
11878 int
11879 main ()
11880 {
11881 png_get_channels ();
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 rm -f conftest.$ac_objext conftest$ac_exeext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888 (eval $ac_link) 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -z "$ac_c_werror_flag"
11896 || test ! -s conftest.err'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try='test -s conftest$ac_exeext'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_cv_lib_png_png_get_channels=yes
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 ac_cv_lib_png_png_get_channels=no
11914 fi
11915 rm -f conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11918 fi
11919 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11920 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11921 if test $ac_cv_lib_png_png_get_channels = yes; then
11922 HAVE_PNG=yes
11923 fi
11924
11925 fi
11926 fi
11927
11928 if test "${HAVE_PNG}" = "yes"; then
11929
11930 cat >>confdefs.h <<\_ACEOF
11931 #define HAVE_PNG 1
11932 _ACEOF
11933
11934 fi
11935 fi
11936
11937 ### Use -ltiff if available, unless `--with-tiff=no'.
11938 HAVE_TIFF=no
11939 if test "${HAVE_X11}" = "yes"; then
11940 if test "${with_tiff}" != "no"; then
11941 if test "${ac_cv_header_tiffio_h+set}" = set; then
11942 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11943 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11944 if test "${ac_cv_header_tiffio_h+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11948 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11949 else
11950 # Is the header compilable?
11951 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11952 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11960 #include <tiffio.h>
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_header_compiler=yes
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 ac_header_compiler=no
11990 fi
11991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6
11994
11995 # Is the header present?
11996 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11997 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <tiffio.h>
12005 _ACEOF
12006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } >/dev/null; then
12014 if test -s conftest.err; then
12015 ac_cpp_err=$ac_c_preproc_warn_flag
12016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12017 else
12018 ac_cpp_err=
12019 fi
12020 else
12021 ac_cpp_err=yes
12022 fi
12023 if test -z "$ac_cpp_err"; then
12024 ac_header_preproc=yes
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ac_header_preproc=no
12030 fi
12031 rm -f conftest.err conftest.$ac_ext
12032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12033 echo "${ECHO_T}$ac_header_preproc" >&6
12034
12035 # So? What about this header?
12036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12037 yes:no: )
12038 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12039 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12041 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12042 ac_header_preproc=yes
12043 ;;
12044 no:yes:* )
12045 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12046 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12048 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12050 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12052 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12054 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12056 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12057 (
12058 cat <<\_ASBOX
12059 ## ------------------------------------------ ##
12060 ## Report this to the AC_PACKAGE_NAME lists. ##
12061 ## ------------------------------------------ ##
12062 _ASBOX
12063 ) |
12064 sed "s/^/$as_me: WARNING: /" >&2
12065 ;;
12066 esac
12067 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12068 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12069 if test "${ac_cv_header_tiffio_h+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 ac_cv_header_tiffio_h=$ac_header_preproc
12073 fi
12074 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12075 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12076
12077 fi
12078 if test $ac_cv_header_tiffio_h = yes; then
12079 tifflibs="-lz -lm"
12080 # At least one tiff package requires the jpeg library.
12081 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12082 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12083 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12084 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-ltiff $tifflibs $LIBS"
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char TIFFGetVersion ();
12103 int
12104 main ()
12105 {
12106 TIFFGetVersion ();
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag"
12121 || test ! -s conftest.err'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_lib_tiff_TIFFGetVersion=yes
12134 else
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 ac_cv_lib_tiff_TIFFGetVersion=no
12139 fi
12140 rm -f conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12145 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12146 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12147 HAVE_TIFF=yes
12148 fi
12149
12150 fi
12151
12152
12153 fi
12154
12155 if test "${HAVE_TIFF}" = "yes"; then
12156
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_TIFF 1
12159 _ACEOF
12160
12161 fi
12162 fi
12163
12164 ### Use -lgif if available, unless `--with-gif=no'.
12165 HAVE_GIF=no
12166 if test "${HAVE_X11}" = "yes"; then
12167 if test "${with_gif}" != "no"; then
12168 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12169 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12170 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12171 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 fi
12174 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12175 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12176 else
12177 # Is the header compilable?
12178 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12179 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 $ac_includes_default
12187 #include <gif_lib.h>
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_header_compiler=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ac_header_compiler=no
12217 fi
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12220 echo "${ECHO_T}$ac_header_compiler" >&6
12221
12222 # Is the header present?
12223 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12224 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h. */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 #include <gif_lib.h>
12232 _ACEOF
12233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } >/dev/null; then
12241 if test -s conftest.err; then
12242 ac_cpp_err=$ac_c_preproc_warn_flag
12243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12244 else
12245 ac_cpp_err=
12246 fi
12247 else
12248 ac_cpp_err=yes
12249 fi
12250 if test -z "$ac_cpp_err"; then
12251 ac_header_preproc=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_header_preproc=no
12257 fi
12258 rm -f conftest.err conftest.$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12260 echo "${ECHO_T}$ac_header_preproc" >&6
12261
12262 # So? What about this header?
12263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12264 yes:no: )
12265 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12266 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12268 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12269 ac_header_preproc=yes
12270 ;;
12271 no:yes:* )
12272 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12273 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12275 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12277 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12279 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12281 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12283 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12284 (
12285 cat <<\_ASBOX
12286 ## ------------------------------------------ ##
12287 ## Report this to the AC_PACKAGE_NAME lists. ##
12288 ## ------------------------------------------ ##
12289 _ASBOX
12290 ) |
12291 sed "s/^/$as_me: WARNING: /" >&2
12292 ;;
12293 esac
12294 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12295 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12296 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 ac_cv_header_gif_lib_h=$ac_header_preproc
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12302 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12303
12304 fi
12305 if test $ac_cv_header_gif_lib_h = yes; then
12306 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12307 # Earlier versions can crash Emacs.
12308 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12309 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12310 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-lungif $LIBS"
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328 char EGifPutExtensionLast ();
12329 int
12330 main ()
12331 {
12332 EGifPutExtensionLast ();
12333 ;
12334 return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_c_werror_flag"
12347 || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest$ac_exeext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12360 else
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_cv_lib_ungif_EGifPutExtensionLast=no
12365 fi
12366 rm -f conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12371 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12372 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12373 HAVE_GIF=yes
12374 fi
12375
12376 fi
12377
12378
12379 fi
12380
12381 if test "${HAVE_GIF}" = "yes"; then
12382
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_GIF 1
12385 _ACEOF
12386
12387 fi
12388 fi
12389
12390 ### Use Mac OS X Carbon API to implement GUI.
12391 HAVE_CARBON=no
12392 if test "${with_carbon}" != "no"; then
12393 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12394 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12395 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12396 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 fi
12399 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12400 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12401 else
12402 # Is the header compilable?
12403 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12404 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 $ac_includes_default
12412 #include <Carbon/Carbon.h>
12413 _ACEOF
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_header_compiler=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_header_compiler=no
12442 fi
12443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6
12446
12447 # Is the header present?
12448 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12449 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 #include <Carbon/Carbon.h>
12457 _ACEOF
12458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } >/dev/null; then
12466 if test -s conftest.err; then
12467 ac_cpp_err=$ac_c_preproc_warn_flag
12468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12469 else
12470 ac_cpp_err=
12471 fi
12472 else
12473 ac_cpp_err=yes
12474 fi
12475 if test -z "$ac_cpp_err"; then
12476 ac_header_preproc=yes
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_header_preproc=no
12482 fi
12483 rm -f conftest.err conftest.$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12485 echo "${ECHO_T}$ac_header_preproc" >&6
12486
12487 # So? What about this header?
12488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12489 yes:no: )
12490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12491 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12494 ac_header_preproc=yes
12495 ;;
12496 no:yes:* )
12497 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12498 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12500 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12502 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12504 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12506 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12508 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12509 (
12510 cat <<\_ASBOX
12511 ## ------------------------------------------ ##
12512 ## Report this to the AC_PACKAGE_NAME lists. ##
12513 ## ------------------------------------------ ##
12514 _ASBOX
12515 ) |
12516 sed "s/^/$as_me: WARNING: /" >&2
12517 ;;
12518 esac
12519 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12520 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12521 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12525 fi
12526 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12528
12529 fi
12530 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12531 HAVE_CARBON=yes
12532 fi
12533
12534
12535 fi
12536
12537 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12538 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12539 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12540 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 fi
12543 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12544 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12545 else
12546 # Is the header compilable?
12547 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12548 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 $ac_includes_default
12556 #include <malloc/malloc.h>
12557 _ACEOF
12558 rm -f conftest.$ac_objext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560 (eval $ac_compile) 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest.$ac_objext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 ac_header_compiler=yes
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_header_compiler=no
12586 fi
12587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12589 echo "${ECHO_T}$ac_header_compiler" >&6
12590
12591 # Is the header present?
12592 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12593 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 #include <malloc/malloc.h>
12601 _ACEOF
12602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } >/dev/null; then
12610 if test -s conftest.err; then
12611 ac_cpp_err=$ac_c_preproc_warn_flag
12612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12613 else
12614 ac_cpp_err=
12615 fi
12616 else
12617 ac_cpp_err=yes
12618 fi
12619 if test -z "$ac_cpp_err"; then
12620 ac_header_preproc=yes
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 ac_header_preproc=no
12626 fi
12627 rm -f conftest.err conftest.$ac_ext
12628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12629 echo "${ECHO_T}$ac_header_preproc" >&6
12630
12631 # So? What about this header?
12632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12633 yes:no: )
12634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12635 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12638 ac_header_preproc=yes
12639 ;;
12640 no:yes:* )
12641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12642 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12644 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12653 (
12654 cat <<\_ASBOX
12655 ## ------------------------------------------ ##
12656 ## Report this to the AC_PACKAGE_NAME lists. ##
12657 ## ------------------------------------------ ##
12658 _ASBOX
12659 ) |
12660 sed "s/^/$as_me: WARNING: /" >&2
12661 ;;
12662 esac
12663 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12664 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12665 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12669 fi
12670 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12671 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12672
12673 fi
12674 if test $ac_cv_header_malloc_malloc_h = yes; then
12675
12676 cat >>confdefs.h <<\_ACEOF
12677 #define HAVE_MALLOC_MALLOC_H 1
12678 _ACEOF
12679
12680 fi
12681
12682
12683
12684 if test "${HAVE_CARBON}" = "yes"; then
12685
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_CARBON 1
12688 _ACEOF
12689
12690 window_system=mac
12691 ## Specify the install directory
12692 carbon_appdir=
12693 if test "${carbon_appdir_x}" != ""; then
12694 case ${carbon_appdir_x} in
12695 y | ye | yes) carbon_appdir=/Applications ;;
12696 * ) carbon_appdir=${carbon_appdir_x} ;;
12697 esac
12698 fi
12699 # We also have mouse menus.
12700 HAVE_MENUS=yes
12701 fi
12702
12703 ### Use session management (-lSM -lICE) if available
12704 HAVE_X_SM=no
12705 if test "${HAVE_X11}" = "yes"; then
12706 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12707 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12708 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12709 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 fi
12712 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12714 else
12715 # Is the header compilable?
12716 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12717 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <X11/SM/SMlib.h>
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_header_compiler=yes
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_header_compiler=no
12755 fi
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758 echo "${ECHO_T}$ac_header_compiler" >&6
12759
12760 # Is the header present?
12761 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12762 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <X11/SM/SMlib.h>
12770 _ACEOF
12771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_c_preproc_warn_flag
12781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12782 else
12783 ac_cpp_err=
12784 fi
12785 else
12786 ac_cpp_err=yes
12787 fi
12788 if test -z "$ac_cpp_err"; then
12789 ac_header_preproc=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_header_preproc=no
12795 fi
12796 rm -f conftest.err conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798 echo "${ECHO_T}$ac_header_preproc" >&6
12799
12800 # So? What about this header?
12801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12802 yes:no: )
12803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12804 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12807 ac_header_preproc=yes
12808 ;;
12809 no:yes:* )
12810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12811 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12813 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12815 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12817 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12819 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12821 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12822 (
12823 cat <<\_ASBOX
12824 ## ------------------------------------------ ##
12825 ## Report this to the AC_PACKAGE_NAME lists. ##
12826 ## ------------------------------------------ ##
12827 _ASBOX
12828 ) |
12829 sed "s/^/$as_me: WARNING: /" >&2
12830 ;;
12831 esac
12832 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12833 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12834 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12838 fi
12839 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12840 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12841
12842 fi
12843 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12844 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12845 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12846 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-lSM -lICE $LIBS"
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char SmcOpenConnection ();
12865 int
12866 main ()
12867 {
12868 SmcOpenConnection ();
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_lib_SM_SmcOpenConnection=yes
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 ac_cv_lib_SM_SmcOpenConnection=no
12901 fi
12902 rm -f conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 LIBS=$ac_check_lib_save_LIBS
12905 fi
12906 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12907 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12908 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12909 HAVE_X_SM=yes
12910 fi
12911
12912 fi
12913
12914
12915
12916 if test "${HAVE_X_SM}" = "yes"; then
12917
12918 cat >>confdefs.h <<\_ACEOF
12919 #define HAVE_X_SM 1
12920 _ACEOF
12921
12922 case "$LIBS" in
12923 *-lSM*) ;;
12924 *) LIBS="-lSM -lICE $LIBS" ;;
12925 esac
12926 fi
12927 fi
12928
12929 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12930 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12931 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12932 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h. */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12941 #include <netdb.h>
12942 int
12943 main ()
12944 {
12945 return h_errno;
12946 ;
12947 return 0;
12948 }
12949 _ACEOF
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 emacs_cv_netdb_declares_h_errno=yes
12973 else
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 emacs_cv_netdb_declares_h_errno=no
12978 fi
12979 rm -f conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12983 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12984 if test $emacs_cv_netdb_declares_h_errno = yes; then
12985
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_H_ERRNO 1
12988 _ACEOF
12989
12990 fi
12991
12992 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12993 # for constant arguments. Useless!
12994 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12995 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12996 if test "${ac_cv_working_alloca_h+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <alloca.h>
13006 int
13007 main ()
13008 {
13009 char *p = (char *) alloca (2 * sizeof (int));
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_working_alloca_h=yes
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041 ac_cv_working_alloca_h=no
13042 fi
13043 rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 fi
13046 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13047 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13048 if test $ac_cv_working_alloca_h = yes; then
13049
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_ALLOCA_H 1
13052 _ACEOF
13053
13054 fi
13055
13056 echo "$as_me:$LINENO: checking for alloca" >&5
13057 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13058 if test "${ac_cv_func_alloca_works+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061 cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h. */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 #ifdef __GNUC__
13068 # define alloca __builtin_alloca
13069 #else
13070 # ifdef _MSC_VER
13071 # include <malloc.h>
13072 # define alloca _alloca
13073 # else
13074 # if HAVE_ALLOCA_H
13075 # include <alloca.h>
13076 # else
13077 # ifdef _AIX
13078 #pragma alloca
13079 # else
13080 # ifndef alloca /* predefined by HP cc +Olibcalls */
13081 char *alloca ();
13082 # endif
13083 # endif
13084 # endif
13085 # endif
13086 #endif
13087
13088 int
13089 main ()
13090 {
13091 char *p = (char *) alloca (1);
13092 ;
13093 return 0;
13094 }
13095 _ACEOF
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_cv_func_alloca_works=yes
13119 else
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_cv_func_alloca_works=no
13124 fi
13125 rm -f conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 fi
13128 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13129 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13130
13131 if test $ac_cv_func_alloca_works = yes; then
13132
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_ALLOCA 1
13135 _ACEOF
13136
13137 else
13138 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13139 # that cause trouble. Some versions do not even contain alloca or
13140 # contain a buggy version. If you still want to use their alloca,
13141 # use ar to extract alloca.o from them instead of compiling alloca.c.
13142
13143 ALLOCA=alloca.$ac_objext
13144
13145 cat >>confdefs.h <<\_ACEOF
13146 #define C_ALLOCA 1
13147 _ACEOF
13148
13149
13150 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13151 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13152 if test "${ac_cv_os_cray+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #if defined(CRAY) && ! defined(CRAY2)
13162 webecray
13163 #else
13164 wenotbecray
13165 #endif
13166
13167 _ACEOF
13168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13169 $EGREP "webecray" >/dev/null 2>&1; then
13170 ac_cv_os_cray=yes
13171 else
13172 ac_cv_os_cray=no
13173 fi
13174 rm -f conftest*
13175
13176 fi
13177 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13178 echo "${ECHO_T}$ac_cv_os_cray" >&6
13179 if test $ac_cv_os_cray = yes; then
13180 for ac_func in _getb67 GETB67 getb67; do
13181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 echo "$as_me:$LINENO: checking for $ac_func" >&5
13183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_var+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h. */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13195 #define $ac_func innocuous_$ac_func
13196
13197 /* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char $ac_func (); below.
13199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13200 <limits.h> exists even on freestanding compilers. */
13201
13202 #ifdef __STDC__
13203 # include <limits.h>
13204 #else
13205 # include <assert.h>
13206 #endif
13207
13208 #undef $ac_func
13209
13210 /* Override any gcc2 internal prototype to avoid an error. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 {
13214 #endif
13215 /* We use char because int might match the return type of a gcc2
13216 builtin and then its argument prototype would still apply. */
13217 char $ac_func ();
13218 /* The GNU C library defines this for functions which it implements
13219 to always fail with ENOSYS. Some functions are actually named
13220 something starting with __ and the normal name is an alias. */
13221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13222 choke me
13223 #else
13224 char (*f) () = $ac_func;
13225 #endif
13226 #ifdef __cplusplus
13227 }
13228 #endif
13229
13230 int
13231 main ()
13232 {
13233 return f != $ac_func;
13234 ;
13235 return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 eval "$as_ac_var=yes"
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 eval "$as_ac_var=no"
13266 fi
13267 rm -f conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 fi
13270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13272 if test `eval echo '${'$as_ac_var'}'` = yes; then
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define CRAY_STACKSEG_END $ac_func
13276 _ACEOF
13277
13278 break
13279 fi
13280
13281 done
13282 fi
13283
13284 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13285 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13286 if test "${ac_cv_c_stack_direction+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 if test "$cross_compiling" = yes; then
13290 ac_cv_c_stack_direction=0
13291 else
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 int
13299 find_stack_direction ()
13300 {
13301 static char *addr = 0;
13302 auto char dummy;
13303 if (addr == 0)
13304 {
13305 addr = &dummy;
13306 return find_stack_direction ();
13307 }
13308 else
13309 return (&dummy > addr) ? 1 : -1;
13310 }
13311
13312 int
13313 main ()
13314 {
13315 exit (find_stack_direction () < 0);
13316 }
13317 _ACEOF
13318 rm -f conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_c_stack_direction=1
13330 else
13331 echo "$as_me: program exited with status $ac_status" >&5
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 ( exit $ac_status )
13336 ac_cv_c_stack_direction=-1
13337 fi
13338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 fi
13341 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13342 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13343
13344 cat >>confdefs.h <<_ACEOF
13345 #define STACK_DIRECTION $ac_cv_c_stack_direction
13346 _ACEOF
13347
13348
13349 fi
13350
13351
13352 # fmod, logb, and frexp are found in -lm on most systems.
13353 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13354
13355 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13356 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13357 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-lm $LIBS"
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368
13369 /* Override any gcc2 internal prototype to avoid an error. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13375 char sqrt ();
13376 int
13377 main ()
13378 {
13379 sqrt ();
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_lib_m_sqrt=yes
13407 else
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13410
13411 ac_cv_lib_m_sqrt=no
13412 fi
13413 rm -f conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_check_lib_save_LIBS
13416 fi
13417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13418 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13419 if test $ac_cv_lib_m_sqrt = yes; then
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_LIBM 1
13422 _ACEOF
13423
13424 LIBS="-lm $LIBS"
13425
13426 fi
13427
13428
13429 # Check for mail-locking functions in a "mail" library. Probably this should
13430 # have the same check as for liblockfile below.
13431
13432 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13433 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13434 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 ac_check_lib_save_LIBS=$LIBS
13438 LIBS="-lmail $LIBS"
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h. */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13445
13446 /* Override any gcc2 internal prototype to avoid an error. */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 /* We use char because int might match the return type of a gcc2
13451 builtin and then its argument prototype would still apply. */
13452 char maillock ();
13453 int
13454 main ()
13455 {
13456 maillock ();
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_lib_mail_maillock=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 ac_cv_lib_mail_maillock=no
13489 fi
13490 rm -f conftest.err conftest.$ac_objext \
13491 conftest$ac_exeext conftest.$ac_ext
13492 LIBS=$ac_check_lib_save_LIBS
13493 fi
13494 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13495 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13496 if test $ac_cv_lib_mail_maillock = yes; then
13497 cat >>confdefs.h <<_ACEOF
13498 #define HAVE_LIBMAIL 1
13499 _ACEOF
13500
13501 LIBS="-lmail $LIBS"
13502
13503 fi
13504
13505
13506 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13507 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13508 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-llockfile $LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519
13520 /* Override any gcc2 internal prototype to avoid an error. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526 char maillock ();
13527 int
13528 main ()
13529 {
13530 maillock ();
13531 ;
13532 return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_lib_lockfile_maillock=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_cv_lib_lockfile_maillock=no
13563 fi
13564 rm -f conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13569 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13570 if test $ac_cv_lib_lockfile_maillock = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define HAVE_LIBLOCKFILE 1
13573 _ACEOF
13574
13575 LIBS="-llockfile $LIBS"
13576
13577 fi
13578
13579 # If we have the shared liblockfile, assume we must use it for mail
13580 # locking (e.g. Debian). If we couldn't link against liblockfile
13581 # (no liblockfile.a installed), ensure that we don't need to.
13582 if test "$ac_cv_lib_lockfile_maillock" = no; then
13583 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13584 set dummy liblockfile.so; ac_word=$2
13585 echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13587 if test "${ac_cv_prog_liblockfile+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 if test -n "$liblockfile"; then
13591 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13595 for as_dir in $as_dummy
13596 do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_prog_liblockfile="yes"
13602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605 done
13606 done
13607
13608 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13609 fi
13610 fi
13611 liblockfile=$ac_cv_prog_liblockfile
13612 if test -n "$liblockfile"; then
13613 echo "$as_me:$LINENO: result: $liblockfile" >&5
13614 echo "${ECHO_T}$liblockfile" >&6
13615 else
13616 echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6
13618 fi
13619
13620 if test $ac_cv_prog_liblockfile = yes; then
13621 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13622 This probably means that movemail could lose mail.
13623 There may be a \`development' package to install containing liblockfile." >&5
13624 echo "$as_me: error: Shared liblockfile found but can't link against it.
13625 This probably means that movemail could lose mail.
13626 There may be a \`development' package to install containing liblockfile." >&2;}
13627 { (exit 1); exit 1; }; }
13628 else :
13629 fi
13630 fi
13631
13632 for ac_func in touchlock
13633 do
13634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13635 echo "$as_me:$LINENO: checking for $ac_func" >&5
13636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13637 if eval "test \"\${$as_ac_var+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h. */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13648 #define $ac_func innocuous_$ac_func
13649
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char $ac_func (); below.
13652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13653 <limits.h> exists even on freestanding compilers. */
13654
13655 #ifdef __STDC__
13656 # include <limits.h>
13657 #else
13658 # include <assert.h>
13659 #endif
13660
13661 #undef $ac_func
13662
13663 /* Override any gcc2 internal prototype to avoid an error. */
13664 #ifdef __cplusplus
13665 extern "C"
13666 {
13667 #endif
13668 /* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13670 char $ac_func ();
13671 /* The GNU C library defines this for functions which it implements
13672 to always fail with ENOSYS. Some functions are actually named
13673 something starting with __ and the normal name is an alias. */
13674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13675 choke me
13676 #else
13677 char (*f) () = $ac_func;
13678 #endif
13679 #ifdef __cplusplus
13680 }
13681 #endif
13682
13683 int
13684 main ()
13685 {
13686 return f != $ac_func;
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_c_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 eval "$as_ac_var=yes"
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 eval "$as_ac_var=no"
13719 fi
13720 rm -f conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 fi
13723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13725 if test `eval echo '${'$as_ac_var'}'` = yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13728 _ACEOF
13729
13730 fi
13731 done
13732
13733
13734 for ac_header in maillock.h
13735 do
13736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13738 echo "$as_me:$LINENO: checking for $ac_header" >&5
13739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 fi
13743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13745 else
13746 # Is the header compilable?
13747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h. */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 $ac_includes_default
13756 #include <$ac_header>
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_header_compiler=yes
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 ac_header_compiler=no
13786 fi
13787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13789 echo "${ECHO_T}$ac_header_compiler" >&6
13790
13791 # Is the header present?
13792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h. */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <$ac_header>
13801 _ACEOF
13802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } >/dev/null; then
13810 if test -s conftest.err; then
13811 ac_cpp_err=$ac_c_preproc_warn_flag
13812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13813 else
13814 ac_cpp_err=
13815 fi
13816 else
13817 ac_cpp_err=yes
13818 fi
13819 if test -z "$ac_cpp_err"; then
13820 ac_header_preproc=yes
13821 else
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 ac_header_preproc=no
13826 fi
13827 rm -f conftest.err conftest.$ac_ext
13828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13829 echo "${ECHO_T}$ac_header_preproc" >&6
13830
13831 # So? What about this header?
13832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13833 yes:no: )
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13838 ac_header_preproc=yes
13839 ;;
13840 no:yes:* )
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13853 (
13854 cat <<\_ASBOX
13855 ## ------------------------------------------ ##
13856 ## Report this to the AC_PACKAGE_NAME lists. ##
13857 ## ------------------------------------------ ##
13858 _ASBOX
13859 ) |
13860 sed "s/^/$as_me: WARNING: /" >&2
13861 ;;
13862 esac
13863 echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868 eval "$as_ac_Header=\$ac_header_preproc"
13869 fi
13870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13872
13873 fi
13874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13875 cat >>confdefs.h <<_ACEOF
13876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877 _ACEOF
13878
13879 fi
13880
13881 done
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 for ac_func in gethostname getdomainname dup2 \
13952 rename closedir mkdir rmdir sysinfo getrusage \
13953 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13954 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13955 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13956 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13957 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13958 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13959 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13960 do
13961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13962 echo "$as_me:$LINENO: checking for $ac_func" >&5
13963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_var+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13975 #define $ac_func innocuous_$ac_func
13976
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char $ac_func (); below.
13979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980 <limits.h> exists even on freestanding compilers. */
13981
13982 #ifdef __STDC__
13983 # include <limits.h>
13984 #else
13985 # include <assert.h>
13986 #endif
13987
13988 #undef $ac_func
13989
13990 /* Override any gcc2 internal prototype to avoid an error. */
13991 #ifdef __cplusplus
13992 extern "C"
13993 {
13994 #endif
13995 /* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13997 char $ac_func ();
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14002 choke me
14003 #else
14004 char (*f) () = $ac_func;
14005 #endif
14006 #ifdef __cplusplus
14007 }
14008 #endif
14009
14010 int
14011 main ()
14012 {
14013 return f != $ac_func;
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 eval "$as_ac_var=yes"
14041 else
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 eval "$as_ac_var=no"
14046 fi
14047 rm -f conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14052 if test `eval echo '${'$as_ac_var'}'` = yes; then
14053 cat >>confdefs.h <<_ACEOF
14054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14055 _ACEOF
14056
14057 fi
14058 done
14059
14060
14061
14062 for ac_header in sys/un.h
14063 do
14064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo "$as_me:$LINENO: checking for $ac_header" >&5
14067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 fi
14071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14073 else
14074 # Is the header compilable?
14075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14084 #include <$ac_header>
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_header_compiler=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_header_compiler=no
14114 fi
14115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6
14118
14119 # Is the header present?
14120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <$ac_header>
14129 _ACEOF
14130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } >/dev/null; then
14138 if test -s conftest.err; then
14139 ac_cpp_err=$ac_c_preproc_warn_flag
14140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14141 else
14142 ac_cpp_err=
14143 fi
14144 else
14145 ac_cpp_err=yes
14146 fi
14147 if test -z "$ac_cpp_err"; then
14148 ac_header_preproc=yes
14149 else
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153 ac_header_preproc=no
14154 fi
14155 rm -f conftest.err conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6
14158
14159 # So? What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14161 yes:no: )
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14166 ac_header_preproc=yes
14167 ;;
14168 no:yes:* )
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14181 (
14182 cat <<\_ASBOX
14183 ## ------------------------------------------ ##
14184 ## Report this to the AC_PACKAGE_NAME lists. ##
14185 ## ------------------------------------------ ##
14186 _ASBOX
14187 ) |
14188 sed "s/^/$as_me: WARNING: /" >&2
14189 ;;
14190 esac
14191 echo "$as_me:$LINENO: checking for $ac_header" >&5
14192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 eval "$as_ac_Header=\$ac_header_preproc"
14197 fi
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200
14201 fi
14202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14205 _ACEOF
14206
14207 fi
14208
14209 done
14210
14211
14212
14213
14214
14215 for ac_header in stdlib.h sys/time.h unistd.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 else
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_header_compiler=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14271
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14282 _ACEOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev/null; then
14291 if test -s conftest.err; then
14292 ac_cpp_err=$ac_c_preproc_warn_flag
14293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14294 else
14295 ac_cpp_err=
14296 fi
14297 else
14298 ac_cpp_err=yes
14299 fi
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc=yes
14302 else
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_header_preproc=no
14307 fi
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14311
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314 yes:no: )
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14320 ;;
14321 no:yes:* )
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14334 (
14335 cat <<\_ASBOX
14336 ## ------------------------------------------ ##
14337 ## Report this to the AC_PACKAGE_NAME lists. ##
14338 ## ------------------------------------------ ##
14339 _ASBOX
14340 ) |
14341 sed "s/^/$as_me: WARNING: /" >&2
14342 ;;
14343 esac
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 eval "$as_ac_Header=\$ac_header_preproc"
14350 fi
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353
14354 fi
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 fi
14361
14362 done
14363
14364
14365 for ac_func in alarm
14366 do
14367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_func" >&5
14369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_var+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14381 #define $ac_func innocuous_$ac_func
14382
14383 /* System header to define __stub macros and hopefully few prototypes,
14384 which can conflict with char $ac_func (); below.
14385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14386 <limits.h> exists even on freestanding compilers. */
14387
14388 #ifdef __STDC__
14389 # include <limits.h>
14390 #else
14391 # include <assert.h>
14392 #endif
14393
14394 #undef $ac_func
14395
14396 /* Override any gcc2 internal prototype to avoid an error. */
14397 #ifdef __cplusplus
14398 extern "C"
14399 {
14400 #endif
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14403 char $ac_func ();
14404 /* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14408 choke me
14409 #else
14410 char (*f) () = $ac_func;
14411 #endif
14412 #ifdef __cplusplus
14413 }
14414 #endif
14415
14416 int
14417 main ()
14418 {
14419 return f != $ac_func;
14420 ;
14421 return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>conftest.er1
14427 ac_status=$?
14428 grep -v '^ *+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
14433 { ac_try='test -z "$ac_c_werror_flag"
14434 || test ! -s conftest.err'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 eval "$as_ac_var=yes"
14447 else
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 eval "$as_ac_var=no"
14452 fi
14453 rm -f conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14455 fi
14456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14458 if test `eval echo '${'$as_ac_var'}'` = yes; then
14459 cat >>confdefs.h <<_ACEOF
14460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14461 _ACEOF
14462
14463 fi
14464 done
14465
14466 echo "$as_me:$LINENO: checking for working mktime" >&5
14467 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14468 if test "${ac_cv_func_working_mktime+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 if test "$cross_compiling" = yes; then
14472 ac_cv_func_working_mktime=no
14473 else
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 /* Test program from Paul Eggert and Tony Leneis. */
14481 #if TIME_WITH_SYS_TIME
14482 # include <sys/time.h>
14483 # include <time.h>
14484 #else
14485 # if HAVE_SYS_TIME_H
14486 # include <sys/time.h>
14487 # else
14488 # include <time.h>
14489 # endif
14490 #endif
14491
14492 #if HAVE_STDLIB_H
14493 # include <stdlib.h>
14494 #endif
14495
14496 #if HAVE_UNISTD_H
14497 # include <unistd.h>
14498 #endif
14499
14500 #if !HAVE_ALARM
14501 # define alarm(X) /* empty */
14502 #endif
14503
14504 /* Work around redefinition to rpl_putenv by other config tests. */
14505 #undef putenv
14506
14507 static time_t time_t_max;
14508 static time_t time_t_min;
14509
14510 /* Values we'll use to set the TZ environment variable. */
14511 static char *tz_strings[] = {
14512 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14513 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14514 };
14515 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14516
14517 /* Fail if mktime fails to convert a date in the spring-forward gap.
14518 Based on a problem report from Andreas Jaeger. */
14519 static void
14520 spring_forward_gap ()
14521 {
14522 /* glibc (up to about 1998-10-07) failed this test. */
14523 struct tm tm;
14524
14525 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14526 instead of "TZ=America/Vancouver" in order to detect the bug even
14527 on systems that don't support the Olson extension, or don't have the
14528 full zoneinfo tables installed. */
14529 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14530
14531 tm.tm_year = 98;
14532 tm.tm_mon = 3;
14533 tm.tm_mday = 5;
14534 tm.tm_hour = 2;
14535 tm.tm_min = 0;
14536 tm.tm_sec = 0;
14537 tm.tm_isdst = -1;
14538 if (mktime (&tm) == (time_t)-1)
14539 exit (1);
14540 }
14541
14542 static void
14543 mktime_test1 (now)
14544 time_t now;
14545 {
14546 struct tm *lt;
14547 if ((lt = localtime (&now)) && mktime (lt) != now)
14548 exit (1);
14549 }
14550
14551 static void
14552 mktime_test (now)
14553 time_t now;
14554 {
14555 mktime_test1 (now);
14556 mktime_test1 ((time_t) (time_t_max - now));
14557 mktime_test1 ((time_t) (time_t_min + now));
14558 }
14559
14560 static void
14561 irix_6_4_bug ()
14562 {
14563 /* Based on code from Ariel Faigon. */
14564 struct tm tm;
14565 tm.tm_year = 96;
14566 tm.tm_mon = 3;
14567 tm.tm_mday = 0;
14568 tm.tm_hour = 0;
14569 tm.tm_min = 0;
14570 tm.tm_sec = 0;
14571 tm.tm_isdst = -1;
14572 mktime (&tm);
14573 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14574 exit (1);
14575 }
14576
14577 static void
14578 bigtime_test (j)
14579 int j;
14580 {
14581 struct tm tm;
14582 time_t now;
14583 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14584 now = mktime (&tm);
14585 if (now != (time_t) -1)
14586 {
14587 struct tm *lt = localtime (&now);
14588 if (! (lt
14589 && lt->tm_year == tm.tm_year
14590 && lt->tm_mon == tm.tm_mon
14591 && lt->tm_mday == tm.tm_mday
14592 && lt->tm_hour == tm.tm_hour
14593 && lt->tm_min == tm.tm_min
14594 && lt->tm_sec == tm.tm_sec
14595 && lt->tm_yday == tm.tm_yday
14596 && lt->tm_wday == tm.tm_wday
14597 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14598 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14599 exit (1);
14600 }
14601 }
14602
14603 int
14604 main ()
14605 {
14606 time_t t, delta;
14607 int i, j;
14608
14609 /* This test makes some buggy mktime implementations loop.
14610 Give up after 60 seconds; a mktime slower than that
14611 isn't worth using anyway. */
14612 alarm (60);
14613
14614 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14615 continue;
14616 time_t_max--;
14617 if ((time_t) -1 < 0)
14618 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14619 continue;
14620 delta = time_t_max / 997; /* a suitable prime number */
14621 for (i = 0; i < N_STRINGS; i++)
14622 {
14623 if (tz_strings[i])
14624 putenv (tz_strings[i]);
14625
14626 for (t = 0; t <= time_t_max - delta; t += delta)
14627 mktime_test (t);
14628 mktime_test ((time_t) 1);
14629 mktime_test ((time_t) (60 * 60));
14630 mktime_test ((time_t) (60 * 60 * 24));
14631
14632 for (j = 1; 0 < j; j *= 2)
14633 bigtime_test (j);
14634 bigtime_test (j - 1);
14635 }
14636 irix_6_4_bug ();
14637 spring_forward_gap ();
14638 exit (0);
14639 }
14640 _ACEOF
14641 rm -f conftest$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_working_mktime=yes
14653 else
14654 echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ( exit $ac_status )
14659 ac_cv_func_working_mktime=no
14660 fi
14661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14662 fi
14663 fi
14664 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14665 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14666 if test $ac_cv_func_working_mktime = no; then
14667 case $LIBOBJS in
14668 "mktime.$ac_objext" | \
14669 *" mktime.$ac_objext" | \
14670 "mktime.$ac_objext "* | \
14671 *" mktime.$ac_objext "* ) ;;
14672 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14673 esac
14674
14675 fi
14676
14677 if test "$ac_cv_func_working_mktime" = no; then
14678
14679 cat >>confdefs.h <<\_ACEOF
14680 #define BROKEN_MKTIME 1
14681 _ACEOF
14682
14683 fi
14684
14685 ac_have_func=no # yes means we've found a way to get the load average.
14686
14687 # Make sure getloadavg.c is where it belongs, at configure-time.
14688 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14689 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14690 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14691 { (exit 1); exit 1; }; }
14692
14693 ac_save_LIBS=$LIBS
14694
14695 # Check for getloadavg, but be sure not to touch the cache variable.
14696 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14697 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14698 if test "${ac_cv_func_getloadavg+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14709 #define getloadavg innocuous_getloadavg
14710
14711 /* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char getloadavg (); below.
14713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 <limits.h> exists even on freestanding compilers. */
14715
14716 #ifdef __STDC__
14717 # include <limits.h>
14718 #else
14719 # include <assert.h>
14720 #endif
14721
14722 #undef getloadavg
14723
14724 /* Override any gcc2 internal prototype to avoid an error. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 {
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char getloadavg ();
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14736 choke me
14737 #else
14738 char (*f) () = getloadavg;
14739 #endif
14740 #ifdef __cplusplus
14741 }
14742 #endif
14743
14744 int
14745 main ()
14746 {
14747 return f != getloadavg;
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -z "$ac_c_werror_flag"
14762 || test ! -s conftest.err'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_func_getloadavg=yes
14775 else
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 ac_cv_func_getloadavg=no
14780 fi
14781 rm -f conftest.err conftest.$ac_objext \
14782 conftest$ac_exeext conftest.$ac_ext
14783 fi
14784 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14785 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14786 if test $ac_cv_func_getloadavg = yes; then
14787 exit 0
14788 else
14789 exit 1
14790 fi
14791 ) && ac_have_func=yes
14792
14793 # On HPUX9, an unprivileged user can get load averages through this function.
14794
14795 for ac_func in pstat_getdynamic
14796 do
14797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14798 echo "$as_me:$LINENO: checking for $ac_func" >&5
14799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14800 if eval "test \"\${$as_ac_var+set}\" = set"; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14811 #define $ac_func innocuous_$ac_func
14812
14813 /* System header to define __stub macros and hopefully few prototypes,
14814 which can conflict with char $ac_func (); below.
14815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14816 <limits.h> exists even on freestanding compilers. */
14817
14818 #ifdef __STDC__
14819 # include <limits.h>
14820 #else
14821 # include <assert.h>
14822 #endif
14823
14824 #undef $ac_func
14825
14826 /* Override any gcc2 internal prototype to avoid an error. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 {
14830 #endif
14831 /* We use char because int might match the return type of a gcc2
14832 builtin and then its argument prototype would still apply. */
14833 char $ac_func ();
14834 /* The GNU C library defines this for functions which it implements
14835 to always fail with ENOSYS. Some functions are actually named
14836 something starting with __ and the normal name is an alias. */
14837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14838 choke me
14839 #else
14840 char (*f) () = $ac_func;
14841 #endif
14842 #ifdef __cplusplus
14843 }
14844 #endif
14845
14846 int
14847 main ()
14848 {
14849 return f != $ac_func;
14850 ;
14851 return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try='test -z "$ac_c_werror_flag"
14864 || test ! -s conftest.err'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest$ac_exeext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 eval "$as_ac_var=yes"
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 eval "$as_ac_var=no"
14882 fi
14883 rm -f conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 fi
14886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14888 if test `eval echo '${'$as_ac_var'}'` = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14891 _ACEOF
14892
14893 fi
14894 done
14895
14896
14897 # Solaris has libkstat which does not require root.
14898
14899 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14900 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14901 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904 ac_check_lib_save_LIBS=$LIBS
14905 LIBS="-lkstat $LIBS"
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h. */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912
14913 /* Override any gcc2 internal prototype to avoid an error. */
14914 #ifdef __cplusplus
14915 extern "C"
14916 #endif
14917 /* We use char because int might match the return type of a gcc2
14918 builtin and then its argument prototype would still apply. */
14919 char kstat_open ();
14920 int
14921 main ()
14922 {
14923 kstat_open ();
14924 ;
14925 return 0;
14926 }
14927 _ACEOF
14928 rm -f conftest.$ac_objext conftest$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930 (eval $ac_link) 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest$ac_exeext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_lib_kstat_kstat_open=yes
14951 else
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_cv_lib_kstat_kstat_open=no
14956 fi
14957 rm -f conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_check_lib_save_LIBS
14960 fi
14961 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14962 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14963 if test $ac_cv_lib_kstat_kstat_open = yes; then
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_LIBKSTAT 1
14966 _ACEOF
14967
14968 LIBS="-lkstat $LIBS"
14969
14970 fi
14971
14972 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14973
14974 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14975 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14976 # to get the right answer into the cache.
14977 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14978 if test $ac_have_func = no; then
14979 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14980 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14981 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lelf $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992
14993 /* Override any gcc2 internal prototype to avoid an error. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
14999 char elf_begin ();
15000 int
15001 main ()
15002 {
15003 elf_begin ();
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_lib_elf_elf_begin=yes
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 ac_cv_lib_elf_elf_begin=no
15036 fi
15037 rm -f conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15040 fi
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15042 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15043 if test $ac_cv_lib_elf_elf_begin = yes; then
15044 LIBS="-lelf $LIBS"
15045 fi
15046
15047 fi
15048 if test $ac_have_func = no; then
15049 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15050 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15051 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lkvm $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062
15063 /* Override any gcc2 internal prototype to avoid an error. */
15064 #ifdef __cplusplus
15065 extern "C"
15066 #endif
15067 /* We use char because int might match the return type of a gcc2
15068 builtin and then its argument prototype would still apply. */
15069 char kvm_open ();
15070 int
15071 main ()
15072 {
15073 kvm_open ();
15074 ;
15075 return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15080 (eval $ac_link) 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_lib_kvm_kvm_open=yes
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_cv_lib_kvm_kvm_open=no
15106 fi
15107 rm -f conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15110 fi
15111 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15112 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15113 if test $ac_cv_lib_kvm_kvm_open = yes; then
15114 LIBS="-lkvm $LIBS"
15115 fi
15116
15117 # Check for the 4.4BSD definition of getloadavg.
15118 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15119 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15120 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 ac_check_lib_save_LIBS=$LIBS
15124 LIBS="-lutil $LIBS"
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131
15132 /* Override any gcc2 internal prototype to avoid an error. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char getloadavg ();
15139 int
15140 main ()
15141 {
15142 getloadavg ();
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag"
15157 || test ! -s conftest.err'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; } &&
15163 { ac_try='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_util_getloadavg=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174 ac_cv_lib_util_getloadavg=no
15175 fi
15176 rm -f conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15179 fi
15180 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15181 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15182 if test $ac_cv_lib_util_getloadavg = yes; then
15183 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15184 fi
15185
15186 fi
15187
15188 if test $ac_have_func = no; then
15189 # There is a commonly available library for RS/6000 AIX.
15190 # Since it is not a standard part of AIX, it might be installed locally.
15191 ac_getloadavg_LIBS=$LIBS
15192 LIBS="-L/usr/local/lib $LIBS"
15193 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15194 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15195 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198 ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-lgetloadavg $LIBS"
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206
15207 /* Override any gcc2 internal prototype to avoid an error. */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char getloadavg ();
15214 int
15215 main ()
15216 {
15217 getloadavg ();
15218 ;
15219 return 0;
15220 }
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_cv_lib_getloadavg_getloadavg=yes
15245 else
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249 ac_cv_lib_getloadavg_getloadavg=no
15250 fi
15251 rm -f conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15253 LIBS=$ac_check_lib_save_LIBS
15254 fi
15255 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15256 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15257 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15258 LIBS="-lgetloadavg $LIBS"
15259 else
15260 LIBS=$ac_getloadavg_LIBS
15261 fi
15262
15263 fi
15264
15265 # Make sure it is really in the library, if we think we found it,
15266 # otherwise set up the replacement function.
15267
15268 for ac_func in getloadavg
15269 do
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15285
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15290
15291 #ifdef __STDC__
15292 # include <limits.h>
15293 #else
15294 # include <assert.h>
15295 #endif
15296
15297 #undef $ac_func
15298
15299 /* Override any gcc2 internal prototype to avoid an error. */
15300 #ifdef __cplusplus
15301 extern "C"
15302 {
15303 #endif
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char $ac_func ();
15307 /* The GNU C library defines this for functions which it implements
15308 to always fail with ENOSYS. Some functions are actually named
15309 something starting with __ and the normal name is an alias. */
15310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 choke me
15312 #else
15313 char (*f) () = $ac_func;
15314 #endif
15315 #ifdef __cplusplus
15316 }
15317 #endif
15318
15319 int
15320 main ()
15321 {
15322 return f != $ac_func;
15323 ;
15324 return 0;
15325 }
15326 _ACEOF
15327 rm -f conftest.$ac_objext conftest$ac_exeext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15329 (eval $ac_link) 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag"
15337 || test ! -s conftest.err'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 eval "$as_ac_var=yes"
15350 else
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354 eval "$as_ac_var=no"
15355 fi
15356 rm -f conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 fi
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15361 if test `eval echo '${'$as_ac_var'}'` = yes; then
15362 cat >>confdefs.h <<_ACEOF
15363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15364 _ACEOF
15365
15366 else
15367 case $LIBOBJS in
15368 "getloadavg.$ac_objext" | \
15369 *" getloadavg.$ac_objext" | \
15370 "getloadavg.$ac_objext "* | \
15371 *" getloadavg.$ac_objext "* ) ;;
15372 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15373 esac
15374
15375
15376 cat >>confdefs.h <<\_ACEOF
15377 #define C_GETLOADAVG 1
15378 _ACEOF
15379
15380 # Figure out what our getloadavg.c needs.
15381 ac_have_func=no
15382 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15383 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15384 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15385 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 fi
15388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15389 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15390 else
15391 # Is the header compilable?
15392 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15393 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 #include <sys/dg_sys_info.h>
15402 _ACEOF
15403 rm -f conftest.$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405 (eval $ac_compile) 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag"
15413 || test ! -s conftest.err'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; } &&
15419 { ac_try='test -s conftest.$ac_objext'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler=yes
15426 else
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_header_compiler=no
15431 fi
15432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6
15435
15436 # Is the header present?
15437 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15438 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h. */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 #include <sys/dg_sys_info.h>
15446 _ACEOF
15447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } >/dev/null; then
15455 if test -s conftest.err; then
15456 ac_cpp_err=$ac_c_preproc_warn_flag
15457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15458 else
15459 ac_cpp_err=
15460 fi
15461 else
15462 ac_cpp_err=yes
15463 fi
15464 if test -z "$ac_cpp_err"; then
15465 ac_header_preproc=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 ac_header_preproc=no
15471 fi
15472 rm -f conftest.err conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15474 echo "${ECHO_T}$ac_header_preproc" >&6
15475
15476 # So? What about this header?
15477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15478 yes:no: )
15479 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15480 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15483 ac_header_preproc=yes
15484 ;;
15485 no:yes:* )
15486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15487 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15489 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15491 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15493 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15498 (
15499 cat <<\_ASBOX
15500 ## ------------------------------------------ ##
15501 ## Report this to the AC_PACKAGE_NAME lists. ##
15502 ## ------------------------------------------ ##
15503 _ASBOX
15504 ) |
15505 sed "s/^/$as_me: WARNING: /" >&2
15506 ;;
15507 esac
15508 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15509 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15510 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15514 fi
15515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15516 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15517
15518 fi
15519 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15520 ac_have_func=yes
15521
15522 cat >>confdefs.h <<\_ACEOF
15523 #define DGUX 1
15524 _ACEOF
15525
15526
15527 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15528 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15529 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-ldgc $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540
15541 /* Override any gcc2 internal prototype to avoid an error. */
15542 #ifdef __cplusplus
15543 extern "C"
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char dg_sys_info ();
15548 int
15549 main ()
15550 {
15551 dg_sys_info ();
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_dgc_dg_sys_info=yes
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583 ac_cv_lib_dgc_dg_sys_info=no
15584 fi
15585 rm -f conftest.err conftest.$ac_objext \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15588 fi
15589 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15590 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15591 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_LIBDGC 1
15594 _ACEOF
15595
15596 LIBS="-ldgc $LIBS"
15597
15598 fi
15599
15600 fi
15601
15602
15603
15604 if test "${ac_cv_header_locale_h+set}" = set; then
15605 echo "$as_me:$LINENO: checking for locale.h" >&5
15606 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15607 if test "${ac_cv_header_locale_h+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 fi
15610 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15611 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15612 else
15613 # Is the header compilable?
15614 echo "$as_me:$LINENO: checking locale.h usability" >&5
15615 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #include <locale.h>
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627 (eval $ac_compile) 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler=yes
15648 else
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 ac_header_compiler=no
15653 fi
15654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656 echo "${ECHO_T}$ac_header_compiler" >&6
15657
15658 # Is the header present?
15659 echo "$as_me:$LINENO: checking locale.h presence" >&5
15660 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h. */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <locale.h>
15668 _ACEOF
15669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680 else
15681 ac_cpp_err=
15682 fi
15683 else
15684 ac_cpp_err=yes
15685 fi
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15688 else
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 ac_header_preproc=no
15693 fi
15694 rm -f conftest.err conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696 echo "${ECHO_T}$ac_header_preproc" >&6
15697
15698 # So? What about this header?
15699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15700 yes:no: )
15701 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15702 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15704 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15705 ac_header_preproc=yes
15706 ;;
15707 no:yes:* )
15708 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15709 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15711 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15713 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15715 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15717 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15719 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15720 (
15721 cat <<\_ASBOX
15722 ## ------------------------------------------ ##
15723 ## Report this to the AC_PACKAGE_NAME lists. ##
15724 ## ------------------------------------------ ##
15725 _ASBOX
15726 ) |
15727 sed "s/^/$as_me: WARNING: /" >&2
15728 ;;
15729 esac
15730 echo "$as_me:$LINENO: checking for locale.h" >&5
15731 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15732 if test "${ac_cv_header_locale_h+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735 ac_cv_header_locale_h=$ac_header_preproc
15736 fi
15737 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15738 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15739
15740 fi
15741
15742
15743
15744 for ac_func in setlocale
15745 do
15746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15747 echo "$as_me:$LINENO: checking for $ac_func" >&5
15748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_var+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760 #define $ac_func innocuous_$ac_func
15761
15762 /* System header to define __stub macros and hopefully few prototypes,
15763 which can conflict with char $ac_func (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15766
15767 #ifdef __STDC__
15768 # include <limits.h>
15769 #else
15770 # include <assert.h>
15771 #endif
15772
15773 #undef $ac_func
15774
15775 /* Override any gcc2 internal prototype to avoid an error. */
15776 #ifdef __cplusplus
15777 extern "C"
15778 {
15779 #endif
15780 /* We use char because int might match the return type of a gcc2
15781 builtin and then its argument prototype would still apply. */
15782 char $ac_func ();
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15787 choke me
15788 #else
15789 char (*f) () = $ac_func;
15790 #endif
15791 #ifdef __cplusplus
15792 }
15793 #endif
15794
15795 int
15796 main ()
15797 {
15798 return f != $ac_func;
15799 ;
15800 return 0;
15801 }
15802 _ACEOF
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15826 else
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 eval "$as_ac_var=no"
15831 fi
15832 rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 fi
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840 _ACEOF
15841
15842 fi
15843 done
15844
15845
15846 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15847 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15848 # Irix 4.0.5F has the header but not the library.
15849 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15850 ac_have_func=yes
15851
15852 cat >>confdefs.h <<\_ACEOF
15853 #define SVR4 1
15854 _ACEOF
15855
15856 fi
15857
15858 if test $ac_have_func = no; then
15859 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15860 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15861 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15862 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 fi
15865 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15866 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15867 else
15868 # Is the header compilable?
15869 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15870 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <inq_stats/cpustats.h>
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler=yes
15903 else
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_header_compiler=no
15908 fi
15909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6
15912
15913 # Is the header present?
15914 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15915 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <inq_stats/cpustats.h>
15923 _ACEOF
15924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 else
15936 ac_cpp_err=
15937 fi
15938 else
15939 ac_cpp_err=yes
15940 fi
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15943 else
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947 ac_header_preproc=no
15948 fi
15949 rm -f conftest.err conftest.$ac_ext
15950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6
15952
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 yes:no: )
15956 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15961 ;;
15962 no:yes:* )
15963 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15975 (
15976 cat <<\_ASBOX
15977 ## ------------------------------------------ ##
15978 ## Report this to the AC_PACKAGE_NAME lists. ##
15979 ## ------------------------------------------ ##
15980 _ASBOX
15981 ) |
15982 sed "s/^/$as_me: WARNING: /" >&2
15983 ;;
15984 esac
15985 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15986 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15987 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15991 fi
15992 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15993 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15994
15995 fi
15996 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15997 ac_have_func=yes
15998
15999 cat >>confdefs.h <<\_ACEOF
16000 #define UMAX 1
16001 _ACEOF
16002
16003
16004 cat >>confdefs.h <<\_ACEOF
16005 #define UMAX4_3 1
16006 _ACEOF
16007
16008 fi
16009
16010
16011 fi
16012
16013 if test $ac_have_func = no; then
16014 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16015 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16016 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16017 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 fi
16020 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16021 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16022 else
16023 # Is the header compilable?
16024 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16025 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 $ac_includes_default
16033 #include <sys/cpustats.h>
16034 _ACEOF
16035 rm -f conftest.$ac_objext
16036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16037 (eval $ac_compile) 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -z "$ac_c_werror_flag"
16045 || test ! -s conftest.err'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest.$ac_objext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_header_compiler=yes
16058 else
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_header_compiler=no
16063 fi
16064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16066 echo "${ECHO_T}$ac_header_compiler" >&6
16067
16068 # Is the header present?
16069 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16070 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #include <sys/cpustats.h>
16078 _ACEOF
16079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev/null; then
16087 if test -s conftest.err; then
16088 ac_cpp_err=$ac_c_preproc_warn_flag
16089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16090 else
16091 ac_cpp_err=
16092 fi
16093 else
16094 ac_cpp_err=yes
16095 fi
16096 if test -z "$ac_cpp_err"; then
16097 ac_header_preproc=yes
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16101
16102 ac_header_preproc=no
16103 fi
16104 rm -f conftest.err conftest.$ac_ext
16105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 echo "${ECHO_T}$ac_header_preproc" >&6
16107
16108 # So? What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110 yes:no: )
16111 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16112 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16115 ac_header_preproc=yes
16116 ;;
16117 no:yes:* )
16118 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16119 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16121 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16123 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16125 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16127 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16130 (
16131 cat <<\_ASBOX
16132 ## ------------------------------------------ ##
16133 ## Report this to the AC_PACKAGE_NAME lists. ##
16134 ## ------------------------------------------ ##
16135 _ASBOX
16136 ) |
16137 sed "s/^/$as_me: WARNING: /" >&2
16138 ;;
16139 esac
16140 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16141 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16142 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16146 fi
16147 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16148 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16149
16150 fi
16151 if test $ac_cv_header_sys_cpustats_h = yes; then
16152 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16153 #define UMAX 1
16154 _ACEOF
16155
16156 fi
16157
16158
16159 fi
16160
16161 if test $ac_have_func = no; then
16162
16163 for ac_header in mach/mach.h
16164 do
16165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16167 echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 fi
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16174 else
16175 # Is the header compilable?
16176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $ac_includes_default
16185 #include <$ac_header>
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_header_compiler=no
16215 fi
16216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16218 echo "${ECHO_T}$ac_header_compiler" >&6
16219
16220 # Is the header present?
16221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h. */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 #include <$ac_header>
16230 _ACEOF
16231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } >/dev/null; then
16239 if test -s conftest.err; then
16240 ac_cpp_err=$ac_c_preproc_warn_flag
16241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16242 else
16243 ac_cpp_err=
16244 fi
16245 else
16246 ac_cpp_err=yes
16247 fi
16248 if test -z "$ac_cpp_err"; then
16249 ac_header_preproc=yes
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_header_preproc=no
16255 fi
16256 rm -f conftest.err conftest.$ac_ext
16257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16258 echo "${ECHO_T}$ac_header_preproc" >&6
16259
16260 # So? What about this header?
16261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16262 yes:no: )
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16267 ac_header_preproc=yes
16268 ;;
16269 no:yes:* )
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16282 (
16283 cat <<\_ASBOX
16284 ## ------------------------------------------ ##
16285 ## Report this to the AC_PACKAGE_NAME lists. ##
16286 ## ------------------------------------------ ##
16287 _ASBOX
16288 ) |
16289 sed "s/^/$as_me: WARNING: /" >&2
16290 ;;
16291 esac
16292 echo "$as_me:$LINENO: checking for $ac_header" >&5
16293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297 eval "$as_ac_Header=\$ac_header_preproc"
16298 fi
16299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16301
16302 fi
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304 cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16306 _ACEOF
16307
16308 fi
16309
16310 done
16311
16312 fi
16313
16314
16315 for ac_header in nlist.h
16316 do
16317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 fi
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16326 else
16327 # Is the header compilable?
16328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16330 cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 $ac_includes_default
16337 #include <$ac_header>
16338 _ACEOF
16339 rm -f conftest.$ac_objext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16341 (eval $ac_compile) 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag"
16349 || test ! -s conftest.err'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest.$ac_objext'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_header_compiler=yes
16362 else
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 ac_header_compiler=no
16367 fi
16368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6
16371
16372 # Is the header present?
16373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 #include <$ac_header>
16382 _ACEOF
16383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } >/dev/null; then
16391 if test -s conftest.err; then
16392 ac_cpp_err=$ac_c_preproc_warn_flag
16393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16394 else
16395 ac_cpp_err=
16396 fi
16397 else
16398 ac_cpp_err=yes
16399 fi
16400 if test -z "$ac_cpp_err"; then
16401 ac_header_preproc=yes
16402 else
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_header_preproc=no
16407 fi
16408 rm -f conftest.err conftest.$ac_ext
16409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16410 echo "${ECHO_T}$ac_header_preproc" >&6
16411
16412 # So? What about this header?
16413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16414 yes:no: )
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16419 ac_header_preproc=yes
16420 ;;
16421 no:yes:* )
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16434 (
16435 cat <<\_ASBOX
16436 ## ------------------------------------------ ##
16437 ## Report this to the AC_PACKAGE_NAME lists. ##
16438 ## ------------------------------------------ ##
16439 _ASBOX
16440 ) |
16441 sed "s/^/$as_me: WARNING: /" >&2
16442 ;;
16443 esac
16444 echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449 eval "$as_ac_Header=\$ac_header_preproc"
16450 fi
16451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16453
16454 fi
16455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16458 _ACEOF
16459 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16460 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16461 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h. */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 #include <nlist.h>
16471
16472 int
16473 main ()
16474 {
16475 static struct nlist ac_aggr;
16476 if (ac_aggr.n_un.n_name)
16477 return 0;
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_member_struct_nlist_n_un_n_name=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h. */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 #include <nlist.h>
16516
16517 int
16518 main ()
16519 {
16520 static struct nlist ac_aggr;
16521 if (sizeof ac_aggr.n_un.n_name)
16522 return 0;
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 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"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_member_struct_nlist_n_un_n_name=yes
16550 else
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16553
16554 ac_cv_member_struct_nlist_n_un_n_name=no
16555 fi
16556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16557 fi
16558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16559 fi
16560 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16561 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16562 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16563
16564 cat >>confdefs.h <<_ACEOF
16565 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16566 _ACEOF
16567
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define NLIST_NAME_UNION 1
16571 _ACEOF
16572
16573 fi
16574
16575
16576 fi
16577
16578 done
16579
16580 fi
16581 done
16582
16583
16584 # Some definitions of getloadavg require that the program be installed setgid.
16585 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16586 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16587 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h. */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16597 #ifdef LDAV_PRIVILEGED
16598 Yowza Am I SETGID yet
16599 #endif
16600 _ACEOF
16601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16602 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16603 ac_cv_func_getloadavg_setgid=yes
16604 else
16605 ac_cv_func_getloadavg_setgid=no
16606 fi
16607 rm -f conftest*
16608
16609 fi
16610 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16611 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16612 if test $ac_cv_func_getloadavg_setgid = yes; then
16613 NEED_SETGID=true
16614
16615 cat >>confdefs.h <<\_ACEOF
16616 #define GETLOADAVG_PRIVILEGED 1
16617 _ACEOF
16618
16619 else
16620 NEED_SETGID=false
16621 fi
16622
16623 if test $ac_cv_func_getloadavg_setgid = yes; then
16624 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16625 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16626 if test "${ac_cv_group_kmem+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16630 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16631 # If we got an error (system does not support symlinks), try without -L.
16632 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16633 ac_cv_group_kmem=`echo $ac_ls_output \
16634 | sed -ne 's/[ ][ ]*/ /g;
16635 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16636 / /s/.* //;p;'`
16637
16638 fi
16639 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16640 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16641 KMEM_GROUP=$ac_cv_group_kmem
16642 fi
16643 if test "x$ac_save_LIBS" = x; then
16644 GETLOADAVG_LIBS=$LIBS
16645 else
16646 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16647 fi
16648 LIBS=$ac_save_LIBS
16649
16650
16651
16652 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16653 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16654 if test "${ac_cv_sys_largefile_source+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657 while :; do
16658 ac_cv_sys_largefile_source=no
16659 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h. */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 #include <stdio.h>
16666 int
16667 main ()
16668 {
16669 return !fseeko;
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 break
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #define _LARGEFILE_SOURCE 1
16710 #include <stdio.h>
16711 int
16712 main ()
16713 {
16714 return !fseeko;
16715 ;
16716 return 0;
16717 }
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_sys_largefile_source=1; break
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 fi
16747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748 break
16749 done
16750 fi
16751 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16752 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16753 if test "$ac_cv_sys_largefile_source" != no; then
16754
16755 cat >>confdefs.h <<_ACEOF
16756 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16757 _ACEOF
16758
16759 fi
16760 rm -f conftest*
16761
16762 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16763 # in glibc 2.1.3, but that breaks too many other things.
16764 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16765 echo "$as_me:$LINENO: checking for fseeko" >&5
16766 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16767 if test "${ac_cv_func_fseeko+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 #include <stdio.h>
16777 int
16778 main ()
16779 {
16780 return fseeko && fseeko (stdin, 0, 0);
16781 ;
16782 return 0;
16783 }
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787 (eval $ac_link) 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_func_fseeko=yes
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 ac_cv_func_fseeko=no
16813 fi
16814 rm -f conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 fi
16817 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16818 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16819 if test $ac_cv_func_fseeko = yes; then
16820
16821 cat >>confdefs.h <<\_ACEOF
16822 #define HAVE_FSEEKO 1
16823 _ACEOF
16824
16825 fi
16826
16827
16828 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16829 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16830 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 # Use it with a single arg.
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 $ac_includes_default
16841 int
16842 main ()
16843 {
16844 getpgrp (0);
16845 ;
16846 return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851 (eval $ac_compile) 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_func_getpgrp_void=no
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_cv_func_getpgrp_void=yes
16877 fi
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879
16880 fi
16881 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16882 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16883 if test $ac_cv_func_getpgrp_void = yes; then
16884
16885 cat >>confdefs.h <<\_ACEOF
16886 #define GETPGRP_VOID 1
16887 _ACEOF
16888
16889 fi
16890
16891
16892
16893 for ac_func in strftime
16894 do
16895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16896 echo "$as_me:$LINENO: checking for $ac_func" >&5
16897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16898 if eval "test \"\${$as_ac_var+set}\" = set"; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16909 #define $ac_func innocuous_$ac_func
16910
16911 /* System header to define __stub macros and hopefully few prototypes,
16912 which can conflict with char $ac_func (); below.
16913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914 <limits.h> exists even on freestanding compilers. */
16915
16916 #ifdef __STDC__
16917 # include <limits.h>
16918 #else
16919 # include <assert.h>
16920 #endif
16921
16922 #undef $ac_func
16923
16924 /* Override any gcc2 internal prototype to avoid an error. */
16925 #ifdef __cplusplus
16926 extern "C"
16927 {
16928 #endif
16929 /* We use char because int might match the return type of a gcc2
16930 builtin and then its argument prototype would still apply. */
16931 char $ac_func ();
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936 choke me
16937 #else
16938 char (*f) () = $ac_func;
16939 #endif
16940 #ifdef __cplusplus
16941 }
16942 #endif
16943
16944 int
16945 main ()
16946 {
16947 return f != $ac_func;
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16954 (eval $ac_link) 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 eval "$as_ac_var=yes"
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 eval "$as_ac_var=no"
16980 fi
16981 rm -f conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 fi
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16986 if test `eval echo '${'$as_ac_var'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 _ACEOF
16990
16991 else
16992 # strftime is in -lintl on SCO UNIX.
16993 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16994 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16995 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998 ac_check_lib_save_LIBS=$LIBS
16999 LIBS="-lintl $LIBS"
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006
17007 /* Override any gcc2 internal prototype to avoid an error. */
17008 #ifdef __cplusplus
17009 extern "C"
17010 #endif
17011 /* We use char because int might match the return type of a gcc2
17012 builtin and then its argument prototype would still apply. */
17013 char strftime ();
17014 int
17015 main ()
17016 {
17017 strftime ();
17018 ;
17019 return 0;
17020 }
17021 _ACEOF
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_intl_strftime=yes
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 ac_cv_lib_intl_strftime=no
17050 fi
17051 rm -f conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17054 fi
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17056 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17057 if test $ac_cv_lib_intl_strftime = yes; then
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_STRFTIME 1
17060 _ACEOF
17061
17062 LIBS="-lintl $LIBS"
17063 fi
17064
17065 fi
17066 done
17067
17068
17069 # UNIX98 PTYs.
17070
17071 for ac_func in grantpt
17072 do
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17076 if eval "test \"\${$as_ac_var+set}\" = set"; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h. */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087 #define $ac_func innocuous_$ac_func
17088
17089 /* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17093
17094 #ifdef __STDC__
17095 # include <limits.h>
17096 #else
17097 # include <assert.h>
17098 #endif
17099
17100 #undef $ac_func
17101
17102 /* Override any gcc2 internal prototype to avoid an error. */
17103 #ifdef __cplusplus
17104 extern "C"
17105 {
17106 #endif
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109 char $ac_func ();
17110 /* The GNU C library defines this for functions which it implements
17111 to always fail with ENOSYS. Some functions are actually named
17112 something starting with __ and the normal name is an alias. */
17113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17114 choke me
17115 #else
17116 char (*f) () = $ac_func;
17117 #endif
17118 #ifdef __cplusplus
17119 }
17120 #endif
17121
17122 int
17123 main ()
17124 {
17125 return f != $ac_func;
17126 ;
17127 return 0;
17128 }
17129 _ACEOF
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 eval "$as_ac_var=yes"
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 eval "$as_ac_var=no"
17158 fi
17159 rm -f conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17161 fi
17162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17168
17169 fi
17170 done
17171
17172
17173 # PTY-related GNU extensions.
17174
17175 for ac_func in getpt
17176 do
17177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17178 echo "$as_me:$LINENO: checking for $ac_func" >&5
17179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17180 if eval "test \"\${$as_ac_var+set}\" = set"; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17191 #define $ac_func innocuous_$ac_func
17192
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char $ac_func (); below.
17195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17196 <limits.h> exists even on freestanding compilers. */
17197
17198 #ifdef __STDC__
17199 # include <limits.h>
17200 #else
17201 # include <assert.h>
17202 #endif
17203
17204 #undef $ac_func
17205
17206 /* Override any gcc2 internal prototype to avoid an error. */
17207 #ifdef __cplusplus
17208 extern "C"
17209 {
17210 #endif
17211 /* We use char because int might match the return type of a gcc2
17212 builtin and then its argument prototype would still apply. */
17213 char $ac_func ();
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17218 choke me
17219 #else
17220 char (*f) () = $ac_func;
17221 #endif
17222 #ifdef __cplusplus
17223 }
17224 #endif
17225
17226 int
17227 main ()
17228 {
17229 return f != $ac_func;
17230 ;
17231 return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 eval "$as_ac_var=yes"
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 eval "$as_ac_var=no"
17262 fi
17263 rm -f conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 fi
17266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17268 if test `eval echo '${'$as_ac_var'}'` = yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17271 _ACEOF
17272
17273 fi
17274 done
17275
17276
17277 # Check this now, so that we will NOT find the above functions in ncurses.
17278 # That is because we have not set up to link ncurses in lib-src.
17279 # It's better to believe a function is not available
17280 # than to expect to find it in ncurses.
17281
17282 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17283 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17284 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287 ac_check_lib_save_LIBS=$LIBS
17288 LIBS="-lncurses $LIBS"
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295
17296 /* Override any gcc2 internal prototype to avoid an error. */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 /* We use char because int might match the return type of a gcc2
17301 builtin and then its argument prototype would still apply. */
17302 char tparm ();
17303 int
17304 main ()
17305 {
17306 tparm ();
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_lib_ncurses_tparm=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_cv_lib_ncurses_tparm=no
17339 fi
17340 rm -f conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17345 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17346 if test $ac_cv_lib_ncurses_tparm = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_LIBNCURSES 1
17349 _ACEOF
17350
17351 LIBS="-lncurses $LIBS"
17352
17353 fi
17354
17355
17356 # Do we need the Hesiod library to provide the support routines?
17357 if test "$with_hesiod" = yes ; then
17358 # Don't set $LIBS here -- see comments above.
17359 resolv=no
17360 echo "$as_me:$LINENO: checking for res_send" >&5
17361 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17362 if test "${ac_cv_func_res_send+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define res_send innocuous_res_send
17374
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char res_send (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17379
17380 #ifdef __STDC__
17381 # include <limits.h>
17382 #else
17383 # include <assert.h>
17384 #endif
17385
17386 #undef res_send
17387
17388 /* Override any gcc2 internal prototype to avoid an error. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 {
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 res_send ();
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined (__stub_res_send) || defined (__stub___res_send)
17400 choke me
17401 #else
17402 char (*f) () = res_send;
17403 #endif
17404 #ifdef __cplusplus
17405 }
17406 #endif
17407
17408 int
17409 main ()
17410 {
17411 return f != res_send;
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_func_res_send=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ac_cv_func_res_send=no
17444 fi
17445 rm -f conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17449 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17450 if test $ac_cv_func_res_send = yes; then
17451 :
17452 else
17453 echo "$as_me:$LINENO: checking for __res_send" >&5
17454 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17455 if test "${ac_cv_func___res_send+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17466 #define __res_send innocuous___res_send
17467
17468 /* System header to define __stub macros and hopefully few prototypes,
17469 which can conflict with char __res_send (); below.
17470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471 <limits.h> exists even on freestanding compilers. */
17472
17473 #ifdef __STDC__
17474 # include <limits.h>
17475 #else
17476 # include <assert.h>
17477 #endif
17478
17479 #undef __res_send
17480
17481 /* Override any gcc2 internal prototype to avoid an error. */
17482 #ifdef __cplusplus
17483 extern "C"
17484 {
17485 #endif
17486 /* We use char because int might match the return type of a gcc2
17487 builtin and then its argument prototype would still apply. */
17488 char __res_send ();
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined (__stub___res_send) || defined (__stub_____res_send)
17493 choke me
17494 #else
17495 char (*f) () = __res_send;
17496 #endif
17497 #ifdef __cplusplus
17498 }
17499 #endif
17500
17501 int
17502 main ()
17503 {
17504 return f != __res_send;
17505 ;
17506 return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511 (eval $ac_link) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag"
17519 || test ! -s conftest.err'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try='test -s conftest$ac_exeext'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ac_cv_func___res_send=yes
17532 else
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 ac_cv_func___res_send=no
17537 fi
17538 rm -f conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17540 fi
17541 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17542 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17543 if test $ac_cv_func___res_send = yes; then
17544 :
17545 else
17546 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17547 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17548 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551 ac_check_lib_save_LIBS=$LIBS
17552 LIBS="-lresolv $LIBS"
17553 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h. */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17559
17560 /* Override any gcc2 internal prototype to avoid an error. */
17561 #ifdef __cplusplus
17562 extern "C"
17563 #endif
17564 /* We use char because int might match the return type of a gcc2
17565 builtin and then its argument prototype would still apply. */
17566 char res_send ();
17567 int
17568 main ()
17569 {
17570 res_send ();
17571 ;
17572 return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577 (eval $ac_link) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_resolv_res_send=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 ac_cv_lib_resolv_res_send=no
17603 fi
17604 rm -f conftest.err conftest.$ac_objext \
17605 conftest$ac_exeext conftest.$ac_ext
17606 LIBS=$ac_check_lib_save_LIBS
17607 fi
17608 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17609 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17610 if test $ac_cv_lib_resolv_res_send = yes; then
17611 resolv=yes
17612 else
17613 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17614 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17615 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 ac_check_lib_save_LIBS=$LIBS
17619 LIBS="-lresolv $LIBS"
17620 cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626
17627 /* Override any gcc2 internal prototype to avoid an error. */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 /* We use char because int might match the return type of a gcc2
17632 builtin and then its argument prototype would still apply. */
17633 char __res_send ();
17634 int
17635 main ()
17636 {
17637 __res_send ();
17638 ;
17639 return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>conftest.er1
17645 ac_status=$?
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag"
17652 || test ! -s conftest.err'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest$ac_exeext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_lib_resolv___res_send=yes
17665 else
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_cv_lib_resolv___res_send=no
17670 fi
17671 rm -f conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17673 LIBS=$ac_check_lib_save_LIBS
17674 fi
17675 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17676 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17677 if test $ac_cv_lib_resolv___res_send = yes; then
17678 resolv=yes
17679 fi
17680
17681 fi
17682
17683 fi
17684
17685 fi
17686
17687 if test "$resolv" = yes ; then
17688 RESOLVLIB=-lresolv
17689
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_LIBRESOLV 1
17692 _ACEOF
17693
17694 else
17695 RESOLVLIB=
17696 fi
17697 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17698 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17699 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17710 #define hes_getmailhost innocuous_hes_getmailhost
17711
17712 /* System header to define __stub macros and hopefully few prototypes,
17713 which can conflict with char hes_getmailhost (); below.
17714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17715 <limits.h> exists even on freestanding compilers. */
17716
17717 #ifdef __STDC__
17718 # include <limits.h>
17719 #else
17720 # include <assert.h>
17721 #endif
17722
17723 #undef hes_getmailhost
17724
17725 /* Override any gcc2 internal prototype to avoid an error. */
17726 #ifdef __cplusplus
17727 extern "C"
17728 {
17729 #endif
17730 /* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17732 char hes_getmailhost ();
17733 /* The GNU C library defines this for functions which it implements
17734 to always fail with ENOSYS. Some functions are actually named
17735 something starting with __ and the normal name is an alias. */
17736 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17737 choke me
17738 #else
17739 char (*f) () = hes_getmailhost;
17740 #endif
17741 #ifdef __cplusplus
17742 }
17743 #endif
17744
17745 int
17746 main ()
17747 {
17748 return f != hes_getmailhost;
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext conftest$ac_exeext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest$ac_exeext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_func_hes_getmailhost=yes
17776 else
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 ac_cv_func_hes_getmailhost=no
17781 fi
17782 rm -f conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17786 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17787 if test $ac_cv_func_hes_getmailhost = yes; then
17788 :
17789 else
17790 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17791 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17792 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-lhesiod $RESOLVLIB $LIBS"
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803
17804 /* Override any gcc2 internal prototype to avoid an error. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 /* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17810 char hes_getmailhost ();
17811 int
17812 main ()
17813 {
17814 hes_getmailhost ();
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17821 (eval $ac_link) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_hesiod_hes_getmailhost=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_lib_hesiod_hes_getmailhost=no
17847 fi
17848 rm -f conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17851 fi
17852 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17853 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17854 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17855
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_LIBHESIOD 1
17858 _ACEOF
17859
17860 else
17861 :
17862 fi
17863
17864 fi
17865
17866 fi
17867
17868 # These tell us which Kerberos-related libraries to use.
17869 if test "${with_kerberos+set}" = set; then
17870
17871 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17872 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17873 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876 ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-lcom_err $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h. */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884
17885 /* Override any gcc2 internal prototype to avoid an error. */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 /* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17891 char com_err ();
17892 int
17893 main ()
17894 {
17895 com_err ();
17896 ;
17897 return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 (eval $ac_link) 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_com_err_com_err=yes
17923 else
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_cv_lib_com_err_com_err=no
17928 fi
17929 rm -f conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17932 fi
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17934 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17935 if test $ac_cv_lib_com_err_com_err = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define HAVE_LIBCOM_ERR 1
17938 _ACEOF
17939
17940 LIBS="-lcom_err $LIBS"
17941
17942 fi
17943
17944
17945 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17946 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17947 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 ac_check_lib_save_LIBS=$LIBS
17951 LIBS="-lk5crypto $LIBS"
17952 cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h. */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958
17959 /* Override any gcc2 internal prototype to avoid an error. */
17960 #ifdef __cplusplus
17961 extern "C"
17962 #endif
17963 /* We use char because int might match the return type of a gcc2
17964 builtin and then its argument prototype would still apply. */
17965 char mit_des_cbc_encrypt ();
17966 int
17967 main ()
17968 {
17969 mit_des_cbc_encrypt ();
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext conftest$ac_exeext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976 (eval $ac_link) 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18002 fi
18003 rm -f conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 LIBS=$ac_check_lib_save_LIBS
18006 fi
18007 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18008 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18009 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_LIBK5CRYPTO 1
18012 _ACEOF
18013
18014 LIBS="-lk5crypto $LIBS"
18015
18016 fi
18017
18018
18019 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18020 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18021 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024 ac_check_lib_save_LIBS=$LIBS
18025 LIBS="-lcrypto $LIBS"
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032
18033 /* Override any gcc2 internal prototype to avoid an error. */
18034 #ifdef __cplusplus
18035 extern "C"
18036 #endif
18037 /* We use char because int might match the return type of a gcc2
18038 builtin and then its argument prototype would still apply. */
18039 char mit_des_cbc_encrypt ();
18040 int
18041 main ()
18042 {
18043 mit_des_cbc_encrypt ();
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext conftest$ac_exeext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050 (eval $ac_link) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18076 fi
18077 rm -f conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 LIBS=$ac_check_lib_save_LIBS
18080 fi
18081 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18082 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18083 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_LIBCRYPTO 1
18086 _ACEOF
18087
18088 LIBS="-lcrypto $LIBS"
18089
18090 fi
18091
18092
18093 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18094 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18095 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 ac_check_lib_save_LIBS=$LIBS
18099 LIBS="-lkrb5 $LIBS"
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106
18107 /* Override any gcc2 internal prototype to avoid an error. */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 /* We use char because int might match the return type of a gcc2
18112 builtin and then its argument prototype would still apply. */
18113 char krb5_init_context ();
18114 int
18115 main ()
18116 {
18117 krb5_init_context ();
18118 ;
18119 return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag"
18132 || test ! -s conftest.err'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest$ac_exeext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_cv_lib_krb5_krb5_init_context=yes
18145 else
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ac_cv_lib_krb5_krb5_init_context=no
18150 fi
18151 rm -f conftest.err conftest.$ac_objext \
18152 conftest$ac_exeext conftest.$ac_ext
18153 LIBS=$ac_check_lib_save_LIBS
18154 fi
18155 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18156 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18157 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE_LIBKRB5 1
18160 _ACEOF
18161
18162 LIBS="-lkrb5 $LIBS"
18163
18164 fi
18165
18166 if test "${with_kerberos5+set}" != set; then
18167
18168 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18169 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18170 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173 ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-ldes425 $LIBS"
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181
18182 /* Override any gcc2 internal prototype to avoid an error. */
18183 #ifdef __cplusplus
18184 extern "C"
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char des_cbc_encrypt ();
18189 int
18190 main ()
18191 {
18192 des_cbc_encrypt ();
18193 ;
18194 return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag"
18207 || test ! -s conftest.err'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_lib_des425_des_cbc_encrypt=yes
18220 else
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224 ac_cv_lib_des425_des_cbc_encrypt=no
18225 fi
18226 rm -f conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18229 fi
18230 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18231 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18232 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define HAVE_LIBDES425 1
18235 _ACEOF
18236
18237 LIBS="-ldes425 $LIBS"
18238
18239 else
18240
18241 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18242 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18243 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-ldes $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254
18255 /* Override any gcc2 internal prototype to avoid an error. */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18261 char des_cbc_encrypt ();
18262 int
18263 main ()
18264 {
18265 des_cbc_encrypt ();
18266 ;
18267 return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_des_des_cbc_encrypt=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 ac_cv_lib_des_des_cbc_encrypt=no
18298 fi
18299 rm -f conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18302 fi
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18304 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18305 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define HAVE_LIBDES 1
18308 _ACEOF
18309
18310 LIBS="-ldes $LIBS"
18311
18312 fi
18313
18314 fi
18315
18316
18317 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18318 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18319 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322 ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-lkrb4 $LIBS"
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330
18331 /* Override any gcc2 internal prototype to avoid an error. */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 /* We use char because int might match the return type of a gcc2
18336 builtin and then its argument prototype would still apply. */
18337 char krb_get_cred ();
18338 int
18339 main ()
18340 {
18341 krb_get_cred ();
18342 ;
18343 return 0;
18344 }
18345 _ACEOF
18346 rm -f conftest.$ac_objext conftest$ac_exeext
18347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348 (eval $ac_link) 2>conftest.er1
18349 ac_status=$?
18350 grep -v '^ *+' conftest.er1 >conftest.err
18351 rm -f conftest.er1
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -z "$ac_c_werror_flag"
18356 || test ! -s conftest.err'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; } &&
18362 { ac_try='test -s conftest$ac_exeext'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_krb4_krb_get_cred=yes
18369 else
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18372
18373 ac_cv_lib_krb4_krb_get_cred=no
18374 fi
18375 rm -f conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377 LIBS=$ac_check_lib_save_LIBS
18378 fi
18379 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18380 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18381 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18382 cat >>confdefs.h <<_ACEOF
18383 #define HAVE_LIBKRB4 1
18384 _ACEOF
18385
18386 LIBS="-lkrb4 $LIBS"
18387
18388 else
18389
18390 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18391 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18392 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395 ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lkrb $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403
18404 /* Override any gcc2 internal prototype to avoid an error. */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char krb_get_cred ();
18411 int
18412 main ()
18413 {
18414 krb_get_cred ();
18415 ;
18416 return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_cv_lib_krb_krb_get_cred=yes
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446 ac_cv_lib_krb_krb_get_cred=no
18447 fi
18448 rm -f conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18451 fi
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18453 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18454 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_LIBKRB 1
18457 _ACEOF
18458
18459 LIBS="-lkrb $LIBS"
18460
18461 fi
18462
18463 fi
18464
18465 fi
18466
18467 if test "${with_kerberos5+set}" = set; then
18468
18469 for ac_header in krb5.h
18470 do
18471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
18478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18480 else
18481 # Is the header compilable?
18482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18484 cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h. */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 $ac_includes_default
18491 #include <$ac_header>
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>conftest.er1
18496 ac_status=$?
18497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_header_compiler=yes
18516 else
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ac_header_compiler=no
18521 fi
18522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18524 echo "${ECHO_T}$ac_header_compiler" >&6
18525
18526 # Is the header present?
18527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18529 cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h. */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 #include <$ac_header>
18536 _ACEOF
18537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } >/dev/null; then
18545 if test -s conftest.err; then
18546 ac_cpp_err=$ac_c_preproc_warn_flag
18547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18548 else
18549 ac_cpp_err=
18550 fi
18551 else
18552 ac_cpp_err=yes
18553 fi
18554 if test -z "$ac_cpp_err"; then
18555 ac_header_preproc=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_header_preproc=no
18561 fi
18562 rm -f conftest.err conftest.$ac_ext
18563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18564 echo "${ECHO_T}$ac_header_preproc" >&6
18565
18566 # So? What about this header?
18567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18568 yes:no: )
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18573 ac_header_preproc=yes
18574 ;;
18575 no:yes:* )
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18588 (
18589 cat <<\_ASBOX
18590 ## ------------------------------------------ ##
18591 ## Report this to the AC_PACKAGE_NAME lists. ##
18592 ## ------------------------------------------ ##
18593 _ASBOX
18594 ) |
18595 sed "s/^/$as_me: WARNING: /" >&2
18596 ;;
18597 esac
18598 echo "$as_me:$LINENO: checking for $ac_header" >&5
18599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603 eval "$as_ac_Header=\$ac_header_preproc"
18604 fi
18605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18607
18608 fi
18609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18610 cat >>confdefs.h <<_ACEOF
18611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18612 _ACEOF
18613
18614 fi
18615
18616 done
18617
18618 else
18619
18620 for ac_header in des.h
18621 do
18622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo "$as_me:$LINENO: checking for $ac_header" >&5
18625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 fi
18629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18631 else
18632 # Is the header compilable?
18633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 $ac_includes_default
18642 #include <$ac_header>
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_header_compiler=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_header_compiler=no
18672 fi
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18675 echo "${ECHO_T}$ac_header_compiler" >&6
18676
18677 # Is the header present?
18678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 #include <$ac_header>
18687 _ACEOF
18688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } >/dev/null; then
18696 if test -s conftest.err; then
18697 ac_cpp_err=$ac_c_preproc_warn_flag
18698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18699 else
18700 ac_cpp_err=
18701 fi
18702 else
18703 ac_cpp_err=yes
18704 fi
18705 if test -z "$ac_cpp_err"; then
18706 ac_header_preproc=yes
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_header_preproc=no
18712 fi
18713 rm -f conftest.err conftest.$ac_ext
18714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18715 echo "${ECHO_T}$ac_header_preproc" >&6
18716
18717 # So? What about this header?
18718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18719 yes:no: )
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18724 ac_header_preproc=yes
18725 ;;
18726 no:yes:* )
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18739 (
18740 cat <<\_ASBOX
18741 ## ------------------------------------------ ##
18742 ## Report this to the AC_PACKAGE_NAME lists. ##
18743 ## ------------------------------------------ ##
18744 _ASBOX
18745 ) |
18746 sed "s/^/$as_me: WARNING: /" >&2
18747 ;;
18748 esac
18749 echo "$as_me:$LINENO: checking for $ac_header" >&5
18750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754 eval "$as_ac_Header=\$ac_header_preproc"
18755 fi
18756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18758
18759 fi
18760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18761 cat >>confdefs.h <<_ACEOF
18762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18763 _ACEOF
18764
18765 else
18766
18767 for ac_header in kerberosIV/des.h
18768 do
18769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18771 echo "$as_me:$LINENO: checking for $ac_header" >&5
18772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 fi
18776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18778 else
18779 # Is the header compilable?
18780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18782 cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h. */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 $ac_includes_default
18789 #include <$ac_header>
18790 _ACEOF
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_header_compiler=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 ac_header_compiler=no
18819 fi
18820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18822 echo "${ECHO_T}$ac_header_compiler" >&6
18823
18824 # Is the header present?
18825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 #include <$ac_header>
18834 _ACEOF
18835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } >/dev/null; then
18843 if test -s conftest.err; then
18844 ac_cpp_err=$ac_c_preproc_warn_flag
18845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18846 else
18847 ac_cpp_err=
18848 fi
18849 else
18850 ac_cpp_err=yes
18851 fi
18852 if test -z "$ac_cpp_err"; then
18853 ac_header_preproc=yes
18854 else
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 ac_header_preproc=no
18859 fi
18860 rm -f conftest.err conftest.$ac_ext
18861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18862 echo "${ECHO_T}$ac_header_preproc" >&6
18863
18864 # So? What about this header?
18865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18866 yes:no: )
18867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18871 ac_header_preproc=yes
18872 ;;
18873 no:yes:* )
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18886 (
18887 cat <<\_ASBOX
18888 ## ------------------------------------------ ##
18889 ## Report this to the AC_PACKAGE_NAME lists. ##
18890 ## ------------------------------------------ ##
18891 _ASBOX
18892 ) |
18893 sed "s/^/$as_me: WARNING: /" >&2
18894 ;;
18895 esac
18896 echo "$as_me:$LINENO: checking for $ac_header" >&5
18897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901 eval "$as_ac_Header=\$ac_header_preproc"
18902 fi
18903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18905
18906 fi
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 cat >>confdefs.h <<_ACEOF
18909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18910 _ACEOF
18911
18912 else
18913
18914 for ac_header in kerberos/des.h
18915 do
18916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918 echo "$as_me:$LINENO: checking for $ac_header" >&5
18919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 fi
18923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18925 else
18926 # Is the header compilable?
18927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 $ac_includes_default
18936 #include <$ac_header>
18937 _ACEOF
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940 (eval $ac_compile) 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_c_werror_flag"
18948 || test ! -s conftest.err'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_header_compiler=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_header_compiler=no
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18970
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <$ac_header>
18981 _ACEOF
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18984 ac_status=$?
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } >/dev/null; then
18990 if test -s conftest.err; then
18991 ac_cpp_err=$ac_c_preproc_warn_flag
18992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18993 else
18994 ac_cpp_err=
18995 fi
18996 else
18997 ac_cpp_err=yes
18998 fi
18999 if test -z "$ac_cpp_err"; then
19000 ac_header_preproc=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_header_preproc=no
19006 fi
19007 rm -f conftest.err conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19010
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19013 yes:no: )
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc=yes
19019 ;;
19020 no:yes:* )
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19033 (
19034 cat <<\_ASBOX
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists. ##
19037 ## ------------------------------------------ ##
19038 _ASBOX
19039 ) |
19040 sed "s/^/$as_me: WARNING: /" >&2
19041 ;;
19042 esac
19043 echo "$as_me:$LINENO: checking for $ac_header" >&5
19044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048 eval "$as_ac_Header=\$ac_header_preproc"
19049 fi
19050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19052
19053 fi
19054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19057 _ACEOF
19058
19059 fi
19060
19061 done
19062
19063 fi
19064
19065 done
19066
19067 fi
19068
19069 done
19070
19071
19072 for ac_header in krb.h
19073 do
19074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19076 echo "$as_me:$LINENO: checking for $ac_header" >&5
19077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 fi
19081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19083 else
19084 # Is the header compilable?
19085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19087 cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h. */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 $ac_includes_default
19094 #include <$ac_header>
19095 _ACEOF
19096 rm -f conftest.$ac_objext
19097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19098 (eval $ac_compile) 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -z "$ac_c_werror_flag"
19106 || test ! -s conftest.err'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; } &&
19112 { ac_try='test -s conftest.$ac_objext'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_header_compiler=yes
19119 else
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19122
19123 ac_header_compiler=no
19124 fi
19125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19127 echo "${ECHO_T}$ac_header_compiler" >&6
19128
19129 # Is the header present?
19130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 #include <$ac_header>
19139 _ACEOF
19140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } >/dev/null; then
19148 if test -s conftest.err; then
19149 ac_cpp_err=$ac_c_preproc_warn_flag
19150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19151 else
19152 ac_cpp_err=
19153 fi
19154 else
19155 ac_cpp_err=yes
19156 fi
19157 if test -z "$ac_cpp_err"; then
19158 ac_header_preproc=yes
19159 else
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_header_preproc=no
19164 fi
19165 rm -f conftest.err conftest.$ac_ext
19166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19167 echo "${ECHO_T}$ac_header_preproc" >&6
19168
19169 # So? What about this header?
19170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19171 yes:no: )
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19176 ac_header_preproc=yes
19177 ;;
19178 no:yes:* )
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19191 (
19192 cat <<\_ASBOX
19193 ## ------------------------------------------ ##
19194 ## Report this to the AC_PACKAGE_NAME lists. ##
19195 ## ------------------------------------------ ##
19196 _ASBOX
19197 ) |
19198 sed "s/^/$as_me: WARNING: /" >&2
19199 ;;
19200 esac
19201 echo "$as_me:$LINENO: checking for $ac_header" >&5
19202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 eval "$as_ac_Header=\$ac_header_preproc"
19207 fi
19208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19210
19211 fi
19212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19213 cat >>confdefs.h <<_ACEOF
19214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19215 _ACEOF
19216
19217 else
19218
19219 for ac_header in kerberosIV/krb.h
19220 do
19221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19223 echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 fi
19228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19230 else
19231 # Is the header compilable?
19232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 $ac_includes_default
19241 #include <$ac_header>
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>conftest.er1
19246 ac_status=$?
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag"
19253 || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_header_compiler=yes
19266 else
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270 ac_header_compiler=no
19271 fi
19272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19274 echo "${ECHO_T}$ac_header_compiler" >&6
19275
19276 # Is the header present?
19277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h. */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285 #include <$ac_header>
19286 _ACEOF
19287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } >/dev/null; then
19295 if test -s conftest.err; then
19296 ac_cpp_err=$ac_c_preproc_warn_flag
19297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19298 else
19299 ac_cpp_err=
19300 fi
19301 else
19302 ac_cpp_err=yes
19303 fi
19304 if test -z "$ac_cpp_err"; then
19305 ac_header_preproc=yes
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 ac_header_preproc=no
19311 fi
19312 rm -f conftest.err conftest.$ac_ext
19313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19314 echo "${ECHO_T}$ac_header_preproc" >&6
19315
19316 # So? What about this header?
19317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19318 yes:no: )
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19323 ac_header_preproc=yes
19324 ;;
19325 no:yes:* )
19326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19338 (
19339 cat <<\_ASBOX
19340 ## ------------------------------------------ ##
19341 ## Report this to the AC_PACKAGE_NAME lists. ##
19342 ## ------------------------------------------ ##
19343 _ASBOX
19344 ) |
19345 sed "s/^/$as_me: WARNING: /" >&2
19346 ;;
19347 esac
19348 echo "$as_me:$LINENO: checking for $ac_header" >&5
19349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353 eval "$as_ac_Header=\$ac_header_preproc"
19354 fi
19355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19357
19358 fi
19359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19360 cat >>confdefs.h <<_ACEOF
19361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19362 _ACEOF
19363
19364 else
19365
19366 for ac_header in kerberos/krb.h
19367 do
19368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370 echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 fi
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19377 else
19378 # Is the header compilable?
19379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <$ac_header>
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_header_compiler=yes
19413 else
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417 ac_header_compiler=no
19418 fi
19419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19422
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #include <$ac_header>
19433 _ACEOF
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null; then
19442 if test -s conftest.err; then
19443 ac_cpp_err=$ac_c_preproc_warn_flag
19444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19445 else
19446 ac_cpp_err=
19447 fi
19448 else
19449 ac_cpp_err=yes
19450 fi
19451 if test -z "$ac_cpp_err"; then
19452 ac_header_preproc=yes
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_header_preproc=no
19458 fi
19459 rm -f conftest.err conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19462
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19465 yes:no: )
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc=yes
19471 ;;
19472 no:yes:* )
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19485 (
19486 cat <<\_ASBOX
19487 ## ------------------------------------------ ##
19488 ## Report this to the AC_PACKAGE_NAME lists. ##
19489 ## ------------------------------------------ ##
19490 _ASBOX
19491 ) |
19492 sed "s/^/$as_me: WARNING: /" >&2
19493 ;;
19494 esac
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500 eval "$as_ac_Header=\$ac_header_preproc"
19501 fi
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19504
19505 fi
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19509 _ACEOF
19510
19511 fi
19512
19513 done
19514
19515 fi
19516
19517 done
19518
19519 fi
19520
19521 done
19522
19523 fi
19524
19525 for ac_header in com_err.h
19526 do
19527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo "$as_me:$LINENO: checking for $ac_header" >&5
19530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 fi
19534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19536 else
19537 # Is the header compilable?
19538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h. */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 $ac_includes_default
19547 #include <$ac_header>
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551 (eval $ac_compile) 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_header_compiler=yes
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_header_compiler=no
19577 fi
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19580 echo "${ECHO_T}$ac_header_compiler" >&6
19581
19582 # Is the header present?
19583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <$ac_header>
19592 _ACEOF
19593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } >/dev/null; then
19601 if test -s conftest.err; then
19602 ac_cpp_err=$ac_c_preproc_warn_flag
19603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19604 else
19605 ac_cpp_err=
19606 fi
19607 else
19608 ac_cpp_err=yes
19609 fi
19610 if test -z "$ac_cpp_err"; then
19611 ac_header_preproc=yes
19612 else
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19615
19616 ac_header_preproc=no
19617 fi
19618 rm -f conftest.err conftest.$ac_ext
19619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19620 echo "${ECHO_T}$ac_header_preproc" >&6
19621
19622 # So? What about this header?
19623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19624 yes:no: )
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19629 ac_header_preproc=yes
19630 ;;
19631 no:yes:* )
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19644 (
19645 cat <<\_ASBOX
19646 ## ------------------------------------------ ##
19647 ## Report this to the AC_PACKAGE_NAME lists. ##
19648 ## ------------------------------------------ ##
19649 _ASBOX
19650 ) |
19651 sed "s/^/$as_me: WARNING: /" >&2
19652 ;;
19653 esac
19654 echo "$as_me:$LINENO: checking for $ac_header" >&5
19655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659 eval "$as_ac_Header=\$ac_header_preproc"
19660 fi
19661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19663
19664 fi
19665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19666 cat >>confdefs.h <<_ACEOF
19667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19668 _ACEOF
19669
19670 fi
19671
19672 done
19673
19674 fi
19675
19676 # Solaris requires -lintl if you want strerror (which calls dgettext)
19677 # to return localized messages.
19678
19679 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19680 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19681 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-lintl $LIBS"
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692
19693 /* Override any gcc2 internal prototype to avoid an error. */
19694 #ifdef __cplusplus
19695 extern "C"
19696 #endif
19697 /* We use char because int might match the return type of a gcc2
19698 builtin and then its argument prototype would still apply. */
19699 char dgettext ();
19700 int
19701 main ()
19702 {
19703 dgettext ();
19704 ;
19705 return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_c_werror_flag"
19718 || test ! -s conftest.err'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_lib_intl_dgettext=yes
19731 else
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19734
19735 ac_cv_lib_intl_dgettext=no
19736 fi
19737 rm -f conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 LIBS=$ac_check_lib_save_LIBS
19740 fi
19741 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19742 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19743 if test $ac_cv_lib_intl_dgettext = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define HAVE_LIBINTL 1
19746 _ACEOF
19747
19748 LIBS="-lintl $LIBS"
19749
19750 fi
19751
19752
19753 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19754 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19755 if test "${emacs_cv_localtime_cache+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758 if test x$ac_cv_func_tzset = xyes; then
19759 if test "$cross_compiling" = yes; then
19760 # If we have tzset, assume the worst when cross-compiling.
19761 emacs_cv_localtime_cache=yes
19762 else
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 #include <time.h>
19770 extern char **environ;
19771 unset_TZ ()
19772 {
19773 char **from, **to;
19774 for (to = from = environ; (*to = *from); from++)
19775 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19776 to++;
19777 }
19778 char TZ_GMT0[] = "TZ=GMT0";
19779 char TZ_PST8[] = "TZ=PST8";
19780 main()
19781 {
19782 time_t now = time ((time_t *) 0);
19783 int hour_GMT0, hour_unset;
19784 if (putenv (TZ_GMT0) != 0)
19785 exit (1);
19786 hour_GMT0 = localtime (&now)->tm_hour;
19787 unset_TZ ();
19788 hour_unset = localtime (&now)->tm_hour;
19789 if (putenv (TZ_PST8) != 0)
19790 exit (1);
19791 if (localtime (&now)->tm_hour == hour_GMT0)
19792 exit (1);
19793 unset_TZ ();
19794 if (localtime (&now)->tm_hour != hour_unset)
19795 exit (1);
19796 exit (0);
19797 }
19798 _ACEOF
19799 rm -f conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801 (eval $ac_link) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 emacs_cv_localtime_cache=no
19811 else
19812 echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ( exit $ac_status )
19817 emacs_cv_localtime_cache=yes
19818 fi
19819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19820 fi
19821 else
19822 # If we lack tzset, report that localtime does not cache TZ,
19823 # since we can't invalidate the cache if we don't have tzset.
19824 emacs_cv_localtime_cache=no
19825 fi
19826 fi
19827 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19828 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19829 if test $emacs_cv_localtime_cache = yes; then
19830
19831 cat >>confdefs.h <<\_ACEOF
19832 #define LOCALTIME_CACHE 1
19833 _ACEOF
19834
19835 fi
19836
19837 if test "x$HAVE_TIMEVAL" = xyes; then
19838
19839 for ac_func in gettimeofday
19840 do
19841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19842 echo "$as_me:$LINENO: checking for $ac_func" >&5
19843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_var+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19855 #define $ac_func innocuous_$ac_func
19856
19857 /* System header to define __stub macros and hopefully few prototypes,
19858 which can conflict with char $ac_func (); below.
19859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860 <limits.h> exists even on freestanding compilers. */
19861
19862 #ifdef __STDC__
19863 # include <limits.h>
19864 #else
19865 # include <assert.h>
19866 #endif
19867
19868 #undef $ac_func
19869
19870 /* Override any gcc2 internal prototype to avoid an error. */
19871 #ifdef __cplusplus
19872 extern "C"
19873 {
19874 #endif
19875 /* We use char because int might match the return type of a gcc2
19876 builtin and then its argument prototype would still apply. */
19877 char $ac_func ();
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19882 choke me
19883 #else
19884 char (*f) () = $ac_func;
19885 #endif
19886 #ifdef __cplusplus
19887 }
19888 #endif
19889
19890 int
19891 main ()
19892 {
19893 return f != $ac_func;
19894 ;
19895 return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 eval "$as_ac_var=yes"
19921 else
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 eval "$as_ac_var=no"
19926 fi
19927 rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 fi
19930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19932 if test `eval echo '${'$as_ac_var'}'` = yes; then
19933 cat >>confdefs.h <<_ACEOF
19934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19935 _ACEOF
19936
19937 fi
19938 done
19939
19940 if test $ac_cv_func_gettimeofday = yes; then
19941 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19942 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19943 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952
19953 #ifdef TIME_WITH_SYS_TIME
19954 #include <sys/time.h>
19955 #include <time.h>
19956 #else
19957 #ifdef HAVE_SYS_TIME_H
19958 #include <sys/time.h>
19959 #else
19960 #include <time.h>
19961 #endif
19962 #endif
19963 int
19964 main ()
19965 {
19966 struct timeval time;
19967 gettimeofday (&time, 0);
19968 ;
19969 return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 emacs_cv_gettimeofday_two_arguments=yes
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 emacs_cv_gettimeofday_two_arguments=no
20000 fi
20001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20004 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20005 if test $emacs_cv_gettimeofday_two_arguments = no; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20009 _ACEOF
20010
20011 fi
20012 fi
20013 fi
20014
20015 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20016 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20017 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20018 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <sys/types.h>
20028 #include <$ac_cv_struct_tm>
20029
20030
20031 int
20032 main ()
20033 {
20034 static struct tm ac_aggr;
20035 if (ac_aggr.tm_zone)
20036 return 0;
20037 ;
20038 return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext
20042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043 (eval $ac_compile) 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -z "$ac_c_werror_flag"
20051 || test ! -s conftest.err'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_member_struct_tm_tm_zone=yes
20064 else
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #include <sys/types.h>
20075 #include <$ac_cv_struct_tm>
20076
20077
20078 int
20079 main ()
20080 {
20081 static struct tm ac_aggr;
20082 if (sizeof ac_aggr.tm_zone)
20083 return 0;
20084 ;
20085 return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag"
20098 || test ! -s conftest.err'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest.$ac_objext'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 ac_cv_member_struct_tm_tm_zone=yes
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 ac_cv_member_struct_tm_tm_zone=no
20116 fi
20117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20118 fi
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20120 fi
20121 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20122 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20123 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20124
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_STRUCT_TM_TM_ZONE 1
20127 _ACEOF
20128
20129
20130 fi
20131
20132 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_TM_ZONE 1
20136 _ACEOF
20137
20138 else
20139 echo "$as_me:$LINENO: checking for tzname" >&5
20140 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20141 if test "${ac_cv_var_tzname+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 #include <time.h>
20151 #ifndef tzname /* For SGI. */
20152 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20153 #endif
20154
20155 int
20156 main ()
20157 {
20158 atoi(*tzname);
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -z "$ac_c_werror_flag"
20173 || test ! -s conftest.err'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; } &&
20179 { ac_try='test -s conftest$ac_exeext'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 ac_cv_var_tzname=yes
20186 else
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190 ac_cv_var_tzname=no
20191 fi
20192 rm -f conftest.err conftest.$ac_objext \
20193 conftest$ac_exeext conftest.$ac_ext
20194 fi
20195 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20196 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20197 if test $ac_cv_var_tzname = yes; then
20198
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_TZNAME 1
20201 _ACEOF
20202
20203 fi
20204 fi
20205
20206
20207 if test "$ac_cv_func_gettimeofday" = yes; then
20208 echo "$as_me:$LINENO: checking for struct timezone" >&5
20209 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20210 if test "${emacs_cv_struct_timezone+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <sys/time.h>
20220 int
20221 main ()
20222 {
20223 struct timezone tz;
20224 ;
20225 return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 if test "$cross_compiling" = yes; then
20251 emacs_cv_struct_timezone=yes
20252 else
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259
20260 #ifdef TIME_WITH_SYS_TIME
20261 #include <sys/time.h>
20262 #include <time.h>
20263 #else
20264 #ifdef HAVE_SYS_TIME_H
20265 #include <sys/time.h>
20266 #else
20267 #include <time.h>
20268 #endif
20269 #endif
20270 main () {
20271 struct timeval time;
20272 struct timezone dummy;
20273 exit (gettimeofday (&time, &dummy));
20274 }
20275 _ACEOF
20276 rm -f conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 emacs_cv_struct_timezone=yes
20288 else
20289 echo "$as_me: program exited with status $ac_status" >&5
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 ( exit $ac_status )
20294 emacs_cv_struct_timezone=no
20295 fi
20296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20297 fi
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 emacs_cv_struct_timezone=no
20303 fi
20304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20307 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20308 fi
20309
20310 ok_so_far=yes
20311 echo "$as_me:$LINENO: checking for socket" >&5
20312 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20313 if test "${ac_cv_func_socket+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h. */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20324 #define socket innocuous_socket
20325
20326 /* System header to define __stub macros and hopefully few prototypes,
20327 which can conflict with char socket (); below.
20328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 <limits.h> exists even on freestanding compilers. */
20330
20331 #ifdef __STDC__
20332 # include <limits.h>
20333 #else
20334 # include <assert.h>
20335 #endif
20336
20337 #undef socket
20338
20339 /* Override any gcc2 internal prototype to avoid an error. */
20340 #ifdef __cplusplus
20341 extern "C"
20342 {
20343 #endif
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20346 char socket ();
20347 /* The GNU C library defines this for functions which it implements
20348 to always fail with ENOSYS. Some functions are actually named
20349 something starting with __ and the normal name is an alias. */
20350 #if defined (__stub_socket) || defined (__stub___socket)
20351 choke me
20352 #else
20353 char (*f) () = socket;
20354 #endif
20355 #ifdef __cplusplus
20356 }
20357 #endif
20358
20359 int
20360 main ()
20361 {
20362 return f != socket;
20363 ;
20364 return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_func_socket=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_cv_func_socket=no
20395 fi
20396 rm -f conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398 fi
20399 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20400 echo "${ECHO_T}$ac_cv_func_socket" >&6
20401 if test $ac_cv_func_socket = yes; then
20402 :
20403 else
20404 ok_so_far=no
20405 fi
20406
20407 if test $ok_so_far = yes; then
20408 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20409 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20410 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20411 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 fi
20414 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20415 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20416 else
20417 # Is the header compilable?
20418 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20419 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 $ac_includes_default
20427 #include <netinet/in.h>
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_header_compiler=yes
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456 ac_header_compiler=no
20457 fi
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6
20461
20462 # Is the header present?
20463 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20464 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <netinet/in.h>
20472 _ACEOF
20473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } >/dev/null; then
20481 if test -s conftest.err; then
20482 ac_cpp_err=$ac_c_preproc_warn_flag
20483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20484 else
20485 ac_cpp_err=
20486 fi
20487 else
20488 ac_cpp_err=yes
20489 fi
20490 if test -z "$ac_cpp_err"; then
20491 ac_header_preproc=yes
20492 else
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ac_header_preproc=no
20497 fi
20498 rm -f conftest.err conftest.$ac_ext
20499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20500 echo "${ECHO_T}$ac_header_preproc" >&6
20501
20502 # So? What about this header?
20503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20504 yes:no: )
20505 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20506 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20508 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20509 ac_header_preproc=yes
20510 ;;
20511 no:yes:* )
20512 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20513 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20515 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20517 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20519 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20521 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20523 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20524 (
20525 cat <<\_ASBOX
20526 ## ------------------------------------------ ##
20527 ## Report this to the AC_PACKAGE_NAME lists. ##
20528 ## ------------------------------------------ ##
20529 _ASBOX
20530 ) |
20531 sed "s/^/$as_me: WARNING: /" >&2
20532 ;;
20533 esac
20534 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20535 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20536 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539 ac_cv_header_netinet_in_h=$ac_header_preproc
20540 fi
20541 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20542 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20543
20544 fi
20545 if test $ac_cv_header_netinet_in_h = yes; then
20546 :
20547 else
20548 ok_so_far=no
20549 fi
20550
20551
20552 fi
20553 if test $ok_so_far = yes; then
20554 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20555 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20556 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20557 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 fi
20560 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20561 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20562 else
20563 # Is the header compilable?
20564 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20565 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h. */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20572 $ac_includes_default
20573 #include <arpa/inet.h>
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>conftest.er1
20578 ac_status=$?
20579 grep -v '^ *+' conftest.er1 >conftest.err
20580 rm -f conftest.er1
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try='test -z "$ac_c_werror_flag"
20585 || test ! -s conftest.err'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_header_compiler=yes
20598 else
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 ac_header_compiler=no
20603 fi
20604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20606 echo "${ECHO_T}$ac_header_compiler" >&6
20607
20608 # Is the header present?
20609 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20610 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h. */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 #include <arpa/inet.h>
20618 _ACEOF
20619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20621 ac_status=$?
20622 grep -v '^ *+' conftest.er1 >conftest.err
20623 rm -f conftest.er1
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } >/dev/null; then
20627 if test -s conftest.err; then
20628 ac_cpp_err=$ac_c_preproc_warn_flag
20629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20630 else
20631 ac_cpp_err=
20632 fi
20633 else
20634 ac_cpp_err=yes
20635 fi
20636 if test -z "$ac_cpp_err"; then
20637 ac_header_preproc=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 ac_header_preproc=no
20643 fi
20644 rm -f conftest.err conftest.$ac_ext
20645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20646 echo "${ECHO_T}$ac_header_preproc" >&6
20647
20648 # So? What about this header?
20649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20650 yes:no: )
20651 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20652 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20655 ac_header_preproc=yes
20656 ;;
20657 no:yes:* )
20658 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20659 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20661 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20663 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20665 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20667 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20669 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20670 (
20671 cat <<\_ASBOX
20672 ## ------------------------------------------ ##
20673 ## Report this to the AC_PACKAGE_NAME lists. ##
20674 ## ------------------------------------------ ##
20675 _ASBOX
20676 ) |
20677 sed "s/^/$as_me: WARNING: /" >&2
20678 ;;
20679 esac
20680 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20681 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20682 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685 ac_cv_header_arpa_inet_h=$ac_header_preproc
20686 fi
20687 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20688 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20689
20690 fi
20691 if test $ac_cv_header_arpa_inet_h = yes; then
20692 :
20693 else
20694 ok_so_far=no
20695 fi
20696
20697
20698 fi
20699 if test $ok_so_far = yes; then
20700
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_INET_SOCKETS 1
20703 _ACEOF
20704
20705 fi
20706
20707
20708 for ac_header in sys/ioctl.h
20709 do
20710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20712 echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 fi
20717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20719 else
20720 # Is the header compilable?
20721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20730 #include <$ac_header>
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
20741 { ac_try='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_header_compiler=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_header_compiler=no
20760 fi
20761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20763 echo "${ECHO_T}$ac_header_compiler" >&6
20764
20765 # Is the header present?
20766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 #include <$ac_header>
20775 _ACEOF
20776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } >/dev/null; then
20784 if test -s conftest.err; then
20785 ac_cpp_err=$ac_c_preproc_warn_flag
20786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20787 else
20788 ac_cpp_err=
20789 fi
20790 else
20791 ac_cpp_err=yes
20792 fi
20793 if test -z "$ac_cpp_err"; then
20794 ac_header_preproc=yes
20795 else
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_header_preproc=no
20800 fi
20801 rm -f conftest.err conftest.$ac_ext
20802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20803 echo "${ECHO_T}$ac_header_preproc" >&6
20804
20805 # So? What about this header?
20806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20807 yes:no: )
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20812 ac_header_preproc=yes
20813 ;;
20814 no:yes:* )
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20827 (
20828 cat <<\_ASBOX
20829 ## ------------------------------------------ ##
20830 ## Report this to the AC_PACKAGE_NAME lists. ##
20831 ## ------------------------------------------ ##
20832 _ASBOX
20833 ) |
20834 sed "s/^/$as_me: WARNING: /" >&2
20835 ;;
20836 esac
20837 echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842 eval "$as_ac_Header=\$ac_header_preproc"
20843 fi
20844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20846
20847 fi
20848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20851 _ACEOF
20852
20853 fi
20854
20855 done
20856
20857
20858 if test -f /usr/lpp/X11/bin/smt.exp; then
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_AIX_SMT_EXP 1
20862 _ACEOF
20863
20864 fi
20865
20866 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20867 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20868 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20869 echo "$as_me:$LINENO: result: yes" >&5
20870 echo "${ECHO_T}yes" >&6
20871
20872 cat >>confdefs.h <<\_ACEOF
20873 #define HAVE_DEV_PTMX 1
20874 _ACEOF
20875
20876 else
20877 echo "$as_me:$LINENO: result: no" >&5
20878 echo "${ECHO_T}no" >&6
20879 fi
20880
20881 echo "$as_me:$LINENO: checking for pid_t" >&5
20882 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20883 if test "${ac_cv_type_pid_t+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 $ac_includes_default
20893 int
20894 main ()
20895 {
20896 if ((pid_t *) 0)
20897 return 0;
20898 if (sizeof (pid_t))
20899 return 0;
20900 ;
20901 return 0;
20902 }
20903 _ACEOF
20904 rm -f conftest.$ac_objext
20905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20906 (eval $ac_compile) 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try='test -z "$ac_c_werror_flag"
20914 || test ! -s conftest.err'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; } &&
20920 { ac_try='test -s conftest.$ac_objext'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20926 ac_cv_type_pid_t=yes
20927 else
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 ac_cv_type_pid_t=no
20932 fi
20933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20934 fi
20935 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20936 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20937 if test $ac_cv_type_pid_t = yes; then
20938 :
20939 else
20940
20941 cat >>confdefs.h <<_ACEOF
20942 #define pid_t int
20943 _ACEOF
20944
20945 fi
20946
20947
20948
20949 for ac_header in unistd.h vfork.h
20950 do
20951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20953 echo "$as_me:$LINENO: checking for $ac_header" >&5
20954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 fi
20958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20960 else
20961 # Is the header compilable?
20962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 #include <$ac_header>
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_header_compiler=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ac_header_compiler=no
21001 fi
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21004 echo "${ECHO_T}$ac_header_compiler" >&6
21005
21006 # Is the header present?
21007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <$ac_header>
21016 _ACEOF
21017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } >/dev/null; then
21025 if test -s conftest.err; then
21026 ac_cpp_err=$ac_c_preproc_warn_flag
21027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21028 else
21029 ac_cpp_err=
21030 fi
21031 else
21032 ac_cpp_err=yes
21033 fi
21034 if test -z "$ac_cpp_err"; then
21035 ac_header_preproc=yes
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ac_header_preproc=no
21041 fi
21042 rm -f conftest.err conftest.$ac_ext
21043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21044 echo "${ECHO_T}$ac_header_preproc" >&6
21045
21046 # So? What about this header?
21047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21048 yes:no: )
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21053 ac_header_preproc=yes
21054 ;;
21055 no:yes:* )
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21068 (
21069 cat <<\_ASBOX
21070 ## ------------------------------------------ ##
21071 ## Report this to the AC_PACKAGE_NAME lists. ##
21072 ## ------------------------------------------ ##
21073 _ASBOX
21074 ) |
21075 sed "s/^/$as_me: WARNING: /" >&2
21076 ;;
21077 esac
21078 echo "$as_me:$LINENO: checking for $ac_header" >&5
21079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083 eval "$as_ac_Header=\$ac_header_preproc"
21084 fi
21085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21087
21088 fi
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21092 _ACEOF
21093
21094 fi
21095
21096 done
21097
21098
21099
21100 for ac_func in fork vfork
21101 do
21102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21103 echo "$as_me:$LINENO: checking for $ac_func" >&5
21104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21105 if eval "test \"\${$as_ac_var+set}\" = set"; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21116 #define $ac_func innocuous_$ac_func
21117
21118 /* System header to define __stub macros and hopefully few prototypes,
21119 which can conflict with char $ac_func (); below.
21120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21121 <limits.h> exists even on freestanding compilers. */
21122
21123 #ifdef __STDC__
21124 # include <limits.h>
21125 #else
21126 # include <assert.h>
21127 #endif
21128
21129 #undef $ac_func
21130
21131 /* Override any gcc2 internal prototype to avoid an error. */
21132 #ifdef __cplusplus
21133 extern "C"
21134 {
21135 #endif
21136 /* We use char because int might match the return type of a gcc2
21137 builtin and then its argument prototype would still apply. */
21138 char $ac_func ();
21139 /* The GNU C library defines this for functions which it implements
21140 to always fail with ENOSYS. Some functions are actually named
21141 something starting with __ and the normal name is an alias. */
21142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21143 choke me
21144 #else
21145 char (*f) () = $ac_func;
21146 #endif
21147 #ifdef __cplusplus
21148 }
21149 #endif
21150
21151 int
21152 main ()
21153 {
21154 return f != $ac_func;
21155 ;
21156 return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161 (eval $ac_link) 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_c_werror_flag"
21169 || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try='test -s conftest$ac_exeext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 eval "$as_ac_var=yes"
21182 else
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 eval "$as_ac_var=no"
21187 fi
21188 rm -f conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21190 fi
21191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21193 if test `eval echo '${'$as_ac_var'}'` = yes; then
21194 cat >>confdefs.h <<_ACEOF
21195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21196 _ACEOF
21197
21198 fi
21199 done
21200
21201 if test "x$ac_cv_func_fork" = xyes; then
21202 echo "$as_me:$LINENO: checking for working fork" >&5
21203 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21204 if test "${ac_cv_func_fork_works+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207 if test "$cross_compiling" = yes; then
21208 ac_cv_func_fork_works=cross
21209 else
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* By Ruediger Kuhlmann. */
21212 #include <sys/types.h>
21213 #if HAVE_UNISTD_H
21214 # include <unistd.h>
21215 #endif
21216 /* Some systems only have a dummy stub for fork() */
21217 int main ()
21218 {
21219 if (fork() < 0)
21220 exit (1);
21221 exit (0);
21222 }
21223 _ACEOF
21224 rm -f conftest$ac_exeext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21226 (eval $ac_link) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_func_fork_works=yes
21236 else
21237 echo "$as_me: program exited with status $ac_status" >&5
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21240
21241 ( exit $ac_status )
21242 ac_cv_func_fork_works=no
21243 fi
21244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21245 fi
21246 fi
21247 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21248 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21249
21250 else
21251 ac_cv_func_fork_works=$ac_cv_func_fork
21252 fi
21253 if test "x$ac_cv_func_fork_works" = xcross; then
21254 case $host in
21255 *-*-amigaos* | *-*-msdosdjgpp*)
21256 # Override, as these systems have only a dummy fork() stub
21257 ac_cv_func_fork_works=no
21258 ;;
21259 *)
21260 ac_cv_func_fork_works=yes
21261 ;;
21262 esac
21263 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21264 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21265 fi
21266 ac_cv_func_vfork_works=$ac_cv_func_vfork
21267 if test "x$ac_cv_func_vfork" = xyes; then
21268 echo "$as_me:$LINENO: checking for working vfork" >&5
21269 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21270 if test "${ac_cv_func_vfork_works+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 if test "$cross_compiling" = yes; then
21274 ac_cv_func_vfork_works=cross
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Thanks to Paul Eggert for this test. */
21283 #include <stdio.h>
21284 #include <stdlib.h>
21285 #include <sys/types.h>
21286 #include <sys/stat.h>
21287 #include <sys/wait.h>
21288 #if HAVE_UNISTD_H
21289 # include <unistd.h>
21290 #endif
21291 #if HAVE_VFORK_H
21292 # include <vfork.h>
21293 #endif
21294 /* On some sparc systems, changes by the child to local and incoming
21295 argument registers are propagated back to the parent. The compiler
21296 is told about this with #include <vfork.h>, but some compilers
21297 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21298 static variable whose address is put into a register that is
21299 clobbered by the vfork. */
21300 static void
21301 #ifdef __cplusplus
21302 sparc_address_test (int arg)
21303 # else
21304 sparc_address_test (arg) int arg;
21305 #endif
21306 {
21307 static pid_t child;
21308 if (!child) {
21309 child = vfork ();
21310 if (child < 0) {
21311 perror ("vfork");
21312 _exit(2);
21313 }
21314 if (!child) {
21315 arg = getpid();
21316 write(-1, "", 0);
21317 _exit (arg);
21318 }
21319 }
21320 }
21321
21322 int
21323 main ()
21324 {
21325 pid_t parent = getpid ();
21326 pid_t child;
21327
21328 sparc_address_test (0);
21329
21330 child = vfork ();
21331
21332 if (child == 0) {
21333 /* Here is another test for sparc vfork register problems. This
21334 test uses lots of local variables, at least as many local
21335 variables as main has allocated so far including compiler
21336 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21337 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21338 reuse the register of parent for one of the local variables,
21339 since it will think that parent can't possibly be used any more
21340 in this routine. Assigning to the local variable will thus
21341 munge parent in the parent process. */
21342 pid_t
21343 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21344 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21345 /* Convince the compiler that p..p7 are live; otherwise, it might
21346 use the same hardware register for all 8 local variables. */
21347 if (p != p1 || p != p2 || p != p3 || p != p4
21348 || p != p5 || p != p6 || p != p7)
21349 _exit(1);
21350
21351 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21352 from child file descriptors. If the child closes a descriptor
21353 before it execs or exits, this munges the parent's descriptor
21354 as well. Test for this by closing stdout in the child. */
21355 _exit(close(fileno(stdout)) != 0);
21356 } else {
21357 int status;
21358 struct stat st;
21359
21360 while (wait(&status) != child)
21361 ;
21362 exit(
21363 /* Was there some problem with vforking? */
21364 child < 0
21365
21366 /* Did the child fail? (This shouldn't happen.) */
21367 || status
21368
21369 /* Did the vfork/compiler bug occur? */
21370 || parent != getpid()
21371
21372 /* Did the file descriptor bug occur? */
21373 || fstat(fileno(stdout), &st) != 0
21374 );
21375 }
21376 }
21377 _ACEOF
21378 rm -f conftest$ac_exeext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_cv_func_vfork_works=yes
21390 else
21391 echo "$as_me: program exited with status $ac_status" >&5
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ( exit $ac_status )
21396 ac_cv_func_vfork_works=no
21397 fi
21398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21399 fi
21400 fi
21401 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21402 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21403
21404 fi;
21405 if test "x$ac_cv_func_fork_works" = xcross; then
21406 ac_cv_func_vfork_works=$ac_cv_func_vfork
21407 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21408 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21409 fi
21410
21411 if test "x$ac_cv_func_vfork_works" = xyes; then
21412
21413 cat >>confdefs.h <<\_ACEOF
21414 #define HAVE_WORKING_VFORK 1
21415 _ACEOF
21416
21417 else
21418
21419 cat >>confdefs.h <<\_ACEOF
21420 #define vfork fork
21421 _ACEOF
21422
21423 fi
21424 if test "x$ac_cv_func_fork_works" = xyes; then
21425
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_WORKING_FORK 1
21428 _ACEOF
21429
21430 fi
21431
21432
21433 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21434 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21435 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <langinfo.h>
21445 int
21446 main ()
21447 {
21448 char* cs = nl_langinfo(CODESET);
21449 ;
21450 return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455 (eval $ac_link) 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest$ac_exeext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 emacs_cv_langinfo_codeset=yes
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 emacs_cv_langinfo_codeset=no
21481 fi
21482 rm -f conftest.err conftest.$ac_objext \
21483 conftest$ac_exeext conftest.$ac_ext
21484
21485 fi
21486 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21487 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21488 if test $emacs_cv_langinfo_codeset = yes; then
21489
21490 cat >>confdefs.h <<\_ACEOF
21491 #define HAVE_LANGINFO_CODESET 1
21492 _ACEOF
21493
21494 fi
21495
21496 echo "$as_me:$LINENO: checking for size_t" >&5
21497 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21498 if test "${ac_cv_type_size_t+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h. */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 $ac_includes_default
21508 int
21509 main ()
21510 {
21511 if ((size_t *) 0)
21512 return 0;
21513 if (sizeof (size_t))
21514 return 0;
21515 ;
21516 return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21521 (eval $ac_compile) 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
21528 { ac_try='test -z "$ac_c_werror_flag"
21529 || test ! -s conftest.err'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21532 ac_status=$?
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; } &&
21535 { ac_try='test -s conftest.$ac_objext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_type_size_t=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 ac_cv_type_size_t=no
21547 fi
21548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21549 fi
21550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21552 if test $ac_cv_type_size_t = yes; then
21553
21554 cat >>confdefs.h <<_ACEOF
21555 #define HAVE_SIZE_T 1
21556 _ACEOF
21557
21558
21559 fi
21560
21561
21562 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21563 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21564 if test "${ac_cv_type_mbstate_t+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h. */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 $ac_includes_default
21574 # include <wchar.h>
21575 int
21576 main ()
21577 {
21578 mbstate_t x; return sizeof x;
21579 ;
21580 return 0;
21581 }
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_c_werror_flag"
21593 || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ac_cv_type_mbstate_t=yes
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610 ac_cv_type_mbstate_t=no
21611 fi
21612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21613 fi
21614 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21615 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21616 if test $ac_cv_type_mbstate_t = yes; then
21617
21618 cat >>confdefs.h <<\_ACEOF
21619 #define HAVE_MBSTATE_T 1
21620 _ACEOF
21621
21622 else
21623
21624 cat >>confdefs.h <<\_ACEOF
21625 #define mbstate_t int
21626 _ACEOF
21627
21628 fi
21629
21630 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21631 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21632 if test "${emacs_cv_c_restrict+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 void fred (int *restrict x);
21642 int
21643 main ()
21644 {
21645
21646 ;
21647 return 0;
21648 }
21649 _ACEOF
21650 rm -f conftest.$ac_objext
21651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21652 (eval $ac_compile) 2>conftest.er1
21653 ac_status=$?
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
21659 { ac_try='test -z "$ac_c_werror_flag"
21660 || test ! -s conftest.err'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; } &&
21666 { ac_try='test -s conftest.$ac_objext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 emacs_cv_c_restrict=yes
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h. */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 void fred (int *__restrict x);
21684 int
21685 main ()
21686 {
21687
21688 ;
21689 return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694 (eval $ac_compile) 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try='test -z "$ac_c_werror_flag"
21702 || test ! -s conftest.err'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; } &&
21708 { ac_try='test -s conftest.$ac_objext'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 emacs_cv_c_restrict=__restrict
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719 emacs_cv_c_restrict=no
21720 fi
21721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21722 fi
21723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724 fi
21725 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21726 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21727 case "$emacs_cv_c_restrict" in
21728 yes) emacs_restrict=restrict;;
21729 no) emacs_restrict="";;
21730 *) emacs_restrict="$emacs_cv_c_restrict";;
21731 esac
21732 if test "$emacs_restrict" != __restrict; then
21733
21734 cat >>confdefs.h <<_ACEOF
21735 #define __restrict $emacs_restrict
21736 _ACEOF
21737
21738 fi
21739
21740 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21741 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21742 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h. */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 void fred (int x[__restrict]);
21752 int
21753 main ()
21754 {
21755
21756 ;
21757 return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21762 (eval $ac_compile) 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -z "$ac_c_werror_flag"
21770 || test ! -s conftest.err'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest.$ac_objext'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 emacs_cv_c_restrict_arr=yes
21783 else
21784 echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787 emacs_cv_c_restrict_arr=no
21788 fi
21789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21790 fi
21791 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21792 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21793 if test "$emacs_cv_c_restrict_arr" = yes; then
21794
21795 cat >>confdefs.h <<\_ACEOF
21796 #define __restrict_arr __restrict
21797 _ACEOF
21798
21799 fi
21800
21801
21802
21803 # Set up the CFLAGS for real compilation, so we can substitute it.
21804 CFLAGS="$REAL_CFLAGS"
21805 CPPFLAGS="$REAL_CPPFLAGS"
21806
21807 #### Find out which version of Emacs this is.
21808 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21809 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21810 if test x"${version}" = x; then
21811 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21812 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21813 { (exit 1); exit 1; }; }
21814 fi
21815
21816 ### Specify what sort of things we'll be editing into Makefile and config.h.
21817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853 cat >>confdefs.h <<_ACEOF
21854 #define EMACS_CONFIGURATION "${canonical}"
21855 _ACEOF
21856
21857
21858 cat >>confdefs.h <<_ACEOF
21859 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21860 _ACEOF
21861
21862
21863 cat >>confdefs.h <<_ACEOF
21864 #define config_machfile "${machfile}"
21865 _ACEOF
21866
21867
21868 cat >>confdefs.h <<_ACEOF
21869 #define config_opsysfile "${opsysfile}"
21870 _ACEOF
21871
21872
21873 cat >>confdefs.h <<_ACEOF
21874 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21875 _ACEOF
21876
21877
21878 cat >>confdefs.h <<_ACEOF
21879 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21880 _ACEOF
21881
21882
21883 cat >>confdefs.h <<_ACEOF
21884 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21885 _ACEOF
21886
21887
21888 cat >>confdefs.h <<_ACEOF
21889 #define UNEXEC_SRC ${UNEXEC_SRC}
21890 _ACEOF
21891
21892
21893 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_X_WINDOWS 1
21897 _ACEOF
21898
21899 fi
21900 if test "${USE_X_TOOLKIT}" != "none" ; then
21901
21902 cat >>confdefs.h <<\_ACEOF
21903 #define USE_X_TOOLKIT 1
21904 _ACEOF
21905
21906 fi
21907 if test "${HAVE_X11}" = "yes" ; then
21908
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_X11 1
21911 _ACEOF
21912
21913 fi
21914 if test "${HAVE_XFREE386}" = "yes" ; then
21915
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_XFREE386 1
21918 _ACEOF
21919
21920 fi
21921 if test "${HAVE_MENUS}" = "yes" ; then
21922
21923 cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_MENUS 1
21925 _ACEOF
21926
21927 fi
21928 if test "${GNU_MALLOC}" = "yes" ; then
21929
21930 cat >>confdefs.h <<\_ACEOF
21931 #define GNU_MALLOC 1
21932 _ACEOF
21933
21934 fi
21935 if test "${REL_ALLOC}" = "yes" ; then
21936
21937 cat >>confdefs.h <<\_ACEOF
21938 #define REL_ALLOC 1
21939 _ACEOF
21940
21941 fi
21942
21943
21944
21945
21946
21947 #### Report on what we decided to do.
21948 #### Report GTK as a toolkit, even if it doesn't use Xt.
21949 #### It makes printing result more understandable as using GTK sets
21950 #### toolkit_scroll_bars to yes by default.
21951 if test "${HAVE_GTK}" = "yes"; then
21952 USE_X_TOOLKIT=GTK
21953 fi
21954
21955 echo "
21956 Configured for \`${canonical}'.
21957
21958 Where should the build process find the source code? ${srcdir}
21959 What operating system and machine description files should Emacs use?
21960 \`${opsysfile}' and \`${machfile}'
21961 What compiler should emacs be built with? ${CC} ${CFLAGS}
21962 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21963 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21964 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21965 What window system should Emacs use? ${window_system}
21966 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21967
21968 if test -n "${x_includes}"; then
21969 echo " Where do we find X Windows header files? ${x_includes}"
21970 else
21971 echo " Where do we find X Windows header files? Standard dirs"
21972 fi
21973 if test -n "${x_libraries}"; then
21974 echo " Where do we find X Windows libraries? ${x_libraries}"
21975 else
21976 echo " Where do we find X Windows libraries? Standard dirs"
21977 fi
21978
21979 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21980 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21981 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21982 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21983 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21984 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21985 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21986 echo
21987
21988 if test $USE_XASSERTS = yes; then
21989 echo " Compiling with asserts turned on."
21990 CFLAGS="$CFLAGS -DXASSERTS=1"
21991 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21992 echo
21993 fi
21994
21995
21996
21997 # Remove any trailing slashes in these variables.
21998 test "${prefix}" != NONE &&
21999 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22000 test "${exec_prefix}" != NONE &&
22001 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22002
22003 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22004 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22005 ## from Makefile.c can correctly provide the arg `-traditional' to the
22006 ## C preprocessor.
22007
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 yes..yes
22015 _ACEOF
22016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22017 $EGREP "yes..yes" >/dev/null 2>&1; then
22018 CPP_NEED_TRADITIONAL=no
22019 else
22020 CPP_NEED_TRADITIONAL=yes
22021 fi
22022 rm -f conftest*
22023
22024
22025 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
22026 ac_config_commands="$ac_config_commands default"
22027 cat >confcache <<\_ACEOF
22028 # This file is a shell script that caches the results of configure
22029 # tests run on this system so they can be shared between configure
22030 # scripts and configure runs, see configure's option --config-cache.
22031 # It is not useful on other systems. If it contains results you don't
22032 # want to keep, you may remove or edit it.
22033 #
22034 # config.status only pays attention to the cache file if you give it
22035 # the --recheck option to rerun configure.
22036 #
22037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22039 # following values.
22040
22041 _ACEOF
22042
22043 # The following way of writing the cache mishandles newlines in values,
22044 # but we know of no workaround that is simple, portable, and efficient.
22045 # So, don't put newlines in cache variables' values.
22046 # Ultrix sh set writes to stderr and can't be redirected directly,
22047 # and sets the high bit in the cache file unless we assign to the vars.
22048 {
22049 (set) 2>&1 |
22050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22051 *ac_space=\ *)
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22054 sed -n \
22055 "s/'/'\\\\''/g;
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22057 ;;
22058 *)
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22060 sed -n \
22061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22062 ;;
22063 esac;
22064 } |
22065 sed '
22066 t clear
22067 : clear
22068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22069 t end
22070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22071 : end' >>confcache
22072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22073 if test -w $cache_file; then
22074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075 cat confcache >$cache_file
22076 else
22077 echo "not updating unwritable cache $cache_file"
22078 fi
22079 fi
22080 rm -f confcache
22081
22082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22083 # Let make expand exec_prefix.
22084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22085
22086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088 # trailing colons and then remove the whole line if VPATH becomes empty
22089 # (actually we leave an empty line to preserve line numbers).
22090 if test "x$srcdir" = x.; then
22091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22092 s/:*\$(srcdir):*/:/;
22093 s/:*\${srcdir}:*/:/;
22094 s/:*@srcdir@:*/:/;
22095 s/^\([^=]*=[ ]*\):*/\1/;
22096 s/:*$//;
22097 s/^[^=]*=[ ]*$//;
22098 }'
22099 fi
22100
22101 DEFS=-DHAVE_CONFIG_H
22102
22103 ac_libobjs=
22104 ac_ltlibobjs=
22105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22106 # 1. Remove the extension, and $U if already installed.
22107 ac_i=`echo "$ac_i" |
22108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22109 # 2. Add them.
22110 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22111 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22112 done
22113 LIBOBJS=$ac_libobjs
22114
22115 LTLIBOBJS=$ac_ltlibobjs
22116
22117
22118
22119 : ${CONFIG_STATUS=./config.status}
22120 ac_clean_files_save=$ac_clean_files
22121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124 cat >$CONFIG_STATUS <<_ACEOF
22125 #! $SHELL
22126 # Generated by $as_me.
22127 # Run this file to recreate the current configuration.
22128 # Compiler output produced by configure, useful for debugging
22129 # configure, is in config.log if it exists.
22130
22131 debug=false
22132 ac_cs_recheck=false
22133 ac_cs_silent=false
22134 SHELL=\${CONFIG_SHELL-$SHELL}
22135 _ACEOF
22136
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 ## --------------------- ##
22139 ## M4sh Initialization. ##
22140 ## --------------------- ##
22141
22142 # Be Bourne compatible
22143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22144 emulate sh
22145 NULLCMD=:
22146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147 # is contrary to our usage. Disable this feature.
22148 alias -g '${1+"$@"}'='"$@"'
22149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22150 set -o posix
22151 fi
22152 DUALCASE=1; export DUALCASE # for MKS sh
22153
22154 # Support unset when possible.
22155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22156 as_unset=unset
22157 else
22158 as_unset=false
22159 fi
22160
22161
22162 # Work around bugs in pre-3.0 UWIN ksh.
22163 $as_unset ENV MAIL MAILPATH
22164 PS1='$ '
22165 PS2='> '
22166 PS4='+ '
22167
22168 # NLS nuisances.
22169 for as_var in \
22170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22172 LC_TELEPHONE LC_TIME
22173 do
22174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22175 eval $as_var=C; export $as_var
22176 else
22177 $as_unset $as_var
22178 fi
22179 done
22180
22181 # Required to use basename.
22182 if expr a : '\(a\)' >/dev/null 2>&1; then
22183 as_expr=expr
22184 else
22185 as_expr=false
22186 fi
22187
22188 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22189 as_basename=basename
22190 else
22191 as_basename=false
22192 fi
22193
22194
22195 # Name of the executable.
22196 as_me=`$as_basename "$0" ||
22197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22198 X"$0" : 'X\(//\)$' \| \
22199 X"$0" : 'X\(/\)$' \| \
22200 . : '\(.\)' 2>/dev/null ||
22201 echo X/"$0" |
22202 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22203 /^X\/\(\/\/\)$/{ s//\1/; q; }
22204 /^X\/\(\/\).*/{ s//\1/; q; }
22205 s/.*/./; q'`
22206
22207
22208 # PATH needs CR, and LINENO needs CR and PATH.
22209 # Avoid depending upon Character Ranges.
22210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22213 as_cr_digits='0123456789'
22214 as_cr_alnum=$as_cr_Letters$as_cr_digits
22215
22216 # The user is always right.
22217 if test "${PATH_SEPARATOR+set}" != set; then
22218 echo "#! /bin/sh" >conf$$.sh
22219 echo "exit 0" >>conf$$.sh
22220 chmod +x conf$$.sh
22221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22222 PATH_SEPARATOR=';'
22223 else
22224 PATH_SEPARATOR=:
22225 fi
22226 rm -f conf$$.sh
22227 fi
22228
22229
22230 as_lineno_1=$LINENO
22231 as_lineno_2=$LINENO
22232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22233 test "x$as_lineno_1" != "x$as_lineno_2" &&
22234 test "x$as_lineno_3" = "x$as_lineno_2" || {
22235 # Find who we are. Look in the path if we contain no path at all
22236 # relative or not.
22237 case $0 in
22238 *[\\/]* ) as_myself=$0 ;;
22239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22240 for as_dir in $PATH
22241 do
22242 IFS=$as_save_IFS
22243 test -z "$as_dir" && as_dir=.
22244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22245 done
22246
22247 ;;
22248 esac
22249 # We did not find ourselves, most probably we were run as `sh COMMAND'
22250 # in which case we are not to be found in the path.
22251 if test "x$as_myself" = x; then
22252 as_myself=$0
22253 fi
22254 if test ! -f "$as_myself"; then
22255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22257 { (exit 1); exit 1; }; }
22258 fi
22259 case $CONFIG_SHELL in
22260 '')
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22263 do
22264 IFS=$as_save_IFS
22265 test -z "$as_dir" && as_dir=.
22266 for as_base in sh bash ksh sh5; do
22267 case $as_dir in
22268 /*)
22269 if ("$as_dir/$as_base" -c '
22270 as_lineno_1=$LINENO
22271 as_lineno_2=$LINENO
22272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22273 test "x$as_lineno_1" != "x$as_lineno_2" &&
22274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22275 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22276 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22277 CONFIG_SHELL=$as_dir/$as_base
22278 export CONFIG_SHELL
22279 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22280 fi;;
22281 esac
22282 done
22283 done
22284 ;;
22285 esac
22286
22287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22288 # uniformly replaced by the line number. The first 'sed' inserts a
22289 # line-number line before each line; the second 'sed' does the real
22290 # work. The second script uses 'N' to pair each line-number line
22291 # with the numbered line, and appends trailing '-' during
22292 # substitution so that $LINENO is not a special case at line end.
22293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22294 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22295 sed '=' <$as_myself |
22296 sed '
22297 N
22298 s,$,-,
22299 : loop
22300 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22301 t loop
22302 s,-$,,
22303 s,^['$as_cr_digits']*\n,,
22304 ' >$as_me.lineno &&
22305 chmod +x $as_me.lineno ||
22306 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22308 { (exit 1); exit 1; }; }
22309
22310 # Don't try to exec as it changes $[0], causing all sort of problems
22311 # (the dirname of $[0] is not the place where we might find the
22312 # original and so on. Autoconf is especially sensible to this).
22313 . ./$as_me.lineno
22314 # Exit status is that of the last command.
22315 exit
22316 }
22317
22318
22319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22320 *c*,-n*) ECHO_N= ECHO_C='
22321 ' ECHO_T=' ' ;;
22322 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22323 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22324 esac
22325
22326 if expr a : '\(a\)' >/dev/null 2>&1; then
22327 as_expr=expr
22328 else
22329 as_expr=false
22330 fi
22331
22332 rm -f conf$$ conf$$.exe conf$$.file
22333 echo >conf$$.file
22334 if ln -s conf$$.file conf$$ 2>/dev/null; then
22335 # We could just check for DJGPP; but this test a) works b) is more generic
22336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22337 if test -f conf$$.exe; then
22338 # Don't use ln at all; we don't have any links
22339 as_ln_s='cp -p'
22340 else
22341 as_ln_s='ln -s'
22342 fi
22343 elif ln conf$$.file conf$$ 2>/dev/null; then
22344 as_ln_s=ln
22345 else
22346 as_ln_s='cp -p'
22347 fi
22348 rm -f conf$$ conf$$.exe conf$$.file
22349
22350 if mkdir -p . 2>/dev/null; then
22351 as_mkdir_p=:
22352 else
22353 test -d ./-p && rmdir ./-p
22354 as_mkdir_p=false
22355 fi
22356
22357 as_executable_p="test -f"
22358
22359 # Sed expression to map a string onto a valid CPP name.
22360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22361
22362 # Sed expression to map a string onto a valid variable name.
22363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22364
22365
22366 # IFS
22367 # We need space, tab and new line, in precisely that order.
22368 as_nl='
22369 '
22370 IFS=" $as_nl"
22371
22372 # CDPATH.
22373 $as_unset CDPATH
22374
22375 exec 6>&1
22376
22377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22378 # report actual input values of CONFIG_FILES etc. instead of their
22379 # values after options handling. Logging --version etc. is OK.
22380 exec 5>>config.log
22381 {
22382 echo
22383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22384 ## Running $as_me. ##
22385 _ASBOX
22386 } >&5
22387 cat >&5 <<_CSEOF
22388
22389 This file was extended by $as_me, which was
22390 generated by GNU Autoconf 2.59. Invocation command line was
22391
22392 CONFIG_FILES = $CONFIG_FILES
22393 CONFIG_HEADERS = $CONFIG_HEADERS
22394 CONFIG_LINKS = $CONFIG_LINKS
22395 CONFIG_COMMANDS = $CONFIG_COMMANDS
22396 $ $0 $@
22397
22398 _CSEOF
22399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22400 echo >&5
22401 _ACEOF
22402
22403 # Files that config.status was made for.
22404 if test -n "$ac_config_files"; then
22405 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22406 fi
22407
22408 if test -n "$ac_config_headers"; then
22409 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22410 fi
22411
22412 if test -n "$ac_config_links"; then
22413 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22414 fi
22415
22416 if test -n "$ac_config_commands"; then
22417 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22418 fi
22419
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22421
22422 ac_cs_usage="\
22423 \`$as_me' instantiates files from templates according to the
22424 current configuration.
22425
22426 Usage: $0 [OPTIONS] [FILE]...
22427
22428 -h, --help print this help, then exit
22429 -V, --version print version number, then exit
22430 -q, --quiet do not print progress messages
22431 -d, --debug don't remove temporary files
22432 --recheck update $as_me by reconfiguring in the same conditions
22433 --file=FILE[:TEMPLATE]
22434 instantiate the configuration file FILE
22435 --header=FILE[:TEMPLATE]
22436 instantiate the configuration header FILE
22437
22438 Configuration files:
22439 $config_files
22440
22441 Configuration headers:
22442 $config_headers
22443
22444 Configuration commands:
22445 $config_commands
22446
22447 Report bugs to <bug-autoconf@gnu.org>."
22448 _ACEOF
22449
22450 cat >>$CONFIG_STATUS <<_ACEOF
22451 ac_cs_version="\\
22452 config.status
22453 configured by $0, generated by GNU Autoconf 2.59,
22454 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22455
22456 Copyright (C) 2003 Free Software Foundation, Inc.
22457 This config.status script is free software; the Free Software Foundation
22458 gives unlimited permission to copy, distribute and modify it."
22459 srcdir=$srcdir
22460 INSTALL="$INSTALL"
22461 _ACEOF
22462
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 # If no file are specified by the user, then we need to provide default
22465 # value. By we need to know if files were specified by the user.
22466 ac_need_defaults=:
22467 while test $# != 0
22468 do
22469 case $1 in
22470 --*=*)
22471 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22472 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22473 ac_shift=:
22474 ;;
22475 -*)
22476 ac_option=$1
22477 ac_optarg=$2
22478 ac_shift=shift
22479 ;;
22480 *) # This is not an option, so the user has probably given explicit
22481 # arguments.
22482 ac_option=$1
22483 ac_need_defaults=false;;
22484 esac
22485
22486 case $ac_option in
22487 # Handling of the options.
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22491 ac_cs_recheck=: ;;
22492 --version | --vers* | -V )
22493 echo "$ac_cs_version"; exit 0 ;;
22494 --he | --h)
22495 # Conflict between --help and --header
22496 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22497 Try \`$0 --help' for more information." >&5
22498 echo "$as_me: error: ambiguous option: $1
22499 Try \`$0 --help' for more information." >&2;}
22500 { (exit 1); exit 1; }; };;
22501 --help | --hel | -h )
22502 echo "$ac_cs_usage"; exit 0 ;;
22503 --debug | --d* | -d )
22504 debug=: ;;
22505 --file | --fil | --fi | --f )
22506 $ac_shift
22507 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22508 ac_need_defaults=false;;
22509 --header | --heade | --head | --hea )
22510 $ac_shift
22511 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22512 ac_need_defaults=false;;
22513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22515 ac_cs_silent=: ;;
22516
22517 # This is an error.
22518 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22519 Try \`$0 --help' for more information." >&5
22520 echo "$as_me: error: unrecognized option: $1
22521 Try \`$0 --help' for more information." >&2;}
22522 { (exit 1); exit 1; }; } ;;
22523
22524 *) ac_config_targets="$ac_config_targets $1" ;;
22525
22526 esac
22527 shift
22528 done
22529
22530 ac_configure_extra_args=
22531
22532 if $ac_cs_silent; then
22533 exec 6>/dev/null
22534 ac_configure_extra_args="$ac_configure_extra_args --silent"
22535 fi
22536
22537 _ACEOF
22538 cat >>$CONFIG_STATUS <<_ACEOF
22539 if \$ac_cs_recheck; then
22540 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22541 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22542 fi
22543
22544 _ACEOF
22545
22546 cat >>$CONFIG_STATUS <<_ACEOF
22547 #
22548 # INIT-COMMANDS section.
22549 #
22550
22551 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22552
22553 _ACEOF
22554
22555
22556
22557 cat >>$CONFIG_STATUS <<\_ACEOF
22558 for ac_config_target in $ac_config_targets
22559 do
22560 case "$ac_config_target" in
22561 # Handling of arguments.
22562 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22563 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22564 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22565 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22566 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22567 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22568 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22569 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22570 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22571 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22572 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22573 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22576 { (exit 1); exit 1; }; };;
22577 esac
22578 done
22579
22580 # If the user did not use the arguments to specify the items to instantiate,
22581 # then the envvar interface is used. Set only those that are not.
22582 # We use the long form for the default assignment because of an extremely
22583 # bizarre bug on SunOS 4.1.3.
22584 if $ac_need_defaults; then
22585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22588 fi
22589
22590 # Have a temporary directory for convenience. Make it in the build tree
22591 # simply because there is no reason to put it here, and in addition,
22592 # creating and moving files from /tmp can sometimes cause problems.
22593 # Create a temporary directory, and hook for its removal unless debugging.
22594 $debug ||
22595 {
22596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22597 trap '{ (exit 1); exit 1; }' 1 2 13 15
22598 }
22599
22600 # Create a (secure) tmp directory for tmp files.
22601
22602 {
22603 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22604 test -n "$tmp" && test -d "$tmp"
22605 } ||
22606 {
22607 tmp=./confstat$$-$RANDOM
22608 (umask 077 && mkdir $tmp)
22609 } ||
22610 {
22611 echo "$me: cannot create a temporary directory in ." >&2
22612 { (exit 1); exit 1; }
22613 }
22614
22615 _ACEOF
22616
22617 cat >>$CONFIG_STATUS <<_ACEOF
22618
22619 #
22620 # CONFIG_FILES section.
22621 #
22622
22623 # No need to generate the scripts if there are no CONFIG_FILES.
22624 # This happens for instance when ./config.status config.h
22625 if test -n "\$CONFIG_FILES"; then
22626 # Protect against being on the right side of a sed subst in config.status.
22627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22629 s,@SHELL@,$SHELL,;t t
22630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22636 s,@exec_prefix@,$exec_prefix,;t t
22637 s,@prefix@,$prefix,;t t
22638 s,@program_transform_name@,$program_transform_name,;t t
22639 s,@bindir@,$bindir,;t t
22640 s,@sbindir@,$sbindir,;t t
22641 s,@libexecdir@,$libexecdir,;t t
22642 s,@datadir@,$datadir,;t t
22643 s,@sysconfdir@,$sysconfdir,;t t
22644 s,@sharedstatedir@,$sharedstatedir,;t t
22645 s,@localstatedir@,$localstatedir,;t t
22646 s,@libdir@,$libdir,;t t
22647 s,@includedir@,$includedir,;t t
22648 s,@oldincludedir@,$oldincludedir,;t t
22649 s,@infodir@,$infodir,;t t
22650 s,@mandir@,$mandir,;t t
22651 s,@build_alias@,$build_alias,;t t
22652 s,@host_alias@,$host_alias,;t t
22653 s,@target_alias@,$target_alias,;t t
22654 s,@DEFS@,$DEFS,;t t
22655 s,@ECHO_C@,$ECHO_C,;t t
22656 s,@ECHO_N@,$ECHO_N,;t t
22657 s,@ECHO_T@,$ECHO_T,;t t
22658 s,@LIBS@,$LIBS,;t t
22659 s,@MAINT@,$MAINT,;t t
22660 s,@build@,$build,;t t
22661 s,@build_cpu@,$build_cpu,;t t
22662 s,@build_vendor@,$build_vendor,;t t
22663 s,@build_os@,$build_os,;t t
22664 s,@host@,$host,;t t
22665 s,@host_cpu@,$host_cpu,;t t
22666 s,@host_vendor@,$host_vendor,;t t
22667 s,@host_os@,$host_os,;t t
22668 s,@CC@,$CC,;t t
22669 s,@CFLAGS@,$CFLAGS,;t t
22670 s,@LDFLAGS@,$LDFLAGS,;t t
22671 s,@CPPFLAGS@,$CPPFLAGS,;t t
22672 s,@ac_ct_CC@,$ac_ct_CC,;t t
22673 s,@EXEEXT@,$EXEEXT,;t t
22674 s,@OBJEXT@,$OBJEXT,;t t
22675 s,@LN_S@,$LN_S,;t t
22676 s,@CPP@,$CPP,;t t
22677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22680 s,@RANLIB@,$RANLIB,;t t
22681 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22682 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22683 s,@EGREP@,$EGREP,;t t
22684 s,@LIBSOUND@,$LIBSOUND,;t t
22685 s,@SET_MAKE@,$SET_MAKE,;t t
22686 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22687 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22688 s,@GTK_LIBS@,$GTK_LIBS,;t t
22689 s,@ALLOCA@,$ALLOCA,;t t
22690 s,@liblockfile@,$liblockfile,;t t
22691 s,@LIBOBJS@,$LIBOBJS,;t t
22692 s,@NEED_SETGID@,$NEED_SETGID,;t t
22693 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22694 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22695 s,@version@,$version,;t t
22696 s,@configuration@,$configuration,;t t
22697 s,@canonical@,$canonical,;t t
22698 s,@srcdir@,$srcdir,;t t
22699 s,@lispdir@,$lispdir,;t t
22700 s,@locallisppath@,$locallisppath,;t t
22701 s,@lisppath@,$lisppath,;t t
22702 s,@x_default_search_path@,$x_default_search_path,;t t
22703 s,@etcdir@,$etcdir,;t t
22704 s,@archlibdir@,$archlibdir,;t t
22705 s,@docdir@,$docdir,;t t
22706 s,@bitmapdir@,$bitmapdir,;t t
22707 s,@gamedir@,$gamedir,;t t
22708 s,@gameuser@,$gameuser,;t t
22709 s,@c_switch_system@,$c_switch_system,;t t
22710 s,@c_switch_machine@,$c_switch_machine,;t t
22711 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22712 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22713 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22714 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22715 s,@machfile@,$machfile,;t t
22716 s,@opsysfile@,$opsysfile,;t t
22717 s,@carbon_appdir@,$carbon_appdir,;t t
22718 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22719 CEOF
22720
22721 _ACEOF
22722
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 # Split the substitutions into bite-sized pieces for seds with
22725 # small command number limits, like on Digital OSF/1 and HP-UX.
22726 ac_max_sed_lines=48
22727 ac_sed_frag=1 # Number of current file.
22728 ac_beg=1 # First line for current file.
22729 ac_end=$ac_max_sed_lines # Line after last line for current file.
22730 ac_more_lines=:
22731 ac_sed_cmds=
22732 while $ac_more_lines; do
22733 if test $ac_beg -gt 1; then
22734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22735 else
22736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22737 fi
22738 if test ! -s $tmp/subs.frag; then
22739 ac_more_lines=false
22740 else
22741 # The purpose of the label and of the branching condition is to
22742 # speed up the sed processing (if there are no `@' at all, there
22743 # is no need to browse any of the substitutions).
22744 # These are the two extra sed commands mentioned above.
22745 (echo ':t
22746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22747 if test -z "$ac_sed_cmds"; then
22748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22749 else
22750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22751 fi
22752 ac_sed_frag=`expr $ac_sed_frag + 1`
22753 ac_beg=$ac_end
22754 ac_end=`expr $ac_end + $ac_max_sed_lines`
22755 fi
22756 done
22757 if test -z "$ac_sed_cmds"; then
22758 ac_sed_cmds=cat
22759 fi
22760 fi # test -n "$CONFIG_FILES"
22761
22762 _ACEOF
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22766 case $ac_file in
22767 - | *:- | *:-:* ) # input from stdin
22768 cat >$tmp/stdin
22769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22773 * ) ac_file_in=$ac_file.in ;;
22774 esac
22775
22776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22777 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22779 X"$ac_file" : 'X\(//\)[^/]' \| \
22780 X"$ac_file" : 'X\(//\)$' \| \
22781 X"$ac_file" : 'X\(/\)' \| \
22782 . : '\(.\)' 2>/dev/null ||
22783 echo X"$ac_file" |
22784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22786 /^X\(\/\/\)$/{ s//\1/; q; }
22787 /^X\(\/\).*/{ s//\1/; q; }
22788 s/.*/./; q'`
22789 { if $as_mkdir_p; then
22790 mkdir -p "$ac_dir"
22791 else
22792 as_dir="$ac_dir"
22793 as_dirs=
22794 while test ! -d "$as_dir"; do
22795 as_dirs="$as_dir $as_dirs"
22796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22798 X"$as_dir" : 'X\(//\)[^/]' \| \
22799 X"$as_dir" : 'X\(//\)$' \| \
22800 X"$as_dir" : 'X\(/\)' \| \
22801 . : '\(.\)' 2>/dev/null ||
22802 echo X"$as_dir" |
22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22805 /^X\(\/\/\)$/{ s//\1/; q; }
22806 /^X\(\/\).*/{ s//\1/; q; }
22807 s/.*/./; q'`
22808 done
22809 test ! -n "$as_dirs" || mkdir $as_dirs
22810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22812 { (exit 1); exit 1; }; }; }
22813
22814 ac_builddir=.
22815
22816 if test "$ac_dir" != .; then
22817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22818 # A "../" for each directory in $ac_dir_suffix.
22819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22820 else
22821 ac_dir_suffix= ac_top_builddir=
22822 fi
22823
22824 case $srcdir in
22825 .) # No --srcdir option. We are building in place.
22826 ac_srcdir=.
22827 if test -z "$ac_top_builddir"; then
22828 ac_top_srcdir=.
22829 else
22830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22831 fi ;;
22832 [\\/]* | ?:[\\/]* ) # Absolute path.
22833 ac_srcdir=$srcdir$ac_dir_suffix;
22834 ac_top_srcdir=$srcdir ;;
22835 *) # Relative path.
22836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22838 esac
22839
22840 # Do not use `cd foo && pwd` to compute absolute paths, because
22841 # the directories may not exist.
22842 case `pwd` in
22843 .) ac_abs_builddir="$ac_dir";;
22844 *)
22845 case "$ac_dir" in
22846 .) ac_abs_builddir=`pwd`;;
22847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22849 esac;;
22850 esac
22851 case $ac_abs_builddir in
22852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22853 *)
22854 case ${ac_top_builddir}. in
22855 .) ac_abs_top_builddir=$ac_abs_builddir;;
22856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22858 esac;;
22859 esac
22860 case $ac_abs_builddir in
22861 .) ac_abs_srcdir=$ac_srcdir;;
22862 *)
22863 case $ac_srcdir in
22864 .) ac_abs_srcdir=$ac_abs_builddir;;
22865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22867 esac;;
22868 esac
22869 case $ac_abs_builddir in
22870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22871 *)
22872 case $ac_top_srcdir in
22873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22876 esac;;
22877 esac
22878
22879
22880 case $INSTALL in
22881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22882 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22883 esac
22884
22885 if test x"$ac_file" != x-; then
22886 { echo "$as_me:$LINENO: creating $ac_file" >&5
22887 echo "$as_me: creating $ac_file" >&6;}
22888 rm -f "$ac_file"
22889 fi
22890 # Let's still pretend it is `configure' which instantiates (i.e., don't
22891 # use $as_me), people would be surprised to read:
22892 # /* config.h. Generated by config.status. */
22893 if test x"$ac_file" = x-; then
22894 configure_input=
22895 else
22896 configure_input="$ac_file. "
22897 fi
22898 configure_input=$configure_input"Generated from `echo $ac_file_in |
22899 sed 's,.*/,,'` by configure."
22900
22901 # First look for the input files in the build tree, otherwise in the
22902 # src tree.
22903 ac_file_inputs=`IFS=:
22904 for f in $ac_file_in; do
22905 case $f in
22906 -) echo $tmp/stdin ;;
22907 [\\/$]*)
22908 # Absolute (can't be DOS-style, as IFS=:)
22909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22910 echo "$as_me: error: cannot find input file: $f" >&2;}
22911 { (exit 1); exit 1; }; }
22912 echo "$f";;
22913 *) # Relative
22914 if test -f "$f"; then
22915 # Build tree
22916 echo "$f"
22917 elif test -f "$srcdir/$f"; then
22918 # Source tree
22919 echo "$srcdir/$f"
22920 else
22921 # /dev/null tree
22922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22923 echo "$as_me: error: cannot find input file: $f" >&2;}
22924 { (exit 1); exit 1; }; }
22925 fi;;
22926 esac
22927 done` || { (exit 1); exit 1; }
22928 _ACEOF
22929 cat >>$CONFIG_STATUS <<_ACEOF
22930 sed "$ac_vpsub
22931 $extrasub
22932 _ACEOF
22933 cat >>$CONFIG_STATUS <<\_ACEOF
22934 :t
22935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22936 s,@configure_input@,$configure_input,;t t
22937 s,@srcdir@,$ac_srcdir,;t t
22938 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22939 s,@top_srcdir@,$ac_top_srcdir,;t t
22940 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22941 s,@builddir@,$ac_builddir,;t t
22942 s,@abs_builddir@,$ac_abs_builddir,;t t
22943 s,@top_builddir@,$ac_top_builddir,;t t
22944 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22945 s,@INSTALL@,$ac_INSTALL,;t t
22946 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22947 rm -f $tmp/stdin
22948 if test x"$ac_file" != x-; then
22949 mv $tmp/out $ac_file
22950 else
22951 cat $tmp/out
22952 rm -f $tmp/out
22953 fi
22954
22955 done
22956 _ACEOF
22957 cat >>$CONFIG_STATUS <<\_ACEOF
22958
22959 #
22960 # CONFIG_HEADER section.
22961 #
22962
22963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22965 #
22966 # ac_d sets the value in "#define NAME VALUE" lines.
22967 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22968 ac_dB='[ ].*$,\1#\2'
22969 ac_dC=' '
22970 ac_dD=',;t'
22971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22972 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22973 ac_uB='$,\1#\2define\3'
22974 ac_uC=' '
22975 ac_uD=',;t'
22976
22977 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22979 case $ac_file in
22980 - | *:- | *:-:* ) # input from stdin
22981 cat >$tmp/stdin
22982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22986 * ) ac_file_in=$ac_file.in ;;
22987 esac
22988
22989 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22990 echo "$as_me: creating $ac_file" >&6;}
22991
22992 # First look for the input files in the build tree, otherwise in the
22993 # src tree.
22994 ac_file_inputs=`IFS=:
22995 for f in $ac_file_in; do
22996 case $f in
22997 -) echo $tmp/stdin ;;
22998 [\\/$]*)
22999 # Absolute (can't be DOS-style, as IFS=:)
23000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23001 echo "$as_me: error: cannot find input file: $f" >&2;}
23002 { (exit 1); exit 1; }; }
23003 # Do quote $f, to prevent DOS paths from being IFS'd.
23004 echo "$f";;
23005 *) # Relative
23006 if test -f "$f"; then
23007 # Build tree
23008 echo "$f"
23009 elif test -f "$srcdir/$f"; then
23010 # Source tree
23011 echo "$srcdir/$f"
23012 else
23013 # /dev/null tree
23014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23015 echo "$as_me: error: cannot find input file: $f" >&2;}
23016 { (exit 1); exit 1; }; }
23017 fi;;
23018 esac
23019 done` || { (exit 1); exit 1; }
23020 # Remove the trailing spaces.
23021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23022
23023 _ACEOF
23024
23025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23026 # `conftest.undefs', that substitutes the proper values into
23027 # config.h.in to produce config.h. The first handles `#define'
23028 # templates, and the second `#undef' templates.
23029 # And first: Protect against being on the right side of a sed subst in
23030 # config.status. Protect against being in an unquoted here document
23031 # in config.status.
23032 rm -f conftest.defines conftest.undefs
23033 # Using a here document instead of a string reduces the quoting nightmare.
23034 # Putting comments in sed scripts is not portable.
23035 #
23036 # `end' is used to avoid that the second main sed command (meant for
23037 # 0-ary CPP macros) applies to n-ary macro definitions.
23038 # See the Autoconf documentation for `clear'.
23039 cat >confdef2sed.sed <<\_ACEOF
23040 s/[\\&,]/\\&/g
23041 s,[\\$`],\\&,g
23042 t clear
23043 : clear
23044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23045 t end
23046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23047 : end
23048 _ACEOF
23049 # If some macros were called several times there might be several times
23050 # the same #defines, which is useless. Nevertheless, we may not want to
23051 # sort them, since we want the *last* AC-DEFINE to be honored.
23052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23054 rm -f confdef2sed.sed
23055
23056 # This sed command replaces #undef with comments. This is necessary, for
23057 # example, in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 cat >>conftest.undefs <<\_ACEOF
23060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23061 _ACEOF
23062
23063 # Break up conftest.defines because some shells have a limit on the size
23064 # of here documents, and old seds have small limits too (100 cmds).
23065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23068 echo ' :' >>$CONFIG_STATUS
23069 rm -f conftest.tail
23070 while grep . conftest.defines >/dev/null
23071 do
23072 # Write a limited-size here document to $tmp/defines.sed.
23073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23074 # Speed up: don't consider the non `#define' lines.
23075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23076 # Work around the forget-to-reset-the-flag bug.
23077 echo 't clr' >>$CONFIG_STATUS
23078 echo ': clr' >>$CONFIG_STATUS
23079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23080 echo 'CEOF
23081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23082 rm -f $tmp/in
23083 mv $tmp/out $tmp/in
23084 ' >>$CONFIG_STATUS
23085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23086 rm -f conftest.defines
23087 mv conftest.tail conftest.defines
23088 done
23089 rm -f conftest.defines
23090 echo ' fi # grep' >>$CONFIG_STATUS
23091 echo >>$CONFIG_STATUS
23092
23093 # Break up conftest.undefs because some shells have a limit on the size
23094 # of here documents, and old seds have small limits too (100 cmds).
23095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23096 rm -f conftest.tail
23097 while grep . conftest.undefs >/dev/null
23098 do
23099 # Write a limited-size here document to $tmp/undefs.sed.
23100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23101 # Speed up: don't consider the non `#undef'
23102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23103 # Work around the forget-to-reset-the-flag bug.
23104 echo 't clr' >>$CONFIG_STATUS
23105 echo ': clr' >>$CONFIG_STATUS
23106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23107 echo 'CEOF
23108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23109 rm -f $tmp/in
23110 mv $tmp/out $tmp/in
23111 ' >>$CONFIG_STATUS
23112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23113 rm -f conftest.undefs
23114 mv conftest.tail conftest.undefs
23115 done
23116 rm -f conftest.undefs
23117
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23119 # Let's still pretend it is `configure' which instantiates (i.e., don't
23120 # use $as_me), people would be surprised to read:
23121 # /* config.h. Generated by config.status. */
23122 if test x"$ac_file" = x-; then
23123 echo "/* Generated by configure. */" >$tmp/config.h
23124 else
23125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23126 fi
23127 cat $tmp/in >>$tmp/config.h
23128 rm -f $tmp/in
23129 if test x"$ac_file" != x-; then
23130 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23132 echo "$as_me: $ac_file is unchanged" >&6;}
23133 else
23134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136 X"$ac_file" : 'X\(//\)[^/]' \| \
23137 X"$ac_file" : 'X\(//\)$' \| \
23138 X"$ac_file" : 'X\(/\)' \| \
23139 . : '\(.\)' 2>/dev/null ||
23140 echo X"$ac_file" |
23141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23143 /^X\(\/\/\)$/{ s//\1/; q; }
23144 /^X\(\/\).*/{ s//\1/; q; }
23145 s/.*/./; q'`
23146 { if $as_mkdir_p; then
23147 mkdir -p "$ac_dir"
23148 else
23149 as_dir="$ac_dir"
23150 as_dirs=
23151 while test ! -d "$as_dir"; do
23152 as_dirs="$as_dir $as_dirs"
23153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23155 X"$as_dir" : 'X\(//\)[^/]' \| \
23156 X"$as_dir" : 'X\(//\)$' \| \
23157 X"$as_dir" : 'X\(/\)' \| \
23158 . : '\(.\)' 2>/dev/null ||
23159 echo X"$as_dir" |
23160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23162 /^X\(\/\/\)$/{ s//\1/; q; }
23163 /^X\(\/\).*/{ s//\1/; q; }
23164 s/.*/./; q'`
23165 done
23166 test ! -n "$as_dirs" || mkdir $as_dirs
23167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23169 { (exit 1); exit 1; }; }; }
23170
23171 rm -f $ac_file
23172 mv $tmp/config.h $ac_file
23173 fi
23174 else
23175 cat $tmp/config.h
23176 rm -f $tmp/config.h
23177 fi
23178 done
23179 _ACEOF
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23181
23182 #
23183 # CONFIG_COMMANDS section.
23184 #
23185 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190 X"$ac_dest" : 'X\(//\)[^/]' \| \
23191 X"$ac_dest" : 'X\(//\)$' \| \
23192 X"$ac_dest" : 'X\(/\)' \| \
23193 . : '\(.\)' 2>/dev/null ||
23194 echo X"$ac_dest" |
23195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23197 /^X\(\/\/\)$/{ s//\1/; q; }
23198 /^X\(\/\).*/{ s//\1/; q; }
23199 s/.*/./; q'`
23200 { if $as_mkdir_p; then
23201 mkdir -p "$ac_dir"
23202 else
23203 as_dir="$ac_dir"
23204 as_dirs=
23205 while test ! -d "$as_dir"; do
23206 as_dirs="$as_dir $as_dirs"
23207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23209 X"$as_dir" : 'X\(//\)[^/]' \| \
23210 X"$as_dir" : 'X\(//\)$' \| \
23211 X"$as_dir" : 'X\(/\)' \| \
23212 . : '\(.\)' 2>/dev/null ||
23213 echo X"$as_dir" |
23214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23216 /^X\(\/\/\)$/{ s//\1/; q; }
23217 /^X\(\/\).*/{ s//\1/; q; }
23218 s/.*/./; q'`
23219 done
23220 test ! -n "$as_dirs" || mkdir $as_dirs
23221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23223 { (exit 1); exit 1; }; }; }
23224
23225 ac_builddir=.
23226
23227 if test "$ac_dir" != .; then
23228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23229 # A "../" for each directory in $ac_dir_suffix.
23230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23231 else
23232 ac_dir_suffix= ac_top_builddir=
23233 fi
23234
23235 case $srcdir in
23236 .) # No --srcdir option. We are building in place.
23237 ac_srcdir=.
23238 if test -z "$ac_top_builddir"; then
23239 ac_top_srcdir=.
23240 else
23241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23242 fi ;;
23243 [\\/]* | ?:[\\/]* ) # Absolute path.
23244 ac_srcdir=$srcdir$ac_dir_suffix;
23245 ac_top_srcdir=$srcdir ;;
23246 *) # Relative path.
23247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23249 esac
23250
23251 # Do not use `cd foo && pwd` to compute absolute paths, because
23252 # the directories may not exist.
23253 case `pwd` in
23254 .) ac_abs_builddir="$ac_dir";;
23255 *)
23256 case "$ac_dir" in
23257 .) ac_abs_builddir=`pwd`;;
23258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23260 esac;;
23261 esac
23262 case $ac_abs_builddir in
23263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23264 *)
23265 case ${ac_top_builddir}. in
23266 .) ac_abs_top_builddir=$ac_abs_builddir;;
23267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23269 esac;;
23270 esac
23271 case $ac_abs_builddir in
23272 .) ac_abs_srcdir=$ac_srcdir;;
23273 *)
23274 case $ac_srcdir in
23275 .) ac_abs_srcdir=$ac_abs_builddir;;
23276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23278 esac;;
23279 esac
23280 case $ac_abs_builddir in
23281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23282 *)
23283 case $ac_top_srcdir in
23284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23287 esac;;
23288 esac
23289
23290
23291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23292 echo "$as_me: executing $ac_dest commands" >&6;}
23293 case $ac_dest in
23294 default )
23295
23296 ### Make the necessary directories, if they don't exist.
23297 for dir in etc lisp ; do
23298 test -d ${dir} || mkdir ${dir}
23299 done
23300
23301 # Build src/Makefile from ${srcdir}/src/Makefile.c
23302 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23303 # This must be done after src/config.h is built, since we rely on that file.
23304
23305 # Now get this: Some word that is part of the ${srcdir} directory name
23306 # or the ${configuration} value might, just might, happen to be an
23307 # identifier like `sun4' or `i386' or something, and be predefined by
23308 # the C preprocessor to some helpful value like 1, or maybe the empty
23309 # string. Needless to say consequent macro substitutions are less
23310 # than conducive to the makefile finding the correct directory.
23311 undefs="`echo $top_srcdir $configuration $canonical |
23312 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23313 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23314 `"
23315
23316 echo creating src/epaths.h
23317 ${MAKE-make} epaths-force
23318
23319 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23320 # `..' to `. .' unless invoked with -traditional
23321
23322 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23323 CPPFLAGS="$CPPFLAGS -traditional"
23324 fi
23325
23326 echo creating lib-src/Makefile
23327 ( cd lib-src
23328 rm -f junk.c junk1.c junk2.c
23329 sed -e '/start of cpp stuff/q' \
23330 < Makefile.c > junk1.c
23331 sed -e '1,/start of cpp stuff/d'\
23332 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23333 < Makefile.c > junk.c
23334 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23335 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23336 cat junk1.c junk2.c > Makefile.new
23337 rm -f junk.c junk1.c junk2.c
23338 chmod 444 Makefile.new
23339 mv -f Makefile.new Makefile
23340 )
23341
23342 echo creating src/Makefile
23343 ( cd src
23344 rm -f junk.c junk1.c junk2.c
23345 sed -e '/start of cpp stuff/q' \
23346 < Makefile.c > junk1.c
23347 sed -e '1,/start of cpp stuff/d'\
23348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23349 < Makefile.c > junk.c
23350 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23352 cat junk1.c junk2.c > Makefile.new
23353 rm -f junk.c junk1.c junk2.c
23354 chmod 444 Makefile.new
23355 mv -f Makefile.new Makefile
23356 )
23357
23358 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23359 echo creating src/.gdbinit
23360 echo source $srcdir/src/.gdbinit > src/.gdbinit
23361 fi
23362
23363 # This is how we know whether to re-run configure in certain cases.
23364 touch src/config.stamp
23365
23366 ;;
23367 esac
23368 done
23369 _ACEOF
23370
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23372
23373 { (exit 0); exit 0; }
23374 _ACEOF
23375 chmod +x $CONFIG_STATUS
23376 ac_clean_files=$ac_clean_files_save
23377
23378
23379 # configure is writing to config.log, and then calls config.status.
23380 # config.status does its own redirection, appending to config.log.
23381 # Unfortunately, on DOS this fails, as config.log is still kept open
23382 # by configure, so config.status won't be able to write to it; its
23383 # output is simply discarded. So we exec the FD to /dev/null,
23384 # effectively closing config.log, so it can be properly (re)opened and
23385 # appended to by config.status. When coming back to configure, we
23386 # need to make the FD available again.
23387 if test "$no_create" != yes; then
23388 ac_cs_success=:
23389 ac_config_status_args=
23390 test "$silent" = yes &&
23391 ac_config_status_args="$ac_config_status_args --quiet"
23392 exec 5>/dev/null
23393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23394 exec 5>>config.log
23395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23396 # would make configure fail if this is the last instruction.
23397 $ac_cs_success || { (exit 1); exit 1; }
23398 fi
23399
23400