]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[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 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd "$ac_popdir"
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: 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." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1722 ;;
1723
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1728
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1732
1733 fi
1734
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1751 ;;
1752
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1765 ;;
1766
1767 ## Acorn RISCiX:
1768 arm-acorn-riscix1.1* )
1769 machine=acorn opsys=riscix1-1
1770 ;;
1771 arm-acorn-riscix1.2* | arm-acorn-riscix )
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine=acorn opsys=riscix12
1775 ;;
1776
1777 ## BSDI ports
1778 *-*-bsdi* )
1779 opsys=bsdi
1780 case "${canonical}" in
1781 i[345]86-*-bsdi*) machine=intel386 ;;
1782 sparc-*-bsdi*) machine=sparc ;;
1783 powerpc-*-bsdi*) machine=macppc ;;
1784 esac
1785 case "${canonical}" in
1786 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1787 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1788 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1789 *-*-bsdi3* ) opsys=bsdos3 ;;
1790 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1791 esac
1792 ;;
1793
1794 ## Alliant machines
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1800 fx80-alliant-* )
1801 machine=alliant4 opsys=bsd4-2
1802 ;;
1803 i860-alliant-* )
1804 machine=alliant-2800 opsys=bsd4-3
1805 ;;
1806
1807 ## Alpha (DEC) machines.
1808 alpha*-dec-osf* )
1809 machine=alpha opsys=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1812 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP=/usr/bin/cpp
1818 case "${canonical}" in
1819 alpha*-dec-osf[5-9]*)
1820 opsys=osf5-0 ;;
1821 esac
1822 ;;
1823
1824 alpha*-*-linux-gnu* )
1825 machine=alpha opsys=gnu-linux
1826 ;;
1827
1828 arm*-*-linux-gnu* )
1829 machine=arm opsys=gnu-linux
1830 ;;
1831
1832 ## Altos 3068
1833 m68*-altos-sysv* )
1834 machine=altos opsys=usg5-2
1835 ;;
1836
1837 ## Amdahl UTS
1838 580-amdahl-sysv* )
1839 machine=amdahl opsys=usg5-2-2
1840 ;;
1841
1842 ## Apollo, Domain/OS
1843 m68*-apollo-* )
1844 machine=apollo opsys=bsd4-3
1845 ;;
1846
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1848 we32k-att-sysv* )
1849 machine=att3b opsys=usg5-2-2
1850 ;;
1851
1852 ## AT&T 3b1 - The Mighty Unix PC!
1853 m68*-att-sysv* )
1854 machine=7300 opsys=usg5-2-2
1855 ;;
1856
1857 ## Bull dpx20
1858 rs6000-bull-bosx* )
1859 machine=ibmrs6000 opsys=aix3-2
1860 ;;
1861
1862 ## Bull dpx2
1863 m68*-bull-sysv3* )
1864 machine=dpx2 opsys=usg5-3
1865 ;;
1866
1867 ## Bull sps7
1868 m68*-bull-sysv2* )
1869 machine=sps7 opsys=usg5-2
1870 ;;
1871
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1873
1874 ## Celerity
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd* )
1879 machine=celerity opsys=bsd4-2
1880 ;;
1881
1882 ## Clipper
1883 ## What operating systems does this chip run that Emacs has been
1884 ## tested on?
1885 clipper-* )
1886 machine=clipper
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1889 ;;
1890
1891 ## Compaq Nonstop
1892 mips-compaq-nonstopux* )
1893 machine=nonstopux opsys=nonstopux
1894 ;;
1895
1896 ## Convex
1897 *-convex-bsd* | *-convex-convexos* )
1898 machine=convex opsys=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP="cc -E -P"
1901 ;;
1902
1903 ## Cubix QBx/386
1904 i[3456]86-cubix-sysv* )
1905 machine=intel386 opsys=usg5-3
1906 ;;
1907
1908 ## Cydra 5
1909 cydra*-cydrome-sysv* )
1910 machine=cydra5 opsys=usg5-3
1911 ;;
1912
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1920 machine=aviion opsys=dgux4
1921 ;;
1922 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine=aviion opsys=dgux5-4-3
1926 ;;
1927 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1928 machine=aviion opsys=dgux5-4r2
1929 ;;
1930 m88k-dg-dgux* )
1931 machine=aviion opsys=dgux
1932 ;;
1933
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i[345]86-dg-dguxR4* )
1938 machine=aviion-intel opsys=dgux4
1939 ;;
1940
1941 ## DECstations
1942 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1943 machine=pmax opsys=bsd4-2
1944 ;;
1945 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1946 machine=pmax opsys=bsd4-3
1947 ;;
1948 mips-dec-ultrix* )
1949 machine=pmax opsys=ultrix4-3
1950 ;;
1951 mips-dec-osf* )
1952 machine=pmax opsys=osf1
1953 ;;
1954 mips-dec-mach_bsd4.3* )
1955 machine=pmax opsys=mach-bsd4-3
1956 ;;
1957
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv* | m68000-motorola-sysv* )
1960 machine=delta opsys=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1962 then
1963 if test -s /etc/167config
1964 then CC="gnucc -m68040"
1965 else CC="gnucc -m68881"
1966 fi
1967 else
1968 if test -z "`type gcc | grep 'not found'`"
1969 then CC=gcc
1970 else CC=cc
1971 fi
1972 fi
1973 ;;
1974 m88k-motorola-sysv4* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine=delta88k opsys=usg5-4-2
1980 ;;
1981 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1982 machine=delta88k opsys=usg5-3
1983 ;;
1984
1985 ## Dual machines
1986 m68*-dual-sysv* )
1987 machine=dual opsys=usg5-2
1988 ;;
1989 m68*-dual-uniplus* )
1990 machine=dual opsys=unipl5-2
1991 ;;
1992
1993 ## Elxsi 6400
1994 elxsi-elxsi-sysv* )
1995 machine=elxsi opsys=usg5-2
1996 ;;
1997
1998 ## Encore machines
1999 ns16k-encore-bsd* )
2000 machine=ns16000 opsys=umax
2001 ;;
2002
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2005
2006 ## Gould Power Node and NP1
2007 pn-gould-bsd4.2* )
2008 machine=gould opsys=bsd4-2
2009 ;;
2010 pn-gould-bsd4.3* )
2011 machine=gould opsys=bsd4-3
2012 ;;
2013 np1-gould-bsd* )
2014 machine=gould-np1 opsys=bsd4-3
2015 ;;
2016
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2019 m88k-harris-cxux* )
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2023 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2024 esac
2025 NON_GNU_CPP="/lib/cpp"
2026 ;;
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2028 m68k-harris-cxux* )
2029 machine=nh3000 opsys=cxux
2030 ;;
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix )
2033 machine=nh6000 opsys=powerunix
2034 NON_GNU_CPP="cc -Xo -E -P"
2035 ;;
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1-hitachi-hiuxmpp* )
2038 machine=sr2k opsys=hiuxmpp
2039 ;;
2040 hppa1.1-hitachi-hiuxwe2* )
2041 machine=sr2k opsys=hiuxwe2
2042 ;;
2043 ## Honeywell XPS100
2044 xps*-honeywell-sysv* )
2045 machine=xps100 opsys=usg5-2
2046 ;;
2047
2048 ## HP 9000 series 200 or 300
2049 m68*-hp-bsd* )
2050 machine=hp9000s300 opsys=bsd4-3
2051 ;;
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2053 m68*-hp-hpux* )
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2058 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2059 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2060 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2061 *) machine=hp9000s300 opsys=hpux ;;
2062 esac
2063 ;;
2064
2065 ## HP 9000 series 700 and 800, running HP/UX
2066 hppa*-hp-hpux7* )
2067 machine=hp800 opsys=hpux
2068 ;;
2069 hppa*-hp-hpux8* )
2070 machine=hp800 opsys=hpux8
2071 ;;
2072 hppa*-hp-hpux9shr* )
2073 machine=hp800 opsys=hpux9shr
2074 ;;
2075 hppa*-hp-hpux9* )
2076 machine=hp800 opsys=hpux9
2077 ;;
2078 hppa*-hp-hpux10.2* )
2079 machine=hp800 opsys=hpux10-20
2080 ;;
2081 hppa*-hp-hpux10* )
2082 machine=hp800 opsys=hpux10
2083 ;;
2084 hppa*-hp-hpux1[1-9]* )
2085 machine=hp800 opsys=hpux11
2086 ;;
2087
2088 hppa*-*-linux-gnu* )
2089 machine=hp800 opsys=gnu-linux
2090 ;;
2091
2092 ## HP 9000 series 700 and 800, running HP/UX
2093 hppa*-hp-hpux* )
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2099 *.08.* ) machine=hp800 opsys=hpux8 ;;
2100 *.09.* ) machine=hp800 opsys=hpux9 ;;
2101 *) machine=hp800 opsys=hpux10 ;;
2102 esac
2103 ;;
2104 hppa*-*-nextstep* )
2105 machine=hp800 opsys=nextstep
2106 ;;
2107
2108 ## Orion machines
2109 orion-orion-bsd* )
2110 machine=orion opsys=bsd4-2
2111 ;;
2112 clipper-orion-bsd* )
2113 machine=orion105 opsys=bsd4-2
2114 ;;
2115
2116 ## IBM machines
2117 i[3456]86-ibm-aix1.1* )
2118 machine=ibmps2-aix opsys=usg5-2-2
2119 ;;
2120 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2121 machine=ibmps2-aix opsys=usg5-3
2122 ;;
2123 i370-ibm-aix*)
2124 machine=ibm370aix opsys=usg5-3
2125 ;;
2126 s390-*-linux-gnu* )
2127 machine=ibms390 opsys=gnu-linux
2128 ;;
2129 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2130 machine=ibmrs6000 opsys=aix3-1
2131 ;;
2132 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2133 machine=ibmrs6000 opsys=aix3-2-5
2134 ;;
2135 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2136 machine=ibmrs6000 opsys=aix4-1
2137 ;;
2138 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2139 machine=ibmrs6000 opsys=aix4-2
2140 ;;
2141 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2142 machine=ibmrs6000 opsys=aix4-2
2143 ;;
2144 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2145 machine=ibmrs6000 opsys=aix4
2146 ;;
2147 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2148 machine=ibmrs6000 opsys=aix4-1
2149 ;;
2150 rs6000-ibm-aix* | powerpc-ibm-aix* )
2151 machine=ibmrs6000 opsys=aix3-2
2152 ;;
2153 romp-ibm-bsd4.3* )
2154 machine=ibmrt opsys=bsd4-3
2155 ;;
2156 romp-ibm-bsd4.2* )
2157 machine=ibmrt opsys=bsd4-2
2158 ;;
2159 romp-ibm-aos4.3* )
2160 machine=ibmrt opsys=bsd4-3
2161 ;;
2162 romp-ibm-aos4.2* )
2163 machine=ibmrt opsys=bsd4-2
2164 ;;
2165 romp-ibm-aos* )
2166 machine=ibmrt opsys=bsd4-3
2167 ;;
2168 romp-ibm-bsd* )
2169 machine=ibmrt opsys=bsd4-3
2170 ;;
2171 romp-ibm-aix* )
2172 machine=ibmrt-aix opsys=usg5-2-2
2173 ;;
2174
2175 ## Integrated Solutions `Optimum V'
2176 m68*-isi-bsd4.2* )
2177 machine=isi-ov opsys=bsd4-2
2178 ;;
2179 m68*-isi-bsd4.3* )
2180 machine=isi-ov opsys=bsd4-3
2181 ;;
2182
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i[3456]86-intsys-sysv* )
2185 machine=is386 opsys=usg5-2-2
2186 ;;
2187
2188 ## Prime EXL
2189 i[3456]86-prime-sysv* )
2190 machine=i386 opsys=usg5-3
2191 ;;
2192
2193 ## Sequent Symmetry running Dynix
2194 i[3456]86-sequent-bsd* )
2195 machine=symmetry opsys=bsd4-3
2196 ;;
2197
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2200 machine=sequent-ptx opsys=ptx4
2201 NON_GNU_CPP=/lib/cpp
2202 ;;
2203
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i[3456]86-sequent-ptx* )
2207 machine=sequent-ptx opsys=ptx
2208 NON_GNU_CPP="/lib/cpp"
2209 ;;
2210
2211 ## ncr machine running svr4.3.
2212 i[3456]86-ncr-sysv4.3 )
2213 machine=ncr386 opsys=usg5-4-3
2214 ;;
2215
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i[3456]86-ncr-sysv* )
2219 machine=ncr386 opsys=usg5-4-2
2220 ;;
2221
2222 ## Intel Paragon OSF/1
2223 i860-intel-osf1* )
2224 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2225 ;;
2226
2227 ## Intel 860
2228 i860-*-sysv4* )
2229 machine=i860 opsys=usg5-4
2230 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2232 ;;
2233
2234 ## Macintosh PowerPC
2235 powerpc*-*-linux-gnu* )
2236 machine=macppc opsys=gnu-linux
2237 ;;
2238
2239 ## Masscomp machines
2240 m68*-masscomp-rtu* )
2241 machine=masscomp opsys=rtu
2242 ;;
2243
2244 ## Megatest machines
2245 m68*-megatest-bsd* )
2246 machine=mega68 opsys=bsd4-2
2247 ;;
2248
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2252
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2260 mips-mips-usg* )
2261 machine=mips4
2262 ## Fall through to the general code at the bottom to decide on the OS.
2263 ;;
2264 mips-mips-riscos4* )
2265 machine=mips4 opsys=bsd4-3
2266 NON_GNU_CC="cc -systype bsd43"
2267 NON_GNU_CPP="cc -systype bsd43 -E"
2268 ;;
2269 mips-mips-riscos5* )
2270 machine=mips4 opsys=riscos5
2271 NON_GNU_CC="cc -systype bsd43"
2272 NON_GNU_CPP="cc -systype bsd43 -E"
2273 ;;
2274 mips-mips-bsd* )
2275 machine=mips opsys=bsd4-3
2276 ;;
2277 mips-mips-* )
2278 machine=mips opsys=usg5-2-2
2279 ;;
2280
2281 ## NeXT
2282 m68*-next-* | m68k-*-nextstep* )
2283 machine=m68k opsys=nextstep
2284 ;;
2285
2286 ## The complete machine from National Semiconductor
2287 ns32k-ns-genix* )
2288 machine=ns32000 opsys=usg5-2
2289 ;;
2290
2291 ## NCR machines
2292 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2293 machine=tower32 opsys=usg5-2-2
2294 ;;
2295 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2296 machine=tower32v3 opsys=usg5-3
2297 ;;
2298
2299 ## NEC EWS4800
2300 mips-nec-sysv4*)
2301 machine=ews4800 opsys=ux4800
2302 ;;
2303
2304 ## Nixdorf Targon 31
2305 m68*-nixdorf-sysv* )
2306 machine=targon31 opsys=usg5-2-2
2307 ;;
2308
2309 ## Nu (TI or LMI)
2310 m68*-nu-sysv* )
2311 machine=nu opsys=usg5-2
2312 ;;
2313
2314 ## Plexus
2315 m68*-plexus-sysv* )
2316 machine=plexus opsys=usg5-2
2317 ;;
2318
2319 ## Pyramid machines
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd* )
2323 machine=pyramid opsys=bsd4-2
2324 ;;
2325
2326 ## Sequent Balance
2327 ns32k-sequent-bsd4.2* )
2328 machine=sequent opsys=bsd4-2
2329 ;;
2330 ns32k-sequent-bsd4.3* )
2331 machine=sequent opsys=bsd4-3
2332 ;;
2333
2334 ## Siemens Nixdorf
2335 mips-siemens-sysv* | mips-sni-sysv*)
2336 machine=mips-siemens opsys=usg5-4
2337 NON_GNU_CC=/usr/ccs/bin/cc
2338 NON_GNU_CPP=/usr/ccs/lib/cpp
2339 ;;
2340
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2343 m68*-sgi-iris3.5* )
2344 machine=irist opsys=iris3-5
2345 ;;
2346 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2347 machine=irist opsys=iris3-6
2348 ;;
2349 ## Iris 4D
2350 mips-sgi-irix3* )
2351 machine=iris4d opsys=irix3-3
2352 ;;
2353 mips-sgi-irix4* )
2354 machine=iris4d opsys=irix4-0
2355 ;;
2356 mips-sgi-irix6.5 )
2357 machine=iris4d opsys=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2363 ;;
2364 mips-sgi-irix6* )
2365 machine=iris4d opsys=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS=-32
2371 ;;
2372 mips-sgi-irix5.[01]* )
2373 machine=iris4d opsys=irix5-0
2374 ;;
2375 mips-sgi-irix5* | mips-sgi-irix* )
2376 machine=iris4d opsys=irix5-2
2377 ;;
2378
2379 ## SONY machines
2380 m68*-sony-bsd4.2* )
2381 machine=news opsys=bsd4-2
2382 ;;
2383 m68*-sony-bsd4.3* )
2384 machine=news opsys=bsd4-3
2385 ;;
2386 m68*-sony-newsos3* | m68*-sony-news3*)
2387 machine=news opsys=bsd4-3
2388 ;;
2389 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2390 machine=news-risc opsys=bsd4-3
2391 ;;
2392 mips-sony-newsos6* )
2393 machine=news-r6 opsys=newsos6
2394 ;;
2395 mips-sony-news* )
2396 machine=news-risc opsys=newsos5
2397 ;;
2398
2399 ## Stride
2400 m68*-stride-sysv* )
2401 machine=stride opsys=usg5-2
2402 ;;
2403
2404 ## Suns
2405 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2406 machine=sparc opsys=gnu-linux
2407 ;;
2408
2409 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2410 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2411 | rs6000-*-solaris2*)
2412 case "${canonical}" in
2413 m68*-sunos1* ) machine=sun1 ;;
2414 m68*-sunos2* ) machine=sun2 ;;
2415 m68* ) machine=sun3 ;;
2416 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2417 i[3456]86-*-* ) machine=intel386 ;;
2418 powerpcle* ) machine=powerpcle ;;
2419 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2420 sparc* ) machine=sparc ;;
2421 * ) unported=yes ;;
2422 esac
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2426 *-sunos4.0* ) opsys=sunos4-0 ;;
2427 *-sunos4.1.[3-9]*noshare )
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2430 opsys=sunos413
2431 NON_GNU_CPP=/usr/lib/cpp
2432 NON_GCC_TEST_OPTIONS=-Bstatic
2433 GCC_TEST_OPTIONS=-static
2434 ;;
2435 *-sunos4.1.[3-9]* | *-sunos4shr*)
2436 opsys=sunos4shr
2437 NON_GNU_CPP=/usr/lib/cpp
2438 ;;
2439 *-sunos4* | *-sunos )
2440 opsys=sunos4-1
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2443 ;;
2444 *-sunos5.3* | *-solaris2.3* )
2445 opsys=sol2-3
2446 NON_GNU_CPP=/usr/ccs/lib/cpp
2447 ;;
2448 *-sunos5.4* | *-solaris2.4* )
2449 opsys=sol2-4
2450 NON_GNU_CPP=/usr/ccs/lib/cpp
2451 RANLIB="ar -ts"
2452 ;;
2453 *-sunos5.5* | *-solaris2.5* )
2454 opsys=sol2-5
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 RANLIB="ar -ts"
2457 ;;
2458 *-sunos5.6* | *-solaris2.6* )
2459 opsys=sol2-6
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2462 ;;
2463 *-sunos5* | *-solaris* )
2464 opsys=sol2-6
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 ;;
2467 * ) opsys=bsd4-2 ;;
2468 esac
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* | *-sunos5* )
2472 if [ "x$CC" = x/usr/ucb/cc ]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2475 unset CC
2476 fi
2477 ;;
2478 *) ;;
2479 esac
2480 ;;
2481 sparc-*-nextstep* )
2482 machine=sparc opsys=nextstep
2483 ;;
2484
2485 ## Tadpole 68k
2486 m68*-tadpole-sysv* )
2487 machine=tad68k opsys=usg5-3
2488 ;;
2489
2490 ## Tahoe machines
2491 tahoe-tahoe-bsd4.2* )
2492 machine=tahoe opsys=bsd4-2
2493 ;;
2494 tahoe-tahoe-bsd4.3* )
2495 machine=tahoe opsys=bsd4-3
2496 ;;
2497
2498 ## Tandem Integrity S2
2499 mips-tandem-sysv* )
2500 machine=tandem-s2 opsys=usg5-3
2501 ;;
2502
2503 ## Tektronix XD88
2504 m88k-tektronix-sysv3* )
2505 machine=tekxd88 opsys=usg5-3
2506 ;;
2507
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd* )
2510 machine=ns16000 opsys=bsd4-2
2511 ;;
2512 ## Tektronix 4300
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68*-tektronix-bsd* )
2515 machine=tek4300 opsys=bsd4-3
2516 ;;
2517
2518 ## Titan P2 or P3
2519 ## We seem to have lost the machine-description file titan.h!
2520 titan-titan-sysv* )
2521 machine=titan opsys=usg5-3
2522 ;;
2523
2524 ## Ustation E30 (SS5E)
2525 m68*-unisys-uniplus* )
2526 machine=ustation opsystem=unipl5-2
2527 ;;
2528
2529 ## Vaxen.
2530 vax-dec-* )
2531 machine=vax
2532 case "${canonical}" in
2533 *-bsd4.1* ) opsys=bsd4-1 ;;
2534 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2535 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2536 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2537 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2538 *-vms* ) opsys=vms ;;
2539 * ) unported=yes
2540 esac
2541 ;;
2542
2543 ## Whitechapel MG1
2544 ns16k-whitechapel-* )
2545 machine=mg1
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2548 ;;
2549
2550 ## Wicat
2551 m68*-wicat-sysv* )
2552 machine=wicat opsys=usg5-2
2553 ;;
2554
2555 ## IA-64
2556 ia64*-*-linux* )
2557 machine=ia64 opsys=gnu-linux
2558 ;;
2559
2560 ## Intel 386 machines where we don't care about the manufacturer
2561 i[3456]86-*-* )
2562 machine=intel386
2563 case "${canonical}" in
2564 *-cygwin ) opsys=cygwin ;;
2565 *-lynxos* ) opsys=lynxos ;;
2566 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2567 *-isc2.2* ) opsys=isc2-2 ;;
2568 *-isc4.0* ) opsys=isc4-0 ;;
2569 *-isc4.* ) opsys=isc4-1
2570 GCC_TEST_OPTIONS=-posix
2571 NON_GCC_TEST_OPTIONS=-Xp
2572 ;;
2573 *-isc* ) opsys=isc3-0 ;;
2574 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2575 *-esix* ) opsys=esix ;;
2576 *-xenix* ) opsys=xenix ;;
2577 *-linux-gnu* ) opsys=gnu-linux ;;
2578 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2579 *-sco3.2v5* ) opsys=sco5
2580 NON_GNU_CPP=/lib/cpp
2581 # Prevent -belf from being passed to $CPP.
2582 # /lib/cpp does not accept it.
2583 OVERRIDE_CPPFLAGS=" "
2584 ;;
2585 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2586 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2587 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2588 *-386bsd* ) opsys=386bsd ;;
2589 *-nextstep* ) opsys=nextstep ;;
2590 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2591 esac
2592 ;;
2593
2594 ## m68k Linux-based GNU system
2595 m68k-*-linux-gnu* )
2596 machine=m68k opsys=gnu-linux
2597 ;;
2598
2599 ## Mips Linux-based GNU system
2600 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2601 machine=mips opsys=gnu-linux
2602 ;;
2603
2604 ## UXP/DS
2605 sparc-fujitsu-sysv4* )
2606 machine=sparc opsys=uxpds
2607 NON_GNU_CPP=/usr/ccs/lib/cpp
2608 RANLIB="ar -ts"
2609 ;;
2610
2611 ## UXP/V
2612 f301-fujitsu-uxpv4.1)
2613 machine=f301 opsys=uxpv
2614 ;;
2615
2616 ## Darwin / Mac OS X
2617 powerpc-apple-darwin* )
2618 machine=powermac opsys=darwin
2619 # Define CPP as follows to make autoconf work correctly.
2620 CPP="${CC-cc} -E -no-cpp-precomp"
2621 # Use fink packages if available.
2622 if test -d /sw/include && test -d /sw/lib; then
2623 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2624 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2625 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2626 fi
2627 ;;
2628
2629 ## AMD x86-64 Linux-based GNU system
2630 x86_64-*-linux-gnu* )
2631 machine=amdx86-64 opsys=gnu-linux
2632 ;;
2633
2634 * )
2635 unported=yes
2636 ;;
2637 esac
2638
2639 ### If the code above didn't choose an operating system, just choose
2640 ### an operating system based on the configuration name. You really
2641 ### only want to use this when you have no idea what the right
2642 ### operating system is; if you know what operating systems a machine
2643 ### runs, it's cleaner to make it explicit in the case statement
2644 ### above.
2645 if test x"${opsys}" = x; then
2646 case "${canonical}" in
2647 *-gnu* ) opsys=gnu ;;
2648 *-bsd4.[01] ) opsys=bsd4-1 ;;
2649 *-bsd4.2 ) opsys=bsd4-2 ;;
2650 *-bsd4.3 ) opsys=bsd4-3 ;;
2651 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2652 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2653 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2654 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2655 *-sysv4.2uw* ) opsys=unixware ;;
2656 *-sysv5uw* ) opsys=unixware ;;
2657 *-sysv5OpenUNIX* ) opsys=unixware ;;
2658 *-sysv4.1* | *-sysvr4.1* )
2659 NON_GNU_CPP=/usr/lib/cpp
2660 opsys=usg5-4 ;;
2661 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2662 if [ x$NON_GNU_CPP = x ]; then
2663 if [ -f /usr/ccs/lib/cpp ]; then
2664 NON_GNU_CPP=/usr/ccs/lib/cpp
2665 else
2666 NON_GNU_CPP=/lib/cpp
2667 fi
2668 fi
2669 opsys=usg5-4-2 ;;
2670 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2671 * )
2672 unported=yes
2673 ;;
2674 esac
2675 fi
2676
2677
2678
2679 if test $unported = yes; then
2680 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2681 Check \`etc/MACHINES' for recognized configuration names." >&5
2682 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2683 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2684 { (exit 1); exit 1; }; }
2685 fi
2686
2687 machfile="m/${machine}.h"
2688 opsysfile="s/${opsys}.h"
2689
2690
2691 #### Choose a compiler.
2692 test -n "$CC" && cc_specified=yes
2693
2694 # Save the value of CFLAGS that the user specified.
2695 SPECIFIED_CFLAGS="$CFLAGS"
2696
2697 case ${with_gcc} in
2698 "yes" ) CC="gcc" GCC=yes ;;
2699 "no" ) : ${CC=cc} ;;
2700 * )
2701 esac
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 fi
2742
2743 fi
2744 if test -z "$ac_cv_prog_CC"; then
2745 ac_ct_CC=$CC
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_CC="gcc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769
2770 fi
2771 fi
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775 echo "${ECHO_T}$ac_ct_CC" >&6
2776 else
2777 echo "$as_me:$LINENO: result: no" >&5
2778 echo "${ECHO_T}no" >&6
2779 fi
2780
2781 CC=$ac_ct_CC
2782 else
2783 CC="$ac_cv_prog_CC"
2784 fi
2785
2786 if test -z "$CC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}cc; ac_word=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}cc"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823 fi
2824 if test -z "$ac_cv_prog_CC"; then
2825 ac_ct_CC=$CC
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_ac_ct_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849
2850 fi
2851 fi
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2855 echo "${ECHO_T}$ac_ct_CC" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859 fi
2860
2861 CC=$ac_ct_CC
2862 else
2863 CC="$ac_cv_prog_CC"
2864 fi
2865
2866 fi
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 ac_prog_rejected=no
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2888 continue
2889 fi
2890 ac_cv_prog_CC="cc"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896
2897 if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy $ac_cv_prog_CC
2900 shift
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2905 shift
2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 fi
2908 fi
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 echo "$as_me:$LINENO: result: $CC" >&5
2914 echo "${ECHO_T}$CC" >&6
2915 else
2916 echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2918 fi
2919
2920 fi
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 for ac_prog in cl
2924 do
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2958 fi
2959
2960 test -n "$CC" && break
2961 done
2962 fi
2963 if test -z "$CC"; then
2964 ac_ct_CC=$CC
2965 for ac_prog in cl
2966 do
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990
2991 fi
2992 fi
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2996 echo "${ECHO_T}$ac_ct_CC" >&6
2997 else
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000 fi
3001
3002 test -n "$ac_ct_CC" && break
3003 done
3004
3005 CC=$ac_ct_CC
3006 fi
3007
3008 fi
3009
3010
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3016
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO:" \
3019 "checking for C compiler version" >&5
3020 ac_compiler=`set X $ac_compile; echo $2`
3021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3022 (eval $ac_compiler --version </dev/null >&5) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3027 (eval $ac_compiler -v </dev/null >&5) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3032 (eval $ac_compiler -V </dev/null >&5) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3036
3037 cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h. */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043
3044 int
3045 main ()
3046 {
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 ac_clean_files_save=$ac_clean_files
3053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3056 # of exeext.
3057 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3058 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3061 (eval $ac_link_default) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # Find the output, starting from the most likely. This scheme is
3066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3067 # resort.
3068
3069 # Be careful to initialize this variable, since it used to be cached.
3070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3071 ac_cv_exeext=
3072 # b.out is created by i960 compilers.
3073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3074 do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3078 ;;
3079 conftest.$ac_ext )
3080 # This is the source file.
3081 ;;
3082 [ab].out )
3083 # We found the default executable, but exeext='' is most
3084 # certainly right.
3085 break;;
3086 *.* )
3087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 # FIXME: I believe we export ac_cv_exeext for Libtool,
3089 # but it would be cool to find out if it's true. Does anybody
3090 # maintain Libtool? --akim.
3091 export ac_cv_exeext
3092 break;;
3093 * )
3094 break;;
3095 esac
3096 done
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C compiler cannot create executables
3104 See \`config.log' for more details." >&2;}
3105 { (exit 77); exit 77; }; }
3106 fi
3107
3108 ac_exeext=$ac_cv_exeext
3109 echo "$as_me:$LINENO: result: $ac_file" >&5
3110 echo "${ECHO_T}$ac_file" >&6
3111
3112 # Check the compiler produces executables we can run. If not, either
3113 # the compiler is broken, or we cross compile.
3114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3117 # If not cross compiling, check that we can run a simple program.
3118 if test "$cross_compiling" != yes; then
3119 if { ac_try='./$ac_file'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 cross_compiling=no
3126 else
3127 if test "$cross_compiling" = maybe; then
3128 cross_compiling=yes
3129 else
3130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3137 fi
3138 fi
3139 fi
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142
3143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3144 ac_clean_files=$ac_clean_files_save
3145 # Check the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3150 echo "${ECHO_T}$cross_compiling" >&6
3151
3152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155 (eval $ac_link) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164 test -f "$ac_file" || continue
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 export ac_cv_exeext
3169 break;;
3170 * ) break;;
3171 esac
3172 done
3173 else
3174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3179 fi
3180
3181 rm -f conftest$ac_cv_exeext
3182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3183 echo "${ECHO_T}$ac_cv_exeext" >&6
3184
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3190 if test "${ac_cv_objext+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3218 break;;
3219 esac
3220 done
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3230 fi
3231
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3233 fi
3234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 echo "${ECHO_T}$ac_cv_objext" >&6
3236 OBJEXT=$ac_cv_objext
3237 ac_objext=$OBJEXT
3238 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253 #ifndef __GNUC__
3254 choke me
3255 #endif
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_compiler_gnu=yes
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_compiler_gnu=no
3288 fi
3289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3295 GCC=`test $ac_compiler_gnu = yes && echo yes`
3296 ac_test_CFLAGS=${CFLAGS+set}
3297 ac_save_CFLAGS=$CFLAGS
3298 CFLAGS="-g"
3299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3301 if test "${ac_cv_prog_cc_g+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_prog_cc_g=yes
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 ac_cv_prog_cc_g=no
3346 fi
3347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348 fi
3349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3367 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3368 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 ac_cv_prog_cc_stdc=no
3372 ac_save_CC=$CC
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <stdarg.h>
3380 #include <stdio.h>
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3387 char **p;
3388 int i;
3389 {
3390 return p[i];
3391 }
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3393 {
3394 char *s;
3395 va_list v;
3396 va_start (v,p);
3397 s = g (p, va_arg (v,int));
3398 va_end (v);
3399 return s;
3400 }
3401
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std1 is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std1. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410
3411 int test (int i, double x);
3412 struct s1 {int (*f) (int a);};
3413 struct s2 {int (*f) (double a);};
3414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 int argc;
3416 char **argv;
3417 int
3418 main ()
3419 {
3420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 # Don't try gcc -ansi; that turns off useful extensions and
3426 # breaks some systems' header files.
3427 # AIX -qlanglvl=ansi
3428 # Ultrix and OSF/1 -std1
3429 # HP-UX 10.20 and later -Ae
3430 # HP-UX older versions -Aa -D_HPUX_SOURCE
3431 # SVR4 -Xc -D__EXTENSIONS__
3432 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_prog_cc_stdc=$ac_arg
3457 break
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 fi
3463 rm -f conftest.err conftest.$ac_objext
3464 done
3465 rm -f conftest.$ac_ext conftest.$ac_objext
3466 CC=$ac_save_CC
3467
3468 fi
3469
3470 case "x$ac_cv_prog_cc_stdc" in
3471 x|xno)
3472 echo "$as_me:$LINENO: result: none needed" >&5
3473 echo "${ECHO_T}none needed" >&6 ;;
3474 *)
3475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3477 CC="$CC $ac_cv_prog_cc_stdc" ;;
3478 esac
3479
3480 # Some people use a C++ compiler to compile C. Since we use `exit',
3481 # in C++ we need to declare it. In case someone uses the same compiler
3482 # for both compiling C and C++ we need to have the C++ compiler decide
3483 # the declaration of exit, since it's the most demanding environment.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #ifndef __cplusplus
3486 choke me
3487 #endif
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 for ac_declaration in \
3511 '' \
3512 'extern "C" void std::exit (int) throw (); using std::exit;' \
3513 'extern "C" void std::exit (int); using std::exit;' \
3514 'extern "C" void exit (int) throw ();' \
3515 'extern "C" void exit (int);' \
3516 'void exit (int);'
3517 do
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_declaration
3525 #include <stdlib.h>
3526 int
3527 main ()
3528 {
3529 exit (42);
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 :
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 continue
3561 fi
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_declaration
3570 int
3571 main ()
3572 {
3573 exit (42);
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 break
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 fi
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 done
3607 rm -f conftest*
3608 if test -n "$ac_declaration"; then
3609 echo '#ifdef __cplusplus' >>confdefs.h
3610 echo $ac_declaration >>confdefs.h
3611 echo '#endif' >>confdefs.h
3612 fi
3613
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 fi
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3629 CPP=
3630 fi
3631
3632 #### Some systems specify a CPP to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3636 then
3637 CPP="$NON_GNU_CPP"
3638 fi
3639
3640 #### Some systems specify a CC to use unless we are using GCC.
3641 #### Now that we know whether we are using GCC, we can decide whether
3642 #### to use that one.
3643 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3644 test x$cc_specified != xyes
3645 then
3646 CC="$NON_GNU_CC"
3647 fi
3648
3649 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3650 then
3651 CC="$CC $GCC_TEST_OPTIONS"
3652 fi
3653
3654 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3655 then
3656 CC="$CC $NON_GCC_TEST_OPTIONS"
3657 fi
3658
3659 #### Some other nice autoconf tests.
3660
3661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3663 LN_S=$as_ln_s
3664 if test "$LN_S" = "ln -s"; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3669 echo "${ECHO_T}no, using $LN_S" >&6
3670 fi
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3681 CPP=
3682 fi
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 # Double quotes because CPP needs to be expanded
3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 do
3690 ac_preproc_ok=false
3691 for ac_c_preproc_warn_flag in '' yes
3692 do
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3725 fi
3726 else
3727 ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730 :
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 # Broken: fails on valid input.
3736 continue
3737 fi
3738 rm -f conftest.err conftest.$ac_ext
3739
3740 # OK, works on sane cases. Now check whether non-existent headers
3741 # can be detected and how.
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3749 _ACEOF
3750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761 else
3762 ac_cpp_err=
3763 fi
3764 else
3765 ac_cpp_err=yes
3766 fi
3767 if test -z "$ac_cpp_err"; then
3768 # Broken: success on invalid input.
3769 continue
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then
3784 break
3785 fi
3786
3787 done
3788 ac_cv_prog_CPP=$CPP
3789
3790 fi
3791 CPP=$ac_cv_prog_CPP
3792 else
3793 ac_cv_prog_CPP=$CPP
3794 fi
3795 echo "$as_me:$LINENO: result: $CPP" >&5
3796 echo "${ECHO_T}$CPP" >&6
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3799 do
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #ifdef __STDC__
3813 # include <limits.h>
3814 #else
3815 # include <assert.h>
3816 #endif
3817 Syntax error
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 else
3831 ac_cpp_err=
3832 fi
3833 else
3834 ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837 :
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 # Broken: fails on valid input.
3843 continue
3844 fi
3845 rm -f conftest.err conftest.$ac_ext
3846
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3856 _ACEOF
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3870 fi
3871 else
3872 ac_cpp_err=yes
3873 fi
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3876 continue
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885 rm -f conftest.err conftest.$ac_ext
3886
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then
3891 :
3892 else
3893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&5
3895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details." >&2;}
3897 { (exit 1); exit 1; }; }
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906 # Find a good install program. We prefer a C program (faster),
3907 # so one script is as good as another. But avoid the broken or
3908 # incompatible versions:
3909 # SysV /etc/install, /usr/sbin/install
3910 # SunOS /usr/etc/install
3911 # IRIX /sbin/install
3912 # AIX /bin/install
3913 # AmigaOS /C/install, which installs bootblocks on floppy discs
3914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3917 # OS/2's system install, which has a completely different semantic
3918 # ./install, which can be erroneously created by make from ./install.sh.
3919 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3921 if test -z "$INSTALL"; then
3922 if test "${ac_cv_path_install+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 # Account for people who put trailing slashes in PATH elements.
3931 case $as_dir/ in
3932 ./ | .// | /cC/* | \
3933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3935 /usr/ucb/* ) ;;
3936 *)
3937 # OSF1 and SCO ODT 3.0 have their own names for install.
3938 # Don't use installbsd from OSF since it installs stuff as root
3939 # by default.
3940 for ac_prog in ginstall scoinst install; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3943 if test $ac_prog = install &&
3944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3945 # AIX install. It has an incompatible calling convention.
3946 :
3947 elif test $ac_prog = install &&
3948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3949 # program-specific install script used by HP pwplus--don't use.
3950 :
3951 else
3952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3953 break 3
3954 fi
3955 fi
3956 done
3957 done
3958 ;;
3959 esac
3960 done
3961
3962
3963 fi
3964 if test "${ac_cv_path_install+set}" = set; then
3965 INSTALL=$ac_cv_path_install
3966 else
3967 # As a last resort, use the slow shell script. We don't cache a
3968 # path for INSTALL within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the path is relative.
3971 INSTALL=$ac_install_sh
3972 fi
3973 fi
3974 echo "$as_me:$LINENO: result: $INSTALL" >&5
3975 echo "${ECHO_T}$INSTALL" >&6
3976
3977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3978 # It thinks the first close brace ends the variable substitution.
3979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3980
3981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3982
3983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3984
3985 if test "x$RANLIB" = x; then
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if test -n "$RANLIB"; then
3995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010
4011 fi
4012 fi
4013 RANLIB=$ac_cv_prog_RANLIB
4014 if test -n "$RANLIB"; then
4015 echo "$as_me:$LINENO: result: $RANLIB" >&5
4016 echo "${ECHO_T}$RANLIB" >&6
4017 else
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4020 fi
4021
4022 fi
4023 if test -z "$ac_cv_prog_RANLIB"; then
4024 ac_ct_RANLIB=$RANLIB
4025 # Extract the first word of "ranlib", so it can be a program name with args.
4026 set dummy ranlib; ac_word=$2
4027 echo "$as_me:$LINENO: checking for $ac_word" >&5
4028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 if test -n "$ac_ct_RANLIB"; then
4033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_RANLIB="ranlib"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048
4049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4050 fi
4051 fi
4052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4053 if test -n "$ac_ct_RANLIB"; then
4054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4059 fi
4060
4061 RANLIB=$ac_ct_RANLIB
4062 else
4063 RANLIB="$ac_cv_prog_RANLIB"
4064 fi
4065
4066 fi
4067 # Extract the first word of "install-info", so it can be a program name with args.
4068 set dummy install-info; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 case $INSTALL_INFO in
4075 [\\/]* | ?:[\\/]*)
4076 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4077 ;;
4078 *)
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092
4093 ;;
4094 esac
4095 fi
4096 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4097
4098 if test -n "$INSTALL_INFO"; then
4099 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4100 echo "${ECHO_T}$INSTALL_INFO" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106 # Extract the first word of "install-info", so it can be a program name with args.
4107 set dummy install-info; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 case $INSTALL_INFO in
4114 [\\/]* | ?:[\\/]*)
4115 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4116 ;;
4117 *)
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in /usr/sbin
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129 done
4130 done
4131
4132 ;;
4133 esac
4134 fi
4135 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4136
4137 if test -n "$INSTALL_INFO"; then
4138 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4139 echo "${ECHO_T}$INSTALL_INFO" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144
4145 # Extract the first word of "install-info", so it can be a program name with args.
4146 set dummy install-info; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 case $INSTALL_INFO in
4153 [\\/]* | ?:[\\/]*)
4154 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4155 ;;
4156 *)
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in /sbin
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170
4171 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4172 ;;
4173 esac
4174 fi
4175 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4176
4177 if test -n "$INSTALL_INFO"; then
4178 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4179 echo "${ECHO_T}$INSTALL_INFO" >&6
4180 else
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4183 fi
4184
4185
4186
4187 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4188 then
4189 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 fi
4191
4192 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4193 then
4194 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4195 fi
4196
4197
4198 late_LDFLAGS=$LDFLAGS
4199 if test "$GCC" = yes; then
4200 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4201 else
4202 LDFLAGS="$LDFLAGS -znocombreloc"
4203 fi
4204
4205 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4206 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4207
4208 cat >conftest.$ac_ext <<_ACEOF
4209 main(){return 0;}
4210 _ACEOF
4211 rm -f conftest.$ac_objext conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest$ac_exeext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 LDFLAGS=$late_LDFLAGS
4239 echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241 fi
4242 rm -f conftest.err conftest.$ac_objext \
4243 conftest$ac_exeext conftest.$ac_ext
4244
4245
4246 echo "$as_me:$LINENO: checking for egrep" >&5
4247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4248 if test "${ac_cv_prog_egrep+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4252 then ac_cv_prog_egrep='grep -E'
4253 else ac_cv_prog_egrep='egrep'
4254 fi
4255 fi
4256 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4258 EGREP=$ac_cv_prog_egrep
4259
4260
4261
4262 echo "$as_me:$LINENO: checking for AIX" >&5
4263 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #ifdef _AIX
4271 yes
4272 #endif
4273
4274 _ACEOF
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "yes" >/dev/null 2>&1; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6
4279 cat >>confdefs.h <<\_ACEOF
4280 #define _ALL_SOURCE 1
4281 _ACEOF
4282
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4286 fi
4287 rm -f conftest*
4288
4289
4290
4291
4292 #### Extract some information from the operating system and machine files.
4293
4294 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4295 - which libraries the lib-src programs will want, and
4296 - whether the GNU malloc routines are usable..." >&5
4297 echo "$as_me: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&6;}
4300
4301 ### First figure out CFLAGS (which we use for running the compiler here)
4302 ### and REAL_CFLAGS (which we use for real compilation).
4303 ### The two are the same except on a few systems, where they are made
4304 ### different to work around various lossages. For example,
4305 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4306 ### as implying static linking.
4307
4308 ### If the CFLAGS env var is specified, we use that value
4309 ### instead of the default.
4310
4311 ### It's not important that this name contain the PID; you can't run
4312 ### two configures in the same directory and have anything work
4313 ### anyway.
4314 tempcname="conftest.c"
4315
4316 echo '
4317 #include "'${srcdir}'/src/'${opsysfile}'"
4318 #include "'${srcdir}'/src/'${machfile}'"
4319 #ifndef LIBS_MACHINE
4320 #define LIBS_MACHINE
4321 #endif
4322 #ifndef LIBS_SYSTEM
4323 #define LIBS_SYSTEM
4324 #endif
4325 #ifndef C_SWITCH_SYSTEM
4326 #define C_SWITCH_SYSTEM
4327 #endif
4328 #ifndef C_SWITCH_MACHINE
4329 #define C_SWITCH_MACHINE
4330 #endif
4331 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4332 configure___ c_switch_system=C_SWITCH_SYSTEM
4333 configure___ c_switch_machine=C_SWITCH_MACHINE
4334
4335 #ifndef LIB_X11_LIB
4336 #define LIB_X11_LIB -lX11
4337 #endif
4338
4339 #ifndef LIBX11_MACHINE
4340 #define LIBX11_MACHINE
4341 #endif
4342
4343 #ifndef LIBX11_SYSTEM
4344 #define LIBX11_SYSTEM
4345 #endif
4346 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4347
4348 #ifdef UNEXEC
4349 configure___ unexec=UNEXEC
4350 #else
4351 configure___ unexec=unexec.o
4352 #endif
4353
4354 #ifdef SYSTEM_MALLOC
4355 configure___ system_malloc=yes
4356 #else
4357 configure___ system_malloc=no
4358 #endif
4359
4360 #ifdef USE_MMAP_FOR_BUFFERS
4361 configure___ use_mmap_for_buffers=yes
4362 #else
4363 configure___ use_mmap_for_buffers=no
4364 #endif
4365
4366 #ifndef C_DEBUG_SWITCH
4367 #define C_DEBUG_SWITCH -g
4368 #endif
4369
4370 #ifndef C_OPTIMIZE_SWITCH
4371 #ifdef __GNUC__
4372 #define C_OPTIMIZE_SWITCH -O2
4373 #else
4374 #define C_OPTIMIZE_SWITCH -O
4375 #endif
4376 #endif
4377
4378 #ifndef LD_SWITCH_MACHINE
4379 #define LD_SWITCH_MACHINE
4380 #endif
4381
4382 #ifndef LD_SWITCH_SYSTEM
4383 #define LD_SWITCH_SYSTEM
4384 #endif
4385
4386 #ifndef LD_SWITCH_X_SITE_AUX
4387 #define LD_SWITCH_X_SITE_AUX
4388 #endif
4389
4390 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4391 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4392
4393 #ifdef THIS_IS_CONFIGURE
4394
4395 /* Get the CFLAGS for tests in configure. */
4396 #ifdef __GNUC__
4397 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 #else
4399 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4400 #endif
4401
4402 #else /* not THIS_IS_CONFIGURE */
4403
4404 /* Get the CFLAGS for real compilation. */
4405 #ifdef __GNUC__
4406 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4407 #else
4408 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4409 #endif
4410
4411 #endif /* not THIS_IS_CONFIGURE */
4412 ' > ${tempcname}
4413
4414 # The value of CPP is a quoted variable reference, so we need to do this
4415 # to get its actual value...
4416 CPP=`eval "echo $CPP"`
4417 eval `${CPP} -Isrc ${tempcname} \
4418 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4419 if test "x$SPECIFIED_CFLAGS" = x; then
4420 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 else
4423 REAL_CFLAGS="$CFLAGS"
4424 fi
4425 rm ${tempcname}
4426
4427 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4428
4429 ### Make sure subsequent tests use flags consistent with the build flags.
4430
4431 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4432 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4433 else
4434 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4435 fi
4436
4437
4438
4439
4440 cat >>confdefs.h <<\_ACEOF
4441 #define _GNU_SOURCE 1
4442 _ACEOF
4443
4444
4445
4446 # Check whether --enable-largefile or --disable-largefile was given.
4447 if test "${enable_largefile+set}" = set; then
4448 enableval="$enable_largefile"
4449
4450 fi;
4451 if test "$enable_largefile" != no; then
4452
4453 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4454 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4455 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_cv_sys_largefile_CC=no
4459 if test "$GCC" != yes; then
4460 ac_save_CC=$CC
4461 while :; do
4462 # IRIX 6.2 and later do not support large files by default,
4463 # so use the C compiler's -n32 option if that helps.
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 /* Check that off_t can represent 2**63 - 1 correctly.
4472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4473 since some C++ compilers masquerading as C compilers
4474 incorrectly reject 9223372036854775807. */
4475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4477 && LARGE_OFF_T % 2147483647 == 1)
4478 ? 1 : -1];
4479 int
4480 main ()
4481 {
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_sys_largefile_CC=' -n32'; break
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 fi
4543 rm -f conftest.err conftest.$ac_objext
4544 break
4545 done
4546 CC=$ac_save_CC
4547 rm -f conftest.$ac_ext
4548 fi
4549 fi
4550 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4551 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4552 if test "$ac_cv_sys_largefile_CC" != no; then
4553 CC=$CC$ac_cv_sys_largefile_CC
4554 fi
4555
4556 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4557 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 while :; do
4562 ac_cv_sys_file_offset_bits=no
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 /* Check that off_t can represent 2**63 - 1 correctly.
4571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4572 since some C++ compilers masquerading as C compilers
4573 incorrectly reject 9223372036854775807. */
4574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4576 && LARGE_OFF_T % 2147483647 == 1)
4577 ? 1 : -1];
4578 int
4579 main ()
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 break
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 fi
4613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #define _FILE_OFFSET_BITS 64
4621 #include <sys/types.h>
4622 /* Check that off_t can represent 2**63 - 1 correctly.
4623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4624 since some C++ compilers masquerading as C compilers
4625 incorrectly reject 9223372036854775807. */
4626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4628 && LARGE_OFF_T % 2147483647 == 1)
4629 ? 1 : -1];
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_sys_file_offset_bits=64; break
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 fi
4665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 break
4667 done
4668 fi
4669 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4670 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4671 if test "$ac_cv_sys_file_offset_bits" != no; then
4672
4673 cat >>confdefs.h <<_ACEOF
4674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4675 _ACEOF
4676
4677 fi
4678 rm -f conftest*
4679 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4680 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4681 if test "${ac_cv_sys_large_files+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 while :; do
4685 ac_cv_sys_large_files=no
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #include <sys/types.h>
4693 /* Check that off_t can represent 2**63 - 1 correctly.
4694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4695 since some C++ compilers masquerading as C compilers
4696 incorrectly reject 9223372036854775807. */
4697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4699 && LARGE_OFF_T % 2147483647 == 1)
4700 ? 1 : -1];
4701 int
4702 main ()
4703 {
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 break
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 fi
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #define _LARGE_FILES 1
4744 #include <sys/types.h>
4745 /* Check that off_t can represent 2**63 - 1 correctly.
4746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4747 since some C++ compilers masquerading as C compilers
4748 incorrectly reject 9223372036854775807. */
4749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4751 && LARGE_OFF_T % 2147483647 == 1)
4752 ? 1 : -1];
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_sys_large_files=1; break
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 fi
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 break
4790 done
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4793 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4794 if test "$ac_cv_sys_large_files" != no; then
4795
4796 cat >>confdefs.h <<_ACEOF
4797 #define _LARGE_FILES $ac_cv_sys_large_files
4798 _ACEOF
4799
4800 fi
4801 rm -f conftest*
4802 fi
4803
4804
4805 if test "${with_sound}" != "no"; then
4806 # Sound support for GNU/Linux and the free BSDs.
4807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdc+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <stdlib.h>
4819 #include <stdarg.h>
4820 #include <string.h>
4821 #include <float.h>
4822
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4852 ac_cv_header_stdc=yes
4853 else
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 ac_cv_header_stdc=no
4858 fi
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860
4861 if test $ac_cv_header_stdc = yes; then
4862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <string.h>
4870
4871 _ACEOF
4872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4873 $EGREP "memchr" >/dev/null 2>&1; then
4874 :
4875 else
4876 ac_cv_header_stdc=no
4877 fi
4878 rm -f conftest*
4879
4880 fi
4881
4882 if test $ac_cv_header_stdc = yes; then
4883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <stdlib.h>
4891
4892 _ACEOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "free" >/dev/null 2>&1; then
4895 :
4896 else
4897 ac_cv_header_stdc=no
4898 fi
4899 rm -f conftest*
4900
4901 fi
4902
4903 if test $ac_cv_header_stdc = yes; then
4904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4905 if test "$cross_compiling" = yes; then
4906 :
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ctype.h>
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 #else
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #endif
4925
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4927 int
4928 main ()
4929 {
4930 int i;
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4934 exit(2);
4935 exit (0);
4936 }
4937 _ACEOF
4938 rm -f conftest$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 :
4950 else
4951 echo "$as_me: program exited with status $ac_status" >&5
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 ( exit $ac_status )
4956 ac_cv_header_stdc=no
4957 fi
4958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 fi
4961 fi
4962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4964 if test $ac_cv_header_stdc = yes; then
4965
4966 cat >>confdefs.h <<\_ACEOF
4967 #define STDC_HEADERS 1
4968 _ACEOF
4969
4970 fi
4971
4972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4983 inttypes.h stdint.h unistd.h
4984 do
4985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
4998
4999 #include <$ac_header>
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 eval "$as_ac_Header=yes"
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 eval "$as_ac_Header=no"
5028 fi
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036 _ACEOF
5037
5038 fi
5039
5040 done
5041
5042
5043
5044
5045
5046 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5047 do
5048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 fi
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5057 else
5058 # Is the header compilable?
5059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5068 #include <$ac_header>
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_header_compiler=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_header_compiler=no
5097 fi
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100 echo "${ECHO_T}$ac_header_compiler" >&6
5101
5102 # Is the header present?
5103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <$ac_header>
5112 _ACEOF
5113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127 else
5128 ac_cpp_err=yes
5129 fi
5130 if test -z "$ac_cpp_err"; then
5131 ac_header_preproc=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_header_preproc=no
5137 fi
5138 rm -f conftest.err conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5140 echo "${ECHO_T}$ac_header_preproc" >&6
5141
5142 # So? What about this header?
5143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 yes:no: )
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149 ac_header_preproc=yes
5150 ;;
5151 no:yes:* )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5164 (
5165 cat <<\_ASBOX
5166 ## ------------------------------------------ ##
5167 ## Report this to the AC_PACKAGE_NAME lists. ##
5168 ## ------------------------------------------ ##
5169 _ASBOX
5170 ) |
5171 sed "s/^/$as_me: WARNING: /" >&2
5172 ;;
5173 esac
5174 echo "$as_me:$LINENO: checking for $ac_header" >&5
5175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 eval "$as_ac_Header=\$ac_header_preproc"
5180 fi
5181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5183
5184 fi
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 _ACEOF
5189
5190 fi
5191
5192 done
5193
5194 # Emulation library used on NetBSD.
5195 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5196 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5197 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 ac_check_lib_save_LIBS=$LIBS
5201 LIBS="-lossaudio $LIBS"
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 #ifdef __cplusplus
5211 extern "C"
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char _oss_ioctl ();
5216 int
5217 main ()
5218 {
5219 _oss_ioctl ();
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_cv_lib_ossaudio__oss_ioctl=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5259 LIBSOUND=-lossaudio
5260 else
5261 LIBSOUND=
5262 fi
5263
5264
5265 fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5293 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5294 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5295 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5296 sys/utsname.h pwd.h
5297 do
5298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo "$as_me:$LINENO: checking for $ac_header" >&5
5301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 fi
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5307 else
5308 # Is the header compilable?
5309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 #include <$ac_header>
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_header_compiler=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_header_compiler=no
5347 fi
5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 echo "${ECHO_T}$ac_header_compiler" >&6
5351
5352 # Is the header present?
5353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <$ac_header>
5362 _ACEOF
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null; then
5371 if test -s conftest.err; then
5372 ac_cpp_err=$ac_c_preproc_warn_flag
5373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374 else
5375 ac_cpp_err=
5376 fi
5377 else
5378 ac_cpp_err=yes
5379 fi
5380 if test -z "$ac_cpp_err"; then
5381 ac_header_preproc=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 ac_header_preproc=no
5387 fi
5388 rm -f conftest.err conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6
5391
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5394 yes:no: )
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc=yes
5400 ;;
5401 no:yes:* )
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5414 (
5415 cat <<\_ASBOX
5416 ## ------------------------------------------ ##
5417 ## Report this to the AC_PACKAGE_NAME lists. ##
5418 ## ------------------------------------------ ##
5419 _ASBOX
5420 ) |
5421 sed "s/^/$as_me: WARNING: /" >&2
5422 ;;
5423 esac
5424 echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 eval "$as_ac_Header=\$ac_header_preproc"
5430 fi
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433
5434 fi
5435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 _ACEOF
5439
5440 fi
5441
5442 done
5443
5444
5445 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5446 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <sys/personality.h>
5454 int
5455 main ()
5456 {
5457 personality (PER_LINUX32)
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 emacs_cv_personality_linux32=yes
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 emacs_cv_personality_linux32=no
5489 fi
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5492 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5493
5494 if test $emacs_cv_personality_linux32 = yes; then
5495
5496 cat >>confdefs.h <<\_ACEOF
5497 #define HAVE_PERSONALITY_LINUX32 1
5498 _ACEOF
5499
5500 fi
5501
5502
5503 for ac_header in term.h
5504 do
5505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <$ac_header>
5518 _ACEOF
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5530 else
5531 ac_cpp_err=
5532 fi
5533 else
5534 ac_cpp_err=yes
5535 fi
5536 if test -z "$ac_cpp_err"; then
5537 eval "$as_ac_Header=yes"
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 eval "$as_ac_Header=no"
5543 fi
5544 rm -f conftest.err conftest.$ac_ext
5545 fi
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h <<_ACEOF
5550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5551 _ACEOF
5552
5553 fi
5554
5555 done
5556
5557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5559 if test "${ac_cv_header_stdc+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <stdlib.h>
5569 #include <stdarg.h>
5570 #include <string.h>
5571 #include <float.h>
5572
5573 int
5574 main ()
5575 {
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_header_stdc=yes
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 ac_cv_header_stdc=no
5608 fi
5609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <string.h>
5620
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev/null 2>&1; then
5624 :
5625 else
5626 ac_cv_header_stdc=no
5627 fi
5628 rm -f conftest*
5629
5630 fi
5631
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <stdlib.h>
5641
5642 _ACEOF
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 $EGREP "free" >/dev/null 2>&1; then
5645 :
5646 else
5647 ac_cv_header_stdc=no
5648 fi
5649 rm -f conftest*
5650
5651 fi
5652
5653 if test $ac_cv_header_stdc = yes; then
5654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5655 if test "$cross_compiling" = yes; then
5656 :
5657 else
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <ctype.h>
5665 #if ((' ' & 0x0FF) == 0x020)
5666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5668 #else
5669 # define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5674 #endif
5675
5676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5677 int
5678 main ()
5679 {
5680 int i;
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5684 exit(2);
5685 exit (0);
5686 }
5687 _ACEOF
5688 rm -f conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 :
5700 else
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ( exit $ac_status )
5706 ac_cv_header_stdc=no
5707 fi
5708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5709 fi
5710 fi
5711 fi
5712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5714 if test $ac_cv_header_stdc = yes; then
5715
5716 cat >>confdefs.h <<\_ACEOF
5717 #define STDC_HEADERS 1
5718 _ACEOF
5719
5720 fi
5721
5722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5724 if test "${ac_cv_header_time+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5735 #include <time.h>
5736
5737 int
5738 main ()
5739 {
5740 if ((struct tm *) 0)
5741 return 0;
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_header_time=yes
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ac_cv_header_time=no
5773 fi
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5777 echo "${ECHO_T}$ac_cv_header_time" >&6
5778 if test $ac_cv_header_time = yes; then
5779
5780 cat >>confdefs.h <<\_ACEOF
5781 #define TIME_WITH_SYS_TIME 1
5782 _ACEOF
5783
5784 fi
5785
5786 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5787 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5788 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 int
5799 main ()
5800 {
5801 #ifndef sys_siglist
5802 char *p = (char *) sys_siglist;
5803 #endif
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_have_decl_sys_siglist=yes
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 ac_cv_have_decl_sys_siglist=no
5836 fi
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 fi
5839 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5840 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5841 if test $ac_cv_have_decl_sys_siglist = yes; then
5842
5843 cat >>confdefs.h <<_ACEOF
5844 #define HAVE_DECL_SYS_SIGLIST 1
5845 _ACEOF
5846
5847
5848 else
5849 cat >>confdefs.h <<_ACEOF
5850 #define HAVE_DECL_SYS_SIGLIST 0
5851 _ACEOF
5852
5853
5854 fi
5855
5856
5857 if test $ac_cv_have_decl_sys_siglist != yes; then
5858 # For Tru64, at least:
5859 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5860 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5861 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5871 int
5872 main ()
5873 {
5874 #ifndef __sys_siglist
5875 char *p = (char *) __sys_siglist;
5876 #endif
5877
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_have_decl___sys_siglist=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 ac_cv_have_decl___sys_siglist=no
5909 fi
5910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911 fi
5912 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5913 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5914 if test $ac_cv_have_decl___sys_siglist = yes; then
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_DECL___SYS_SIGLIST 1
5918 _ACEOF
5919
5920
5921 else
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_DECL___SYS_SIGLIST 0
5924 _ACEOF
5925
5926
5927 fi
5928
5929
5930 if test $ac_cv_have_decl___sys_siglist = yes; then
5931
5932 cat >>confdefs.h <<\_ACEOF
5933 #define sys_siglist __sys_siglist
5934 _ACEOF
5935
5936 fi
5937 fi
5938 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5939 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5940 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/types.h>
5950 #include <sys/wait.h>
5951 #ifndef WEXITSTATUS
5952 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5953 #endif
5954 #ifndef WIFEXITED
5955 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5956 #endif
5957
5958 int
5959 main ()
5960 {
5961 int s;
5962 wait (&s);
5963 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_header_sys_wait_h=yes
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 ac_cv_header_sys_wait_h=no
5995 fi
5996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5999 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6000 if test $ac_cv_header_sys_wait_h = yes; then
6001
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_SYS_WAIT_H 1
6004 _ACEOF
6005
6006 fi
6007
6008
6009 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6010 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6011 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef TIME_WITH_SYS_TIME
6021 #include <sys/time.h>
6022 #include <time.h>
6023 #else
6024 #ifdef HAVE_SYS_TIME_H
6025 #include <sys/time.h>
6026 #else
6027 #include <time.h>
6028 #endif
6029 #endif
6030 #ifdef HAVE_UTIME_H
6031 #include <utime.h>
6032 #endif
6033 int
6034 main ()
6035 {
6036 static struct utimbuf x; x.actime = x.modtime;
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 (eval $ac_try) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 emacs_cv_struct_utimbuf=yes
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 emacs_cv_struct_utimbuf=no
6068 fi
6069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6072 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6073 if test $emacs_cv_struct_utimbuf = yes; then
6074
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_STRUCT_UTIMBUF 1
6077 _ACEOF
6078
6079 fi
6080
6081 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6082 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6083 if test "${ac_cv_type_signal+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <signal.h>
6094 #ifdef signal
6095 # undef signal
6096 #endif
6097 #ifdef __cplusplus
6098 extern "C" void (*signal (int, void (*)(int)))(int);
6099 #else
6100 void (*signal ()) ();
6101 #endif
6102
6103 int
6104 main ()
6105 {
6106 int i;
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_type_signal=void
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_cv_type_signal=int
6138 fi
6139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140 fi
6141 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6142 echo "${ECHO_T}$ac_cv_type_signal" >&6
6143
6144 cat >>confdefs.h <<_ACEOF
6145 #define RETSIGTYPE $ac_cv_type_signal
6146 _ACEOF
6147
6148
6149
6150 echo "$as_me:$LINENO: checking for speed_t" >&5
6151 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6152 if test "${emacs_cv_speed_t+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <termios.h>
6162 int
6163 main ()
6164 {
6165 speed_t x = 1;
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 emacs_cv_speed_t=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 emacs_cv_speed_t=no
6197 fi
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6201 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6202 if test $emacs_cv_speed_t = yes; then
6203
6204 cat >>confdefs.h <<\_ACEOF
6205 #define HAVE_SPEED_T 1
6206 _ACEOF
6207
6208 fi
6209
6210 echo "$as_me:$LINENO: checking for struct timeval" >&5
6211 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6212 if test "${emacs_cv_struct_timeval+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #ifdef TIME_WITH_SYS_TIME
6222 #include <sys/time.h>
6223 #include <time.h>
6224 #else
6225 #ifdef HAVE_SYS_TIME_H
6226 #include <sys/time.h>
6227 #else
6228 #include <time.h>
6229 #endif
6230 #endif
6231 int
6232 main ()
6233 {
6234 static struct timeval x; x.tv_sec = x.tv_usec;
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 emacs_cv_struct_timeval=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 emacs_cv_struct_timeval=no
6266 fi
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6270 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6271 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6272 if test $emacs_cv_struct_timeval = yes; then
6273
6274 cat >>confdefs.h <<\_ACEOF
6275 #define HAVE_TIMEVAL 1
6276 _ACEOF
6277
6278 fi
6279
6280 echo "$as_me:$LINENO: checking for struct exception" >&5
6281 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6282 if test "${emacs_cv_struct_exception+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <math.h>
6292 int
6293 main ()
6294 {
6295 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 emacs_cv_struct_exception=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 emacs_cv_struct_exception=no
6327 fi
6328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329 fi
6330 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6331 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6332 HAVE_EXCEPTION=$emacs_cv_struct_exception
6333 if test $emacs_cv_struct_exception != yes; then
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define NO_MATHERR 1
6337 _ACEOF
6338
6339 fi
6340
6341
6342 for ac_header in sys/socket.h
6343 do
6344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346 echo "$as_me:$LINENO: checking for $ac_header" >&5
6347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 fi
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6353 else
6354 # Is the header compilable?
6355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 $ac_includes_default
6364 #include <$ac_header>
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_header_compiler=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ac_header_compiler=no
6393 fi
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6396 echo "${ECHO_T}$ac_header_compiler" >&6
6397
6398 # Is the header present?
6399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6408 _ACEOF
6409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } >/dev/null; then
6417 if test -s conftest.err; then
6418 ac_cpp_err=$ac_c_preproc_warn_flag
6419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6420 else
6421 ac_cpp_err=
6422 fi
6423 else
6424 ac_cpp_err=yes
6425 fi
6426 if test -z "$ac_cpp_err"; then
6427 ac_header_preproc=yes
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_header_preproc=no
6433 fi
6434 rm -f conftest.err conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6436 echo "${ECHO_T}$ac_header_preproc" >&6
6437
6438 # So? What about this header?
6439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6440 yes:no: )
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6445 ac_header_preproc=yes
6446 ;;
6447 no:yes:* )
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6460 (
6461 cat <<\_ASBOX
6462 ## ------------------------------------------ ##
6463 ## Report this to the AC_PACKAGE_NAME lists. ##
6464 ## ------------------------------------------ ##
6465 _ASBOX
6466 ) |
6467 sed "s/^/$as_me: WARNING: /" >&2
6468 ;;
6469 esac
6470 echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 eval "$as_ac_Header=\$ac_header_preproc"
6476 fi
6477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6479
6480 fi
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484 _ACEOF
6485
6486 fi
6487
6488 done
6489
6490
6491 for ac_header in net/if.h
6492 do
6493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #if HAVE_SYS_SOCKET_H
6507 #include <sys/socket.h>
6508 #endif
6509
6510 #include <$ac_header>
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 eval "$as_ac_Header=yes"
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 eval "$as_ac_Header=no"
6539 fi
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 fi
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6548
6549 fi
6550
6551 done
6552
6553
6554 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6556 if test "${ac_cv_struct_tm+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <sys/types.h>
6566 #include <time.h>
6567
6568 int
6569 main ()
6570 {
6571 struct tm *tp; tp->tm_sec;
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_struct_tm=time.h
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_struct_tm=sys/time.h
6603 fi
6604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6605 fi
6606 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6607 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6608 if test $ac_cv_struct_tm = sys/time.h; then
6609
6610 cat >>confdefs.h <<\_ACEOF
6611 #define TM_IN_SYS_TIME 1
6612 _ACEOF
6613
6614 fi
6615
6616 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6617 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6618 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6629
6630
6631 int
6632 main ()
6633 {
6634 static struct tm ac_aggr;
6635 if (ac_aggr.tm_zone)
6636 return 0;
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_tm_tm_zone=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <sys/types.h>
6674 #include <$ac_cv_struct_tm>
6675
6676
6677 int
6678 main ()
6679 {
6680 static struct tm ac_aggr;
6681 if (sizeof ac_aggr.tm_zone)
6682 return 0;
6683 ;
6684 return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_member_struct_tm_tm_zone=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 ac_cv_member_struct_tm_tm_zone=no
6714 fi
6715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6720 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6721 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6722
6723 cat >>confdefs.h <<_ACEOF
6724 #define HAVE_STRUCT_TM_TM_ZONE 1
6725 _ACEOF
6726
6727
6728 fi
6729
6730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6731
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_TM_ZONE 1
6734 _ACEOF
6735
6736 else
6737 echo "$as_me:$LINENO: checking for tzname" >&5
6738 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6739 if test "${ac_cv_var_tzname+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <time.h>
6749 #ifndef tzname /* For SGI. */
6750 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6751 #endif
6752
6753 int
6754 main ()
6755 {
6756 atoi(*tzname);
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext conftest$ac_exeext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_var_tzname=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ac_cv_var_tzname=no
6788 fi
6789 rm -f conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6791 fi
6792 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6793 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6794 if test $ac_cv_var_tzname = yes; then
6795
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_TZNAME 1
6798 _ACEOF
6799
6800 fi
6801 fi
6802
6803 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6804 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6805 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <time.h>
6815
6816 int
6817 main ()
6818 {
6819 static struct tm ac_aggr;
6820 if (ac_aggr.tm_gmtoff)
6821 return 0;
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try='test -s conftest.$ac_objext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_member_struct_tm_tm_gmtoff=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <time.h>
6859
6860 int
6861 main ()
6862 {
6863 static struct tm ac_aggr;
6864 if (sizeof ac_aggr.tm_gmtoff)
6865 return 0;
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_member_struct_tm_tm_gmtoff=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_cv_member_struct_tm_tm_gmtoff=no
6897 fi
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 fi
6902 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6903 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6904 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_TM_GMTOFF 1
6908 _ACEOF
6909
6910 fi
6911
6912 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6913 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6914 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6924 #if HAVE_SYS_SOCKET_H
6925 #include <sys/socket.h>
6926 #endif
6927 #if HAVE_NET_IF_H
6928 #include <net/if.h>
6929 #endif
6930
6931 int
6932 main ()
6933 {
6934 static struct ifreq ac_aggr;
6935 if (ac_aggr.ifr_flags)
6936 return 0;
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_cv_member_struct_ifreq_ifr_flags=yes
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6976 #endif
6977 #if HAVE_NET_IF_H
6978 #include <net/if.h>
6979 #endif
6980
6981 int
6982 main ()
6983 {
6984 static struct ifreq ac_aggr;
6985 if (sizeof ac_aggr.ifr_flags)
6986 return 0;
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags=yes
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 ac_cv_member_struct_ifreq_ifr_flags=no
7018 fi
7019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7022 fi
7023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7025 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7029 _ACEOF
7030
7031
7032 fi
7033 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7034 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7035 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 #if HAVE_SYS_SOCKET_H
7046 #include <sys/socket.h>
7047 #endif
7048 #if HAVE_NET_IF_H
7049 #include <net/if.h>
7050 #endif
7051
7052 int
7053 main ()
7054 {
7055 static struct ifreq ac_aggr;
7056 if (ac_aggr.ifr_hwaddr)
7057 return 0;
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7097 #endif
7098 #if HAVE_NET_IF_H
7099 #include <net/if.h>
7100 #endif
7101
7102 int
7103 main ()
7104 {
7105 static struct ifreq ac_aggr;
7106 if (sizeof ac_aggr.ifr_hwaddr)
7107 return 0;
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7139 fi
7140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7143 fi
7144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7145 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7146 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7150 _ACEOF
7151
7152
7153 fi
7154 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7155 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7156 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 #if HAVE_SYS_SOCKET_H
7167 #include <sys/socket.h>
7168 #endif
7169 #if HAVE_NET_IF_H
7170 #include <net/if.h>
7171 #endif
7172
7173 int
7174 main ()
7175 {
7176 static struct ifreq ac_aggr;
7177 if (ac_aggr.ifr_netmask)
7178 return 0;
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_member_struct_ifreq_ifr_netmask=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7218 #endif
7219 #if HAVE_NET_IF_H
7220 #include <net/if.h>
7221 #endif
7222
7223 int
7224 main ()
7225 {
7226 static struct ifreq ac_aggr;
7227 if (sizeof ac_aggr.ifr_netmask)
7228 return 0;
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_cv_member_struct_ifreq_ifr_netmask=no
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7266 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7267 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7268
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7271 _ACEOF
7272
7273
7274 fi
7275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7276 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7277 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7287 #if HAVE_SYS_SOCKET_H
7288 #include <sys/socket.h>
7289 #endif
7290 #if HAVE_NET_IF_H
7291 #include <net/if.h>
7292 #endif
7293
7294 int
7295 main ()
7296 {
7297 static struct ifreq ac_aggr;
7298 if (ac_aggr.ifr_broadaddr)
7299 return 0;
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; } &&
7319 { ac_try='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7339 #endif
7340 #if HAVE_NET_IF_H
7341 #include <net/if.h>
7342 #endif
7343
7344 int
7345 main ()
7346 {
7347 static struct ifreq ac_aggr;
7348 if (sizeof ac_aggr.ifr_broadaddr)
7349 return 0;
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7381 fi
7382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7383 fi
7384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7387 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7388 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7392 _ACEOF
7393
7394
7395 fi
7396 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7397 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7398 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7408 #if HAVE_SYS_SOCKET_H
7409 #include <sys/socket.h>
7410 #endif
7411 #if HAVE_NET_IF_H
7412 #include <net/if.h>
7413 #endif
7414
7415 int
7416 main ()
7417 {
7418 static struct ifreq ac_aggr;
7419 if (ac_aggr.ifr_addr)
7420 return 0;
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_member_struct_ifreq_ifr_addr=yes
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7460 #endif
7461 #if HAVE_NET_IF_H
7462 #include <net/if.h>
7463 #endif
7464
7465 int
7466 main ()
7467 {
7468 static struct ifreq ac_aggr;
7469 if (sizeof ac_aggr.ifr_addr)
7470 return 0;
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 ac_cv_member_struct_ifreq_ifr_addr=no
7502 fi
7503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7509 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7513 _ACEOF
7514
7515
7516 fi
7517
7518
7519
7520 echo "$as_me:$LINENO: checking for function prototypes" >&5
7521 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7522 if test "$ac_cv_prog_cc_stdc" != no; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525
7526 cat >>confdefs.h <<\_ACEOF
7527 #define PROTOTYPES 1
7528 _ACEOF
7529
7530
7531 cat >>confdefs.h <<\_ACEOF
7532 #define __PROTOTYPES 1
7533 _ACEOF
7534
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7538 fi
7539
7540 echo "$as_me:$LINENO: checking for working volatile" >&5
7541 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7542 if test "${ac_cv_c_volatile+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551
7552 int
7553 main ()
7554 {
7555
7556 volatile int x;
7557 int * volatile y;
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_c_volatile=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ac_cv_c_volatile=no
7589 fi
7590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7593 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7594 if test $ac_cv_c_volatile = no; then
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define volatile
7598 _ACEOF
7599
7600 fi
7601
7602 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7603 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7604 if test "${ac_cv_c_const+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613
7614 int
7615 main ()
7616 {
7617 /* FIXME: Include the comments suggested by Paul. */
7618 #ifndef __cplusplus
7619 /* Ultrix mips cc rejects this. */
7620 typedef int charset[2];
7621 const charset x;
7622 /* SunOS 4.1.1 cc rejects this. */
7623 char const *const *ccp;
7624 char **p;
7625 /* NEC SVR4.0.2 mips cc rejects this. */
7626 struct point {int x, y;};
7627 static struct point const zero = {0,0};
7628 /* AIX XL C 1.02.0.0 rejects this.
7629 It does not let you subtract one const X* pointer from another in
7630 an arm of an if-expression whose if-part is not a constant
7631 expression */
7632 const char *g = "string";
7633 ccp = &g + (g ? g-g : 0);
7634 /* HPUX 7.0 cc rejects these. */
7635 ++ccp;
7636 p = (char**) ccp;
7637 ccp = (char const *const *) p;
7638 { /* SCO 3.2v4 cc rejects this. */
7639 char *t;
7640 char const *s = 0 ? (char *) 0 : (char const *) 0;
7641
7642 *t++ = 0;
7643 }
7644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7645 int x[] = {25, 17};
7646 const int *foo = &x[0];
7647 ++foo;
7648 }
7649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7650 typedef const int *iptr;
7651 iptr p = 0;
7652 ++p;
7653 }
7654 { /* AIX XL C 1.02.0.0 rejects this saying
7655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7656 struct s { int j; const int *ap[3]; };
7657 struct s *b; b->j = 5;
7658 }
7659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7660 const int foo = 10;
7661 }
7662 #endif
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_c_const=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_c_const=no
7695 fi
7696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7699 echo "${ECHO_T}$ac_cv_c_const" >&6
7700 if test $ac_cv_c_const = no; then
7701
7702 cat >>confdefs.h <<\_ACEOF
7703 #define const
7704 _ACEOF
7705
7706 fi
7707
7708 echo "$as_me:$LINENO: checking for void * support" >&5
7709 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7710 if test "${emacs_cv_void_star+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719
7720 int
7721 main ()
7722 {
7723 void * foo;
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7731 ac_status=$?
7732 grep -v '^ *+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 emacs_cv_void_star=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 emacs_cv_void_star=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7759 echo "${ECHO_T}$emacs_cv_void_star" >&6
7760 if test $emacs_cv_void_star = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define POINTER_TYPE void
7763 _ACEOF
7764
7765 else
7766 cat >>confdefs.h <<\_ACEOF
7767 #define POINTER_TYPE char
7768 _ACEOF
7769
7770 fi
7771
7772
7773
7774
7775
7776 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7778 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7779 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 cat >conftest.make <<\_ACEOF
7783 all:
7784 @echo 'ac_maketemp="$(MAKE)"'
7785 _ACEOF
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7788 if test -n "$ac_maketemp"; then
7789 eval ac_cv_prog_make_${ac_make}_set=yes
7790 else
7791 eval ac_cv_prog_make_${ac_make}_set=no
7792 fi
7793 rm -f conftest.make
7794 fi
7795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7796 echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7798 SET_MAKE=
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 SET_MAKE="MAKE=${MAKE-make}"
7803 fi
7804
7805
7806 echo "$as_me:$LINENO: checking for long file names" >&5
7807 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7808 if test "${ac_cv_sys_long_file_names+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 ac_cv_sys_long_file_names=yes
7812 # Test for long file names in all the places we know might matter:
7813 # . the current directory, where building will happen
7814 # $prefix/lib where we will be installing things
7815 # $exec_prefix/lib likewise
7816 # eval it to expand exec_prefix.
7817 # $TMPDIR if set, where it might want to write temporary files
7818 # if $TMPDIR is not set:
7819 # /tmp where it might want to write temporary files
7820 # /var/tmp likewise
7821 # /usr/tmp likewise
7822 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7823 ac_tmpdirs=$TMPDIR
7824 else
7825 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7826 fi
7827 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7828 test -d $ac_dir || continue
7829 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7830 ac_xdir=$ac_dir/cf$$
7831 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7832 ac_tf1=$ac_xdir/conftest9012345
7833 ac_tf2=$ac_xdir/conftest9012346
7834 (echo 1 >$ac_tf1) 2>/dev/null
7835 (echo 2 >$ac_tf2) 2>/dev/null
7836 ac_val=`cat $ac_tf1 2>/dev/null`
7837 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7838 ac_cv_sys_long_file_names=no
7839 rm -rf $ac_xdir 2>/dev/null
7840 break
7841 fi
7842 rm -rf $ac_xdir 2>/dev/null
7843 done
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7846 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7847 if test $ac_cv_sys_long_file_names = yes; then
7848
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_LONG_FILE_NAMES 1
7851 _ACEOF
7852
7853 fi
7854
7855
7856 #### Choose a window system.
7857
7858 echo "$as_me:$LINENO: checking for X" >&5
7859 echo $ECHO_N "checking for X... $ECHO_C" >&6
7860
7861 ac_path_x_has_been_run=yes
7862
7863 # Check whether --with-x or --without-x was given.
7864 if test "${with_x+set}" = set; then
7865 withval="$with_x"
7866
7867 fi;
7868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7869 if test "x$with_x" = xno; then
7870 # The user explicitly disabled X.
7871 have_x=disabled
7872 else
7873 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7874 # Both variables are already set.
7875 have_x=yes
7876 else
7877 if test "${ac_cv_have_x+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 # One or both of the vars are not set, and there is no cached value.
7881 ac_x_includes=no ac_x_libraries=no
7882 rm -fr conftest.dir
7883 if mkdir conftest.dir; then
7884 cd conftest.dir
7885 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7886 cat >Imakefile <<'_ACEOF'
7887 acfindx:
7888 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7889 _ACEOF
7890 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7892 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7894 for ac_extension in a so sl; do
7895 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7896 test -f $ac_im_libdir/libX11.$ac_extension; then
7897 ac_im_usrlibdir=$ac_im_libdir; break
7898 fi
7899 done
7900 # Screen out bogus values from the imake configuration. They are
7901 # bogus both because they are the default anyway, and because
7902 # using them would break gcc on systems where it needs fixed includes.
7903 case $ac_im_incroot in
7904 /usr/include) ;;
7905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7906 esac
7907 case $ac_im_usrlibdir in
7908 /usr/lib | /lib) ;;
7909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7910 esac
7911 fi
7912 cd ..
7913 rm -fr conftest.dir
7914 fi
7915
7916 # Standard set of common directories for X headers.
7917 # Check X11 before X11Rn because it is often a symlink to the current release.
7918 ac_x_header_dirs='
7919 /usr/X11/include
7920 /usr/X11R6/include
7921 /usr/X11R5/include
7922 /usr/X11R4/include
7923
7924 /usr/include/X11
7925 /usr/include/X11R6
7926 /usr/include/X11R5
7927 /usr/include/X11R4
7928
7929 /usr/local/X11/include
7930 /usr/local/X11R6/include
7931 /usr/local/X11R5/include
7932 /usr/local/X11R4/include
7933
7934 /usr/local/include/X11
7935 /usr/local/include/X11R6
7936 /usr/local/include/X11R5
7937 /usr/local/include/X11R4
7938
7939 /usr/X386/include
7940 /usr/x386/include
7941 /usr/XFree86/include/X11
7942
7943 /usr/include
7944 /usr/local/include
7945 /usr/unsupported/include
7946 /usr/athena/include
7947 /usr/local/x11r5/include
7948 /usr/lpp/Xamples/include
7949
7950 /usr/openwin/include
7951 /usr/openwin/share/include'
7952
7953 if test "$ac_x_includes" = no; then
7954 # Guess where to find include files, by looking for a specified header file.
7955 # First, try using that file with no special directory specified.
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <X11/Intrinsic.h>
7963 _ACEOF
7964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } >/dev/null; then
7972 if test -s conftest.err; then
7973 ac_cpp_err=$ac_c_preproc_warn_flag
7974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7975 else
7976 ac_cpp_err=
7977 fi
7978 else
7979 ac_cpp_err=yes
7980 fi
7981 if test -z "$ac_cpp_err"; then
7982 # We can compile using X headers with no special include directory.
7983 ac_x_includes=
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 for ac_dir in $ac_x_header_dirs; do
7989 if test -r "$ac_dir/X11/Intrinsic.h"; then
7990 ac_x_includes=$ac_dir
7991 break
7992 fi
7993 done
7994 fi
7995 rm -f conftest.err conftest.$ac_ext
7996 fi # $ac_x_includes = no
7997
7998 if test "$ac_x_libraries" = no; then
7999 # Check for the libraries.
8000 # See if we find them without any special options.
8001 # Don't add to $LIBS permanently.
8002 ac_save_LIBS=$LIBS
8003 LIBS="-lXt $LIBS"
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <X11/Intrinsic.h>
8011 int
8012 main ()
8013 {
8014 XtMalloc (0)
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 LIBS=$ac_save_LIBS
8041 # We can link X programs with no special library path.
8042 ac_x_libraries=
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 LIBS=$ac_save_LIBS
8048 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8049 do
8050 # Don't even attempt the hair of trying to link an X program!
8051 for ac_extension in a so sl; do
8052 if test -r $ac_dir/libXt.$ac_extension; then
8053 ac_x_libraries=$ac_dir
8054 break 2
8055 fi
8056 done
8057 done
8058 fi
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 fi # $ac_x_libraries = no
8062
8063 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8064 # Didn't find X anywhere. Cache the known absence of X.
8065 ac_cv_have_x="have_x=no"
8066 else
8067 # Record where we found X for the cache.
8068 ac_cv_have_x="have_x=yes \
8069 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8070 fi
8071 fi
8072
8073 fi
8074 eval "$ac_cv_have_x"
8075 fi # $with_x != no
8076
8077 if test "$have_x" != yes; then
8078 echo "$as_me:$LINENO: result: $have_x" >&5
8079 echo "${ECHO_T}$have_x" >&6
8080 no_x=yes
8081 else
8082 # If each of the values was on the command line, it overrides each guess.
8083 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8084 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8085 # Update the cache value to reflect the command line values.
8086 ac_cv_have_x="have_x=yes \
8087 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8088 # It might be that x_includes is empty (headers are found in the
8089 # standard search path. Then output the corresponding message
8090 ac_out_x_includes=$x_includes
8091 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8092 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8093 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8094 fi
8095
8096 if test "$no_x" = yes; then
8097 window_system=none
8098 else
8099 window_system=x11
8100 fi
8101
8102 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8103 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8104 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8105 x_default_search_path=""
8106 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8107 x_search_path="\
8108 ${x_library}/X11/%L/%T/%N%C%S:\
8109 ${x_library}/X11/%l/%T/%N%C%S:\
8110 ${x_library}/X11/%T/%N%C%S:\
8111 ${x_library}/X11/%L/%T/%N%S:\
8112 ${x_library}/X11/%l/%T/%N%S:\
8113 ${x_library}/X11/%T/%N%S"
8114 if test x"${x_default_search_path}" = x; then
8115 x_default_search_path=${x_search_path}
8116 else
8117 x_default_search_path="${x_search_path}:${x_default_search_path}"
8118 fi
8119 done
8120 fi
8121 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8122 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8123 fi
8124
8125 if test x"${x_includes}" = x; then
8126 bitmapdir=/usr/include/X11/bitmaps
8127 else
8128 # accumulate include directories that have X11 bitmap subdirectories
8129 bmd_acc="dummyval"
8130 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8131 if test -d "${bmd}/X11/bitmaps"; then
8132 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8133 fi
8134 if test -d "${bmd}/bitmaps"; then
8135 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8136 fi
8137 done
8138 if test ${bmd_acc} != "dummyval"; then
8139 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8140 fi
8141 fi
8142
8143 case "${window_system}" in
8144 x11 )
8145 HAVE_X_WINDOWS=yes
8146 HAVE_X11=yes
8147 case "${with_x_toolkit}" in
8148 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8149 motif ) USE_X_TOOLKIT=MOTIF ;;
8150 gtk ) with_gtk=yes
8151 USE_X_TOOLKIT=none ;;
8152 no ) USE_X_TOOLKIT=none ;;
8153 * ) USE_X_TOOLKIT=maybe ;;
8154 esac
8155 ;;
8156 none )
8157 HAVE_X_WINDOWS=no
8158 HAVE_X11=no
8159 USE_X_TOOLKIT=none
8160 ;;
8161 esac
8162
8163 ### If we're using X11, we should use the X menu package.
8164 HAVE_MENUS=no
8165 case ${HAVE_X11} in
8166 yes ) HAVE_MENUS=yes ;;
8167 esac
8168
8169 if test "${opsys}" = "hpux9"; then
8170 case "${x_libraries}" in
8171 *X11R4* )
8172 opsysfile="s/hpux9-x11r4.h"
8173 ;;
8174 esac
8175 fi
8176
8177 if test "${opsys}" = "hpux9shr"; then
8178 case "${x_libraries}" in
8179 *X11R4* )
8180 opsysfile="s/hpux9shxr4.h"
8181 ;;
8182 esac
8183 fi
8184
8185 HAVE_CARBON=no
8186 if test "${HAVE_X11}" != "yes"; then
8187 if test "${with_carbon}" != "no"; then
8188 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 fi
8194 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8195 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8196 else
8197 # Is the header compilable?
8198 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8199 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h. */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8206 $ac_includes_default
8207 #include <Carbon/Carbon.h>
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_header_compiler=yes
8231 else
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 ac_header_compiler=no
8236 fi
8237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8239 echo "${ECHO_T}$ac_header_compiler" >&6
8240
8241 # Is the header present?
8242 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8243 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 #include <Carbon/Carbon.h>
8251 _ACEOF
8252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } >/dev/null; then
8260 if test -s conftest.err; then
8261 ac_cpp_err=$ac_c_preproc_warn_flag
8262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8263 else
8264 ac_cpp_err=
8265 fi
8266 else
8267 ac_cpp_err=yes
8268 fi
8269 if test -z "$ac_cpp_err"; then
8270 ac_header_preproc=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275 ac_header_preproc=no
8276 fi
8277 rm -f conftest.err conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279 echo "${ECHO_T}$ac_header_preproc" >&6
8280
8281 # So? What about this header?
8282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8283 yes:no: )
8284 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8287 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8288 ac_header_preproc=yes
8289 ;;
8290 no:yes:* )
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8296 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8298 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8300 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8302 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8303 (
8304 cat <<\_ASBOX
8305 ## ------------------------------------------ ##
8306 ## Report this to the AC_PACKAGE_NAME lists. ##
8307 ## ------------------------------------------ ##
8308 _ASBOX
8309 ) |
8310 sed "s/^/$as_me: WARNING: /" >&2
8311 ;;
8312 esac
8313 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8314 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8315 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8321 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8322
8323 fi
8324 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8325 HAVE_CARBON=yes
8326 fi
8327
8328
8329 fi
8330 fi
8331
8332 ### Compute the unexec source name from the object name.
8333 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8334
8335 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8336 # Assume not, until told otherwise.
8337 GNU_MALLOC=yes
8338 doug_lea_malloc=yes
8339 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8340 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8341 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define malloc_get_state innocuous_malloc_get_state
8353
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char malloc_get_state (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8358
8359 #ifdef __STDC__
8360 # include <limits.h>
8361 #else
8362 # include <assert.h>
8363 #endif
8364
8365 #undef malloc_get_state
8366
8367 /* Override any gcc2 internal prototype to avoid an error. */
8368 #ifdef __cplusplus
8369 extern "C"
8370 {
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char malloc_get_state ();
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8379 choke me
8380 #else
8381 char (*f) () = malloc_get_state;
8382 #endif
8383 #ifdef __cplusplus
8384 }
8385 #endif
8386
8387 int
8388 main ()
8389 {
8390 return f != malloc_get_state;
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_malloc_get_state=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_func_malloc_get_state=no
8422 fi
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 fi
8426 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8427 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8428 if test $ac_cv_func_malloc_get_state = yes; then
8429 :
8430 else
8431 doug_lea_malloc=no
8432 fi
8433
8434 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8435 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8436 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8447 #define malloc_set_state innocuous_malloc_set_state
8448
8449 /* System header to define __stub macros and hopefully few prototypes,
8450 which can conflict with char malloc_set_state (); below.
8451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452 <limits.h> exists even on freestanding compilers. */
8453
8454 #ifdef __STDC__
8455 # include <limits.h>
8456 #else
8457 # include <assert.h>
8458 #endif
8459
8460 #undef malloc_set_state
8461
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 #ifdef __cplusplus
8464 extern "C"
8465 {
8466 #endif
8467 /* We use char because int might match the return type of a gcc2
8468 builtin and then its argument prototype would still apply. */
8469 char malloc_set_state ();
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8474 choke me
8475 #else
8476 char (*f) () = malloc_set_state;
8477 #endif
8478 #ifdef __cplusplus
8479 }
8480 #endif
8481
8482 int
8483 main ()
8484 {
8485 return f != malloc_set_state;
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492 (eval $ac_link) 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_malloc_set_state=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_func_malloc_set_state=no
8517 fi
8518 rm -f conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8522 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8523 if test $ac_cv_func_malloc_set_state = yes; then
8524 :
8525 else
8526 doug_lea_malloc=no
8527 fi
8528
8529 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8530 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8531 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 extern void (* __after_morecore_hook)();
8541 int
8542 main ()
8543 {
8544 __after_morecore_hook = 0
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 emacs_cv_var___after_morecore_hook=yes
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 emacs_cv_var___after_morecore_hook=no
8576 fi
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 fi
8580 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8581 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8582 if test $emacs_cv_var___after_morecore_hook = no; then
8583 doug_lea_malloc=no
8584 fi
8585 if test "${system_malloc}" = "yes"; then
8586 GNU_MALLOC=no
8587 GNU_MALLOC_reason="
8588 (The GNU allocators don't work with this system configuration.)"
8589 fi
8590 if test "$doug_lea_malloc" = "yes" ; then
8591 if test "$GNU_MALLOC" = yes ; then
8592 GNU_MALLOC_reason="
8593 (Using Doug Lea's new malloc from the GNU C Library.)"
8594 fi
8595
8596 cat >>confdefs.h <<\_ACEOF
8597 #define DOUG_LEA_MALLOC 1
8598 _ACEOF
8599
8600 fi
8601
8602 if test x"${REL_ALLOC}" = x; then
8603 REL_ALLOC=${GNU_MALLOC}
8604 fi
8605
8606
8607
8608
8609 for ac_header in stdlib.h unistd.h
8610 do
8611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 fi
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620 else
8621 # Is the header compilable?
8622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 #include <$ac_header>
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 ac_header_compiler=no
8660 fi
8661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6
8664
8665 # Is the header present?
8666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8675 _ACEOF
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8687 else
8688 ac_cpp_err=
8689 fi
8690 else
8691 ac_cpp_err=yes
8692 fi
8693 if test -z "$ac_cpp_err"; then
8694 ac_header_preproc=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ac_header_preproc=no
8700 fi
8701 rm -f conftest.err conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703 echo "${ECHO_T}$ac_header_preproc" >&6
8704
8705 # So? What about this header?
8706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8707 yes:no: )
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8712 ac_header_preproc=yes
8713 ;;
8714 no:yes:* )
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8727 (
8728 cat <<\_ASBOX
8729 ## ------------------------------------------ ##
8730 ## Report this to the AC_PACKAGE_NAME lists. ##
8731 ## ------------------------------------------ ##
8732 _ASBOX
8733 ) |
8734 sed "s/^/$as_me: WARNING: /" >&2
8735 ;;
8736 esac
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 eval "$as_ac_Header=\$ac_header_preproc"
8743 fi
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746
8747 fi
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8751 _ACEOF
8752
8753 fi
8754
8755 done
8756
8757
8758 for ac_func in getpagesize
8759 do
8760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8761 echo "$as_me:$LINENO: checking for $ac_func" >&5
8762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_var+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8774 #define $ac_func innocuous_$ac_func
8775
8776 /* System header to define __stub macros and hopefully few prototypes,
8777 which can conflict with char $ac_func (); below.
8778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8779 <limits.h> exists even on freestanding compilers. */
8780
8781 #ifdef __STDC__
8782 # include <limits.h>
8783 #else
8784 # include <assert.h>
8785 #endif
8786
8787 #undef $ac_func
8788
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 #ifdef __cplusplus
8791 extern "C"
8792 {
8793 #endif
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796 char $ac_func ();
8797 /* The GNU C library defines this for functions which it implements
8798 to always fail with ENOSYS. Some functions are actually named
8799 something starting with __ and the normal name is an alias. */
8800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8801 choke me
8802 #else
8803 char (*f) () = $ac_func;
8804 #endif
8805 #ifdef __cplusplus
8806 }
8807 #endif
8808
8809 int
8810 main ()
8811 {
8812 return f != $ac_func;
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 eval "$as_ac_var=no"
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 fi
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8850 if test `eval echo '${'$as_ac_var'}'` = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8853 _ACEOF
8854
8855 fi
8856 done
8857
8858 echo "$as_me:$LINENO: checking for working mmap" >&5
8859 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8860 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 if test "$cross_compiling" = yes; then
8864 ac_cv_func_mmap_fixed_mapped=no
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 /* malloc might have been renamed as rpl_malloc. */
8874 #undef malloc
8875
8876 /* Thanks to Mike Haertel and Jim Avera for this test.
8877 Here is a matrix of mmap possibilities:
8878 mmap private not fixed
8879 mmap private fixed at somewhere currently unmapped
8880 mmap private fixed at somewhere already mapped
8881 mmap shared not fixed
8882 mmap shared fixed at somewhere currently unmapped
8883 mmap shared fixed at somewhere already mapped
8884 For private mappings, we should verify that changes cannot be read()
8885 back from the file, nor mmap's back from the file at a different
8886 address. (There have been systems where private was not correctly
8887 implemented like the infamous i386 svr4.0, and systems where the
8888 VM page cache was not coherent with the file system buffer cache
8889 like early versions of FreeBSD and possibly contemporary NetBSD.)
8890 For shared mappings, we should conversely verify that changes get
8891 propagated back to all the places they're supposed to be.
8892
8893 Grep wants private fixed already mapped.
8894 The main things grep needs to know about mmap are:
8895 * does it exist and is it safe to write into the mmap'd area
8896 * how to use it (BSD variants) */
8897
8898 #include <fcntl.h>
8899 #include <sys/mman.h>
8900
8901 #if !STDC_HEADERS && !HAVE_STDLIB_H
8902 char *malloc ();
8903 #endif
8904
8905 /* This mess was copied from the GNU getpagesize.h. */
8906 #if !HAVE_GETPAGESIZE
8907 /* Assume that all systems that can run configure have sys/param.h. */
8908 # if !HAVE_SYS_PARAM_H
8909 # define HAVE_SYS_PARAM_H 1
8910 # endif
8911
8912 # ifdef _SC_PAGESIZE
8913 # define getpagesize() sysconf(_SC_PAGESIZE)
8914 # else /* no _SC_PAGESIZE */
8915 # if HAVE_SYS_PARAM_H
8916 # include <sys/param.h>
8917 # ifdef EXEC_PAGESIZE
8918 # define getpagesize() EXEC_PAGESIZE
8919 # else /* no EXEC_PAGESIZE */
8920 # ifdef NBPG
8921 # define getpagesize() NBPG * CLSIZE
8922 # ifndef CLSIZE
8923 # define CLSIZE 1
8924 # endif /* no CLSIZE */
8925 # else /* no NBPG */
8926 # ifdef NBPC
8927 # define getpagesize() NBPC
8928 # else /* no NBPC */
8929 # ifdef PAGESIZE
8930 # define getpagesize() PAGESIZE
8931 # endif /* PAGESIZE */
8932 # endif /* no NBPC */
8933 # endif /* no NBPG */
8934 # endif /* no EXEC_PAGESIZE */
8935 # else /* no HAVE_SYS_PARAM_H */
8936 # define getpagesize() 8192 /* punt totally */
8937 # endif /* no HAVE_SYS_PARAM_H */
8938 # endif /* no _SC_PAGESIZE */
8939
8940 #endif /* no HAVE_GETPAGESIZE */
8941
8942 int
8943 main ()
8944 {
8945 char *data, *data2, *data3;
8946 int i, pagesize;
8947 int fd;
8948
8949 pagesize = getpagesize ();
8950
8951 /* First, make a file with some known garbage in it. */
8952 data = (char *) malloc (pagesize);
8953 if (!data)
8954 exit (1);
8955 for (i = 0; i < pagesize; ++i)
8956 *(data + i) = rand ();
8957 umask (0);
8958 fd = creat ("conftest.mmap", 0600);
8959 if (fd < 0)
8960 exit (1);
8961 if (write (fd, data, pagesize) != pagesize)
8962 exit (1);
8963 close (fd);
8964
8965 /* Next, try to mmap the file at a fixed address which already has
8966 something else allocated at it. If we can, also make sure that
8967 we see the same garbage. */
8968 fd = open ("conftest.mmap", O_RDWR);
8969 if (fd < 0)
8970 exit (1);
8971 data2 = (char *) malloc (2 * pagesize);
8972 if (!data2)
8973 exit (1);
8974 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8977 exit (1);
8978 for (i = 0; i < pagesize; ++i)
8979 if (*(data + i) != *(data2 + i))
8980 exit (1);
8981
8982 /* Finally, make sure that changes to the mapped area do not
8983 percolate back to the file as seen by read(). (This is a bug on
8984 some variants of i386 svr4.0.) */
8985 for (i = 0; i < pagesize; ++i)
8986 *(data2 + i) = *(data2 + i) + 1;
8987 data3 = (char *) malloc (pagesize);
8988 if (!data3)
8989 exit (1);
8990 if (read (fd, data3, pagesize) != pagesize)
8991 exit (1);
8992 for (i = 0; i < pagesize; ++i)
8993 if (*(data + i) != *(data3 + i))
8994 exit (1);
8995 close (fd);
8996 exit (0);
8997 }
8998 _ACEOF
8999 rm -f conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_mmap_fixed_mapped=yes
9011 else
9012 echo "$as_me: program exited with status $ac_status" >&5
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 ( exit $ac_status )
9017 ac_cv_func_mmap_fixed_mapped=no
9018 fi
9019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9020 fi
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9023 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9025
9026 cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_MMAP 1
9028 _ACEOF
9029
9030 fi
9031 rm -f conftest.mmap
9032
9033 if test $use_mmap_for_buffers = yes; then
9034 REL_ALLOC=no
9035 fi
9036
9037 LIBS="$libsrc_libs $LIBS"
9038
9039
9040 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9041 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9042 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-ldnet $LIBS"
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060 char dnet_ntoa ();
9061 int
9062 main ()
9063 {
9064 dnet_ntoa ();
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest$ac_exeext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_cv_lib_dnet_dnet_ntoa=yes
9091 else
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095 ac_cv_lib_dnet_dnet_ntoa=no
9096 fi
9097 rm -f conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 LIBS=$ac_check_lib_save_LIBS
9100 fi
9101 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9102 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9103 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_LIBDNET 1
9106 _ACEOF
9107
9108 LIBS="-ldnet $LIBS"
9109
9110 fi
9111
9112
9113 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9114 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9115 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_check_lib_save_LIBS=$LIBS
9119 LIBS="-lXbsd $LIBS"
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126
9127
9128 int
9129 main ()
9130 {
9131 main ();
9132 ;
9133 return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest$ac_exeext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_lib_Xbsd_main=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9161
9162 ac_cv_lib_Xbsd_main=no
9163 fi
9164 rm -f conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9167 fi
9168 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9169 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9170 if test $ac_cv_lib_Xbsd_main = yes; then
9171 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9172 fi
9173
9174
9175
9176 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9177 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9178 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-lpthreads $LIBS"
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9196 char cma_open ();
9197 int
9198 main ()
9199 {
9200 cma_open ();
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_pthreads_cma_open=yes
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_cv_lib_pthreads_cma_open=no
9232 fi
9233 rm -f conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9236 fi
9237 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9238 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9239 if test $ac_cv_lib_pthreads_cma_open = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define HAVE_LIBPTHREADS 1
9242 _ACEOF
9243
9244 LIBS="-lpthreads $LIBS"
9245
9246 fi
9247
9248
9249 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9250 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9251 if test -d /usr/X386/include; then
9252 HAVE_XFREE386=yes
9253 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9254 else
9255 HAVE_XFREE386=no
9256 fi
9257 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9258 echo "${ECHO_T}$HAVE_XFREE386" >&6
9259
9260
9261 case ${host_os} in
9262 aix*)
9263 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9264 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9265 if test "${gdb_cv_bigtoc+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268
9269 case $GCC in
9270 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9271 *) gdb_cv_bigtoc=-bbigtoc ;;
9272 esac
9273
9274 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281
9282 int
9283 main ()
9284 {
9285 int i;
9286 ;
9287 return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 :
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 gdb_cv_bigtoc=
9317 fi
9318 rm -f conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320
9321 fi
9322 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9323 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9324 ;;
9325 esac
9326
9327 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9328 # used for the tests that follow. We set them back to REAL_CFLAGS and
9329 # REAL_CPPFLAGS later on.
9330
9331 REAL_CPPFLAGS="$CPPFLAGS"
9332
9333 if test "${HAVE_X11}" = "yes"; then
9334 DEFS="$C_SWITCH_X_SITE $DEFS"
9335 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9336 LIBS="$LIBX $LIBS"
9337 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9338 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9339
9340 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9341 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9342 # but it's more convenient here to set LD_RUN_PATH
9343 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9344 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9345 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9346 export LD_RUN_PATH
9347 fi
9348
9349 if test "${opsys}" = "gnu-linux"; then
9350 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9351 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358
9359 int
9360 main ()
9361 {
9362 XOpenDisplay ("foo");
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 xlinux_first_failure=no
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 xlinux_first_failure=yes
9394 fi
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 if test "${xlinux_first_failure}" = "yes"; then
9398 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9399 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9400 OLD_CPPFLAGS="$CPPFLAGS"
9401 OLD_LIBS="$LIBS"
9402 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9403 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9404 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9405 LIBS="$LIBS -b i486-linuxaout"
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412
9413 int
9414 main ()
9415 {
9416 XOpenDisplay ("foo");
9417 ;
9418 return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 xlinux_second_failure=no
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 xlinux_second_failure=yes
9448 fi
9449 rm -f conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test "${xlinux_second_failure}" = "yes"; then
9452 # If we get the same failure with -b, there is no use adding -b.
9453 # So take it out. This plays safe.
9454 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9455 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9456 CPPFLAGS="$OLD_CPPFLAGS"
9457 LIBS="$OLD_LIBS"
9458 echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6
9460 else
9461 echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9463 fi
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466 echo "${ECHO_T}no" >&6
9467 fi
9468 fi
9469
9470 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9471 # header files included from there.
9472 echo "$as_me:$LINENO: checking for Xkb" >&5
9473 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9481 #include <X11/XKBlib.h>
9482 int
9483 main ()
9484 {
9485 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 emacs_xkb=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 emacs_xkb=no
9517 fi
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9521 echo "${ECHO_T}$emacs_xkb" >&6
9522 if test $emacs_xkb = yes; then
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_XKBGETKEYBOARD 1
9526 _ACEOF
9527
9528 fi
9529
9530
9531
9532
9533
9534 for ac_func in XrmSetDatabase XScreenResourceString \
9535 XScreenNumberOfScreen XSetWMProtocols
9536 do
9537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 echo "$as_me:$LINENO: checking for $ac_func" >&5
9539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9540 if eval "test \"\${$as_ac_var+set}\" = set"; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define $ac_func innocuous_$ac_func
9552
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char $ac_func (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9557
9558 #ifdef __STDC__
9559 # include <limits.h>
9560 #else
9561 # include <assert.h>
9562 #endif
9563
9564 #undef $ac_func
9565
9566 /* Override any gcc2 internal prototype to avoid an error. */
9567 #ifdef __cplusplus
9568 extern "C"
9569 {
9570 #endif
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9573 char $ac_func ();
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9578 choke me
9579 #else
9580 char (*f) () = $ac_func;
9581 #endif
9582 #ifdef __cplusplus
9583 }
9584 #endif
9585
9586 int
9587 main ()
9588 {
9589 return f != $ac_func;
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 eval "$as_ac_var=yes"
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 eval "$as_ac_var=no"
9621 fi
9622 rm -f conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 fi
9625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9627 if test `eval echo '${'$as_ac_var'}'` = yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9630 _ACEOF
9631
9632 fi
9633 done
9634
9635 fi
9636
9637 if test "${window_system}" = "x11"; then
9638 echo "$as_me:$LINENO: checking X11 version 6" >&5
9639 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9640 if test "${emacs_cv_x11_version_6+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <X11/Xlib.h>
9650 int
9651 main ()
9652 {
9653 #if XlibSpecificationRelease < 6
9654 fail;
9655 #endif
9656
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 emacs_cv_x11_version_6=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 emacs_cv_x11_version_6=no
9688 fi
9689 rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 fi
9692
9693 if test $emacs_cv_x11_version_6 = yes; then
9694 echo "$as_me:$LINENO: result: 6 or newer" >&5
9695 echo "${ECHO_T}6 or newer" >&6
9696
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_X11R6 1
9699 _ACEOF
9700
9701 else
9702 echo "$as_me:$LINENO: result: before 6" >&5
9703 echo "${ECHO_T}before 6" >&6
9704 fi
9705 fi
9706
9707 if test "${window_system}" = "x11"; then
9708 echo "$as_me:$LINENO: checking X11 version 5" >&5
9709 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9710 if test "${emacs_cv_x11_version_5+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <X11/Xlib.h>
9720 int
9721 main ()
9722 {
9723 #if XlibSpecificationRelease < 5
9724 fail;
9725 #endif
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 emacs_cv_x11_version_5=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 emacs_cv_x11_version_5=no
9758 fi
9759 rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 fi
9762
9763 if test $emacs_cv_x11_version_5 = yes; then
9764 echo "$as_me:$LINENO: result: 5 or newer" >&5
9765 echo "${ECHO_T}5 or newer" >&6
9766 HAVE_X11R5=yes
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_X11R5 1
9770 _ACEOF
9771
9772 else
9773 HAVE_X11R5=no
9774 echo "$as_me:$LINENO: result: before 5" >&5
9775 echo "${ECHO_T}before 5" >&6
9776 fi
9777 fi
9778
9779
9780
9781 HAVE_GTK=no
9782 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9783 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9784 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9785 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9786 { (exit 1); exit 1; }; };
9787 fi
9788 GLIB_REQUIRED=2.0.1
9789 GTK_REQUIRED=2.0.1
9790 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9791
9792 if test "X${with_pkg_config_prog}" != X; then
9793 PKG_CONFIG="${with_pkg_config_prog}"
9794 fi
9795
9796 succeeded=no
9797
9798 if test -z "$PKG_CONFIG"; then
9799 # Extract the first word of "pkg-config", so it can be a program name with args.
9800 set dummy pkg-config; ac_word=$2
9801 echo "$as_me:$LINENO: checking for $ac_word" >&5
9802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 case $PKG_CONFIG in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9809 ;;
9810 *)
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822 done
9823 done
9824
9825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9826 ;;
9827 esac
9828 fi
9829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9830
9831 if test -n "$PKG_CONFIG"; then
9832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9833 echo "${ECHO_T}$PKG_CONFIG" >&6
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9837 fi
9838
9839 fi
9840
9841 if test "$PKG_CONFIG" = "no" ; then
9842 echo "*** The pkg-config script could not be found. Make sure it is"
9843 echo "*** in your path, or give the full path to pkg-config with"
9844 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9846 else
9847 PKG_CONFIG_MIN_VERSION=0.9.0
9848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9849 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9850 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9851
9852 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9853 echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6
9855 succeeded=yes
9856
9857 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9858 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9859 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9860 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9861 echo "${ECHO_T}$GTK_CFLAGS" >&6
9862
9863 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9864 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9865 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9866 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9867 echo "${ECHO_T}$GTK_LIBS" >&6
9868 else
9869 GTK_CFLAGS=""
9870 GTK_LIBS=""
9871 ## If we have a custom action on failure, don't print errors, but
9872 ## do set a variable so people can do so.
9873 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9874 echo $GTK_PKG_ERRORS
9875 fi
9876
9877
9878
9879 else
9880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9882 fi
9883 fi
9884
9885 if test $succeeded = yes; then
9886 :
9887 else
9888 { { 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
9889 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;}
9890 { (exit 1); exit 1; }; }
9891 fi
9892
9893
9894
9895 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9896 CFLAGS="$CFLAGS $GTK_CFLAGS"
9897 LIBS="$GTK_LIBS $LIBS"
9898 HAVE_GTK=yes
9899
9900 cat >>confdefs.h <<\_ACEOF
9901 #define HAVE_GTK 1
9902 _ACEOF
9903
9904 USE_X_TOOLKIT=none
9905
9906 if test "$with_toolkit_scroll_bars" != no; then
9907 with_toolkit_scroll_bars=yes
9908 fi
9909
9910 HAVE_GTK_MULTIDISPLAY=no
9911
9912 for ac_func in gdk_display_open
9913 do
9914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915 echo "$as_me:$LINENO: checking for $ac_func" >&5
9916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9917 if eval "test \"\${$as_ac_var+set}\" = set"; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define $ac_func innocuous_$ac_func
9929
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char $ac_func (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9934
9935 #ifdef __STDC__
9936 # include <limits.h>
9937 #else
9938 # include <assert.h>
9939 #endif
9940
9941 #undef $ac_func
9942
9943 /* Override any gcc2 internal prototype to avoid an error. */
9944 #ifdef __cplusplus
9945 extern "C"
9946 {
9947 #endif
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950 char $ac_func ();
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9955 choke me
9956 #else
9957 char (*f) () = $ac_func;
9958 #endif
9959 #ifdef __cplusplus
9960 }
9961 #endif
9962
9963 int
9964 main ()
9965 {
9966 return f != $ac_func;
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 eval "$as_ac_var=yes"
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 eval "$as_ac_var=no"
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 fi
10002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10004 if test `eval echo '${'$as_ac_var'}'` = yes; then
10005 cat >>confdefs.h <<_ACEOF
10006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10007 _ACEOF
10008 HAVE_GTK_MULTIDISPLAY=yes
10009 fi
10010 done
10011
10012 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_GTK_MULTIDISPLAY 1
10016 _ACEOF
10017
10018 fi
10019 HAVE_GTK_FILE_SELECTION=no
10020
10021 for ac_func in gtk_file_selection_new
10022 do
10023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10024 echo "$as_me:$LINENO: checking for $ac_func" >&5
10025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10026 if eval "test \"\${$as_ac_var+set}\" = set"; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10037 #define $ac_func innocuous_$ac_func
10038
10039 /* System header to define __stub macros and hopefully few prototypes,
10040 which can conflict with char $ac_func (); below.
10041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10042 <limits.h> exists even on freestanding compilers. */
10043
10044 #ifdef __STDC__
10045 # include <limits.h>
10046 #else
10047 # include <assert.h>
10048 #endif
10049
10050 #undef $ac_func
10051
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 #ifdef __cplusplus
10054 extern "C"
10055 {
10056 #endif
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059 char $ac_func ();
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10064 choke me
10065 #else
10066 char (*f) () = $ac_func;
10067 #endif
10068 #ifdef __cplusplus
10069 }
10070 #endif
10071
10072 int
10073 main ()
10074 {
10075 return f != $ac_func;
10076 ;
10077 return 0;
10078 }
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_var=yes"
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 eval "$as_ac_var=no"
10107 fi
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 fi
10111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10113 if test `eval echo '${'$as_ac_var'}'` = yes; then
10114 cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10116 _ACEOF
10117 HAVE_GTK_FILE_SELECTION=yes
10118 fi
10119 done
10120
10121
10122 HAVE_GTK_FILE_CHOOSER=no
10123
10124 for ac_func in gtk_file_chooser_dialog_new
10125 do
10126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10127 echo "$as_me:$LINENO: checking for $ac_func" >&5
10128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10129 if eval "test \"\${$as_ac_var+set}\" = set"; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140 #define $ac_func innocuous_$ac_func
10141
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10146
10147 #ifdef __STDC__
10148 # include <limits.h>
10149 #else
10150 # include <assert.h>
10151 #endif
10152
10153 #undef $ac_func
10154
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 #ifdef __cplusplus
10157 extern "C"
10158 {
10159 #endif
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162 char $ac_func ();
10163 /* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10167 choke me
10168 #else
10169 char (*f) () = $ac_func;
10170 #endif
10171 #ifdef __cplusplus
10172 }
10173 #endif
10174
10175 int
10176 main ()
10177 {
10178 return f != $ac_func;
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 eval "$as_ac_var=yes"
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 eval "$as_ac_var=no"
10210 fi
10211 rm -f conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 fi
10214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10216 if test `eval echo '${'$as_ac_var'}'` = yes; then
10217 cat >>confdefs.h <<_ACEOF
10218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10219 _ACEOF
10220 HAVE_GTK_FILE_CHOOSER=yes
10221 fi
10222 done
10223
10224
10225 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10226 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10227
10228 cat >>confdefs.h <<\_ACEOF
10229 #define HAVE_GTK_FILE_BOTH 1
10230 _ACEOF
10231
10232 fi
10233
10234 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10235 HAVE_GTK_AND_PTHREAD=no
10236
10237 for ac_header in pthread.h
10238 do
10239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241 echo "$as_me:$LINENO: checking for $ac_header" >&5
10242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 fi
10246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10248 else
10249 # Is the header compilable?
10250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10259 #include <$ac_header>
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_header_compiler=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 ac_header_compiler=no
10288 fi
10289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291 echo "${ECHO_T}$ac_header_compiler" >&6
10292
10293 # Is the header present?
10294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <$ac_header>
10303 _ACEOF
10304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null; then
10312 if test -s conftest.err; then
10313 ac_cpp_err=$ac_c_preproc_warn_flag
10314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10315 else
10316 ac_cpp_err=
10317 fi
10318 else
10319 ac_cpp_err=yes
10320 fi
10321 if test -z "$ac_cpp_err"; then
10322 ac_header_preproc=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_header_preproc=no
10328 fi
10329 rm -f conftest.err conftest.$ac_ext
10330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331 echo "${ECHO_T}$ac_header_preproc" >&6
10332
10333 # So? What about this header?
10334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335 yes:no: )
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340 ac_header_preproc=yes
10341 ;;
10342 no:yes:* )
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10355 (
10356 cat <<\_ASBOX
10357 ## ------------------------------------------ ##
10358 ## Report this to the AC_PACKAGE_NAME lists. ##
10359 ## ------------------------------------------ ##
10360 _ASBOX
10361 ) |
10362 sed "s/^/$as_me: WARNING: /" >&2
10363 ;;
10364 esac
10365 echo "$as_me:$LINENO: checking for $ac_header" >&5
10366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 eval "$as_ac_Header=\$ac_header_preproc"
10371 fi
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10374
10375 fi
10376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379 _ACEOF
10380
10381 fi
10382
10383 done
10384
10385 if test "$ac_cv_header_pthread_h"; then
10386 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10387 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10388 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthread $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399
10400 /* Override any gcc2 internal prototype to avoid an error. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char pthread_self ();
10407 int
10408 main ()
10409 {
10410 pthread_self ();
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_lib_pthread_pthread_self=yes
10437 else
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 ac_cv_lib_pthread_pthread_self=no
10442 fi
10443 rm -f conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10448 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10449 if test $ac_cv_lib_pthread_pthread_self = yes; then
10450 HAVE_GTK_AND_PTHREAD=yes
10451 fi
10452
10453 fi
10454 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10455 GTK_LIBS="$GTK_LIBS -lpthread"
10456
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_GTK_AND_PTHREAD 1
10459 _ACEOF
10460
10461 fi
10462 fi
10463 fi
10464
10465 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10466 if test x"${HAVE_X11R5}" = xyes; then
10467 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10468 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10469 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478
10479 #include <X11/Intrinsic.h>
10480 #include <X11/Xaw/Simple.h>
10481 int
10482 main ()
10483 {
10484
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try='test -s conftest$ac_exeext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 emacs_cv_x11_version_5_with_xaw=yes
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515 emacs_cv_x11_version_5_with_xaw=no
10516 fi
10517 rm -f conftest.err conftest.$ac_objext \
10518 conftest$ac_exeext conftest.$ac_ext
10519 fi
10520
10521 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10522 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10523 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10524 USE_X_TOOLKIT=LUCID
10525 else
10526 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10527 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10528 USE_X_TOOLKIT=none
10529 fi
10530 else
10531 USE_X_TOOLKIT=none
10532 fi
10533 fi
10534
10535 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10536
10537 if test "${USE_X_TOOLKIT}" != "none"; then
10538 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10539 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10540 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <X11/Intrinsic.h>
10550 int
10551 main ()
10552 {
10553 #if XtSpecificationRelease < 6
10554 fail;
10555 #endif
10556
10557 ;
10558 return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10564 ac_status=$?
10565 grep -v '^ *+' conftest.er1 >conftest.err
10566 rm -f conftest.er1
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 emacs_cv_x11_toolkit_version_6=yes
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 emacs_cv_x11_toolkit_version_6=no
10588 fi
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 fi
10592
10593 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10594 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10595 echo "$as_me:$LINENO: result: 6 or newer" >&5
10596 echo "${ECHO_T}6 or newer" >&6
10597
10598 cat >>confdefs.h <<\_ACEOF
10599 #define HAVE_X11XTR6 1
10600 _ACEOF
10601
10602 else
10603 echo "$as_me:$LINENO: result: before 6" >&5
10604 echo "${ECHO_T}before 6" >&6
10605 fi
10606
10607 OLDLIBS="$LIBS"
10608 if test x$HAVE_X11XTR6 = xyes; then
10609 LIBS="-lXt -lSM -lICE $LIBS"
10610 else
10611 LIBS="-lXt $LIBS"
10612 fi
10613
10614 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10615 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10616 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lXmu $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627
10628 /* Override any gcc2 internal prototype to avoid an error. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10634 char XmuConvertStandardSelection ();
10635 int
10636 main ()
10637 {
10638 XmuConvertStandardSelection ();
10639 ;
10640 return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10670 fi
10671 rm -f conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10674 fi
10675 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10676 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10677 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_LIBXMU 1
10680 _ACEOF
10681
10682 LIBS="-lXmu $LIBS"
10683
10684 fi
10685
10686 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10687 fi
10688
10689 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10690 if test "${HAVE_X11}" = "yes"; then
10691 if test "${USE_X_TOOLKIT}" != "none"; then
10692
10693 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10694 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10695 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 ac_check_lib_save_LIBS=$LIBS
10699 LIBS="-lXext $LIBS"
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706
10707 /* Override any gcc2 internal prototype to avoid an error. */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char XShapeQueryExtension ();
10714 int
10715 main ()
10716 {
10717 XShapeQueryExtension ();
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_lib_Xext_XShapeQueryExtension=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_cv_lib_Xext_XShapeQueryExtension=no
10749 fi
10750 rm -f conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10753 fi
10754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10755 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10756 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_LIBXEXT 1
10759 _ACEOF
10760
10761 LIBS="-lXext $LIBS"
10762
10763 fi
10764
10765 fi
10766 fi
10767
10768 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10769 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10770 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10771 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <Xm/Xm.h>
10781 int
10782 main ()
10783 {
10784 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10785 int x = 5;
10786 #else
10787 Motif version prior to 2.1.
10788 #endif
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 emacs_cv_motif_version_2_1=yes
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 emacs_cv_motif_version_2_1=no
10820 fi
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 fi
10823 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10824 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10825 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10826 if test $emacs_cv_motif_version_2_1 = yes; then
10827 HAVE_LIBXP=no
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define HAVE_MOTIF_2_1 1
10831 _ACEOF
10832
10833 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10834 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10835 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-lXp $LIBS"
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846
10847 /* Override any gcc2 internal prototype to avoid an error. */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10853 char XpCreateContext ();
10854 int
10855 main ()
10856 {
10857 XpCreateContext ();
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_Xp_XpCreateContext=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_Xp_XpCreateContext=no
10889 fi
10890 rm -f conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10895 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10896 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10897 HAVE_LIBXP=yes
10898 fi
10899
10900 if test ${HAVE_LIBXP} = yes; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_LIBXP 1
10904 _ACEOF
10905
10906 fi
10907 else
10908 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10909 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10910 if test "${emacs_cv_lesstif+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 # We put this in CFLAGS temporarily to precede other -I options
10914 # that might be in CFLAGS temporarily.
10915 # We put this in CPPFLAGS where it precedes the other -I options.
10916 OLD_CPPFLAGS=$CPPFLAGS
10917 OLD_CFLAGS=$CFLAGS
10918 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10919 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10927 int
10928 main ()
10929 {
10930 int x = 5;
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 emacs_cv_lesstif=yes
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961 emacs_cv_lesstif=no
10962 fi
10963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10964 fi
10965 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10966 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10967 if test $emacs_cv_lesstif = yes; then
10968 # Make sure this -I option remains in CPPFLAGS after it is set
10969 # back to REAL_CPPFLAGS.
10970 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10971 # have those other -I options anyway. Ultimately, having this
10972 # directory ultimately in CPPFLAGS will be enough.
10973 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10974 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10975 else
10976 CFLAGS=$OLD_CFLAGS
10977 CPPFLAGS=$OLD_CPPFLAGS
10978 fi
10979 fi
10980 fi
10981
10982 ### Is -lXaw3d available?
10983 HAVE_XAW3D=no
10984 if test "${HAVE_X11}" = "yes"; then
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10987 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10988 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <X11/Xaw3d/Scrollbar.h>
10998 _ACEOF
10999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev/null; then
11007 if test -s conftest.err; then
11008 ac_cpp_err=$ac_c_preproc_warn_flag
11009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11010 else
11011 ac_cpp_err=
11012 fi
11013 else
11014 ac_cpp_err=yes
11015 fi
11016 if test -z "$ac_cpp_err"; then
11017 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11023 fi
11024 rm -f conftest.err conftest.$ac_ext
11025 fi
11026 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11027 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11028 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11029 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11030 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11031 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lXaw3d $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char XawScrollbarSetThumb ();
11050 int
11051 main ()
11052 {
11053 XawScrollbarSetThumb ();
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11085 fi
11086 rm -f conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11089 fi
11090 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11091 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11092 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11093 HAVE_XAW3D=yes
11094 fi
11095
11096 fi
11097
11098
11099 if test "${HAVE_XAW3D}" = "yes"; then
11100
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_XAW3D 1
11103 _ACEOF
11104
11105 fi
11106 fi
11107 fi
11108
11109
11110
11111 USE_TOOLKIT_SCROLL_BARS=no
11112 if test "${with_toolkit_scroll_bars}" != "no"; then
11113 if test "${USE_X_TOOLKIT}" != "none"; then
11114 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define USE_TOOLKIT_SCROLL_BARS 1
11117 _ACEOF
11118
11119 HAVE_XAW3D=no
11120 USE_TOOLKIT_SCROLL_BARS=yes
11121 elif test "${HAVE_XAW3D}" = "yes"; then
11122 cat >>confdefs.h <<\_ACEOF
11123 #define USE_TOOLKIT_SCROLL_BARS 1
11124 _ACEOF
11125
11126 USE_TOOLKIT_SCROLL_BARS=yes
11127 fi
11128 elif test "${HAVE_GTK}" = "yes"; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define USE_TOOLKIT_SCROLL_BARS 1
11131 _ACEOF
11132
11133 USE_TOOLKIT_SCROLL_BARS=yes
11134 elif test "${HAVE_CARBON}" = "yes"; then
11135 cat >>confdefs.h <<\_ACEOF
11136 #define USE_TOOLKIT_SCROLL_BARS 1
11137 _ACEOF
11138
11139 USE_TOOLKIT_SCROLL_BARS=yes
11140 fi
11141 fi
11142
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149
11150 #include <X11/Xlib.h>
11151 #include <X11/Xresource.h>
11152 int
11153 main ()
11154 {
11155 XIMProc callback;
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 HAVE_XIM=yes
11182
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_XIM 1
11185 _ACEOF
11186
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 HAVE_XIM=no
11192 fi
11193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11194
11195
11196 if test "${with_xim}" != "no"; then
11197
11198 cat >>confdefs.h <<\_ACEOF
11199 #define USE_XIM 1
11200 _ACEOF
11201
11202 fi
11203
11204
11205 if test "${HAVE_XIM}" != "no"; then
11206 late_CFLAGS=$CFLAGS
11207 if test "$GCC" = yes; then
11208 CFLAGS="$CFLAGS --pedantic-errors"
11209 fi
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216
11217 #include <X11/Xlib.h>
11218 #include <X11/Xresource.h>
11219 int
11220 main ()
11221 {
11222 Display *display;
11223 XrmDatabase db;
11224 char *res_name;
11225 char *res_class;
11226 XIMProc callback;
11227 XPointer *client_data;
11228 #ifndef __GNUC__
11229 /* If we're not using GCC, it's probably not XFree86, and this is
11230 probably right, but we can't use something like --pedantic-errors. */
11231 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11232 char*, XIMProc, XPointer*);
11233 #endif
11234 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11235 client_data);
11236 ;
11237 return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 emacs_cv_arg6_star=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 fi
11267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11268
11269 if test "$emacs_cv_arg6_star" = yes; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11272 _ACEOF
11273
11274 else
11275 cat >>confdefs.h <<\_ACEOF
11276 #define XRegisterIMInstantiateCallback_arg6 XPointer
11277 _ACEOF
11278
11279 fi
11280 CFLAGS=$late_CFLAGS
11281 fi
11282
11283 ### Use -lXpm if available, unless `--with-xpm=no'.
11284 HAVE_XPM=no
11285 if test "${HAVE_X11}" = "yes"; then
11286 if test "${with_xpm}" != "no"; then
11287 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11288 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11289 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 fi
11293 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11294 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11295 else
11296 # Is the header compilable?
11297 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11298 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 $ac_includes_default
11306 #include <X11/xpm.h>
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler=yes
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 ac_header_compiler=no
11335 fi
11336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 echo "${ECHO_T}$ac_header_compiler" >&6
11339
11340 # Is the header present?
11341 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11342 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <X11/xpm.h>
11350 _ACEOF
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11362 else
11363 ac_cpp_err=
11364 fi
11365 else
11366 ac_cpp_err=yes
11367 fi
11368 if test -z "$ac_cpp_err"; then
11369 ac_header_preproc=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 ac_header_preproc=no
11375 fi
11376 rm -f conftest.err conftest.$ac_ext
11377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6
11379
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 yes:no: )
11383 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11388 ;;
11389 no:yes:* )
11390 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11402 (
11403 cat <<\_ASBOX
11404 ## ------------------------------------------ ##
11405 ## Report this to the AC_PACKAGE_NAME lists. ##
11406 ## ------------------------------------------ ##
11407 _ASBOX
11408 ) |
11409 sed "s/^/$as_me: WARNING: /" >&2
11410 ;;
11411 esac
11412 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11413 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11414 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 ac_cv_header_X11_xpm_h=$ac_header_preproc
11418 fi
11419 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11421
11422 fi
11423 if test $ac_cv_header_X11_xpm_h = yes; then
11424 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11425 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11426 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429 ac_check_lib_save_LIBS=$LIBS
11430 LIBS="-lXpm -lX11 $LIBS"
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444 char XpmReadFileToPixmap ();
11445 int
11446 main ()
11447 {
11448 XpmReadFileToPixmap ();
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest$ac_exeext'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11480 fi
11481 rm -f conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11486 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11487 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11488 HAVE_XPM=yes
11489 fi
11490
11491 fi
11492
11493
11494 if test "${HAVE_XPM}" = "yes"; then
11495 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11496 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include "X11/xpm.h"
11504 #ifndef XpmReturnAllocPixels
11505 no_return_alloc_pixels
11506 #endif
11507
11508 _ACEOF
11509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11510 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11511 HAVE_XPM=no
11512 else
11513 HAVE_XPM=yes
11514 fi
11515 rm -f conftest*
11516
11517
11518 if test "${HAVE_XPM}" = "yes"; then
11519 echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11521 else
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11524 fi
11525 fi
11526 fi
11527
11528 if test "${HAVE_XPM}" = "yes"; then
11529
11530 cat >>confdefs.h <<\_ACEOF
11531 #define HAVE_XPM 1
11532 _ACEOF
11533
11534 fi
11535 fi
11536
11537 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11538 HAVE_JPEG=no
11539 if test "${HAVE_X11}" = "yes"; then
11540 if test "${with_jpeg}" != "no"; then
11541 if test "${ac_cv_header_jerror_h+set}" = set; then
11542 echo "$as_me:$LINENO: checking for jerror.h" >&5
11543 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 fi
11547 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11548 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11549 else
11550 # Is the header compilable?
11551 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11552 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <jerror.h>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 ac_header_compiler=no
11589 fi
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11593
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11596 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <jerror.h>
11604 _ACEOF
11605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } >/dev/null; then
11613 if test -s conftest.err; then
11614 ac_cpp_err=$ac_c_preproc_warn_flag
11615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11616 else
11617 ac_cpp_err=
11618 fi
11619 else
11620 ac_cpp_err=yes
11621 fi
11622 if test -z "$ac_cpp_err"; then
11623 ac_header_preproc=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_header_preproc=no
11629 fi
11630 rm -f conftest.err conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6
11633
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11642 ;;
11643 no:yes:* )
11644 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11656 (
11657 cat <<\_ASBOX
11658 ## ------------------------------------------ ##
11659 ## Report this to the AC_PACKAGE_NAME lists. ##
11660 ## ------------------------------------------ ##
11661 _ASBOX
11662 ) |
11663 sed "s/^/$as_me: WARNING: /" >&2
11664 ;;
11665 esac
11666 echo "$as_me:$LINENO: checking for jerror.h" >&5
11667 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11668 if test "${ac_cv_header_jerror_h+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671 ac_cv_header_jerror_h=$ac_header_preproc
11672 fi
11673 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11675
11676 fi
11677 if test $ac_cv_header_jerror_h = yes; then
11678 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11679 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11680 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ljpeg $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char jpeg_destroy_compress ();
11699 int
11700 main ()
11701 {
11702 jpeg_destroy_compress ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11734 fi
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11738 fi
11739 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11740 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11741 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11742 HAVE_JPEG=yes
11743 fi
11744
11745 fi
11746
11747
11748 fi
11749
11750
11751 if test "${HAVE_JPEG}" = "yes"; then
11752 cat >>confdefs.h <<\_ACEOF
11753 #define HAVE_JPEG 1
11754 _ACEOF
11755
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <jpeglib.h>
11763 version=JPEG_LIB_VERSION
11764
11765 _ACEOF
11766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11767 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11768 cat >>confdefs.h <<\_ACEOF
11769 #define HAVE_JPEG 1
11770 _ACEOF
11771
11772 else
11773 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11774 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11775 HAVE_JPEG=no
11776 fi
11777 rm -f conftest*
11778
11779 fi
11780 fi
11781
11782 ### Use -lpng if available, unless `--with-png=no'.
11783 HAVE_PNG=no
11784 if test "${HAVE_X11}" = "yes"; then
11785 if test "${with_png}" != "no"; then
11786 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11787 # in /usr/include/libpng.
11788
11789
11790 for ac_header in png.h libpng/png.h
11791 do
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 fi
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 else
11802 # Is the header compilable?
11803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 #include <$ac_header>
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_header_compiler=no
11841 fi
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 echo "${ECHO_T}$ac_header_compiler" >&6
11845
11846 # Is the header present?
11847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } >/dev/null; then
11865 if test -s conftest.err; then
11866 ac_cpp_err=$ac_c_preproc_warn_flag
11867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868 else
11869 ac_cpp_err=
11870 fi
11871 else
11872 ac_cpp_err=yes
11873 fi
11874 if test -z "$ac_cpp_err"; then
11875 ac_header_preproc=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_header_preproc=no
11881 fi
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11885
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 yes:no: )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc=yes
11894 ;;
11895 no:yes:* )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908 (
11909 cat <<\_ASBOX
11910 ## ------------------------------------------ ##
11911 ## Report this to the AC_PACKAGE_NAME lists. ##
11912 ## ------------------------------------------ ##
11913 _ASBOX
11914 ) |
11915 sed "s/^/$as_me: WARNING: /" >&2
11916 ;;
11917 esac
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 eval "$as_ac_Header=\$ac_header_preproc"
11924 fi
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11927
11928 fi
11929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 _ACEOF
11933
11934 fi
11935
11936 done
11937
11938 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11939 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11940 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11941 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-lpng -lz -lm $LIBS"
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952
11953 /* Override any gcc2 internal prototype to avoid an error. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 /* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959 char png_get_channels ();
11960 int
11961 main ()
11962 {
11963 png_get_channels ();
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_png_png_get_channels=yes
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_cv_lib_png_png_get_channels=no
11995 fi
11996 rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12001 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12002 if test $ac_cv_lib_png_png_get_channels = yes; then
12003 HAVE_PNG=yes
12004 fi
12005
12006 fi
12007 fi
12008
12009 if test "${HAVE_PNG}" = "yes"; then
12010
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_PNG 1
12013 _ACEOF
12014
12015 fi
12016 fi
12017
12018 ### Use -ltiff if available, unless `--with-tiff=no'.
12019 HAVE_TIFF=no
12020 if test "${HAVE_X11}" = "yes"; then
12021 if test "${with_tiff}" != "no"; then
12022 if test "${ac_cv_header_tiffio_h+set}" = set; then
12023 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12024 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 fi
12028 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12029 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12030 else
12031 # Is the header compilable?
12032 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12033 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 #include <tiffio.h>
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_header_compiler=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_header_compiler=no
12070 fi
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12073 echo "${ECHO_T}$ac_header_compiler" >&6
12074
12075 # Is the header present?
12076 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12077 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <tiffio.h>
12085 _ACEOF
12086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } >/dev/null; then
12094 if test -s conftest.err; then
12095 ac_cpp_err=$ac_c_preproc_warn_flag
12096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12097 else
12098 ac_cpp_err=
12099 fi
12100 else
12101 ac_cpp_err=yes
12102 fi
12103 if test -z "$ac_cpp_err"; then
12104 ac_header_preproc=yes
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_header_preproc=no
12110 fi
12111 rm -f conftest.err conftest.$ac_ext
12112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12113 echo "${ECHO_T}$ac_header_preproc" >&6
12114
12115 # So? What about this header?
12116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117 yes:no: )
12118 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12119 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12121 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12122 ac_header_preproc=yes
12123 ;;
12124 no:yes:* )
12125 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12126 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12128 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12130 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12132 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12134 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12136 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12137 (
12138 cat <<\_ASBOX
12139 ## ------------------------------------------ ##
12140 ## Report this to the AC_PACKAGE_NAME lists. ##
12141 ## ------------------------------------------ ##
12142 _ASBOX
12143 ) |
12144 sed "s/^/$as_me: WARNING: /" >&2
12145 ;;
12146 esac
12147 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12148 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12149 if test "${ac_cv_header_tiffio_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_cv_header_tiffio_h=$ac_header_preproc
12153 fi
12154 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12156
12157 fi
12158 if test $ac_cv_header_tiffio_h = yes; then
12159 tifflibs="-lz -lm"
12160 # At least one tiff package requires the jpeg library.
12161 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12162 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12163 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12164 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ltiff $tifflibs $LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175
12176 /* Override any gcc2 internal prototype to avoid an error. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12182 char TIFFGetVersion ();
12183 int
12184 main ()
12185 {
12186 TIFFGetVersion ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_lib_tiff_TIFFGetVersion=yes
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_cv_lib_tiff_TIFFGetVersion=no
12218 fi
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12224 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12225 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12226 HAVE_TIFF=yes
12227 fi
12228
12229 fi
12230
12231
12232 fi
12233
12234 if test "${HAVE_TIFF}" = "yes"; then
12235
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_TIFF 1
12238 _ACEOF
12239
12240 fi
12241 fi
12242
12243 ### Use -lgif if available, unless `--with-gif=no'.
12244 HAVE_GIF=no
12245 if test "${HAVE_X11}" = "yes"; then
12246 if test "${with_gif}" != "no"; then
12247 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12248 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12249 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 fi
12253 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12254 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12255 else
12256 # Is the header compilable?
12257 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12258 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12266 #include <gif_lib.h>
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_header_compiler=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_header_compiler=no
12295 fi
12296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12298 echo "${ECHO_T}$ac_header_compiler" >&6
12299
12300 # Is the header present?
12301 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12302 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <gif_lib.h>
12310 _ACEOF
12311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev/null; then
12319 if test -s conftest.err; then
12320 ac_cpp_err=$ac_c_preproc_warn_flag
12321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12322 else
12323 ac_cpp_err=
12324 fi
12325 else
12326 ac_cpp_err=yes
12327 fi
12328 if test -z "$ac_cpp_err"; then
12329 ac_header_preproc=yes
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 ac_header_preproc=no
12335 fi
12336 rm -f conftest.err conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12338 echo "${ECHO_T}$ac_header_preproc" >&6
12339
12340 # So? What about this header?
12341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12342 yes:no: )
12343 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12344 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12346 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12347 ac_header_preproc=yes
12348 ;;
12349 no:yes:* )
12350 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12351 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12353 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12355 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12357 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12359 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12361 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12362 (
12363 cat <<\_ASBOX
12364 ## ------------------------------------------ ##
12365 ## Report this to the AC_PACKAGE_NAME lists. ##
12366 ## ------------------------------------------ ##
12367 _ASBOX
12368 ) |
12369 sed "s/^/$as_me: WARNING: /" >&2
12370 ;;
12371 esac
12372 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12373 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12374 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 ac_cv_header_gif_lib_h=$ac_header_preproc
12378 fi
12379 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12380 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12381
12382 fi
12383 if test $ac_cv_header_gif_lib_h = yes; then
12384 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12385 # Earlier versions can crash Emacs.
12386 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12387 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12388 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lungif $LIBS"
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12406 char EGifPutExtensionLast ();
12407 int
12408 main ()
12409 {
12410 EGifPutExtensionLast ();
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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_cv_lib_ungif_EGifPutExtensionLast=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_cv_lib_ungif_EGifPutExtensionLast=no
12442 fi
12443 rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12448 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12449 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12450 HAVE_GIF=yes
12451 fi
12452
12453 fi
12454
12455
12456 fi
12457
12458 if test "${HAVE_GIF}" = "yes"; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_GIF 1
12462 _ACEOF
12463
12464 fi
12465 fi
12466
12467 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12468 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12469 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12475 else
12476 # Is the header compilable?
12477 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12478 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 #include <malloc/malloc.h>
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest.$ac_objext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_header_compiler=yes
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ac_header_compiler=no
12515 fi
12516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12518 echo "${ECHO_T}$ac_header_compiler" >&6
12519
12520 # Is the header present?
12521 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12522 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <malloc/malloc.h>
12530 _ACEOF
12531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } >/dev/null; then
12539 if test -s conftest.err; then
12540 ac_cpp_err=$ac_c_preproc_warn_flag
12541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12542 else
12543 ac_cpp_err=
12544 fi
12545 else
12546 ac_cpp_err=yes
12547 fi
12548 if test -z "$ac_cpp_err"; then
12549 ac_header_preproc=yes
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 ac_header_preproc=no
12555 fi
12556 rm -f conftest.err conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6
12559
12560 # So? What about this header?
12561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12562 yes:no: )
12563 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12566 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12567 ac_header_preproc=yes
12568 ;;
12569 no:yes:* )
12570 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12571 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12573 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12575 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12577 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12579 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12581 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12582 (
12583 cat <<\_ASBOX
12584 ## ------------------------------------------ ##
12585 ## Report this to the AC_PACKAGE_NAME lists. ##
12586 ## ------------------------------------------ ##
12587 _ASBOX
12588 ) |
12589 sed "s/^/$as_me: WARNING: /" >&2
12590 ;;
12591 esac
12592 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12593 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12594 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12600 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12601
12602 fi
12603 if test $ac_cv_header_malloc_malloc_h = yes; then
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_MALLOC_MALLOC_H 1
12607 _ACEOF
12608
12609 fi
12610
12611
12612
12613 ### Use Mac OS X Carbon API to implement GUI.
12614 if test "${HAVE_CARBON}" = "yes"; then
12615
12616 cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_CARBON 1
12618 _ACEOF
12619
12620 window_system=mac
12621 ## Specify the install directory
12622 carbon_appdir=
12623 if test "${carbon_appdir_x}" != ""; then
12624 case ${carbon_appdir_x} in
12625 y | ye | yes) carbon_appdir=/Applications ;;
12626 * ) carbon_appdir=${carbon_appdir_x} ;;
12627 esac
12628 fi
12629 # We also have mouse menus.
12630 HAVE_MENUS=yes
12631 fi
12632
12633 ### Use session management (-lSM -lICE) if available
12634 HAVE_X_SM=no
12635 if test "${HAVE_X11}" = "yes"; then
12636 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12637 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12638 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12644 else
12645 # Is the header compilable?
12646 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12647 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 #include <X11/SM/SMlib.h>
12656 _ACEOF
12657 rm -f conftest.$ac_objext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 ac_header_compiler=no
12684 fi
12685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12688
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12691 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 #include <X11/SM/SMlib.h>
12699 _ACEOF
12700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev/null; then
12708 if test -s conftest.err; then
12709 ac_cpp_err=$ac_c_preproc_warn_flag
12710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12711 else
12712 ac_cpp_err=
12713 fi
12714 else
12715 ac_cpp_err=yes
12716 fi
12717 if test -z "$ac_cpp_err"; then
12718 ac_header_preproc=yes
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_header_preproc=no
12724 fi
12725 rm -f conftest.err conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12728
12729 # So? What about this header?
12730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12731 yes:no: )
12732 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12735 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12736 ac_header_preproc=yes
12737 ;;
12738 no:yes:* )
12739 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12740 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12741 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12742 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12744 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12746 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12750 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12751 (
12752 cat <<\_ASBOX
12753 ## ------------------------------------------ ##
12754 ## Report this to the AC_PACKAGE_NAME lists. ##
12755 ## ------------------------------------------ ##
12756 _ASBOX
12757 ) |
12758 sed "s/^/$as_me: WARNING: /" >&2
12759 ;;
12760 esac
12761 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12762 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12763 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12767 fi
12768 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12769 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12770
12771 fi
12772 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12773 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12774 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12775 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778 ac_check_lib_save_LIBS=$LIBS
12779 LIBS="-lSM -lICE $LIBS"
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786
12787 /* Override any gcc2 internal prototype to avoid an error. */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 /* We use char because int might match the return type of a gcc2
12792 builtin and then its argument prototype would still apply. */
12793 char SmcOpenConnection ();
12794 int
12795 main ()
12796 {
12797 SmcOpenConnection ();
12798 ;
12799 return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lib_SM_SmcOpenConnection=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_cv_lib_SM_SmcOpenConnection=no
12829 fi
12830 rm -f conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12833 fi
12834 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12835 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12836 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12837 HAVE_X_SM=yes
12838 fi
12839
12840 fi
12841
12842
12843
12844 if test "${HAVE_X_SM}" = "yes"; then
12845
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_X_SM 1
12848 _ACEOF
12849
12850 case "$LIBS" in
12851 *-lSM*) ;;
12852 *) LIBS="-lSM -lICE $LIBS" ;;
12853 esac
12854 fi
12855 fi
12856
12857 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12858 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12859 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12860 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <netdb.h>
12870 int
12871 main ()
12872 {
12873 return h_errno;
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 emacs_cv_netdb_declares_h_errno=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 emacs_cv_netdb_declares_h_errno=no
12905 fi
12906 rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 fi
12909 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12910 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12911 if test $emacs_cv_netdb_declares_h_errno = yes; then
12912
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_H_ERRNO 1
12915 _ACEOF
12916
12917 fi
12918
12919 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12920 # for constant arguments. Useless!
12921 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12922 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12923 if test "${ac_cv_working_alloca_h+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 #include <alloca.h>
12933 int
12934 main ()
12935 {
12936 char *p = (char *) alloca (2 * sizeof (int));
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_working_alloca_h=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_cv_working_alloca_h=no
12968 fi
12969 rm -f conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 fi
12972 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12973 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12974 if test $ac_cv_working_alloca_h = yes; then
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_ALLOCA_H 1
12978 _ACEOF
12979
12980 fi
12981
12982 echo "$as_me:$LINENO: checking for alloca" >&5
12983 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12984 if test "${ac_cv_func_alloca_works+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 #ifdef __GNUC__
12994 # define alloca __builtin_alloca
12995 #else
12996 # ifdef _MSC_VER
12997 # include <malloc.h>
12998 # define alloca _alloca
12999 # else
13000 # if HAVE_ALLOCA_H
13001 # include <alloca.h>
13002 # else
13003 # ifdef _AIX
13004 #pragma alloca
13005 # else
13006 # ifndef alloca /* predefined by HP cc +Olibcalls */
13007 char *alloca ();
13008 # endif
13009 # endif
13010 # endif
13011 # endif
13012 #endif
13013
13014 int
13015 main ()
13016 {
13017 char *p = (char *) alloca (1);
13018 ;
13019 return 0;
13020 }
13021 _ACEOF
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_func_alloca_works=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 ac_cv_func_alloca_works=no
13049 fi
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 fi
13053 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13054 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13055
13056 if test $ac_cv_func_alloca_works = yes; then
13057
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_ALLOCA 1
13060 _ACEOF
13061
13062 else
13063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13064 # that cause trouble. Some versions do not even contain alloca or
13065 # contain a buggy version. If you still want to use their alloca,
13066 # use ar to extract alloca.o from them instead of compiling alloca.c.
13067
13068 ALLOCA=alloca.$ac_objext
13069
13070 cat >>confdefs.h <<\_ACEOF
13071 #define C_ALLOCA 1
13072 _ACEOF
13073
13074
13075 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13076 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13077 if test "${ac_cv_os_cray+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h. */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #if defined(CRAY) && ! defined(CRAY2)
13087 webecray
13088 #else
13089 wenotbecray
13090 #endif
13091
13092 _ACEOF
13093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13094 $EGREP "webecray" >/dev/null 2>&1; then
13095 ac_cv_os_cray=yes
13096 else
13097 ac_cv_os_cray=no
13098 fi
13099 rm -f conftest*
13100
13101 fi
13102 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13103 echo "${ECHO_T}$ac_cv_os_cray" >&6
13104 if test $ac_cv_os_cray = yes; then
13105 for ac_func in _getb67 GETB67 getb67; do
13106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107 echo "$as_me:$LINENO: checking for $ac_func" >&5
13108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_var+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120 #define $ac_func innocuous_$ac_func
13121
13122 /* System header to define __stub macros and hopefully few prototypes,
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13126
13127 #ifdef __STDC__
13128 # include <limits.h>
13129 #else
13130 # include <assert.h>
13131 #endif
13132
13133 #undef $ac_func
13134
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 #ifdef __cplusplus
13137 extern "C"
13138 {
13139 #endif
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char $ac_func ();
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 char (*f) () = $ac_func;
13150 #endif
13151 #ifdef __cplusplus
13152 }
13153 #endif
13154
13155 int
13156 main ()
13157 {
13158 return f != $ac_func;
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 eval "$as_ac_var=yes"
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 eval "$as_ac_var=no"
13190 fi
13191 rm -f conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 fi
13194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13196 if test `eval echo '${'$as_ac_var'}'` = yes; then
13197
13198 cat >>confdefs.h <<_ACEOF
13199 #define CRAY_STACKSEG_END $ac_func
13200 _ACEOF
13201
13202 break
13203 fi
13204
13205 done
13206 fi
13207
13208 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13209 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13210 if test "${ac_cv_c_stack_direction+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 if test "$cross_compiling" = yes; then
13214 ac_cv_c_stack_direction=0
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 int
13223 find_stack_direction ()
13224 {
13225 static char *addr = 0;
13226 auto char dummy;
13227 if (addr == 0)
13228 {
13229 addr = &dummy;
13230 return find_stack_direction ();
13231 }
13232 else
13233 return (&dummy > addr) ? 1 : -1;
13234 }
13235
13236 int
13237 main ()
13238 {
13239 exit (find_stack_direction () < 0);
13240 }
13241 _ACEOF
13242 rm -f conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_c_stack_direction=1
13254 else
13255 echo "$as_me: program exited with status $ac_status" >&5
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 ( exit $ac_status )
13260 ac_cv_c_stack_direction=-1
13261 fi
13262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 fi
13265 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13266 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define STACK_DIRECTION $ac_cv_c_stack_direction
13270 _ACEOF
13271
13272
13273 fi
13274
13275
13276 # fmod, logb, and frexp are found in -lm on most systems.
13277 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13278
13279 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13280 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13281 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-lm $LIBS"
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292
13293 /* Override any gcc2 internal prototype to avoid an error. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 /* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13299 char sqrt ();
13300 int
13301 main ()
13302 {
13303 sqrt ();
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310 (eval $ac_link) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s 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_lib_m_sqrt=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_cv_lib_m_sqrt=no
13335 fi
13336 rm -f conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13339 fi
13340 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13341 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13342 if test $ac_cv_lib_m_sqrt = yes; then
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_LIBM 1
13345 _ACEOF
13346
13347 LIBS="-lm $LIBS"
13348
13349 fi
13350
13351
13352 # Check for mail-locking functions in a "mail" library. Probably this should
13353 # have the same check as for liblockfile below.
13354
13355 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13356 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13357 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-lmail $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 maillock ();
13376 int
13377 main ()
13378 {
13379 maillock ();
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" || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_lib_mail_maillock=yes
13406 else
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410 ac_cv_lib_mail_maillock=no
13411 fi
13412 rm -f conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13415 fi
13416 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13417 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13418 if test $ac_cv_lib_mail_maillock = yes; then
13419 cat >>confdefs.h <<_ACEOF
13420 #define HAVE_LIBMAIL 1
13421 _ACEOF
13422
13423 LIBS="-lmail $LIBS"
13424
13425 fi
13426
13427
13428 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13429 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13430 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-llockfile $LIBS"
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441
13442 /* Override any gcc2 internal prototype to avoid an error. */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 /* We use char because int might match the return type of a gcc2
13447 builtin and then its argument prototype would still apply. */
13448 char maillock ();
13449 int
13450 main ()
13451 {
13452 maillock ();
13453 ;
13454 return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_lib_lockfile_maillock=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 ac_cv_lib_lockfile_maillock=no
13484 fi
13485 rm -f conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13490 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13491 if test $ac_cv_lib_lockfile_maillock = yes; then
13492 cat >>confdefs.h <<_ACEOF
13493 #define HAVE_LIBLOCKFILE 1
13494 _ACEOF
13495
13496 LIBS="-llockfile $LIBS"
13497
13498 fi
13499
13500 # If we have the shared liblockfile, assume we must use it for mail
13501 # locking (e.g. Debian). If we couldn't link against liblockfile
13502 # (no liblockfile.a installed), ensure that we don't need to.
13503 if test "$ac_cv_lib_lockfile_maillock" = no; then
13504 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13505 set dummy liblockfile.so; ac_word=$2
13506 echo "$as_me:$LINENO: checking for $ac_word" >&5
13507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13508 if test "${ac_cv_prog_liblockfile+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 if test -n "$liblockfile"; then
13512 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13513 else
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13516 for as_dir in $as_dummy
13517 do
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_liblockfile="yes"
13523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13525 fi
13526 done
13527 done
13528
13529 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13530 fi
13531 fi
13532 liblockfile=$ac_cv_prog_liblockfile
13533 if test -n "$liblockfile"; then
13534 echo "$as_me:$LINENO: result: $liblockfile" >&5
13535 echo "${ECHO_T}$liblockfile" >&6
13536 else
13537 echo "$as_me:$LINENO: result: no" >&5
13538 echo "${ECHO_T}no" >&6
13539 fi
13540
13541 if test $ac_cv_prog_liblockfile = yes; then
13542 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13543 This probably means that movemail could lose mail.
13544 There may be a \`development' package to install containing liblockfile." >&5
13545 echo "$as_me: error: Shared liblockfile found but can't link against it.
13546 This probably means that movemail could lose mail.
13547 There may be a \`development' package to install containing liblockfile." >&2;}
13548 { (exit 1); exit 1; }; }
13549 else :
13550 fi
13551 fi
13552
13553 for ac_func in touchlock
13554 do
13555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13556 echo "$as_me:$LINENO: checking for $ac_func" >&5
13557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13558 if eval "test \"\${$as_ac_var+set}\" = set"; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13569 #define $ac_func innocuous_$ac_func
13570
13571 /* System header to define __stub macros and hopefully few prototypes,
13572 which can conflict with char $ac_func (); below.
13573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13574 <limits.h> exists even on freestanding compilers. */
13575
13576 #ifdef __STDC__
13577 # include <limits.h>
13578 #else
13579 # include <assert.h>
13580 #endif
13581
13582 #undef $ac_func
13583
13584 /* Override any gcc2 internal prototype to avoid an error. */
13585 #ifdef __cplusplus
13586 extern "C"
13587 {
13588 #endif
13589 /* We use char because int might match the return type of a gcc2
13590 builtin and then its argument prototype would still apply. */
13591 char $ac_func ();
13592 /* The GNU C library defines this for functions which it implements
13593 to always fail with ENOSYS. Some functions are actually named
13594 something starting with __ and the normal name is an alias. */
13595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13596 choke me
13597 #else
13598 char (*f) () = $ac_func;
13599 #endif
13600 #ifdef __cplusplus
13601 }
13602 #endif
13603
13604 int
13605 main ()
13606 {
13607 return f != $ac_func;
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 eval "$as_ac_var=yes"
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 eval "$as_ac_var=no"
13639 fi
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642 fi
13643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13645 if test `eval echo '${'$as_ac_var'}'` = yes; then
13646 cat >>confdefs.h <<_ACEOF
13647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13648 _ACEOF
13649
13650 fi
13651 done
13652
13653
13654 for ac_header in maillock.h
13655 do
13656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13658 echo "$as_me:$LINENO: checking for $ac_header" >&5
13659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 fi
13663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13665 else
13666 # Is the header compilable?
13667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13676 #include <$ac_header>
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_header_compiler=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 ac_header_compiler=no
13705 fi
13706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13708 echo "${ECHO_T}$ac_header_compiler" >&6
13709
13710 # Is the header present?
13711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 #include <$ac_header>
13720 _ACEOF
13721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null; then
13729 if test -s conftest.err; then
13730 ac_cpp_err=$ac_c_preproc_warn_flag
13731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13732 else
13733 ac_cpp_err=
13734 fi
13735 else
13736 ac_cpp_err=yes
13737 fi
13738 if test -z "$ac_cpp_err"; then
13739 ac_header_preproc=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_header_preproc=no
13745 fi
13746 rm -f conftest.err conftest.$ac_ext
13747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13748 echo "${ECHO_T}$ac_header_preproc" >&6
13749
13750 # So? What about this header?
13751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13752 yes:no: )
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13757 ac_header_preproc=yes
13758 ;;
13759 no:yes:* )
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13772 (
13773 cat <<\_ASBOX
13774 ## ------------------------------------------ ##
13775 ## Report this to the AC_PACKAGE_NAME lists. ##
13776 ## ------------------------------------------ ##
13777 _ASBOX
13778 ) |
13779 sed "s/^/$as_me: WARNING: /" >&2
13780 ;;
13781 esac
13782 echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 eval "$as_ac_Header=\$ac_header_preproc"
13788 fi
13789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13791
13792 fi
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794 cat >>confdefs.h <<_ACEOF
13795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13796 _ACEOF
13797
13798 fi
13799
13800 done
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870 for ac_func in gethostname getdomainname dup2 \
13871 rename closedir mkdir rmdir sysinfo getrusage \
13872 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13873 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13874 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13875 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13876 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13877 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13878 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13879 do
13880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_var+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13895
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13900
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13906
13907 #undef $ac_func
13908
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 {
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func ();
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921 choke me
13922 #else
13923 char (*f) () = $ac_func;
13924 #endif
13925 #ifdef __cplusplus
13926 }
13927 #endif
13928
13929 int
13930 main ()
13931 {
13932 return f != $ac_func;
13933 ;
13934 return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 eval "$as_ac_var=yes"
13959 else
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 eval "$as_ac_var=no"
13964 fi
13965 rm -f conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 fi
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13973 _ACEOF
13974
13975 fi
13976 done
13977
13978
13979
13980 for ac_header in sys/un.h
13981 do
13982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo "$as_me:$LINENO: checking for $ac_header" >&5
13985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 fi
13989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13991 else
13992 # Is the header compilable?
13993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include <$ac_header>
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_header_compiler=yes
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_header_compiler=no
14031 fi
14032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034 echo "${ECHO_T}$ac_header_compiler" >&6
14035
14036 # Is the header present?
14037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <$ac_header>
14046 _ACEOF
14047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null; then
14055 if test -s conftest.err; then
14056 ac_cpp_err=$ac_c_preproc_warn_flag
14057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14058 else
14059 ac_cpp_err=
14060 fi
14061 else
14062 ac_cpp_err=yes
14063 fi
14064 if test -z "$ac_cpp_err"; then
14065 ac_header_preproc=yes
14066 else
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 ac_header_preproc=no
14071 fi
14072 rm -f conftest.err conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074 echo "${ECHO_T}$ac_header_preproc" >&6
14075
14076 # So? What about this header?
14077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14078 yes:no: )
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14083 ac_header_preproc=yes
14084 ;;
14085 no:yes:* )
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14098 (
14099 cat <<\_ASBOX
14100 ## ------------------------------------------ ##
14101 ## Report this to the AC_PACKAGE_NAME lists. ##
14102 ## ------------------------------------------ ##
14103 _ASBOX
14104 ) |
14105 sed "s/^/$as_me: WARNING: /" >&2
14106 ;;
14107 esac
14108 echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113 eval "$as_ac_Header=\$ac_header_preproc"
14114 fi
14115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14117
14118 fi
14119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14122 _ACEOF
14123
14124 fi
14125
14126 done
14127
14128
14129
14130
14131
14132 for ac_header in stdlib.h sys/time.h unistd.h
14133 do
14134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 fi
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 else
14144 # Is the header compilable?
14145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14154 #include <$ac_header>
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_header_compiler=yes
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_header_compiler=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14187
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <$ac_header>
14198 _ACEOF
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null; then
14207 if test -s conftest.err; then
14208 ac_cpp_err=$ac_c_preproc_warn_flag
14209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14210 else
14211 ac_cpp_err=
14212 fi
14213 else
14214 ac_cpp_err=yes
14215 fi
14216 if test -z "$ac_cpp_err"; then
14217 ac_header_preproc=yes
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_header_preproc=no
14223 fi
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14227
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230 yes:no: )
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc=yes
14236 ;;
14237 no:yes:* )
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14250 (
14251 cat <<\_ASBOX
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists. ##
14254 ## ------------------------------------------ ##
14255 _ASBOX
14256 ) |
14257 sed "s/^/$as_me: WARNING: /" >&2
14258 ;;
14259 esac
14260 echo "$as_me:$LINENO: checking for $ac_header" >&5
14261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 eval "$as_ac_Header=\$ac_header_preproc"
14266 fi
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14269
14270 fi
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14274 _ACEOF
14275
14276 fi
14277
14278 done
14279
14280
14281 for ac_func in alarm
14282 do
14283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 echo "$as_me:$LINENO: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14286 if eval "test \"\${$as_ac_var+set}\" = set"; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14297 #define $ac_func innocuous_$ac_func
14298
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func (); below.
14301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302 <limits.h> exists even on freestanding compilers. */
14303
14304 #ifdef __STDC__
14305 # include <limits.h>
14306 #else
14307 # include <assert.h>
14308 #endif
14309
14310 #undef $ac_func
14311
14312 /* Override any gcc2 internal prototype to avoid an error. */
14313 #ifdef __cplusplus
14314 extern "C"
14315 {
14316 #endif
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14319 char $ac_func ();
14320 /* The GNU C library defines this for functions which it implements
14321 to always fail with ENOSYS. Some functions are actually named
14322 something starting with __ and the normal name is an alias. */
14323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14324 choke me
14325 #else
14326 char (*f) () = $ac_func;
14327 #endif
14328 #ifdef __cplusplus
14329 }
14330 #endif
14331
14332 int
14333 main ()
14334 {
14335 return f != $ac_func;
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest$ac_exeext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 eval "$as_ac_var=yes"
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366 eval "$as_ac_var=no"
14367 fi
14368 rm -f conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
14370 fi
14371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14373 if test `eval echo '${'$as_ac_var'}'` = yes; then
14374 cat >>confdefs.h <<_ACEOF
14375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14376 _ACEOF
14377
14378 fi
14379 done
14380
14381 echo "$as_me:$LINENO: checking for working mktime" >&5
14382 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14383 if test "${ac_cv_func_working_mktime+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 if test "$cross_compiling" = yes; then
14387 ac_cv_func_working_mktime=no
14388 else
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 /* Test program from Paul Eggert and Tony Leneis. */
14396 #if TIME_WITH_SYS_TIME
14397 # include <sys/time.h>
14398 # include <time.h>
14399 #else
14400 # if HAVE_SYS_TIME_H
14401 # include <sys/time.h>
14402 # else
14403 # include <time.h>
14404 # endif
14405 #endif
14406
14407 #if HAVE_STDLIB_H
14408 # include <stdlib.h>
14409 #endif
14410
14411 #if HAVE_UNISTD_H
14412 # include <unistd.h>
14413 #endif
14414
14415 #if !HAVE_ALARM
14416 # define alarm(X) /* empty */
14417 #endif
14418
14419 /* Work around redefinition to rpl_putenv by other config tests. */
14420 #undef putenv
14421
14422 static time_t time_t_max;
14423 static time_t time_t_min;
14424
14425 /* Values we'll use to set the TZ environment variable. */
14426 static char *tz_strings[] = {
14427 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14428 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14429 };
14430 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14431
14432 /* Fail if mktime fails to convert a date in the spring-forward gap.
14433 Based on a problem report from Andreas Jaeger. */
14434 static void
14435 spring_forward_gap ()
14436 {
14437 /* glibc (up to about 1998-10-07) failed this test. */
14438 struct tm tm;
14439
14440 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14441 instead of "TZ=America/Vancouver" in order to detect the bug even
14442 on systems that don't support the Olson extension, or don't have the
14443 full zoneinfo tables installed. */
14444 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14445
14446 tm.tm_year = 98;
14447 tm.tm_mon = 3;
14448 tm.tm_mday = 5;
14449 tm.tm_hour = 2;
14450 tm.tm_min = 0;
14451 tm.tm_sec = 0;
14452 tm.tm_isdst = -1;
14453 if (mktime (&tm) == (time_t)-1)
14454 exit (1);
14455 }
14456
14457 static void
14458 mktime_test1 (now)
14459 time_t now;
14460 {
14461 struct tm *lt;
14462 if ((lt = localtime (&now)) && mktime (lt) != now)
14463 exit (1);
14464 }
14465
14466 static void
14467 mktime_test (now)
14468 time_t now;
14469 {
14470 mktime_test1 (now);
14471 mktime_test1 ((time_t) (time_t_max - now));
14472 mktime_test1 ((time_t) (time_t_min + now));
14473 }
14474
14475 static void
14476 irix_6_4_bug ()
14477 {
14478 /* Based on code from Ariel Faigon. */
14479 struct tm tm;
14480 tm.tm_year = 96;
14481 tm.tm_mon = 3;
14482 tm.tm_mday = 0;
14483 tm.tm_hour = 0;
14484 tm.tm_min = 0;
14485 tm.tm_sec = 0;
14486 tm.tm_isdst = -1;
14487 mktime (&tm);
14488 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14489 exit (1);
14490 }
14491
14492 static void
14493 bigtime_test (j)
14494 int j;
14495 {
14496 struct tm tm;
14497 time_t now;
14498 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14499 now = mktime (&tm);
14500 if (now != (time_t) -1)
14501 {
14502 struct tm *lt = localtime (&now);
14503 if (! (lt
14504 && lt->tm_year == tm.tm_year
14505 && lt->tm_mon == tm.tm_mon
14506 && lt->tm_mday == tm.tm_mday
14507 && lt->tm_hour == tm.tm_hour
14508 && lt->tm_min == tm.tm_min
14509 && lt->tm_sec == tm.tm_sec
14510 && lt->tm_yday == tm.tm_yday
14511 && lt->tm_wday == tm.tm_wday
14512 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14513 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14514 exit (1);
14515 }
14516 }
14517
14518 int
14519 main ()
14520 {
14521 time_t t, delta;
14522 int i, j;
14523
14524 /* This test makes some buggy mktime implementations loop.
14525 Give up after 60 seconds; a mktime slower than that
14526 isn't worth using anyway. */
14527 alarm (60);
14528
14529 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14530 continue;
14531 time_t_max--;
14532 if ((time_t) -1 < 0)
14533 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14534 continue;
14535 delta = time_t_max / 997; /* a suitable prime number */
14536 for (i = 0; i < N_STRINGS; i++)
14537 {
14538 if (tz_strings[i])
14539 putenv (tz_strings[i]);
14540
14541 for (t = 0; t <= time_t_max - delta; t += delta)
14542 mktime_test (t);
14543 mktime_test ((time_t) 1);
14544 mktime_test ((time_t) (60 * 60));
14545 mktime_test ((time_t) (60 * 60 * 24));
14546
14547 for (j = 1; 0 < j; j *= 2)
14548 bigtime_test (j);
14549 bigtime_test (j - 1);
14550 }
14551 irix_6_4_bug ();
14552 spring_forward_gap ();
14553 exit (0);
14554 }
14555 _ACEOF
14556 rm -f conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_func_working_mktime=yes
14568 else
14569 echo "$as_me: program exited with status $ac_status" >&5
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ( exit $ac_status )
14574 ac_cv_func_working_mktime=no
14575 fi
14576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 fi
14579 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14580 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14581 if test $ac_cv_func_working_mktime = no; then
14582 case $LIBOBJS in
14583 "mktime.$ac_objext" | \
14584 *" mktime.$ac_objext" | \
14585 "mktime.$ac_objext "* | \
14586 *" mktime.$ac_objext "* ) ;;
14587 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14588 esac
14589
14590 fi
14591
14592 if test "$ac_cv_func_working_mktime" = no; then
14593
14594 cat >>confdefs.h <<\_ACEOF
14595 #define BROKEN_MKTIME 1
14596 _ACEOF
14597
14598 fi
14599
14600 ac_have_func=no # yes means we've found a way to get the load average.
14601
14602 # Make sure getloadavg.c is where it belongs, at configure-time.
14603 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14604 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14605 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14606 { (exit 1); exit 1; }; }
14607
14608 ac_save_LIBS=$LIBS
14609
14610 # Check for getloadavg, but be sure not to touch the cache variable.
14611 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14612 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14613 if test "${ac_cv_func_getloadavg+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14624 #define getloadavg innocuous_getloadavg
14625
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char getloadavg (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14630
14631 #ifdef __STDC__
14632 # include <limits.h>
14633 #else
14634 # include <assert.h>
14635 #endif
14636
14637 #undef getloadavg
14638
14639 /* Override any gcc2 internal prototype to avoid an error. */
14640 #ifdef __cplusplus
14641 extern "C"
14642 {
14643 #endif
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14646 char getloadavg ();
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14651 choke me
14652 #else
14653 char (*f) () = getloadavg;
14654 #endif
14655 #ifdef __cplusplus
14656 }
14657 #endif
14658
14659 int
14660 main ()
14661 {
14662 return f != getloadavg;
14663 ;
14664 return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 ac_cv_func_getloadavg=yes
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_cv_func_getloadavg=no
14694 fi
14695 rm -f conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14697 fi
14698 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14699 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14700 if test $ac_cv_func_getloadavg = yes; then
14701 exit 0
14702 else
14703 exit 1
14704 fi
14705 ) && ac_have_func=yes
14706
14707 # On HPUX9, an unprivileged user can get load averages through this function.
14708
14709 for ac_func in pstat_getdynamic
14710 do
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14725 #define $ac_func innocuous_$ac_func
14726
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func (); below.
14729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730 <limits.h> exists even on freestanding compilers. */
14731
14732 #ifdef __STDC__
14733 # include <limits.h>
14734 #else
14735 # include <assert.h>
14736 #endif
14737
14738 #undef $ac_func
14739
14740 /* Override any gcc2 internal prototype to avoid an error. */
14741 #ifdef __cplusplus
14742 extern "C"
14743 {
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14747 char $ac_func ();
14748 /* The GNU C library defines this for functions which it implements
14749 to always fail with ENOSYS. Some functions are actually named
14750 something starting with __ and the normal name is an alias. */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14752 choke me
14753 #else
14754 char (*f) () = $ac_func;
14755 #endif
14756 #ifdef __cplusplus
14757 }
14758 #endif
14759
14760 int
14761 main ()
14762 {
14763 return f != $ac_func;
14764 ;
14765 return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14771 ac_status=$?
14772 grep -v '^ *+' conftest.er1 >conftest.err
14773 rm -f conftest.er1
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest$ac_exeext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 eval "$as_ac_var=yes"
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794 eval "$as_ac_var=no"
14795 fi
14796 rm -f conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 fi
14799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14801 if test `eval echo '${'$as_ac_var'}'` = yes; then
14802 cat >>confdefs.h <<_ACEOF
14803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14804 _ACEOF
14805
14806 fi
14807 done
14808
14809
14810 # Solaris has libkstat which does not require root.
14811
14812 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14813 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14814 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-lkstat $LIBS"
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825
14826 /* Override any gcc2 internal prototype to avoid an error. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832 char kstat_open ();
14833 int
14834 main ()
14835 {
14836 kstat_open ();
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest$ac_exeext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_lib_kstat_kstat_open=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14866
14867 ac_cv_lib_kstat_kstat_open=no
14868 fi
14869 rm -f conftest.err conftest.$ac_objext \
14870 conftest$ac_exeext conftest.$ac_ext
14871 LIBS=$ac_check_lib_save_LIBS
14872 fi
14873 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14874 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14875 if test $ac_cv_lib_kstat_kstat_open = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877 #define HAVE_LIBKSTAT 1
14878 _ACEOF
14879
14880 LIBS="-lkstat $LIBS"
14881
14882 fi
14883
14884 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14885
14886 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14887 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14888 # to get the right answer into the cache.
14889 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14890 if test $ac_have_func = no; then
14891 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14892 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14893 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-lelf $LIBS"
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char elf_begin ();
14912 int
14913 main ()
14914 {
14915 elf_begin ();
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_elf_elf_begin=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_cv_lib_elf_elf_begin=no
14947 fi
14948 rm -f conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14951 fi
14952 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14953 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14954 if test $ac_cv_lib_elf_elf_begin = yes; then
14955 LIBS="-lelf $LIBS"
14956 fi
14957
14958 fi
14959 if test $ac_have_func = no; then
14960 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14961 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14962 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lkvm $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973
14974 /* Override any gcc2 internal prototype to avoid an error. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char kvm_open ();
14981 int
14982 main ()
14983 {
14984 kvm_open ();
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_cv_lib_kvm_kvm_open=yes
15011 else
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 ac_cv_lib_kvm_kvm_open=no
15016 fi
15017 rm -f conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15020 fi
15021 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15022 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15023 if test $ac_cv_lib_kvm_kvm_open = yes; then
15024 LIBS="-lkvm $LIBS"
15025 fi
15026
15027 # Check for the 4.4BSD definition of getloadavg.
15028 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15029 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15030 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033 ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lutil $LIBS"
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041
15042 /* Override any gcc2 internal prototype to avoid an error. */
15043 #ifdef __cplusplus
15044 extern "C"
15045 #endif
15046 /* We use char because int might match the return type of a gcc2
15047 builtin and then its argument prototype would still apply. */
15048 char getloadavg ();
15049 int
15050 main ()
15051 {
15052 getloadavg ();
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_lib_util_getloadavg=yes
15079 else
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_cv_lib_util_getloadavg=no
15084 fi
15085 rm -f conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15088 fi
15089 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15090 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15091 if test $ac_cv_lib_util_getloadavg = yes; then
15092 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15093 fi
15094
15095 fi
15096
15097 if test $ac_have_func = no; then
15098 # There is a commonly available library for RS/6000 AIX.
15099 # Since it is not a standard part of AIX, it might be installed locally.
15100 ac_getloadavg_LIBS=$LIBS
15101 LIBS="-L/usr/local/lib $LIBS"
15102 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15103 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15104 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 ac_check_lib_save_LIBS=$LIBS
15108 LIBS="-lgetloadavg $LIBS"
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 #ifdef __cplusplus
15118 extern "C"
15119 #endif
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char getloadavg ();
15123 int
15124 main ()
15125 {
15126 getloadavg ();
15127 ;
15128 return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_lib_getloadavg_getloadavg=yes
15153 else
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15156
15157 ac_cv_lib_getloadavg_getloadavg=no
15158 fi
15159 rm -f conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15162 fi
15163 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15164 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15165 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15166 LIBS="-lgetloadavg $LIBS"
15167 else
15168 LIBS=$ac_getloadavg_LIBS
15169 fi
15170
15171 fi
15172
15173 # Make sure it is really in the library, if we think we found it,
15174 # otherwise set up the replacement function.
15175
15176 for ac_func in getloadavg
15177 do
15178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15179 echo "$as_me:$LINENO: checking for $ac_func" >&5
15180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_var+set}\" = set"; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15192 #define $ac_func innocuous_$ac_func
15193
15194 /* System header to define __stub macros and hopefully few prototypes,
15195 which can conflict with char $ac_func (); below.
15196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15197 <limits.h> exists even on freestanding compilers. */
15198
15199 #ifdef __STDC__
15200 # include <limits.h>
15201 #else
15202 # include <assert.h>
15203 #endif
15204
15205 #undef $ac_func
15206
15207 /* Override any gcc2 internal prototype to avoid an error. */
15208 #ifdef __cplusplus
15209 extern "C"
15210 {
15211 #endif
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214 char $ac_func ();
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219 choke me
15220 #else
15221 char (*f) () = $ac_func;
15222 #endif
15223 #ifdef __cplusplus
15224 }
15225 #endif
15226
15227 int
15228 main ()
15229 {
15230 return f != $ac_func;
15231 ;
15232 return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 eval "$as_ac_var=yes"
15257 else
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261 eval "$as_ac_var=no"
15262 fi
15263 rm -f conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15265 fi
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 _ACEOF
15272
15273 else
15274 case $LIBOBJS in
15275 "getloadavg.$ac_objext" | \
15276 *" getloadavg.$ac_objext" | \
15277 "getloadavg.$ac_objext "* | \
15278 *" getloadavg.$ac_objext "* ) ;;
15279 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15280 esac
15281
15282
15283 cat >>confdefs.h <<\_ACEOF
15284 #define C_GETLOADAVG 1
15285 _ACEOF
15286
15287 # Figure out what our getloadavg.c needs.
15288 ac_have_func=no
15289 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15290 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15291 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15292 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 fi
15295 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15297 else
15298 # Is the header compilable?
15299 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15300 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <sys/dg_sys_info.h>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15332 else
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_header_compiler=no
15337 fi
15338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340 echo "${ECHO_T}$ac_header_compiler" >&6
15341
15342 # Is the header present?
15343 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15344 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h. */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <sys/dg_sys_info.h>
15352 _ACEOF
15353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } >/dev/null; then
15361 if test -s conftest.err; then
15362 ac_cpp_err=$ac_c_preproc_warn_flag
15363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15364 else
15365 ac_cpp_err=
15366 fi
15367 else
15368 ac_cpp_err=yes
15369 fi
15370 if test -z "$ac_cpp_err"; then
15371 ac_header_preproc=yes
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_header_preproc=no
15377 fi
15378 rm -f conftest.err conftest.$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15380 echo "${ECHO_T}$ac_header_preproc" >&6
15381
15382 # So? What about this header?
15383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15384 yes:no: )
15385 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15386 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15388 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15389 ac_header_preproc=yes
15390 ;;
15391 no:yes:* )
15392 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15393 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15395 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15397 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15399 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15403 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15404 (
15405 cat <<\_ASBOX
15406 ## ------------------------------------------ ##
15407 ## Report this to the AC_PACKAGE_NAME lists. ##
15408 ## ------------------------------------------ ##
15409 _ASBOX
15410 ) |
15411 sed "s/^/$as_me: WARNING: /" >&2
15412 ;;
15413 esac
15414 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15415 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15416 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15420 fi
15421 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15422 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15423
15424 fi
15425 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15426 ac_have_func=yes
15427
15428 cat >>confdefs.h <<\_ACEOF
15429 #define DGUX 1
15430 _ACEOF
15431
15432
15433 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15434 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15435 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 else
15438 ac_check_lib_save_LIBS=$LIBS
15439 LIBS="-ldgc $LIBS"
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446
15447 /* Override any gcc2 internal prototype to avoid an error. */
15448 #ifdef __cplusplus
15449 extern "C"
15450 #endif
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15453 char dg_sys_info ();
15454 int
15455 main ()
15456 {
15457 dg_sys_info ();
15458 ;
15459 return 0;
15460 }
15461 _ACEOF
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; } &&
15477 { ac_try='test -s conftest$ac_exeext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_dgc_dg_sys_info=yes
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488 ac_cv_lib_dgc_dg_sys_info=no
15489 fi
15490 rm -f conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15492 LIBS=$ac_check_lib_save_LIBS
15493 fi
15494 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15495 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15496 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_LIBDGC 1
15499 _ACEOF
15500
15501 LIBS="-ldgc $LIBS"
15502
15503 fi
15504
15505 fi
15506
15507
15508
15509 if test "${ac_cv_header_locale_h+set}" = set; then
15510 echo "$as_me:$LINENO: checking for locale.h" >&5
15511 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15512 if test "${ac_cv_header_locale_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 fi
15515 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15516 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15517 else
15518 # Is the header compilable?
15519 echo "$as_me:$LINENO: checking locale.h usability" >&5
15520 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h. */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <locale.h>
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler=yes
15552 else
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_header_compiler=no
15557 fi
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15560 echo "${ECHO_T}$ac_header_compiler" >&6
15561
15562 # Is the header present?
15563 echo "$as_me:$LINENO: checking locale.h presence" >&5
15564 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <locale.h>
15572 _ACEOF
15573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } >/dev/null; then
15581 if test -s conftest.err; then
15582 ac_cpp_err=$ac_c_preproc_warn_flag
15583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15584 else
15585 ac_cpp_err=
15586 fi
15587 else
15588 ac_cpp_err=yes
15589 fi
15590 if test -z "$ac_cpp_err"; then
15591 ac_header_preproc=yes
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ac_header_preproc=no
15597 fi
15598 rm -f conftest.err conftest.$ac_ext
15599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15600 echo "${ECHO_T}$ac_header_preproc" >&6
15601
15602 # So? What about this header?
15603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15604 yes:no: )
15605 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15606 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15608 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15609 ac_header_preproc=yes
15610 ;;
15611 no:yes:* )
15612 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15613 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15615 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15617 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15619 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15621 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15623 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15624 (
15625 cat <<\_ASBOX
15626 ## ------------------------------------------ ##
15627 ## Report this to the AC_PACKAGE_NAME lists. ##
15628 ## ------------------------------------------ ##
15629 _ASBOX
15630 ) |
15631 sed "s/^/$as_me: WARNING: /" >&2
15632 ;;
15633 esac
15634 echo "$as_me:$LINENO: checking for locale.h" >&5
15635 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15636 if test "${ac_cv_header_locale_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 ac_cv_header_locale_h=$ac_header_preproc
15640 fi
15641 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15642 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15643
15644 fi
15645
15646
15647
15648 for ac_func in setlocale
15649 do
15650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15651 echo "$as_me:$LINENO: checking for $ac_func" >&5
15652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_var+set}\" = set"; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15664 #define $ac_func innocuous_$ac_func
15665
15666 /* System header to define __stub macros and hopefully few prototypes,
15667 which can conflict with char $ac_func (); below.
15668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15669 <limits.h> exists even on freestanding compilers. */
15670
15671 #ifdef __STDC__
15672 # include <limits.h>
15673 #else
15674 # include <assert.h>
15675 #endif
15676
15677 #undef $ac_func
15678
15679 /* Override any gcc2 internal prototype to avoid an error. */
15680 #ifdef __cplusplus
15681 extern "C"
15682 {
15683 #endif
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15686 char $ac_func ();
15687 /* The GNU C library defines this for functions which it implements
15688 to always fail with ENOSYS. Some functions are actually named
15689 something starting with __ and the normal name is an alias. */
15690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15691 choke me
15692 #else
15693 char (*f) () = $ac_func;
15694 #endif
15695 #ifdef __cplusplus
15696 }
15697 #endif
15698
15699 int
15700 main ()
15701 {
15702 return f != $ac_func;
15703 ;
15704 return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 eval "$as_ac_var=yes"
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 eval "$as_ac_var=no"
15734 fi
15735 rm -f conftest.err conftest.$ac_objext \
15736 conftest$ac_exeext conftest.$ac_ext
15737 fi
15738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 _ACEOF
15744
15745 fi
15746 done
15747
15748
15749 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15750 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15751 # Irix 4.0.5F has the header but not the library.
15752 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15753 ac_have_func=yes
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define SVR4 1
15757 _ACEOF
15758
15759 fi
15760
15761 if test $ac_have_func = no; then
15762 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15763 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15764 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15765 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 fi
15768 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15769 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15770 else
15771 # Is the header compilable?
15772 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15773 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <inq_stats/cpustats.h>
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_header_compiler=no
15810 fi
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813 echo "${ECHO_T}$ac_header_compiler" >&6
15814
15815 # Is the header present?
15816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 #include <inq_stats/cpustats.h>
15825 _ACEOF
15826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 else
15838 ac_cpp_err=
15839 fi
15840 else
15841 ac_cpp_err=yes
15842 fi
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_header_preproc=no
15850 fi
15851 rm -f conftest.err conftest.$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6
15854
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15863 ;;
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15877 (
15878 cat <<\_ASBOX
15879 ## ------------------------------------------ ##
15880 ## Report this to the AC_PACKAGE_NAME lists. ##
15881 ## ------------------------------------------ ##
15882 _ASBOX
15883 ) |
15884 sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886 esac
15887 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15893 fi
15894 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15895 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15896
15897 fi
15898 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15899 ac_have_func=yes
15900
15901 cat >>confdefs.h <<\_ACEOF
15902 #define UMAX 1
15903 _ACEOF
15904
15905
15906 cat >>confdefs.h <<\_ACEOF
15907 #define UMAX4_3 1
15908 _ACEOF
15909
15910 fi
15911
15912
15913 fi
15914
15915 if test $ac_have_func = no; then
15916 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15917 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15918 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 fi
15922 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15923 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15924 else
15925 # Is the header compilable?
15926 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15927 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15935 #include <sys/cpustats.h>
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ac_header_compiler=no
15964 fi
15965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6
15968
15969 # Is the header present?
15970 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15971 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <sys/cpustats.h>
15979 _ACEOF
15980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } >/dev/null; then
15988 if test -s conftest.err; then
15989 ac_cpp_err=$ac_c_preproc_warn_flag
15990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15991 else
15992 ac_cpp_err=
15993 fi
15994 else
15995 ac_cpp_err=yes
15996 fi
15997 if test -z "$ac_cpp_err"; then
15998 ac_header_preproc=yes
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_header_preproc=no
16004 fi
16005 rm -f conftest.err conftest.$ac_ext
16006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6
16008
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 yes:no: )
16012 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16013 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16015 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc=yes
16017 ;;
16018 no:yes:* )
16019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16020 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16022 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16024 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16026 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16030 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16031 (
16032 cat <<\_ASBOX
16033 ## ------------------------------------------ ##
16034 ## Report this to the AC_PACKAGE_NAME lists. ##
16035 ## ------------------------------------------ ##
16036 _ASBOX
16037 ) |
16038 sed "s/^/$as_me: WARNING: /" >&2
16039 ;;
16040 esac
16041 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16042 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16043 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16047 fi
16048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16049 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16050
16051 fi
16052 if test $ac_cv_header_sys_cpustats_h = yes; then
16053 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16054 #define UMAX 1
16055 _ACEOF
16056
16057 fi
16058
16059
16060 fi
16061
16062 if test $ac_have_func = no; then
16063
16064 for ac_header in mach/mach.h
16065 do
16066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16068 echo "$as_me:$LINENO: checking for $ac_header" >&5
16069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 fi
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16075 else
16076 # Is the header compilable?
16077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16086 #include <$ac_header>
16087 _ACEOF
16088 rm -f conftest.$ac_objext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16090 (eval $ac_compile) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 ac_header_compiler=no
16115 fi
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6
16119
16120 # Is the header present?
16121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16130 _ACEOF
16131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev/null; then
16139 if test -s conftest.err; then
16140 ac_cpp_err=$ac_c_preproc_warn_flag
16141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16142 else
16143 ac_cpp_err=
16144 fi
16145 else
16146 ac_cpp_err=yes
16147 fi
16148 if test -z "$ac_cpp_err"; then
16149 ac_header_preproc=yes
16150 else
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_header_preproc=no
16155 fi
16156 rm -f conftest.err conftest.$ac_ext
16157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16158 echo "${ECHO_T}$ac_header_preproc" >&6
16159
16160 # So? What about this header?
16161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 yes:no: )
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16167 ac_header_preproc=yes
16168 ;;
16169 no:yes:* )
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16182 (
16183 cat <<\_ASBOX
16184 ## ------------------------------------------ ##
16185 ## Report this to the AC_PACKAGE_NAME lists. ##
16186 ## ------------------------------------------ ##
16187 _ASBOX
16188 ) |
16189 sed "s/^/$as_me: WARNING: /" >&2
16190 ;;
16191 esac
16192 echo "$as_me:$LINENO: checking for $ac_header" >&5
16193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 eval "$as_ac_Header=\$ac_header_preproc"
16198 fi
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16201
16202 fi
16203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h <<_ACEOF
16205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16206 _ACEOF
16207
16208 fi
16209
16210 done
16211
16212 fi
16213
16214
16215 for ac_header in nlist.h
16216 do
16217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16219 echo "$as_me:$LINENO: checking for $ac_header" >&5
16220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 fi
16224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16226 else
16227 # Is the header compilable?
16228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 #include <$ac_header>
16238 _ACEOF
16239 rm -f conftest.$ac_objext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16241 (eval $ac_compile) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_compiler=no
16266 fi
16267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16269 echo "${ECHO_T}$ac_header_compiler" >&6
16270
16271 # Is the header present?
16272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h. */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 #include <$ac_header>
16281 _ACEOF
16282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null; then
16290 if test -s conftest.err; then
16291 ac_cpp_err=$ac_c_preproc_warn_flag
16292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16293 else
16294 ac_cpp_err=
16295 fi
16296 else
16297 ac_cpp_err=yes
16298 fi
16299 if test -z "$ac_cpp_err"; then
16300 ac_header_preproc=yes
16301 else
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_header_preproc=no
16306 fi
16307 rm -f conftest.err conftest.$ac_ext
16308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6
16310
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 yes:no: )
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
16319 ;;
16320 no:yes:* )
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16333 (
16334 cat <<\_ASBOX
16335 ## ------------------------------------------ ##
16336 ## Report this to the AC_PACKAGE_NAME lists. ##
16337 ## ------------------------------------------ ##
16338 _ASBOX
16339 ) |
16340 sed "s/^/$as_me: WARNING: /" >&2
16341 ;;
16342 esac
16343 echo "$as_me:$LINENO: checking for $ac_header" >&5
16344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 eval "$as_ac_Header=\$ac_header_preproc"
16349 fi
16350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16352
16353 fi
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357 _ACEOF
16358 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16359 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16360 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <nlist.h>
16370
16371 int
16372 main ()
16373 {
16374 static struct nlist ac_aggr;
16375 if (ac_aggr.n_un.n_name)
16376 return 0;
16377 ;
16378 return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_member_struct_nlist_n_un_n_name=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <nlist.h>
16414
16415 int
16416 main ()
16417 {
16418 static struct nlist ac_aggr;
16419 if (sizeof ac_aggr.n_un.n_name)
16420 return 0;
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427 (eval $ac_compile) 2>conftest.er1
16428 ac_status=$?
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_member_struct_nlist_n_un_n_name=yes
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_cv_member_struct_nlist_n_un_n_name=no
16452 fi
16453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 fi
16457 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16458 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16459 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16460
16461 cat >>confdefs.h <<_ACEOF
16462 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16463 _ACEOF
16464
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define NLIST_NAME_UNION 1
16468 _ACEOF
16469
16470 fi
16471
16472
16473 fi
16474
16475 done
16476
16477 fi
16478 done
16479
16480
16481 # Some definitions of getloadavg require that the program be installed setgid.
16482 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16483 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16484 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16494 #ifdef LDAV_PRIVILEGED
16495 Yowza Am I SETGID yet
16496 #endif
16497 _ACEOF
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16500 ac_cv_func_getloadavg_setgid=yes
16501 else
16502 ac_cv_func_getloadavg_setgid=no
16503 fi
16504 rm -f conftest*
16505
16506 fi
16507 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16508 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16509 if test $ac_cv_func_getloadavg_setgid = yes; then
16510 NEED_SETGID=true
16511
16512 cat >>confdefs.h <<\_ACEOF
16513 #define GETLOADAVG_PRIVILEGED 1
16514 _ACEOF
16515
16516 else
16517 NEED_SETGID=false
16518 fi
16519
16520 if test $ac_cv_func_getloadavg_setgid = yes; then
16521 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16522 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16523 if test "${ac_cv_group_kmem+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16527 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16528 # If we got an error (system does not support symlinks), try without -L.
16529 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16530 ac_cv_group_kmem=`echo $ac_ls_output \
16531 | sed -ne 's/[ ][ ]*/ /g;
16532 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16533 / /s/.* //;p;'`
16534
16535 fi
16536 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16537 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16538 KMEM_GROUP=$ac_cv_group_kmem
16539 fi
16540 if test "x$ac_save_LIBS" = x; then
16541 GETLOADAVG_LIBS=$LIBS
16542 else
16543 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16544 fi
16545 LIBS=$ac_save_LIBS
16546
16547
16548
16549 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16550 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16551 if test "${ac_cv_sys_largefile_source+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554 while :; do
16555 ac_cv_sys_largefile_source=no
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 #include <stdio.h>
16563 int
16564 main ()
16565 {
16566 return !fseeko;
16567 ;
16568 return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest.$ac_objext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 break
16593 else
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 fi
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #define _LARGEFILE_SOURCE 1
16606 #include <stdio.h>
16607 int
16608 main ()
16609 {
16610 return !fseeko;
16611 ;
16612 return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_sys_largefile_source=1; break
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 fi
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16643 break
16644 done
16645 fi
16646 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16648 if test "$ac_cv_sys_largefile_source" != no; then
16649
16650 cat >>confdefs.h <<_ACEOF
16651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16652 _ACEOF
16653
16654 fi
16655 rm -f conftest*
16656
16657 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16658 # in glibc 2.1.3, but that breaks too many other things.
16659 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16660 echo "$as_me:$LINENO: checking for fseeko" >&5
16661 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16662 if test "${ac_cv_func_fseeko+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 #include <stdio.h>
16672 int
16673 main ()
16674 {
16675 return fseeko && fseeko (stdin, 0, 0);
16676 ;
16677 return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_func_fseeko=yes
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ac_cv_func_fseeko=no
16707 fi
16708 rm -f conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16710 fi
16711 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16712 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16713 if test $ac_cv_func_fseeko = yes; then
16714
16715 cat >>confdefs.h <<\_ACEOF
16716 #define HAVE_FSEEKO 1
16717 _ACEOF
16718
16719 fi
16720
16721
16722 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16723 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16724 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727 # Use it with a single arg.
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 int
16736 main ()
16737 {
16738 getpgrp (0);
16739 ;
16740 return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_func_getpgrp_void=no
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769 ac_cv_func_getpgrp_void=yes
16770 fi
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16772
16773 fi
16774 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16775 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16776 if test $ac_cv_func_getpgrp_void = yes; then
16777
16778 cat >>confdefs.h <<\_ACEOF
16779 #define GETPGRP_VOID 1
16780 _ACEOF
16781
16782 fi
16783
16784
16785
16786 for ac_func in strftime
16787 do
16788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_var+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16803
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16808
16809 #ifdef __STDC__
16810 # include <limits.h>
16811 #else
16812 # include <assert.h>
16813 #endif
16814
16815 #undef $ac_func
16816
16817 /* Override any gcc2 internal prototype to avoid an error. */
16818 #ifdef __cplusplus
16819 extern "C"
16820 {
16821 #endif
16822 /* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16824 char $ac_func ();
16825 /* The GNU C library defines this for functions which it implements
16826 to always fail with ENOSYS. Some functions are actually named
16827 something starting with __ and the normal name is an alias. */
16828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16829 choke me
16830 #else
16831 char (*f) () = $ac_func;
16832 #endif
16833 #ifdef __cplusplus
16834 }
16835 #endif
16836
16837 int
16838 main ()
16839 {
16840 return f != $ac_func;
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 eval "$as_ac_var=no"
16872 fi
16873 rm -f conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16875 fi
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16878 if test `eval echo '${'$as_ac_var'}'` = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16881 _ACEOF
16882
16883 else
16884 # strftime is in -lintl on SCO UNIX.
16885 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16886 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16887 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lintl $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898
16899 /* Override any gcc2 internal prototype to avoid an error. */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905 char strftime ();
16906 int
16907 main ()
16908 {
16909 strftime ();
16910 ;
16911 return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest$ac_exeext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 ac_cv_lib_intl_strftime=yes
16936 else
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940 ac_cv_lib_intl_strftime=no
16941 fi
16942 rm -f conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS=$ac_check_lib_save_LIBS
16945 fi
16946 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16947 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16948 if test $ac_cv_lib_intl_strftime = yes; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_STRFTIME 1
16951 _ACEOF
16952
16953 LIBS="-lintl $LIBS"
16954 fi
16955
16956 fi
16957 done
16958
16959
16960 # UNIX98 PTYs.
16961
16962 for ac_func in grantpt
16963 do
16964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16965 echo "$as_me:$LINENO: checking for $ac_func" >&5
16966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16967 if eval "test \"\${$as_ac_var+set}\" = set"; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16978 #define $ac_func innocuous_$ac_func
16979
16980 /* System header to define __stub macros and hopefully few prototypes,
16981 which can conflict with char $ac_func (); below.
16982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16983 <limits.h> exists even on freestanding compilers. */
16984
16985 #ifdef __STDC__
16986 # include <limits.h>
16987 #else
16988 # include <assert.h>
16989 #endif
16990
16991 #undef $ac_func
16992
16993 /* Override any gcc2 internal prototype to avoid an error. */
16994 #ifdef __cplusplus
16995 extern "C"
16996 {
16997 #endif
16998 /* We use char because int might match the return type of a gcc2
16999 builtin and then its argument prototype would still apply. */
17000 char $ac_func ();
17001 /* The GNU C library defines this for functions which it implements
17002 to always fail with ENOSYS. Some functions are actually named
17003 something starting with __ and the normal name is an alias. */
17004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17005 choke me
17006 #else
17007 char (*f) () = $ac_func;
17008 #endif
17009 #ifdef __cplusplus
17010 }
17011 #endif
17012
17013 int
17014 main ()
17015 {
17016 return f != $ac_func;
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17023 (eval $ac_link) 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest$ac_exeext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17043 else
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 eval "$as_ac_var=no"
17048 fi
17049 rm -f conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17051 fi
17052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 _ACEOF
17058
17059 fi
17060 done
17061
17062
17063 # PTY-related GNU extensions.
17064
17065 for ac_func in getpt
17066 do
17067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17070 if eval "test \"\${$as_ac_var+set}\" = set"; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17082
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17087
17088 #ifdef __STDC__
17089 # include <limits.h>
17090 #else
17091 # include <assert.h>
17092 #endif
17093
17094 #undef $ac_func
17095
17096 /* Override any gcc2 internal prototype to avoid an error. */
17097 #ifdef __cplusplus
17098 extern "C"
17099 {
17100 #endif
17101 /* We use char because int might match the return type of a gcc2
17102 builtin and then its argument prototype would still apply. */
17103 char $ac_func ();
17104 /* The GNU C library defines this for functions which it implements
17105 to always fail with ENOSYS. Some functions are actually named
17106 something starting with __ and the normal name is an alias. */
17107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17108 choke me
17109 #else
17110 char (*f) () = $ac_func;
17111 #endif
17112 #ifdef __cplusplus
17113 }
17114 #endif
17115
17116 int
17117 main ()
17118 {
17119 return f != $ac_func;
17120 ;
17121 return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 eval "$as_ac_var=yes"
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 eval "$as_ac_var=no"
17151 fi
17152 rm -f conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 fi
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 _ACEOF
17161
17162 fi
17163 done
17164
17165
17166 # Check this now, so that we will NOT find the above functions in ncurses.
17167 # That is because we have not set up to link ncurses in lib-src.
17168 # It's better to believe a function is not available
17169 # than to expect to find it in ncurses.
17170
17171 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17172 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17173 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176 ac_check_lib_save_LIBS=$LIBS
17177 LIBS="-lncurses $LIBS"
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184
17185 /* Override any gcc2 internal prototype to avoid an error. */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17191 char tparm ();
17192 int
17193 main ()
17194 {
17195 tparm ();
17196 ;
17197 return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_lib_ncurses_tparm=yes
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 ac_cv_lib_ncurses_tparm=no
17227 fi
17228 rm -f conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17231 fi
17232 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17233 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17234 if test $ac_cv_lib_ncurses_tparm = yes; then
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_LIBNCURSES 1
17237 _ACEOF
17238
17239 LIBS="-lncurses $LIBS"
17240
17241 fi
17242
17243
17244 # Do we need the Hesiod library to provide the support routines?
17245 if test "$with_hesiod" = yes ; then
17246 # Don't set $LIBS here -- see comments above.
17247 resolv=no
17248 echo "$as_me:$LINENO: checking for res_send" >&5
17249 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17250 if test "${ac_cv_func_res_send+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17261 #define res_send innocuous_res_send
17262
17263 /* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char res_send (); below.
17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266 <limits.h> exists even on freestanding compilers. */
17267
17268 #ifdef __STDC__
17269 # include <limits.h>
17270 #else
17271 # include <assert.h>
17272 #endif
17273
17274 #undef res_send
17275
17276 /* Override any gcc2 internal prototype to avoid an error. */
17277 #ifdef __cplusplus
17278 extern "C"
17279 {
17280 #endif
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283 char res_send ();
17284 /* The GNU C library defines this for functions which it implements
17285 to always fail with ENOSYS. Some functions are actually named
17286 something starting with __ and the normal name is an alias. */
17287 #if defined (__stub_res_send) || defined (__stub___res_send)
17288 choke me
17289 #else
17290 char (*f) () = res_send;
17291 #endif
17292 #ifdef __cplusplus
17293 }
17294 #endif
17295
17296 int
17297 main ()
17298 {
17299 return f != res_send;
17300 ;
17301 return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306 (eval $ac_link) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_func_res_send=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 ac_cv_func_res_send=no
17331 fi
17332 rm -f conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334 fi
17335 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17336 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17337 if test $ac_cv_func_res_send = yes; then
17338 :
17339 else
17340 echo "$as_me:$LINENO: checking for __res_send" >&5
17341 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17342 if test "${ac_cv_func___res_send+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define __res_send innocuous___res_send
17354
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char __res_send (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17359
17360 #ifdef __STDC__
17361 # include <limits.h>
17362 #else
17363 # include <assert.h>
17364 #endif
17365
17366 #undef __res_send
17367
17368 /* Override any gcc2 internal prototype to avoid an error. */
17369 #ifdef __cplusplus
17370 extern "C"
17371 {
17372 #endif
17373 /* We use char because int might match the return type of a gcc2
17374 builtin and then its argument prototype would still apply. */
17375 char __res_send ();
17376 /* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379 #if defined (__stub___res_send) || defined (__stub_____res_send)
17380 choke me
17381 #else
17382 char (*f) () = __res_send;
17383 #endif
17384 #ifdef __cplusplus
17385 }
17386 #endif
17387
17388 int
17389 main ()
17390 {
17391 return f != __res_send;
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_cv_func___res_send=yes
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 ac_cv_func___res_send=no
17423 fi
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426 fi
17427 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17428 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17429 if test $ac_cv_func___res_send = yes; then
17430 :
17431 else
17432 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17433 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17434 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 else
17437 ac_check_lib_save_LIBS=$LIBS
17438 LIBS="-lresolv $LIBS"
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char res_send ();
17453 int
17454 main ()
17455 {
17456 res_send ();
17457 ;
17458 return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_lib_resolv_res_send=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_cv_lib_resolv_res_send=no
17488 fi
17489 rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17492 fi
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17494 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17495 if test $ac_cv_lib_resolv_res_send = yes; then
17496 resolv=yes
17497 else
17498 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17499 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17500 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lresolv $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511
17512 /* Override any gcc2 internal prototype to avoid an error. */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 /* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
17518 char __res_send ();
17519 int
17520 main ()
17521 {
17522 __res_send ();
17523 ;
17524 return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_resolv___res_send=yes
17549 else
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_cv_lib_resolv___res_send=no
17554 fi
17555 rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17558 fi
17559 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17560 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17561 if test $ac_cv_lib_resolv___res_send = yes; then
17562 resolv=yes
17563 fi
17564
17565 fi
17566
17567 fi
17568
17569 fi
17570
17571 if test "$resolv" = yes ; then
17572 RESOLVLIB=-lresolv
17573
17574 cat >>confdefs.h <<\_ACEOF
17575 #define HAVE_LIBRESOLV 1
17576 _ACEOF
17577
17578 else
17579 RESOLVLIB=
17580 fi
17581 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17582 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17583 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define hes_getmailhost innocuous_hes_getmailhost
17595
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char hes_getmailhost (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17600
17601 #ifdef __STDC__
17602 # include <limits.h>
17603 #else
17604 # include <assert.h>
17605 #endif
17606
17607 #undef hes_getmailhost
17608
17609 /* Override any gcc2 internal prototype to avoid an error. */
17610 #ifdef __cplusplus
17611 extern "C"
17612 {
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char hes_getmailhost ();
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17621 choke me
17622 #else
17623 char (*f) () = hes_getmailhost;
17624 #endif
17625 #ifdef __cplusplus
17626 }
17627 #endif
17628
17629 int
17630 main ()
17631 {
17632 return f != hes_getmailhost;
17633 ;
17634 return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17658 ac_cv_func_hes_getmailhost=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_func_hes_getmailhost=no
17664 fi
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667 fi
17668 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17669 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17670 if test $ac_cv_func_hes_getmailhost = yes; then
17671 :
17672 else
17673 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17674 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17675 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678 ac_check_lib_save_LIBS=$LIBS
17679 LIBS="-lhesiod $RESOLVLIB $LIBS"
17680 cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h. */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686
17687 /* Override any gcc2 internal prototype to avoid an error. */
17688 #ifdef __cplusplus
17689 extern "C"
17690 #endif
17691 /* We use char because int might match the return type of a gcc2
17692 builtin and then its argument prototype would still apply. */
17693 char hes_getmailhost ();
17694 int
17695 main ()
17696 {
17697 hes_getmailhost ();
17698 ;
17699 return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_lib_hesiod_hes_getmailhost=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_cv_lib_hesiod_hes_getmailhost=no
17729 fi
17730 rm -f conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732 LIBS=$ac_check_lib_save_LIBS
17733 fi
17734 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17737
17738 cat >>confdefs.h <<\_ACEOF
17739 #define HAVE_LIBHESIOD 1
17740 _ACEOF
17741
17742 else
17743 :
17744 fi
17745
17746 fi
17747
17748 fi
17749
17750 # These tell us which Kerberos-related libraries to use.
17751 if test "${with_kerberos+set}" = set; then
17752
17753 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lcom_err $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766
17767 /* Override any gcc2 internal prototype to avoid an error. */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 /* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17773 char com_err ();
17774 int
17775 main ()
17776 {
17777 com_err ();
17778 ;
17779 return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_cv_lib_com_err_com_err=yes
17804 else
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808 ac_cv_lib_com_err_com_err=no
17809 fi
17810 rm -f conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17813 fi
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17815 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17816 if test $ac_cv_lib_com_err_com_err = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_LIBCOM_ERR 1
17819 _ACEOF
17820
17821 LIBS="-lcom_err $LIBS"
17822
17823 fi
17824
17825
17826 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17828 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-lk5crypto $LIBS"
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839
17840 /* Override any gcc2 internal prototype to avoid an error. */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 /* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17846 char mit_des_cbc_encrypt ();
17847 int
17848 main ()
17849 {
17850 mit_des_cbc_encrypt ();
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17882 fi
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17886 fi
17887 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17888 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17889 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_LIBK5CRYPTO 1
17892 _ACEOF
17893
17894 LIBS="-lk5crypto $LIBS"
17895
17896 fi
17897
17898
17899 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17900 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17901 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-lcrypto $LIBS"
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17912
17913 /* Override any gcc2 internal prototype to avoid an error. */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char mit_des_cbc_encrypt ();
17920 int
17921 main ()
17922 {
17923 mit_des_cbc_encrypt ();
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17955 fi
17956 rm -f conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17959 fi
17960 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17961 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17962 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_LIBCRYPTO 1
17965 _ACEOF
17966
17967 LIBS="-lcrypto $LIBS"
17968
17969 fi
17970
17971
17972 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17973 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17974 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-lkrb5 $LIBS"
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985
17986 /* Override any gcc2 internal prototype to avoid an error. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 /* We use char because int might match the return type of a gcc2
17991 builtin and then its argument prototype would still apply. */
17992 char krb5_init_context ();
17993 int
17994 main ()
17995 {
17996 krb5_init_context ();
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest$ac_exeext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_krb5_krb5_init_context=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 ac_cv_lib_krb5_krb5_init_context=no
18028 fi
18029 rm -f conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18034 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18035 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_LIBKRB5 1
18038 _ACEOF
18039
18040 LIBS="-lkrb5 $LIBS"
18041
18042 fi
18043
18044 if test "${with_kerberos5+set}" != set; then
18045
18046 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18047 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18048 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-ldes425 $LIBS"
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059
18060 /* Override any gcc2 internal prototype to avoid an error. */
18061 #ifdef __cplusplus
18062 extern "C"
18063 #endif
18064 /* We use char because int might match the return type of a gcc2
18065 builtin and then its argument prototype would still apply. */
18066 char des_cbc_encrypt ();
18067 int
18068 main ()
18069 {
18070 des_cbc_encrypt ();
18071 ;
18072 return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18077 (eval $ac_link) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_lib_des425_des_cbc_encrypt=yes
18097 else
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ac_cv_lib_des425_des_cbc_encrypt=no
18102 fi
18103 rm -f conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18106 fi
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18108 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18109 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_LIBDES425 1
18112 _ACEOF
18113
18114 LIBS="-ldes425 $LIBS"
18115
18116 else
18117
18118 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18119 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18120 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123 ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-ldes $LIBS"
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131
18132 /* Override any gcc2 internal prototype to avoid an error. */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 /* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
18138 char des_cbc_encrypt ();
18139 int
18140 main ()
18141 {
18142 des_cbc_encrypt ();
18143 ;
18144 return 0;
18145 }
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_lib_des_des_cbc_encrypt=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 ac_cv_lib_des_des_cbc_encrypt=no
18174 fi
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18178 fi
18179 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18180 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18181 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define HAVE_LIBDES 1
18184 _ACEOF
18185
18186 LIBS="-ldes $LIBS"
18187
18188 fi
18189
18190 fi
18191
18192
18193 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18194 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18195 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-lkrb4 $LIBS"
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206
18207 /* Override any gcc2 internal prototype to avoid an error. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213 char krb_get_cred ();
18214 int
18215 main ()
18216 {
18217 krb_get_cred ();
18218 ;
18219 return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18224 (eval $ac_link) 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_lib_krb4_krb_get_cred=yes
18244 else
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 ac_cv_lib_krb4_krb_get_cred=no
18249 fi
18250 rm -f conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252 LIBS=$ac_check_lib_save_LIBS
18253 fi
18254 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18255 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18256 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define HAVE_LIBKRB4 1
18259 _ACEOF
18260
18261 LIBS="-lkrb4 $LIBS"
18262
18263 else
18264
18265 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18266 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18267 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270 ac_check_lib_save_LIBS=$LIBS
18271 LIBS="-lkrb $LIBS"
18272 cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h. */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278
18279 /* Override any gcc2 internal prototype to avoid an error. */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18285 char krb_get_cred ();
18286 int
18287 main ()
18288 {
18289 krb_get_cred ();
18290 ;
18291 return 0;
18292 }
18293 _ACEOF
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_cv_lib_krb_krb_get_cred=yes
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_cv_lib_krb_krb_get_cred=no
18321 fi
18322 rm -f conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18325 fi
18326 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18327 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18328 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18329 cat >>confdefs.h <<_ACEOF
18330 #define HAVE_LIBKRB 1
18331 _ACEOF
18332
18333 LIBS="-lkrb $LIBS"
18334
18335 fi
18336
18337 fi
18338
18339 fi
18340
18341 if test "${with_kerberos5+set}" = set; then
18342
18343 for ac_header in krb5.h
18344 do
18345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo "$as_me:$LINENO: checking for $ac_header" >&5
18348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 fi
18352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18354 else
18355 # Is the header compilable?
18356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 $ac_includes_default
18365 #include <$ac_header>
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest.$ac_objext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_header_compiler=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ac_header_compiler=no
18394 fi
18395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18397 echo "${ECHO_T}$ac_header_compiler" >&6
18398
18399 # Is the header present?
18400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 #include <$ac_header>
18409 _ACEOF
18410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } >/dev/null; then
18418 if test -s conftest.err; then
18419 ac_cpp_err=$ac_c_preproc_warn_flag
18420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18421 else
18422 ac_cpp_err=
18423 fi
18424 else
18425 ac_cpp_err=yes
18426 fi
18427 if test -z "$ac_cpp_err"; then
18428 ac_header_preproc=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 ac_header_preproc=no
18434 fi
18435 rm -f conftest.err conftest.$ac_ext
18436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18437 echo "${ECHO_T}$ac_header_preproc" >&6
18438
18439 # So? What about this header?
18440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18441 yes:no: )
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18446 ac_header_preproc=yes
18447 ;;
18448 no:yes:* )
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18461 (
18462 cat <<\_ASBOX
18463 ## ------------------------------------------ ##
18464 ## Report this to the AC_PACKAGE_NAME lists. ##
18465 ## ------------------------------------------ ##
18466 _ASBOX
18467 ) |
18468 sed "s/^/$as_me: WARNING: /" >&2
18469 ;;
18470 esac
18471 echo "$as_me:$LINENO: checking for $ac_header" >&5
18472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 eval "$as_ac_Header=\$ac_header_preproc"
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
18481 fi
18482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18485 _ACEOF
18486
18487 fi
18488
18489 done
18490
18491 else
18492
18493 for ac_header in des.h
18494 do
18495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18497 echo "$as_me:$LINENO: checking for $ac_header" >&5
18498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 fi
18502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18504 else
18505 # Is the header compilable?
18506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 #include <$ac_header>
18516 _ACEOF
18517 rm -f conftest.$ac_objext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18519 (eval $ac_compile) 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_header_compiler=yes
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 ac_header_compiler=no
18544 fi
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18547 echo "${ECHO_T}$ac_header_compiler" >&6
18548
18549 # Is the header present?
18550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18552 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 #include <$ac_header>
18559 _ACEOF
18560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } >/dev/null; then
18568 if test -s conftest.err; then
18569 ac_cpp_err=$ac_c_preproc_warn_flag
18570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18571 else
18572 ac_cpp_err=
18573 fi
18574 else
18575 ac_cpp_err=yes
18576 fi
18577 if test -z "$ac_cpp_err"; then
18578 ac_header_preproc=yes
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_header_preproc=no
18584 fi
18585 rm -f conftest.err conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18587 echo "${ECHO_T}$ac_header_preproc" >&6
18588
18589 # So? What about this header?
18590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18591 yes:no: )
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18596 ac_header_preproc=yes
18597 ;;
18598 no:yes:* )
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18611 (
18612 cat <<\_ASBOX
18613 ## ------------------------------------------ ##
18614 ## Report this to the AC_PACKAGE_NAME lists. ##
18615 ## ------------------------------------------ ##
18616 _ASBOX
18617 ) |
18618 sed "s/^/$as_me: WARNING: /" >&2
18619 ;;
18620 esac
18621 echo "$as_me:$LINENO: checking for $ac_header" >&5
18622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626 eval "$as_ac_Header=\$ac_header_preproc"
18627 fi
18628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18630
18631 fi
18632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18635 _ACEOF
18636
18637 else
18638
18639 for ac_header in kerberosIV/des.h
18640 do
18641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643 echo "$as_me:$LINENO: checking for $ac_header" >&5
18644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 fi
18648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18650 else
18651 # Is the header compilable?
18652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 $ac_includes_default
18661 #include <$ac_header>
18662 _ACEOF
18663 rm -f conftest.$ac_objext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest.$ac_objext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_header_compiler=yes
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ac_header_compiler=no
18690 fi
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18693 echo "${ECHO_T}$ac_header_compiler" >&6
18694
18695 # Is the header present?
18696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18698 cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h. */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <$ac_header>
18705 _ACEOF
18706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } >/dev/null; then
18714 if test -s conftest.err; then
18715 ac_cpp_err=$ac_c_preproc_warn_flag
18716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18717 else
18718 ac_cpp_err=
18719 fi
18720 else
18721 ac_cpp_err=yes
18722 fi
18723 if test -z "$ac_cpp_err"; then
18724 ac_header_preproc=yes
18725 else
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729 ac_header_preproc=no
18730 fi
18731 rm -f conftest.err conftest.$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18733 echo "${ECHO_T}$ac_header_preproc" >&6
18734
18735 # So? What about this header?
18736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18737 yes:no: )
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18742 ac_header_preproc=yes
18743 ;;
18744 no:yes:* )
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18757 (
18758 cat <<\_ASBOX
18759 ## ------------------------------------------ ##
18760 ## Report this to the AC_PACKAGE_NAME lists. ##
18761 ## ------------------------------------------ ##
18762 _ASBOX
18763 ) |
18764 sed "s/^/$as_me: WARNING: /" >&2
18765 ;;
18766 esac
18767 echo "$as_me:$LINENO: checking for $ac_header" >&5
18768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 eval "$as_ac_Header=\$ac_header_preproc"
18773 fi
18774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18776
18777 fi
18778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18779 cat >>confdefs.h <<_ACEOF
18780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18781 _ACEOF
18782
18783 else
18784
18785 for ac_header in kerberos/des.h
18786 do
18787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo "$as_me:$LINENO: checking for $ac_header" >&5
18790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 fi
18794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18796 else
18797 # Is the header compilable?
18798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h. */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 $ac_includes_default
18807 #include <$ac_header>
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_header_compiler=yes
18831 else
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 ac_header_compiler=no
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18839 echo "${ECHO_T}$ac_header_compiler" >&6
18840
18841 # Is the header present?
18842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 #include <$ac_header>
18851 _ACEOF
18852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } >/dev/null; then
18860 if test -s conftest.err; then
18861 ac_cpp_err=$ac_c_preproc_warn_flag
18862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18863 else
18864 ac_cpp_err=
18865 fi
18866 else
18867 ac_cpp_err=yes
18868 fi
18869 if test -z "$ac_cpp_err"; then
18870 ac_header_preproc=yes
18871 else
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 ac_header_preproc=no
18876 fi
18877 rm -f conftest.err conftest.$ac_ext
18878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18879 echo "${ECHO_T}$ac_header_preproc" >&6
18880
18881 # So? What about this header?
18882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18883 yes:no: )
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18888 ac_header_preproc=yes
18889 ;;
18890 no:yes:* )
18891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18903 (
18904 cat <<\_ASBOX
18905 ## ------------------------------------------ ##
18906 ## Report this to the AC_PACKAGE_NAME lists. ##
18907 ## ------------------------------------------ ##
18908 _ASBOX
18909 ) |
18910 sed "s/^/$as_me: WARNING: /" >&2
18911 ;;
18912 esac
18913 echo "$as_me:$LINENO: checking for $ac_header" >&5
18914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918 eval "$as_ac_Header=\$ac_header_preproc"
18919 fi
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922
18923 fi
18924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18925 cat >>confdefs.h <<_ACEOF
18926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18927 _ACEOF
18928
18929 fi
18930
18931 done
18932
18933 fi
18934
18935 done
18936
18937 fi
18938
18939 done
18940
18941
18942 for ac_header in krb.h
18943 do
18944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo "$as_me:$LINENO: checking for $ac_header" >&5
18947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 fi
18951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18953 else
18954 # Is the header compilable?
18955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 $ac_includes_default
18964 #include <$ac_header>
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968 (eval $ac_compile) 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_header_compiler=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_header_compiler=no
18993 fi
18994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18996 echo "${ECHO_T}$ac_header_compiler" >&6
18997
18998 # Is the header present?
18999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <$ac_header>
19008 _ACEOF
19009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } >/dev/null; then
19017 if test -s conftest.err; then
19018 ac_cpp_err=$ac_c_preproc_warn_flag
19019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19020 else
19021 ac_cpp_err=
19022 fi
19023 else
19024 ac_cpp_err=yes
19025 fi
19026 if test -z "$ac_cpp_err"; then
19027 ac_header_preproc=yes
19028 else
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ac_header_preproc=no
19033 fi
19034 rm -f conftest.err conftest.$ac_ext
19035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19036 echo "${ECHO_T}$ac_header_preproc" >&6
19037
19038 # So? What about this header?
19039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19040 yes:no: )
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19045 ac_header_preproc=yes
19046 ;;
19047 no:yes:* )
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19060 (
19061 cat <<\_ASBOX
19062 ## ------------------------------------------ ##
19063 ## Report this to the AC_PACKAGE_NAME lists. ##
19064 ## ------------------------------------------ ##
19065 _ASBOX
19066 ) |
19067 sed "s/^/$as_me: WARNING: /" >&2
19068 ;;
19069 esac
19070 echo "$as_me:$LINENO: checking for $ac_header" >&5
19071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075 eval "$as_ac_Header=\$ac_header_preproc"
19076 fi
19077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19079
19080 fi
19081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19084 _ACEOF
19085
19086 else
19087
19088 for ac_header in kerberosIV/krb.h
19089 do
19090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 fi
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19099 else
19100 # Is the header compilable?
19101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 $ac_includes_default
19110 #include <$ac_header>
19111 _ACEOF
19112 rm -f conftest.$ac_objext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_header_compiler=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 ac_header_compiler=no
19139 fi
19140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19142 echo "${ECHO_T}$ac_header_compiler" >&6
19143
19144 # Is the header present?
19145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h. */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <$ac_header>
19154 _ACEOF
19155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } >/dev/null; then
19163 if test -s conftest.err; then
19164 ac_cpp_err=$ac_c_preproc_warn_flag
19165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19166 else
19167 ac_cpp_err=
19168 fi
19169 else
19170 ac_cpp_err=yes
19171 fi
19172 if test -z "$ac_cpp_err"; then
19173 ac_header_preproc=yes
19174 else
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178 ac_header_preproc=no
19179 fi
19180 rm -f conftest.err conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19182 echo "${ECHO_T}$ac_header_preproc" >&6
19183
19184 # So? What about this header?
19185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19186 yes:no: )
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19191 ac_header_preproc=yes
19192 ;;
19193 no:yes:* )
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19206 (
19207 cat <<\_ASBOX
19208 ## ------------------------------------------ ##
19209 ## Report this to the AC_PACKAGE_NAME lists. ##
19210 ## ------------------------------------------ ##
19211 _ASBOX
19212 ) |
19213 sed "s/^/$as_me: WARNING: /" >&2
19214 ;;
19215 esac
19216 echo "$as_me:$LINENO: checking for $ac_header" >&5
19217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221 eval "$as_ac_Header=\$ac_header_preproc"
19222 fi
19223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19225
19226 fi
19227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19228 cat >>confdefs.h <<_ACEOF
19229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19230 _ACEOF
19231
19232 else
19233
19234 for ac_header in kerberos/krb.h
19235 do
19236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19238 echo "$as_me:$LINENO: checking for $ac_header" >&5
19239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 fi
19243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19245 else
19246 # Is the header compilable?
19247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h. */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 $ac_includes_default
19256 #include <$ac_header>
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_header_compiler=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_header_compiler=no
19285 fi
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6
19289
19290 # Is the header present?
19291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h. */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <$ac_header>
19300 _ACEOF
19301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } >/dev/null; then
19309 if test -s conftest.err; then
19310 ac_cpp_err=$ac_c_preproc_warn_flag
19311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19312 else
19313 ac_cpp_err=
19314 fi
19315 else
19316 ac_cpp_err=yes
19317 fi
19318 if test -z "$ac_cpp_err"; then
19319 ac_header_preproc=yes
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ac_header_preproc=no
19325 fi
19326 rm -f conftest.err conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6
19329
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332 yes:no: )
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc=yes
19338 ;;
19339 no:yes:* )
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19352 (
19353 cat <<\_ASBOX
19354 ## ------------------------------------------ ##
19355 ## Report this to the AC_PACKAGE_NAME lists. ##
19356 ## ------------------------------------------ ##
19357 _ASBOX
19358 ) |
19359 sed "s/^/$as_me: WARNING: /" >&2
19360 ;;
19361 esac
19362 echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 eval "$as_ac_Header=\$ac_header_preproc"
19368 fi
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371
19372 fi
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19376 _ACEOF
19377
19378 fi
19379
19380 done
19381
19382 fi
19383
19384 done
19385
19386 fi
19387
19388 done
19389
19390 fi
19391
19392 for ac_header in com_err.h
19393 do
19394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo "$as_me:$LINENO: checking for $ac_header" >&5
19397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 fi
19401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19403 else
19404 # Is the header compilable?
19405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 $ac_includes_default
19414 #include <$ac_header>
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler=yes
19438 else
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_header_compiler=no
19443 fi
19444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19447
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19458 _ACEOF
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461 ac_status=$?
19462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19470 else
19471 ac_cpp_err=
19472 fi
19473 else
19474 ac_cpp_err=yes
19475 fi
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc=yes
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ac_header_preproc=no
19483 fi
19484 rm -f conftest.err conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19487
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 yes:no: )
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc=yes
19496 ;;
19497 no:yes:* )
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19510 (
19511 cat <<\_ASBOX
19512 ## ------------------------------------------ ##
19513 ## Report this to the AC_PACKAGE_NAME lists. ##
19514 ## ------------------------------------------ ##
19515 _ASBOX
19516 ) |
19517 sed "s/^/$as_me: WARNING: /" >&2
19518 ;;
19519 esac
19520 echo "$as_me:$LINENO: checking for $ac_header" >&5
19521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 eval "$as_ac_Header=\$ac_header_preproc"
19526 fi
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19529
19530 fi
19531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19534 _ACEOF
19535
19536 fi
19537
19538 done
19539
19540 fi
19541
19542 # Solaris requires -lintl if you want strerror (which calls dgettext)
19543 # to return localized messages.
19544
19545 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19546 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19547 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lintl $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558
19559 /* Override any gcc2 internal prototype to avoid an error. */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 /* We use char because int might match the return type of a gcc2
19564 builtin and then its argument prototype would still apply. */
19565 char dgettext ();
19566 int
19567 main ()
19568 {
19569 dgettext ();
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_lib_intl_dgettext=yes
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_cv_lib_intl_dgettext=no
19601 fi
19602 rm -f conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19605 fi
19606 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19607 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19608 if test $ac_cv_lib_intl_dgettext = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define HAVE_LIBINTL 1
19611 _ACEOF
19612
19613 LIBS="-lintl $LIBS"
19614
19615 fi
19616
19617
19618 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19619 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19620 if test "${emacs_cv_localtime_cache+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 if test x$ac_cv_func_tzset = xyes; then
19624 if test "$cross_compiling" = yes; then
19625 # If we have tzset, assume the worst when cross-compiling.
19626 emacs_cv_localtime_cache=yes
19627 else
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <time.h>
19635 extern char **environ;
19636 unset_TZ ()
19637 {
19638 char **from, **to;
19639 for (to = from = environ; (*to = *from); from++)
19640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19641 to++;
19642 }
19643 char TZ_GMT0[] = "TZ=GMT0";
19644 char TZ_PST8[] = "TZ=PST8";
19645 main()
19646 {
19647 time_t now = time ((time_t *) 0);
19648 int hour_GMT0, hour_unset;
19649 if (putenv (TZ_GMT0) != 0)
19650 exit (1);
19651 hour_GMT0 = localtime (&now)->tm_hour;
19652 unset_TZ ();
19653 hour_unset = localtime (&now)->tm_hour;
19654 if (putenv (TZ_PST8) != 0)
19655 exit (1);
19656 if (localtime (&now)->tm_hour == hour_GMT0)
19657 exit (1);
19658 unset_TZ ();
19659 if (localtime (&now)->tm_hour != hour_unset)
19660 exit (1);
19661 exit (0);
19662 }
19663 _ACEOF
19664 rm -f conftest$ac_exeext
19665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 emacs_cv_localtime_cache=no
19676 else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ( exit $ac_status )
19682 emacs_cv_localtime_cache=yes
19683 fi
19684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685 fi
19686 else
19687 # If we lack tzset, report that localtime does not cache TZ,
19688 # since we can't invalidate the cache if we don't have tzset.
19689 emacs_cv_localtime_cache=no
19690 fi
19691 fi
19692 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19693 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19694 if test $emacs_cv_localtime_cache = yes; then
19695
19696 cat >>confdefs.h <<\_ACEOF
19697 #define LOCALTIME_CACHE 1
19698 _ACEOF
19699
19700 fi
19701
19702 if test "x$HAVE_TIMEVAL" = xyes; then
19703
19704 for ac_func in gettimeofday
19705 do
19706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19707 echo "$as_me:$LINENO: checking for $ac_func" >&5
19708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_var+set}\" = set"; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19720 #define $ac_func innocuous_$ac_func
19721
19722 /* System header to define __stub macros and hopefully few prototypes,
19723 which can conflict with char $ac_func (); below.
19724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19725 <limits.h> exists even on freestanding compilers. */
19726
19727 #ifdef __STDC__
19728 # include <limits.h>
19729 #else
19730 # include <assert.h>
19731 #endif
19732
19733 #undef $ac_func
19734
19735 /* Override any gcc2 internal prototype to avoid an error. */
19736 #ifdef __cplusplus
19737 extern "C"
19738 {
19739 #endif
19740 /* We use char because int might match the return type of a gcc2
19741 builtin and then its argument prototype would still apply. */
19742 char $ac_func ();
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19747 choke me
19748 #else
19749 char (*f) () = $ac_func;
19750 #endif
19751 #ifdef __cplusplus
19752 }
19753 #endif
19754
19755 int
19756 main ()
19757 {
19758 return f != $ac_func;
19759 ;
19760 return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 eval "$as_ac_var=yes"
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 eval "$as_ac_var=no"
19790 fi
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793 fi
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19796 if test `eval echo '${'$as_ac_var'}'` = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19799 _ACEOF
19800
19801 fi
19802 done
19803
19804 if test $ac_cv_func_gettimeofday = yes; then
19805 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19806 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19807 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810 cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h. */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19816
19817 #ifdef TIME_WITH_SYS_TIME
19818 #include <sys/time.h>
19819 #include <time.h>
19820 #else
19821 #ifdef HAVE_SYS_TIME_H
19822 #include <sys/time.h>
19823 #else
19824 #include <time.h>
19825 #endif
19826 #endif
19827 int
19828 main ()
19829 {
19830 struct timeval time;
19831 gettimeofday (&time, 0);
19832 ;
19833 return 0;
19834 }
19835 _ACEOF
19836 rm -f conftest.$ac_objext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19838 (eval $ac_compile) 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 emacs_cv_gettimeofday_two_arguments=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 emacs_cv_gettimeofday_two_arguments=no
19863 fi
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19865 fi
19866 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19867 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19868 if test $emacs_cv_gettimeofday_two_arguments = no; then
19869
19870 cat >>confdefs.h <<\_ACEOF
19871 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19872 _ACEOF
19873
19874 fi
19875 fi
19876 fi
19877
19878 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <$ac_cv_struct_tm>
19892
19893
19894 int
19895 main ()
19896 {
19897 static struct tm ac_aggr;
19898 if (ac_aggr.tm_zone)
19899 return 0;
19900 ;
19901 return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 ac_cv_member_struct_tm_tm_zone=yes
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <sys/types.h>
19937 #include <$ac_cv_struct_tm>
19938
19939
19940 int
19941 main ()
19942 {
19943 static struct tm ac_aggr;
19944 if (sizeof ac_aggr.tm_zone)
19945 return 0;
19946 ;
19947 return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_member_struct_tm_tm_zone=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_cv_member_struct_tm_tm_zone=no
19977 fi
19978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19979 fi
19980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19983 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19984 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19985
19986 cat >>confdefs.h <<_ACEOF
19987 #define HAVE_STRUCT_TM_TM_ZONE 1
19988 _ACEOF
19989
19990
19991 fi
19992
19993 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19994
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_TM_ZONE 1
19997 _ACEOF
19998
19999 else
20000 echo "$as_me:$LINENO: checking for tzname" >&5
20001 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20002 if test "${ac_cv_var_tzname+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <time.h>
20012 #ifndef tzname /* For SGI. */
20013 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20014 #endif
20015
20016 int
20017 main ()
20018 {
20019 atoi(*tzname);
20020 ;
20021 return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest$ac_exeext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_cv_var_tzname=yes
20046 else
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 ac_cv_var_tzname=no
20051 fi
20052 rm -f conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20054 fi
20055 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20056 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20057 if test $ac_cv_var_tzname = yes; then
20058
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_TZNAME 1
20061 _ACEOF
20062
20063 fi
20064 fi
20065
20066
20067 if test "$ac_cv_func_gettimeofday" = yes; then
20068 echo "$as_me:$LINENO: checking for struct timezone" >&5
20069 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20070 if test "${emacs_cv_struct_timezone+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h. */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <sys/time.h>
20080 int
20081 main ()
20082 {
20083 struct timezone tz;
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" || test ! -s conftest.err'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 if test "$cross_compiling" = yes; then
20110 emacs_cv_struct_timezone=yes
20111 else
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118
20119 #ifdef TIME_WITH_SYS_TIME
20120 #include <sys/time.h>
20121 #include <time.h>
20122 #else
20123 #ifdef HAVE_SYS_TIME_H
20124 #include <sys/time.h>
20125 #else
20126 #include <time.h>
20127 #endif
20128 #endif
20129 main () {
20130 struct timeval time;
20131 struct timezone dummy;
20132 exit (gettimeofday (&time, &dummy));
20133 }
20134 _ACEOF
20135 rm -f conftest$ac_exeext
20136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20137 (eval $ac_link) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 emacs_cv_struct_timezone=yes
20147 else
20148 echo "$as_me: program exited with status $ac_status" >&5
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20151
20152 ( exit $ac_status )
20153 emacs_cv_struct_timezone=no
20154 fi
20155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20156 fi
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 emacs_cv_struct_timezone=no
20162 fi
20163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20164 fi
20165 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20166 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20167 fi
20168
20169 ok_so_far=yes
20170 echo "$as_me:$LINENO: checking for socket" >&5
20171 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20172 if test "${ac_cv_func_socket+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20183 #define socket innocuous_socket
20184
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char socket (); below.
20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20188 <limits.h> exists even on freestanding compilers. */
20189
20190 #ifdef __STDC__
20191 # include <limits.h>
20192 #else
20193 # include <assert.h>
20194 #endif
20195
20196 #undef socket
20197
20198 /* Override any gcc2 internal prototype to avoid an error. */
20199 #ifdef __cplusplus
20200 extern "C"
20201 {
20202 #endif
20203 /* We use char because int might match the return type of a gcc2
20204 builtin and then its argument prototype would still apply. */
20205 char socket ();
20206 /* The GNU C library defines this for functions which it implements
20207 to always fail with ENOSYS. Some functions are actually named
20208 something starting with __ and the normal name is an alias. */
20209 #if defined (__stub_socket) || defined (__stub___socket)
20210 choke me
20211 #else
20212 char (*f) () = socket;
20213 #endif
20214 #ifdef __cplusplus
20215 }
20216 #endif
20217
20218 int
20219 main ()
20220 {
20221 return f != socket;
20222 ;
20223 return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext conftest$ac_exeext
20227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20228 (eval $ac_link) 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest$ac_exeext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_func_socket=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_cv_func_socket=no
20253 fi
20254 rm -f conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 fi
20257 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20258 echo "${ECHO_T}$ac_cv_func_socket" >&6
20259 if test $ac_cv_func_socket = yes; then
20260 :
20261 else
20262 ok_so_far=no
20263 fi
20264
20265 if test $ok_so_far = yes; then
20266 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20268 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20269 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 fi
20272 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20274 else
20275 # Is the header compilable?
20276 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20277 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <netinet/in.h>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_header_compiler=yes
20309 else
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_header_compiler=no
20314 fi
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20317 echo "${ECHO_T}$ac_header_compiler" >&6
20318
20319 # Is the header present?
20320 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20321 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h. */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <netinet/in.h>
20329 _ACEOF
20330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null; then
20338 if test -s conftest.err; then
20339 ac_cpp_err=$ac_c_preproc_warn_flag
20340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20341 else
20342 ac_cpp_err=
20343 fi
20344 else
20345 ac_cpp_err=yes
20346 fi
20347 if test -z "$ac_cpp_err"; then
20348 ac_header_preproc=yes
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_header_preproc=no
20354 fi
20355 rm -f conftest.err conftest.$ac_ext
20356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20357 echo "${ECHO_T}$ac_header_preproc" >&6
20358
20359 # So? What about this header?
20360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20361 yes:no: )
20362 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20363 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20365 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20366 ac_header_preproc=yes
20367 ;;
20368 no:yes:* )
20369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20370 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20372 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20374 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20376 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20378 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20380 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20381 (
20382 cat <<\_ASBOX
20383 ## ------------------------------------------ ##
20384 ## Report this to the AC_PACKAGE_NAME lists. ##
20385 ## ------------------------------------------ ##
20386 _ASBOX
20387 ) |
20388 sed "s/^/$as_me: WARNING: /" >&2
20389 ;;
20390 esac
20391 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20392 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20393 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396 ac_cv_header_netinet_in_h=$ac_header_preproc
20397 fi
20398 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20399 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20400
20401 fi
20402 if test $ac_cv_header_netinet_in_h = yes; then
20403 :
20404 else
20405 ok_so_far=no
20406 fi
20407
20408
20409 fi
20410 if test $ok_so_far = yes; then
20411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20412 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20413 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20414 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 fi
20417 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20418 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20419 else
20420 # Is the header compilable?
20421 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20422 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <arpa/inet.h>
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_header_compiler=yes
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_header_compiler=no
20459 fi
20460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20462 echo "${ECHO_T}$ac_header_compiler" >&6
20463
20464 # Is the header present?
20465 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20466 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <arpa/inet.h>
20474 _ACEOF
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null; then
20483 if test -s conftest.err; then
20484 ac_cpp_err=$ac_c_preproc_warn_flag
20485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20486 else
20487 ac_cpp_err=
20488 fi
20489 else
20490 ac_cpp_err=yes
20491 fi
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc=yes
20494 else
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_header_preproc=no
20499 fi
20500 rm -f conftest.err conftest.$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20502 echo "${ECHO_T}$ac_header_preproc" >&6
20503
20504 # So? What about this header?
20505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20506 yes:no: )
20507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20508 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20510 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20511 ac_header_preproc=yes
20512 ;;
20513 no:yes:* )
20514 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20515 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20517 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20519 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20521 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20523 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20525 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20526 (
20527 cat <<\_ASBOX
20528 ## ------------------------------------------ ##
20529 ## Report this to the AC_PACKAGE_NAME lists. ##
20530 ## ------------------------------------------ ##
20531 _ASBOX
20532 ) |
20533 sed "s/^/$as_me: WARNING: /" >&2
20534 ;;
20535 esac
20536 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20537 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20538 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 ac_cv_header_arpa_inet_h=$ac_header_preproc
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20544 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20545
20546 fi
20547 if test $ac_cv_header_arpa_inet_h = yes; then
20548 :
20549 else
20550 ok_so_far=no
20551 fi
20552
20553
20554 fi
20555 if test $ok_so_far = yes; then
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE_INET_SOCKETS 1
20559 _ACEOF
20560
20561 fi
20562
20563
20564 for ac_header in sys/ioctl.h
20565 do
20566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 fi
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575 else
20576 # Is the header compilable?
20577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 $ac_includes_default
20586 #include <$ac_header>
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_header_compiler=yes
20610 else
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614 ac_header_compiler=no
20615 fi
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6
20619
20620 # Is the header present?
20621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20630 _ACEOF
20631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev/null; then
20639 if test -s conftest.err; then
20640 ac_cpp_err=$ac_c_preproc_warn_flag
20641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20642 else
20643 ac_cpp_err=
20644 fi
20645 else
20646 ac_cpp_err=yes
20647 fi
20648 if test -z "$ac_cpp_err"; then
20649 ac_header_preproc=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ac_header_preproc=no
20655 fi
20656 rm -f conftest.err conftest.$ac_ext
20657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6
20659
20660 # So? What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20662 yes:no: )
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc=yes
20668 ;;
20669 no:yes:* )
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20682 (
20683 cat <<\_ASBOX
20684 ## ------------------------------------------ ##
20685 ## Report this to the AC_PACKAGE_NAME lists. ##
20686 ## ------------------------------------------ ##
20687 _ASBOX
20688 ) |
20689 sed "s/^/$as_me: WARNING: /" >&2
20690 ;;
20691 esac
20692 echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 eval "$as_ac_Header=\$ac_header_preproc"
20698 fi
20699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20701
20702 fi
20703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706 _ACEOF
20707
20708 fi
20709
20710 done
20711
20712
20713 if test -f /usr/lpp/X11/bin/smt.exp; then
20714
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_AIX_SMT_EXP 1
20717 _ACEOF
20718
20719 fi
20720
20721 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20722 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20723 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20724 echo "$as_me:$LINENO: result: yes" >&5
20725 echo "${ECHO_T}yes" >&6
20726
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_DEV_PTMX 1
20729 _ACEOF
20730
20731 else
20732 echo "$as_me:$LINENO: result: no" >&5
20733 echo "${ECHO_T}no" >&6
20734 fi
20735
20736 echo "$as_me:$LINENO: checking for pid_t" >&5
20737 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20738 if test "${ac_cv_type_pid_t+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20748 int
20749 main ()
20750 {
20751 if ((pid_t *) 0)
20752 return 0;
20753 if (sizeof (pid_t))
20754 return 0;
20755 ;
20756 return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20761 (eval $ac_compile) 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 ac_cv_type_pid_t=yes
20781 else
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 ac_cv_type_pid_t=no
20786 fi
20787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 fi
20789 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20790 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20791 if test $ac_cv_type_pid_t = yes; then
20792 :
20793 else
20794
20795 cat >>confdefs.h <<_ACEOF
20796 #define pid_t int
20797 _ACEOF
20798
20799 fi
20800
20801
20802
20803 for ac_header in unistd.h vfork.h
20804 do
20805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20807 echo "$as_me:$LINENO: checking for $ac_header" >&5
20808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 fi
20812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20814 else
20815 # Is the header compilable?
20816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 $ac_includes_default
20825 #include <$ac_header>
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20829 (eval $ac_compile) 2>conftest.er1
20830 ac_status=$?
20831 grep -v '^ *+' conftest.er1 >conftest.err
20832 rm -f conftest.er1
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; } &&
20842 { ac_try='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_header_compiler=yes
20849 else
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 ac_header_compiler=no
20854 fi
20855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6
20858
20859 # Is the header present?
20860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <$ac_header>
20869 _ACEOF
20870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } >/dev/null; then
20878 if test -s conftest.err; then
20879 ac_cpp_err=$ac_c_preproc_warn_flag
20880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20881 else
20882 ac_cpp_err=
20883 fi
20884 else
20885 ac_cpp_err=yes
20886 fi
20887 if test -z "$ac_cpp_err"; then
20888 ac_header_preproc=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_header_preproc=no
20894 fi
20895 rm -f conftest.err conftest.$ac_ext
20896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20897 echo "${ECHO_T}$ac_header_preproc" >&6
20898
20899 # So? What about this header?
20900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20901 yes:no: )
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20906 ac_header_preproc=yes
20907 ;;
20908 no:yes:* )
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20921 (
20922 cat <<\_ASBOX
20923 ## ------------------------------------------ ##
20924 ## Report this to the AC_PACKAGE_NAME lists. ##
20925 ## ------------------------------------------ ##
20926 _ASBOX
20927 ) |
20928 sed "s/^/$as_me: WARNING: /" >&2
20929 ;;
20930 esac
20931 echo "$as_me:$LINENO: checking for $ac_header" >&5
20932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 eval "$as_ac_Header=\$ac_header_preproc"
20937 fi
20938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20940
20941 fi
20942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20943 cat >>confdefs.h <<_ACEOF
20944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20945 _ACEOF
20946
20947 fi
20948
20949 done
20950
20951
20952
20953 for ac_func in fork vfork
20954 do
20955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20956 echo "$as_me:$LINENO: checking for $ac_func" >&5
20957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20958 if eval "test \"\${$as_ac_var+set}\" = set"; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20969 #define $ac_func innocuous_$ac_func
20970
20971 /* System header to define __stub macros and hopefully few prototypes,
20972 which can conflict with char $ac_func (); below.
20973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20974 <limits.h> exists even on freestanding compilers. */
20975
20976 #ifdef __STDC__
20977 # include <limits.h>
20978 #else
20979 # include <assert.h>
20980 #endif
20981
20982 #undef $ac_func
20983
20984 /* Override any gcc2 internal prototype to avoid an error. */
20985 #ifdef __cplusplus
20986 extern "C"
20987 {
20988 #endif
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char $ac_func ();
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20996 choke me
20997 #else
20998 char (*f) () = $ac_func;
20999 #endif
21000 #ifdef __cplusplus
21001 }
21002 #endif
21003
21004 int
21005 main ()
21006 {
21007 return f != $ac_func;
21008 ;
21009 return 0;
21010 }
21011 _ACEOF
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest$ac_exeext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 eval "$as_ac_var=yes"
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 eval "$as_ac_var=no"
21039 fi
21040 rm -f conftest.err conftest.$ac_objext \
21041 conftest$ac_exeext conftest.$ac_ext
21042 fi
21043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21045 if test `eval echo '${'$as_ac_var'}'` = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21048 _ACEOF
21049
21050 fi
21051 done
21052
21053 if test "x$ac_cv_func_fork" = xyes; then
21054 echo "$as_me:$LINENO: checking for working fork" >&5
21055 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21056 if test "${ac_cv_func_fork_works+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 if test "$cross_compiling" = yes; then
21060 ac_cv_func_fork_works=cross
21061 else
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* By Ruediger Kuhlmann. */
21064 #include <sys/types.h>
21065 #if HAVE_UNISTD_H
21066 # include <unistd.h>
21067 #endif
21068 /* Some systems only have a dummy stub for fork() */
21069 int main ()
21070 {
21071 if (fork() < 0)
21072 exit (1);
21073 exit (0);
21074 }
21075 _ACEOF
21076 rm -f conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_fork_works=yes
21088 else
21089 echo "$as_me: program exited with status $ac_status" >&5
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 ( exit $ac_status )
21094 ac_cv_func_fork_works=no
21095 fi
21096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21097 fi
21098 fi
21099 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21100 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21101
21102 else
21103 ac_cv_func_fork_works=$ac_cv_func_fork
21104 fi
21105 if test "x$ac_cv_func_fork_works" = xcross; then
21106 case $host in
21107 *-*-amigaos* | *-*-msdosdjgpp*)
21108 # Override, as these systems have only a dummy fork() stub
21109 ac_cv_func_fork_works=no
21110 ;;
21111 *)
21112 ac_cv_func_fork_works=yes
21113 ;;
21114 esac
21115 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21116 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21117 fi
21118 ac_cv_func_vfork_works=$ac_cv_func_vfork
21119 if test "x$ac_cv_func_vfork" = xyes; then
21120 echo "$as_me:$LINENO: checking for working vfork" >&5
21121 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21122 if test "${ac_cv_func_vfork_works+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125 if test "$cross_compiling" = yes; then
21126 ac_cv_func_vfork_works=cross
21127 else
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 /* Thanks to Paul Eggert for this test. */
21135 #include <stdio.h>
21136 #include <stdlib.h>
21137 #include <sys/types.h>
21138 #include <sys/stat.h>
21139 #include <sys/wait.h>
21140 #if HAVE_UNISTD_H
21141 # include <unistd.h>
21142 #endif
21143 #if HAVE_VFORK_H
21144 # include <vfork.h>
21145 #endif
21146 /* On some sparc systems, changes by the child to local and incoming
21147 argument registers are propagated back to the parent. The compiler
21148 is told about this with #include <vfork.h>, but some compilers
21149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21150 static variable whose address is put into a register that is
21151 clobbered by the vfork. */
21152 static void
21153 #ifdef __cplusplus
21154 sparc_address_test (int arg)
21155 # else
21156 sparc_address_test (arg) int arg;
21157 #endif
21158 {
21159 static pid_t child;
21160 if (!child) {
21161 child = vfork ();
21162 if (child < 0) {
21163 perror ("vfork");
21164 _exit(2);
21165 }
21166 if (!child) {
21167 arg = getpid();
21168 write(-1, "", 0);
21169 _exit (arg);
21170 }
21171 }
21172 }
21173
21174 int
21175 main ()
21176 {
21177 pid_t parent = getpid ();
21178 pid_t child;
21179
21180 sparc_address_test (0);
21181
21182 child = vfork ();
21183
21184 if (child == 0) {
21185 /* Here is another test for sparc vfork register problems. This
21186 test uses lots of local variables, at least as many local
21187 variables as main has allocated so far including compiler
21188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21190 reuse the register of parent for one of the local variables,
21191 since it will think that parent can't possibly be used any more
21192 in this routine. Assigning to the local variable will thus
21193 munge parent in the parent process. */
21194 pid_t
21195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21197 /* Convince the compiler that p..p7 are live; otherwise, it might
21198 use the same hardware register for all 8 local variables. */
21199 if (p != p1 || p != p2 || p != p3 || p != p4
21200 || p != p5 || p != p6 || p != p7)
21201 _exit(1);
21202
21203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21204 from child file descriptors. If the child closes a descriptor
21205 before it execs or exits, this munges the parent's descriptor
21206 as well. Test for this by closing stdout in the child. */
21207 _exit(close(fileno(stdout)) != 0);
21208 } else {
21209 int status;
21210 struct stat st;
21211
21212 while (wait(&status) != child)
21213 ;
21214 exit(
21215 /* Was there some problem with vforking? */
21216 child < 0
21217
21218 /* Did the child fail? (This shouldn't happen.) */
21219 || status
21220
21221 /* Did the vfork/compiler bug occur? */
21222 || parent != getpid()
21223
21224 /* Did the file descriptor bug occur? */
21225 || fstat(fileno(stdout), &st) != 0
21226 );
21227 }
21228 }
21229 _ACEOF
21230 rm -f conftest$ac_exeext
21231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232 (eval $ac_link) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_func_vfork_works=yes
21242 else
21243 echo "$as_me: program exited with status $ac_status" >&5
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247 ( exit $ac_status )
21248 ac_cv_func_vfork_works=no
21249 fi
21250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21251 fi
21252 fi
21253 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21254 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21255
21256 fi;
21257 if test "x$ac_cv_func_fork_works" = xcross; then
21258 ac_cv_func_vfork_works=$ac_cv_func_vfork
21259 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21260 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21261 fi
21262
21263 if test "x$ac_cv_func_vfork_works" = xyes; then
21264
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_WORKING_VFORK 1
21267 _ACEOF
21268
21269 else
21270
21271 cat >>confdefs.h <<\_ACEOF
21272 #define vfork fork
21273 _ACEOF
21274
21275 fi
21276 if test "x$ac_cv_func_fork_works" = xyes; then
21277
21278 cat >>confdefs.h <<\_ACEOF
21279 #define HAVE_WORKING_FORK 1
21280 _ACEOF
21281
21282 fi
21283
21284
21285 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21286 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21287 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <langinfo.h>
21297 int
21298 main ()
21299 {
21300 char* cs = nl_langinfo(CODESET);
21301 ;
21302 return 0;
21303 }
21304 _ACEOF
21305 rm -f conftest.$ac_objext conftest$ac_exeext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21307 (eval $ac_link) 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; } &&
21320 { ac_try='test -s conftest$ac_exeext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 emacs_cv_langinfo_codeset=yes
21327 else
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331 emacs_cv_langinfo_codeset=no
21332 fi
21333 rm -f conftest.err conftest.$ac_objext \
21334 conftest$ac_exeext conftest.$ac_ext
21335
21336 fi
21337 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21338 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21339 if test $emacs_cv_langinfo_codeset = yes; then
21340
21341 cat >>confdefs.h <<\_ACEOF
21342 #define HAVE_LANGINFO_CODESET 1
21343 _ACEOF
21344
21345 fi
21346
21347 echo "$as_me:$LINENO: checking for size_t" >&5
21348 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21349 if test "${ac_cv_type_size_t+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21359 int
21360 main ()
21361 {
21362 if ((size_t *) 0)
21363 return 0;
21364 if (sizeof (size_t))
21365 return 0;
21366 ;
21367 return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; } &&
21385 { ac_try='test -s conftest.$ac_objext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_type_size_t=yes
21392 else
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396 ac_cv_type_size_t=no
21397 fi
21398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21399 fi
21400 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21401 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21402 if test $ac_cv_type_size_t = yes; then
21403
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE_SIZE_T 1
21406 _ACEOF
21407
21408
21409 fi
21410
21411
21412 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21413 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21414 if test "${ac_cv_type_mbstate_t+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 # include <wchar.h>
21425 int
21426 main ()
21427 {
21428 mbstate_t x; return sizeof x;
21429 ;
21430 return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21435 (eval $ac_compile) 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
21442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_type_mbstate_t=yes
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 ac_cv_type_mbstate_t=no
21460 fi
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21462 fi
21463 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21464 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21465 if test $ac_cv_type_mbstate_t = yes; then
21466
21467 cat >>confdefs.h <<\_ACEOF
21468 #define HAVE_MBSTATE_T 1
21469 _ACEOF
21470
21471 else
21472
21473 cat >>confdefs.h <<\_ACEOF
21474 #define mbstate_t int
21475 _ACEOF
21476
21477 fi
21478
21479 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21480 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21481 if test "${emacs_cv_c_restrict+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 void fred (int *restrict x);
21491 int
21492 main ()
21493 {
21494
21495 ;
21496 return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 emacs_cv_c_restrict=yes
21521 else
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 void fred (int *__restrict x);
21532 int
21533 main ()
21534 {
21535
21536 ;
21537 return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 emacs_cv_c_restrict=__restrict
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 emacs_cv_c_restrict=no
21567 fi
21568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21569 fi
21570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21571 fi
21572 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21573 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21574 case "$emacs_cv_c_restrict" in
21575 yes) emacs_restrict=restrict;;
21576 no) emacs_restrict="";;
21577 *) emacs_restrict="$emacs_cv_c_restrict";;
21578 esac
21579 if test "$emacs_restrict" != __restrict; then
21580
21581 cat >>confdefs.h <<_ACEOF
21582 #define __restrict $emacs_restrict
21583 _ACEOF
21584
21585 fi
21586
21587 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21588 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21589 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 void fred (int x[__restrict]);
21599 int
21600 main ()
21601 {
21602
21603 ;
21604 return 0;
21605 }
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 emacs_cv_c_restrict_arr=yes
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633 emacs_cv_c_restrict_arr=no
21634 fi
21635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21636 fi
21637 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21638 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21639 if test "$emacs_cv_c_restrict_arr" = yes; then
21640
21641 cat >>confdefs.h <<\_ACEOF
21642 #define __restrict_arr __restrict
21643 _ACEOF
21644
21645 fi
21646
21647
21648
21649 # Set up the CFLAGS for real compilation, so we can substitute it.
21650 CFLAGS="$REAL_CFLAGS"
21651 CPPFLAGS="$REAL_CPPFLAGS"
21652
21653 #### Find out which version of Emacs this is.
21654 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21655 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21656 if test x"${version}" = x; then
21657 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21658 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21659 { (exit 1); exit 1; }; }
21660 fi
21661
21662 ### Specify what sort of things we'll be editing into Makefile and config.h.
21663 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699 cat >>confdefs.h <<_ACEOF
21700 #define EMACS_CONFIGURATION "${canonical}"
21701 _ACEOF
21702
21703
21704 cat >>confdefs.h <<_ACEOF
21705 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21706 _ACEOF
21707
21708
21709 cat >>confdefs.h <<_ACEOF
21710 #define config_machfile "${machfile}"
21711 _ACEOF
21712
21713
21714 cat >>confdefs.h <<_ACEOF
21715 #define config_opsysfile "${opsysfile}"
21716 _ACEOF
21717
21718
21719 cat >>confdefs.h <<_ACEOF
21720 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21721 _ACEOF
21722
21723
21724 cat >>confdefs.h <<_ACEOF
21725 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21726 _ACEOF
21727
21728
21729 cat >>confdefs.h <<_ACEOF
21730 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21731 _ACEOF
21732
21733
21734 cat >>confdefs.h <<_ACEOF
21735 #define UNEXEC_SRC ${UNEXEC_SRC}
21736 _ACEOF
21737
21738
21739 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21740
21741 cat >>confdefs.h <<\_ACEOF
21742 #define HAVE_X_WINDOWS 1
21743 _ACEOF
21744
21745 fi
21746 if test "${USE_X_TOOLKIT}" != "none" ; then
21747
21748 cat >>confdefs.h <<\_ACEOF
21749 #define USE_X_TOOLKIT 1
21750 _ACEOF
21751
21752 fi
21753 if test "${HAVE_X11}" = "yes" ; then
21754
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_X11 1
21757 _ACEOF
21758
21759 fi
21760 if test "${HAVE_XFREE386}" = "yes" ; then
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define HAVE_XFREE386 1
21764 _ACEOF
21765
21766 fi
21767 if test "${HAVE_MENUS}" = "yes" ; then
21768
21769 cat >>confdefs.h <<\_ACEOF
21770 #define HAVE_MENUS 1
21771 _ACEOF
21772
21773 fi
21774 if test "${GNU_MALLOC}" = "yes" ; then
21775
21776 cat >>confdefs.h <<\_ACEOF
21777 #define GNU_MALLOC 1
21778 _ACEOF
21779
21780 fi
21781 if test "${REL_ALLOC}" = "yes" ; then
21782
21783 cat >>confdefs.h <<\_ACEOF
21784 #define REL_ALLOC 1
21785 _ACEOF
21786
21787 fi
21788
21789
21790
21791
21792
21793 #### Report on what we decided to do.
21794 #### Report GTK as a toolkit, even if it doesn't use Xt.
21795 #### It makes printing result more understandable as using GTK sets
21796 #### toolkit_scroll_bars to yes by default.
21797 if test "${HAVE_GTK}" = "yes"; then
21798 USE_X_TOOLKIT=GTK
21799 fi
21800
21801 echo "
21802 Configured for \`${canonical}'.
21803
21804 Where should the build process find the source code? ${srcdir}
21805 What operating system and machine description files should Emacs use?
21806 \`${opsysfile}' and \`${machfile}'
21807 What compiler should emacs be built with? ${CC} ${CFLAGS}
21808 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21809 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21810 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21811 What window system should Emacs use? ${window_system}
21812 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21813
21814 if test -n "${x_includes}"; then
21815 echo " Where do we find X Windows header files? ${x_includes}"
21816 else
21817 echo " Where do we find X Windows header files? Standard dirs"
21818 fi
21819 if test -n "${x_libraries}"; then
21820 echo " Where do we find X Windows libraries? ${x_libraries}"
21821 else
21822 echo " Where do we find X Windows libraries? Standard dirs"
21823 fi
21824
21825 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21826 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21827 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21828 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21829 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21830 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21831 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21832 echo
21833
21834 if test $USE_XASSERTS = yes; then
21835 echo " Compiling with asserts turned on."
21836 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21837 echo
21838 fi
21839
21840
21841
21842 # Remove any trailing slashes in these variables.
21843 test "${prefix}" != NONE &&
21844 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21845 test "${exec_prefix}" != NONE &&
21846 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21847
21848 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21849 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21850 ## from Makefile.c can correctly provide the arg `-traditional' to the
21851 ## C preprocessor.
21852
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 yes..yes
21860 _ACEOF
21861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21862 $EGREP "yes..yes" >/dev/null 2>&1; then
21863 CPP_NEED_TRADITIONAL=no
21864 else
21865 CPP_NEED_TRADITIONAL=yes
21866 fi
21867 rm -f conftest*
21868
21869
21870 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"
21871 ac_config_commands="$ac_config_commands default"
21872 cat >confcache <<\_ACEOF
21873 # This file is a shell script that caches the results of configure
21874 # tests run on this system so they can be shared between configure
21875 # scripts and configure runs, see configure's option --config-cache.
21876 # It is not useful on other systems. If it contains results you don't
21877 # want to keep, you may remove or edit it.
21878 #
21879 # config.status only pays attention to the cache file if you give it
21880 # the --recheck option to rerun configure.
21881 #
21882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21884 # following values.
21885
21886 _ACEOF
21887
21888 # The following way of writing the cache mishandles newlines in values,
21889 # but we know of no workaround that is simple, portable, and efficient.
21890 # So, don't put newlines in cache variables' values.
21891 # Ultrix sh set writes to stderr and can't be redirected directly,
21892 # and sets the high bit in the cache file unless we assign to the vars.
21893 {
21894 (set) 2>&1 |
21895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21896 *ac_space=\ *)
21897 # `set' does not quote correctly, so add quotes (double-quote
21898 # substitution turns \\\\ into \\, and sed turns \\ into \).
21899 sed -n \
21900 "s/'/'\\\\''/g;
21901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21902 ;;
21903 *)
21904 # `set' quotes correctly as required by POSIX, so do not add quotes.
21905 sed -n \
21906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21907 ;;
21908 esac;
21909 } |
21910 sed '
21911 t clear
21912 : clear
21913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21914 t end
21915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21916 : end' >>confcache
21917 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21918 if test -w $cache_file; then
21919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21920 cat confcache >$cache_file
21921 else
21922 echo "not updating unwritable cache $cache_file"
21923 fi
21924 fi
21925 rm -f confcache
21926
21927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21928 # Let make expand exec_prefix.
21929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21930
21931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21933 # trailing colons and then remove the whole line if VPATH becomes empty
21934 # (actually we leave an empty line to preserve line numbers).
21935 if test "x$srcdir" = x.; then
21936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21937 s/:*\$(srcdir):*/:/;
21938 s/:*\${srcdir}:*/:/;
21939 s/:*@srcdir@:*/:/;
21940 s/^\([^=]*=[ ]*\):*/\1/;
21941 s/:*$//;
21942 s/^[^=]*=[ ]*$//;
21943 }'
21944 fi
21945
21946 DEFS=-DHAVE_CONFIG_H
21947
21948 ac_libobjs=
21949 ac_ltlibobjs=
21950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21951 # 1. Remove the extension, and $U if already installed.
21952 ac_i=`echo "$ac_i" |
21953 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21954 # 2. Add them.
21955 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21956 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21957 done
21958 LIBOBJS=$ac_libobjs
21959
21960 LTLIBOBJS=$ac_ltlibobjs
21961
21962
21963
21964 : ${CONFIG_STATUS=./config.status}
21965 ac_clean_files_save=$ac_clean_files
21966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21967 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21968 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21969 cat >$CONFIG_STATUS <<_ACEOF
21970 #! $SHELL
21971 # Generated by $as_me.
21972 # Run this file to recreate the current configuration.
21973 # Compiler output produced by configure, useful for debugging
21974 # configure, is in config.log if it exists.
21975
21976 debug=false
21977 ac_cs_recheck=false
21978 ac_cs_silent=false
21979 SHELL=\${CONFIG_SHELL-$SHELL}
21980 _ACEOF
21981
21982 cat >>$CONFIG_STATUS <<\_ACEOF
21983 ## --------------------- ##
21984 ## M4sh Initialization. ##
21985 ## --------------------- ##
21986
21987 # Be Bourne compatible
21988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21989 emulate sh
21990 NULLCMD=:
21991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21992 # is contrary to our usage. Disable this feature.
21993 alias -g '${1+"$@"}'='"$@"'
21994 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21995 set -o posix
21996 fi
21997 DUALCASE=1; export DUALCASE # for MKS sh
21998
21999 # Support unset when possible.
22000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22001 as_unset=unset
22002 else
22003 as_unset=false
22004 fi
22005
22006
22007 # Work around bugs in pre-3.0 UWIN ksh.
22008 $as_unset ENV MAIL MAILPATH
22009 PS1='$ '
22010 PS2='> '
22011 PS4='+ '
22012
22013 # NLS nuisances.
22014 for as_var in \
22015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22017 LC_TELEPHONE LC_TIME
22018 do
22019 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22020 eval $as_var=C; export $as_var
22021 else
22022 $as_unset $as_var
22023 fi
22024 done
22025
22026 # Required to use basename.
22027 if expr a : '\(a\)' >/dev/null 2>&1; then
22028 as_expr=expr
22029 else
22030 as_expr=false
22031 fi
22032
22033 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22034 as_basename=basename
22035 else
22036 as_basename=false
22037 fi
22038
22039
22040 # Name of the executable.
22041 as_me=`$as_basename "$0" ||
22042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22043 X"$0" : 'X\(//\)$' \| \
22044 X"$0" : 'X\(/\)$' \| \
22045 . : '\(.\)' 2>/dev/null ||
22046 echo X/"$0" |
22047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22048 /^X\/\(\/\/\)$/{ s//\1/; q; }
22049 /^X\/\(\/\).*/{ s//\1/; q; }
22050 s/.*/./; q'`
22051
22052
22053 # PATH needs CR, and LINENO needs CR and PATH.
22054 # Avoid depending upon Character Ranges.
22055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22058 as_cr_digits='0123456789'
22059 as_cr_alnum=$as_cr_Letters$as_cr_digits
22060
22061 # The user is always right.
22062 if test "${PATH_SEPARATOR+set}" != set; then
22063 echo "#! /bin/sh" >conf$$.sh
22064 echo "exit 0" >>conf$$.sh
22065 chmod +x conf$$.sh
22066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22067 PATH_SEPARATOR=';'
22068 else
22069 PATH_SEPARATOR=:
22070 fi
22071 rm -f conf$$.sh
22072 fi
22073
22074
22075 as_lineno_1=$LINENO
22076 as_lineno_2=$LINENO
22077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22078 test "x$as_lineno_1" != "x$as_lineno_2" &&
22079 test "x$as_lineno_3" = "x$as_lineno_2" || {
22080 # Find who we are. Look in the path if we contain no path at all
22081 # relative or not.
22082 case $0 in
22083 *[\\/]* ) as_myself=$0 ;;
22084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22085 for as_dir in $PATH
22086 do
22087 IFS=$as_save_IFS
22088 test -z "$as_dir" && as_dir=.
22089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22090 done
22091
22092 ;;
22093 esac
22094 # We did not find ourselves, most probably we were run as `sh COMMAND'
22095 # in which case we are not to be found in the path.
22096 if test "x$as_myself" = x; then
22097 as_myself=$0
22098 fi
22099 if test ! -f "$as_myself"; then
22100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22101 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22102 { (exit 1); exit 1; }; }
22103 fi
22104 case $CONFIG_SHELL in
22105 '')
22106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22108 do
22109 IFS=$as_save_IFS
22110 test -z "$as_dir" && as_dir=.
22111 for as_base in sh bash ksh sh5; do
22112 case $as_dir in
22113 /*)
22114 if ("$as_dir/$as_base" -c '
22115 as_lineno_1=$LINENO
22116 as_lineno_2=$LINENO
22117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22118 test "x$as_lineno_1" != "x$as_lineno_2" &&
22119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22120 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22121 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22122 CONFIG_SHELL=$as_dir/$as_base
22123 export CONFIG_SHELL
22124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22125 fi;;
22126 esac
22127 done
22128 done
22129 ;;
22130 esac
22131
22132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22133 # uniformly replaced by the line number. The first 'sed' inserts a
22134 # line-number line before each line; the second 'sed' does the real
22135 # work. The second script uses 'N' to pair each line-number line
22136 # with the numbered line, and appends trailing '-' during
22137 # substitution so that $LINENO is not a special case at line end.
22138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22140 sed '=' <$as_myself |
22141 sed '
22142 N
22143 s,$,-,
22144 : loop
22145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22146 t loop
22147 s,-$,,
22148 s,^['$as_cr_digits']*\n,,
22149 ' >$as_me.lineno &&
22150 chmod +x $as_me.lineno ||
22151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22152 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22153 { (exit 1); exit 1; }; }
22154
22155 # Don't try to exec as it changes $[0], causing all sort of problems
22156 # (the dirname of $[0] is not the place where we might find the
22157 # original and so on. Autoconf is especially sensible to this).
22158 . ./$as_me.lineno
22159 # Exit status is that of the last command.
22160 exit
22161 }
22162
22163
22164 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22165 *c*,-n*) ECHO_N= ECHO_C='
22166 ' ECHO_T=' ' ;;
22167 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22168 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22169 esac
22170
22171 if expr a : '\(a\)' >/dev/null 2>&1; then
22172 as_expr=expr
22173 else
22174 as_expr=false
22175 fi
22176
22177 rm -f conf$$ conf$$.exe conf$$.file
22178 echo >conf$$.file
22179 if ln -s conf$$.file conf$$ 2>/dev/null; then
22180 # We could just check for DJGPP; but this test a) works b) is more generic
22181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22182 if test -f conf$$.exe; then
22183 # Don't use ln at all; we don't have any links
22184 as_ln_s='cp -p'
22185 else
22186 as_ln_s='ln -s'
22187 fi
22188 elif ln conf$$.file conf$$ 2>/dev/null; then
22189 as_ln_s=ln
22190 else
22191 as_ln_s='cp -p'
22192 fi
22193 rm -f conf$$ conf$$.exe conf$$.file
22194
22195 if mkdir -p . 2>/dev/null; then
22196 as_mkdir_p=:
22197 else
22198 test -d ./-p && rmdir ./-p
22199 as_mkdir_p=false
22200 fi
22201
22202 as_executable_p="test -f"
22203
22204 # Sed expression to map a string onto a valid CPP name.
22205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22206
22207 # Sed expression to map a string onto a valid variable name.
22208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22209
22210
22211 # IFS
22212 # We need space, tab and new line, in precisely that order.
22213 as_nl='
22214 '
22215 IFS=" $as_nl"
22216
22217 # CDPATH.
22218 $as_unset CDPATH
22219
22220 exec 6>&1
22221
22222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22223 # report actual input values of CONFIG_FILES etc. instead of their
22224 # values after options handling. Logging --version etc. is OK.
22225 exec 5>>config.log
22226 {
22227 echo
22228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22229 ## Running $as_me. ##
22230 _ASBOX
22231 } >&5
22232 cat >&5 <<_CSEOF
22233
22234 This file was extended by $as_me, which was
22235 generated by GNU Autoconf 2.59. Invocation command line was
22236
22237 CONFIG_FILES = $CONFIG_FILES
22238 CONFIG_HEADERS = $CONFIG_HEADERS
22239 CONFIG_LINKS = $CONFIG_LINKS
22240 CONFIG_COMMANDS = $CONFIG_COMMANDS
22241 $ $0 $@
22242
22243 _CSEOF
22244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22245 echo >&5
22246 _ACEOF
22247
22248 # Files that config.status was made for.
22249 if test -n "$ac_config_files"; then
22250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22251 fi
22252
22253 if test -n "$ac_config_headers"; then
22254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22255 fi
22256
22257 if test -n "$ac_config_links"; then
22258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22259 fi
22260
22261 if test -n "$ac_config_commands"; then
22262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22263 fi
22264
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266
22267 ac_cs_usage="\
22268 \`$as_me' instantiates files from templates according to the
22269 current configuration.
22270
22271 Usage: $0 [OPTIONS] [FILE]...
22272
22273 -h, --help print this help, then exit
22274 -V, --version print version number, then exit
22275 -q, --quiet do not print progress messages
22276 -d, --debug don't remove temporary files
22277 --recheck update $as_me by reconfiguring in the same conditions
22278 --file=FILE[:TEMPLATE]
22279 instantiate the configuration file FILE
22280 --header=FILE[:TEMPLATE]
22281 instantiate the configuration header FILE
22282
22283 Configuration files:
22284 $config_files
22285
22286 Configuration headers:
22287 $config_headers
22288
22289 Configuration commands:
22290 $config_commands
22291
22292 Report bugs to <bug-autoconf@gnu.org>."
22293 _ACEOF
22294
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 ac_cs_version="\\
22297 config.status
22298 configured by $0, generated by GNU Autoconf 2.59,
22299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22300
22301 Copyright (C) 2003 Free Software Foundation, Inc.
22302 This config.status script is free software; the Free Software Foundation
22303 gives unlimited permission to copy, distribute and modify it."
22304 srcdir=$srcdir
22305 INSTALL="$INSTALL"
22306 _ACEOF
22307
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 # If no file are specified by the user, then we need to provide default
22310 # value. By we need to know if files were specified by the user.
22311 ac_need_defaults=:
22312 while test $# != 0
22313 do
22314 case $1 in
22315 --*=*)
22316 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22317 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22318 ac_shift=:
22319 ;;
22320 -*)
22321 ac_option=$1
22322 ac_optarg=$2
22323 ac_shift=shift
22324 ;;
22325 *) # This is not an option, so the user has probably given explicit
22326 # arguments.
22327 ac_option=$1
22328 ac_need_defaults=false;;
22329 esac
22330
22331 case $ac_option in
22332 # Handling of the options.
22333 _ACEOF
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22336 ac_cs_recheck=: ;;
22337 --version | --vers* | -V )
22338 echo "$ac_cs_version"; exit 0 ;;
22339 --he | --h)
22340 # Conflict between --help and --header
22341 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22342 Try \`$0 --help' for more information." >&5
22343 echo "$as_me: error: ambiguous option: $1
22344 Try \`$0 --help' for more information." >&2;}
22345 { (exit 1); exit 1; }; };;
22346 --help | --hel | -h )
22347 echo "$ac_cs_usage"; exit 0 ;;
22348 --debug | --d* | -d )
22349 debug=: ;;
22350 --file | --fil | --fi | --f )
22351 $ac_shift
22352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22353 ac_need_defaults=false;;
22354 --header | --heade | --head | --hea )
22355 $ac_shift
22356 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22357 ac_need_defaults=false;;
22358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22360 ac_cs_silent=: ;;
22361
22362 # This is an error.
22363 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22364 Try \`$0 --help' for more information." >&5
22365 echo "$as_me: error: unrecognized option: $1
22366 Try \`$0 --help' for more information." >&2;}
22367 { (exit 1); exit 1; }; } ;;
22368
22369 *) ac_config_targets="$ac_config_targets $1" ;;
22370
22371 esac
22372 shift
22373 done
22374
22375 ac_configure_extra_args=
22376
22377 if $ac_cs_silent; then
22378 exec 6>/dev/null
22379 ac_configure_extra_args="$ac_configure_extra_args --silent"
22380 fi
22381
22382 _ACEOF
22383 cat >>$CONFIG_STATUS <<_ACEOF
22384 if \$ac_cs_recheck; then
22385 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22386 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22387 fi
22388
22389 _ACEOF
22390
22391 cat >>$CONFIG_STATUS <<_ACEOF
22392 #
22393 # INIT-COMMANDS section.
22394 #
22395
22396 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22397
22398 _ACEOF
22399
22400
22401
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 for ac_config_target in $ac_config_targets
22404 do
22405 case "$ac_config_target" in
22406 # Handling of arguments.
22407 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22408 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22409 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22410 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22411 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22412 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22413 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22414 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22415 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22416 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22417 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22418 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22419 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22420 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22421 { (exit 1); exit 1; }; };;
22422 esac
22423 done
22424
22425 # If the user did not use the arguments to specify the items to instantiate,
22426 # then the envvar interface is used. Set only those that are not.
22427 # We use the long form for the default assignment because of an extremely
22428 # bizarre bug on SunOS 4.1.3.
22429 if $ac_need_defaults; then
22430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22433 fi
22434
22435 # Have a temporary directory for convenience. Make it in the build tree
22436 # simply because there is no reason to put it here, and in addition,
22437 # creating and moving files from /tmp can sometimes cause problems.
22438 # Create a temporary directory, and hook for its removal unless debugging.
22439 $debug ||
22440 {
22441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22442 trap '{ (exit 1); exit 1; }' 1 2 13 15
22443 }
22444
22445 # Create a (secure) tmp directory for tmp files.
22446
22447 {
22448 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22449 test -n "$tmp" && test -d "$tmp"
22450 } ||
22451 {
22452 tmp=./confstat$$-$RANDOM
22453 (umask 077 && mkdir $tmp)
22454 } ||
22455 {
22456 echo "$me: cannot create a temporary directory in ." >&2
22457 { (exit 1); exit 1; }
22458 }
22459
22460 _ACEOF
22461
22462 cat >>$CONFIG_STATUS <<_ACEOF
22463
22464 #
22465 # CONFIG_FILES section.
22466 #
22467
22468 # No need to generate the scripts if there are no CONFIG_FILES.
22469 # This happens for instance when ./config.status config.h
22470 if test -n "\$CONFIG_FILES"; then
22471 # Protect against being on the right side of a sed subst in config.status.
22472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22474 s,@SHELL@,$SHELL,;t t
22475 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22476 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22477 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22478 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22479 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22480 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22481 s,@exec_prefix@,$exec_prefix,;t t
22482 s,@prefix@,$prefix,;t t
22483 s,@program_transform_name@,$program_transform_name,;t t
22484 s,@bindir@,$bindir,;t t
22485 s,@sbindir@,$sbindir,;t t
22486 s,@libexecdir@,$libexecdir,;t t
22487 s,@datadir@,$datadir,;t t
22488 s,@sysconfdir@,$sysconfdir,;t t
22489 s,@sharedstatedir@,$sharedstatedir,;t t
22490 s,@localstatedir@,$localstatedir,;t t
22491 s,@libdir@,$libdir,;t t
22492 s,@includedir@,$includedir,;t t
22493 s,@oldincludedir@,$oldincludedir,;t t
22494 s,@infodir@,$infodir,;t t
22495 s,@mandir@,$mandir,;t t
22496 s,@build_alias@,$build_alias,;t t
22497 s,@host_alias@,$host_alias,;t t
22498 s,@target_alias@,$target_alias,;t t
22499 s,@DEFS@,$DEFS,;t t
22500 s,@ECHO_C@,$ECHO_C,;t t
22501 s,@ECHO_N@,$ECHO_N,;t t
22502 s,@ECHO_T@,$ECHO_T,;t t
22503 s,@LIBS@,$LIBS,;t t
22504 s,@MAINT@,$MAINT,;t t
22505 s,@build@,$build,;t t
22506 s,@build_cpu@,$build_cpu,;t t
22507 s,@build_vendor@,$build_vendor,;t t
22508 s,@build_os@,$build_os,;t t
22509 s,@host@,$host,;t t
22510 s,@host_cpu@,$host_cpu,;t t
22511 s,@host_vendor@,$host_vendor,;t t
22512 s,@host_os@,$host_os,;t t
22513 s,@CC@,$CC,;t t
22514 s,@CFLAGS@,$CFLAGS,;t t
22515 s,@LDFLAGS@,$LDFLAGS,;t t
22516 s,@CPPFLAGS@,$CPPFLAGS,;t t
22517 s,@ac_ct_CC@,$ac_ct_CC,;t t
22518 s,@EXEEXT@,$EXEEXT,;t t
22519 s,@OBJEXT@,$OBJEXT,;t t
22520 s,@LN_S@,$LN_S,;t t
22521 s,@CPP@,$CPP,;t t
22522 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22523 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22524 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22525 s,@RANLIB@,$RANLIB,;t t
22526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22527 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22528 s,@EGREP@,$EGREP,;t t
22529 s,@LIBSOUND@,$LIBSOUND,;t t
22530 s,@SET_MAKE@,$SET_MAKE,;t t
22531 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22532 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22533 s,@GTK_LIBS@,$GTK_LIBS,;t t
22534 s,@ALLOCA@,$ALLOCA,;t t
22535 s,@liblockfile@,$liblockfile,;t t
22536 s,@LIBOBJS@,$LIBOBJS,;t t
22537 s,@NEED_SETGID@,$NEED_SETGID,;t t
22538 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22539 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22540 s,@version@,$version,;t t
22541 s,@configuration@,$configuration,;t t
22542 s,@canonical@,$canonical,;t t
22543 s,@srcdir@,$srcdir,;t t
22544 s,@lispdir@,$lispdir,;t t
22545 s,@locallisppath@,$locallisppath,;t t
22546 s,@lisppath@,$lisppath,;t t
22547 s,@x_default_search_path@,$x_default_search_path,;t t
22548 s,@etcdir@,$etcdir,;t t
22549 s,@archlibdir@,$archlibdir,;t t
22550 s,@docdir@,$docdir,;t t
22551 s,@bitmapdir@,$bitmapdir,;t t
22552 s,@gamedir@,$gamedir,;t t
22553 s,@gameuser@,$gameuser,;t t
22554 s,@c_switch_system@,$c_switch_system,;t t
22555 s,@c_switch_machine@,$c_switch_machine,;t t
22556 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22557 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22558 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22559 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22560 s,@machfile@,$machfile,;t t
22561 s,@opsysfile@,$opsysfile,;t t
22562 s,@carbon_appdir@,$carbon_appdir,;t t
22563 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22564 CEOF
22565
22566 _ACEOF
22567
22568 cat >>$CONFIG_STATUS <<\_ACEOF
22569 # Split the substitutions into bite-sized pieces for seds with
22570 # small command number limits, like on Digital OSF/1 and HP-UX.
22571 ac_max_sed_lines=48
22572 ac_sed_frag=1 # Number of current file.
22573 ac_beg=1 # First line for current file.
22574 ac_end=$ac_max_sed_lines # Line after last line for current file.
22575 ac_more_lines=:
22576 ac_sed_cmds=
22577 while $ac_more_lines; do
22578 if test $ac_beg -gt 1; then
22579 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22580 else
22581 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22582 fi
22583 if test ! -s $tmp/subs.frag; then
22584 ac_more_lines=false
22585 else
22586 # The purpose of the label and of the branching condition is to
22587 # speed up the sed processing (if there are no `@' at all, there
22588 # is no need to browse any of the substitutions).
22589 # These are the two extra sed commands mentioned above.
22590 (echo ':t
22591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22594 else
22595 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22596 fi
22597 ac_sed_frag=`expr $ac_sed_frag + 1`
22598 ac_beg=$ac_end
22599 ac_end=`expr $ac_end + $ac_max_sed_lines`
22600 fi
22601 done
22602 if test -z "$ac_sed_cmds"; then
22603 ac_sed_cmds=cat
22604 fi
22605 fi # test -n "$CONFIG_FILES"
22606
22607 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22611 case $ac_file in
22612 - | *:- | *:-:* ) # input from stdin
22613 cat >$tmp/stdin
22614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22618 * ) ac_file_in=$ac_file.in ;;
22619 esac
22620
22621 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22622 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$ac_file" : 'X\(//\)[^/]' \| \
22625 X"$ac_file" : 'X\(//\)$' \| \
22626 X"$ac_file" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22628 echo X"$ac_file" |
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22633 s/.*/./; q'`
22634 { if $as_mkdir_p; then
22635 mkdir -p "$ac_dir"
22636 else
22637 as_dir="$ac_dir"
22638 as_dirs=
22639 while test ! -d "$as_dir"; do
22640 as_dirs="$as_dir $as_dirs"
22641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643 X"$as_dir" : 'X\(//\)[^/]' \| \
22644 X"$as_dir" : 'X\(//\)$' \| \
22645 X"$as_dir" : 'X\(/\)' \| \
22646 . : '\(.\)' 2>/dev/null ||
22647 echo X"$as_dir" |
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650 /^X\(\/\/\)$/{ s//\1/; q; }
22651 /^X\(\/\).*/{ s//\1/; q; }
22652 s/.*/./; q'`
22653 done
22654 test ! -n "$as_dirs" || mkdir $as_dirs
22655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22657 { (exit 1); exit 1; }; }; }
22658
22659 ac_builddir=.
22660
22661 if test "$ac_dir" != .; then
22662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22663 # A "../" for each directory in $ac_dir_suffix.
22664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22665 else
22666 ac_dir_suffix= ac_top_builddir=
22667 fi
22668
22669 case $srcdir in
22670 .) # No --srcdir option. We are building in place.
22671 ac_srcdir=.
22672 if test -z "$ac_top_builddir"; then
22673 ac_top_srcdir=.
22674 else
22675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22676 fi ;;
22677 [\\/]* | ?:[\\/]* ) # Absolute path.
22678 ac_srcdir=$srcdir$ac_dir_suffix;
22679 ac_top_srcdir=$srcdir ;;
22680 *) # Relative path.
22681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22683 esac
22684
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22687 case `pwd` in
22688 .) ac_abs_builddir="$ac_dir";;
22689 *)
22690 case "$ac_dir" in
22691 .) ac_abs_builddir=`pwd`;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22694 esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22698 *)
22699 case ${ac_top_builddir}. in
22700 .) ac_abs_top_builddir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22703 esac;;
22704 esac
22705 case $ac_abs_builddir in
22706 .) ac_abs_srcdir=$ac_srcdir;;
22707 *)
22708 case $ac_srcdir in
22709 .) ac_abs_srcdir=$ac_abs_builddir;;
22710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22712 esac;;
22713 esac
22714 case $ac_abs_builddir in
22715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22716 *)
22717 case $ac_top_srcdir in
22718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22721 esac;;
22722 esac
22723
22724
22725 case $INSTALL in
22726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22727 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22728 esac
22729
22730 # Let's still pretend it is `configure' which instantiates (i.e., don't
22731 # use $as_me), people would be surprised to read:
22732 # /* config.h. Generated by config.status. */
22733 if test x"$ac_file" = x-; then
22734 configure_input=
22735 else
22736 configure_input="$ac_file. "
22737 fi
22738 configure_input=$configure_input"Generated from `echo $ac_file_in |
22739 sed 's,.*/,,'` by configure."
22740
22741 # First look for the input files in the build tree, otherwise in the
22742 # src tree.
22743 ac_file_inputs=`IFS=:
22744 for f in $ac_file_in; do
22745 case $f in
22746 -) echo $tmp/stdin ;;
22747 [\\/$]*)
22748 # Absolute (can't be DOS-style, as IFS=:)
22749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22752 echo "$f";;
22753 *) # Relative
22754 if test -f "$f"; then
22755 # Build tree
22756 echo "$f"
22757 elif test -f "$srcdir/$f"; then
22758 # Source tree
22759 echo "$srcdir/$f"
22760 else
22761 # /dev/null tree
22762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22763 echo "$as_me: error: cannot find input file: $f" >&2;}
22764 { (exit 1); exit 1; }; }
22765 fi;;
22766 esac
22767 done` || { (exit 1); exit 1; }
22768
22769 if test x"$ac_file" != x-; then
22770 { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22772 rm -f "$ac_file"
22773 fi
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<_ACEOF
22776 sed "$ac_vpsub
22777 $extrasub
22778 _ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF
22780 :t
22781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22782 s,@configure_input@,$configure_input,;t t
22783 s,@srcdir@,$ac_srcdir,;t t
22784 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22785 s,@top_srcdir@,$ac_top_srcdir,;t t
22786 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22787 s,@builddir@,$ac_builddir,;t t
22788 s,@abs_builddir@,$ac_abs_builddir,;t t
22789 s,@top_builddir@,$ac_top_builddir,;t t
22790 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22791 s,@INSTALL@,$ac_INSTALL,;t t
22792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22793 rm -f $tmp/stdin
22794 if test x"$ac_file" != x-; then
22795 mv $tmp/out $ac_file
22796 else
22797 cat $tmp/out
22798 rm -f $tmp/out
22799 fi
22800
22801 done
22802 _ACEOF
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22804
22805 #
22806 # CONFIG_HEADER section.
22807 #
22808
22809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22811 #
22812 # ac_d sets the value in "#define NAME VALUE" lines.
22813 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22814 ac_dB='[ ].*$,\1#\2'
22815 ac_dC=' '
22816 ac_dD=',;t'
22817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22818 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22819 ac_uB='$,\1#\2define\3'
22820 ac_uC=' '
22821 ac_uD=',;t'
22822
22823 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22825 case $ac_file in
22826 - | *:- | *:-:* ) # input from stdin
22827 cat >$tmp/stdin
22828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22832 * ) ac_file_in=$ac_file.in ;;
22833 esac
22834
22835 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22836 echo "$as_me: creating $ac_file" >&6;}
22837
22838 # First look for the input files in the build tree, otherwise in the
22839 # src tree.
22840 ac_file_inputs=`IFS=:
22841 for f in $ac_file_in; do
22842 case $f in
22843 -) echo $tmp/stdin ;;
22844 [\\/$]*)
22845 # Absolute (can't be DOS-style, as IFS=:)
22846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22847 echo "$as_me: error: cannot find input file: $f" >&2;}
22848 { (exit 1); exit 1; }; }
22849 # Do quote $f, to prevent DOS paths from being IFS'd.
22850 echo "$f";;
22851 *) # Relative
22852 if test -f "$f"; then
22853 # Build tree
22854 echo "$f"
22855 elif test -f "$srcdir/$f"; then
22856 # Source tree
22857 echo "$srcdir/$f"
22858 else
22859 # /dev/null tree
22860 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22861 echo "$as_me: error: cannot find input file: $f" >&2;}
22862 { (exit 1); exit 1; }; }
22863 fi;;
22864 esac
22865 done` || { (exit 1); exit 1; }
22866 # Remove the trailing spaces.
22867 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22868
22869 _ACEOF
22870
22871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22872 # `conftest.undefs', that substitutes the proper values into
22873 # config.h.in to produce config.h. The first handles `#define'
22874 # templates, and the second `#undef' templates.
22875 # And first: Protect against being on the right side of a sed subst in
22876 # config.status. Protect against being in an unquoted here document
22877 # in config.status.
22878 rm -f conftest.defines conftest.undefs
22879 # Using a here document instead of a string reduces the quoting nightmare.
22880 # Putting comments in sed scripts is not portable.
22881 #
22882 # `end' is used to avoid that the second main sed command (meant for
22883 # 0-ary CPP macros) applies to n-ary macro definitions.
22884 # See the Autoconf documentation for `clear'.
22885 cat >confdef2sed.sed <<\_ACEOF
22886 s/[\\&,]/\\&/g
22887 s,[\\$`],\\&,g
22888 t clear
22889 : clear
22890 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22891 t end
22892 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22893 : end
22894 _ACEOF
22895 # If some macros were called several times there might be several times
22896 # the same #defines, which is useless. Nevertheless, we may not want to
22897 # sort them, since we want the *last* AC-DEFINE to be honored.
22898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22900 rm -f confdef2sed.sed
22901
22902 # This sed command replaces #undef with comments. This is necessary, for
22903 # example, in the case of _POSIX_SOURCE, which is predefined and required
22904 # on some systems where configure will not decide to define it.
22905 cat >>conftest.undefs <<\_ACEOF
22906 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22907 _ACEOF
22908
22909 # Break up conftest.defines because some shells have a limit on the size
22910 # of here documents, and old seds have small limits too (100 cmds).
22911 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22912 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22913 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22914 echo ' :' >>$CONFIG_STATUS
22915 rm -f conftest.tail
22916 while grep . conftest.defines >/dev/null
22917 do
22918 # Write a limited-size here document to $tmp/defines.sed.
22919 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22920 # Speed up: don't consider the non `#define' lines.
22921 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22922 # Work around the forget-to-reset-the-flag bug.
22923 echo 't clr' >>$CONFIG_STATUS
22924 echo ': clr' >>$CONFIG_STATUS
22925 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22926 echo 'CEOF
22927 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22928 rm -f $tmp/in
22929 mv $tmp/out $tmp/in
22930 ' >>$CONFIG_STATUS
22931 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22932 rm -f conftest.defines
22933 mv conftest.tail conftest.defines
22934 done
22935 rm -f conftest.defines
22936 echo ' fi # grep' >>$CONFIG_STATUS
22937 echo >>$CONFIG_STATUS
22938
22939 # Break up conftest.undefs because some shells have a limit on the size
22940 # of here documents, and old seds have small limits too (100 cmds).
22941 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22942 rm -f conftest.tail
22943 while grep . conftest.undefs >/dev/null
22944 do
22945 # Write a limited-size here document to $tmp/undefs.sed.
22946 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22947 # Speed up: don't consider the non `#undef'
22948 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22949 # Work around the forget-to-reset-the-flag bug.
22950 echo 't clr' >>$CONFIG_STATUS
22951 echo ': clr' >>$CONFIG_STATUS
22952 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22953 echo 'CEOF
22954 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22955 rm -f $tmp/in
22956 mv $tmp/out $tmp/in
22957 ' >>$CONFIG_STATUS
22958 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22959 rm -f conftest.undefs
22960 mv conftest.tail conftest.undefs
22961 done
22962 rm -f conftest.undefs
22963
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Let's still pretend it is `configure' which instantiates (i.e., don't
22966 # use $as_me), people would be surprised to read:
22967 # /* config.h. Generated by config.status. */
22968 if test x"$ac_file" = x-; then
22969 echo "/* Generated by configure. */" >$tmp/config.h
22970 else
22971 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22972 fi
22973 cat $tmp/in >>$tmp/config.h
22974 rm -f $tmp/in
22975 if test x"$ac_file" != x-; then
22976 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22978 echo "$as_me: $ac_file is unchanged" >&6;}
22979 else
22980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982 X"$ac_file" : 'X\(//\)[^/]' \| \
22983 X"$ac_file" : 'X\(//\)$' \| \
22984 X"$ac_file" : 'X\(/\)' \| \
22985 . : '\(.\)' 2>/dev/null ||
22986 echo X"$ac_file" |
22987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989 /^X\(\/\/\)$/{ s//\1/; q; }
22990 /^X\(\/\).*/{ s//\1/; q; }
22991 s/.*/./; q'`
22992 { if $as_mkdir_p; then
22993 mkdir -p "$ac_dir"
22994 else
22995 as_dir="$ac_dir"
22996 as_dirs=
22997 while test ! -d "$as_dir"; do
22998 as_dirs="$as_dir $as_dirs"
22999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001 X"$as_dir" : 'X\(//\)[^/]' \| \
23002 X"$as_dir" : 'X\(//\)$' \| \
23003 X"$as_dir" : 'X\(/\)' \| \
23004 . : '\(.\)' 2>/dev/null ||
23005 echo X"$as_dir" |
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008 /^X\(\/\/\)$/{ s//\1/; q; }
23009 /^X\(\/\).*/{ s//\1/; q; }
23010 s/.*/./; q'`
23011 done
23012 test ! -n "$as_dirs" || mkdir $as_dirs
23013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23015 { (exit 1); exit 1; }; }; }
23016
23017 rm -f $ac_file
23018 mv $tmp/config.h $ac_file
23019 fi
23020 else
23021 cat $tmp/config.h
23022 rm -f $tmp/config.h
23023 fi
23024 done
23025 _ACEOF
23026 cat >>$CONFIG_STATUS <<\_ACEOF
23027
23028 #
23029 # CONFIG_COMMANDS section.
23030 #
23031 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23032 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23033 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23034 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036 X"$ac_dest" : 'X\(//\)[^/]' \| \
23037 X"$ac_dest" : 'X\(//\)$' \| \
23038 X"$ac_dest" : 'X\(/\)' \| \
23039 . : '\(.\)' 2>/dev/null ||
23040 echo X"$ac_dest" |
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043 /^X\(\/\/\)$/{ s//\1/; q; }
23044 /^X\(\/\).*/{ s//\1/; q; }
23045 s/.*/./; q'`
23046 { if $as_mkdir_p; then
23047 mkdir -p "$ac_dir"
23048 else
23049 as_dir="$ac_dir"
23050 as_dirs=
23051 while test ! -d "$as_dir"; do
23052 as_dirs="$as_dir $as_dirs"
23053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23055 X"$as_dir" : 'X\(//\)[^/]' \| \
23056 X"$as_dir" : 'X\(//\)$' \| \
23057 X"$as_dir" : 'X\(/\)' \| \
23058 . : '\(.\)' 2>/dev/null ||
23059 echo X"$as_dir" |
23060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23062 /^X\(\/\/\)$/{ s//\1/; q; }
23063 /^X\(\/\).*/{ s//\1/; q; }
23064 s/.*/./; q'`
23065 done
23066 test ! -n "$as_dirs" || mkdir $as_dirs
23067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23069 { (exit 1); exit 1; }; }; }
23070
23071 ac_builddir=.
23072
23073 if test "$ac_dir" != .; then
23074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23075 # A "../" for each directory in $ac_dir_suffix.
23076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23077 else
23078 ac_dir_suffix= ac_top_builddir=
23079 fi
23080
23081 case $srcdir in
23082 .) # No --srcdir option. We are building in place.
23083 ac_srcdir=.
23084 if test -z "$ac_top_builddir"; then
23085 ac_top_srcdir=.
23086 else
23087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23088 fi ;;
23089 [\\/]* | ?:[\\/]* ) # Absolute path.
23090 ac_srcdir=$srcdir$ac_dir_suffix;
23091 ac_top_srcdir=$srcdir ;;
23092 *) # Relative path.
23093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23095 esac
23096
23097 # Do not use `cd foo && pwd` to compute absolute paths, because
23098 # the directories may not exist.
23099 case `pwd` in
23100 .) ac_abs_builddir="$ac_dir";;
23101 *)
23102 case "$ac_dir" in
23103 .) ac_abs_builddir=`pwd`;;
23104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23106 esac;;
23107 esac
23108 case $ac_abs_builddir in
23109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23110 *)
23111 case ${ac_top_builddir}. in
23112 .) ac_abs_top_builddir=$ac_abs_builddir;;
23113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23115 esac;;
23116 esac
23117 case $ac_abs_builddir in
23118 .) ac_abs_srcdir=$ac_srcdir;;
23119 *)
23120 case $ac_srcdir in
23121 .) ac_abs_srcdir=$ac_abs_builddir;;
23122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23124 esac;;
23125 esac
23126 case $ac_abs_builddir in
23127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23128 *)
23129 case $ac_top_srcdir in
23130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23133 esac;;
23134 esac
23135
23136
23137 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23138 echo "$as_me: executing $ac_dest commands" >&6;}
23139 case $ac_dest in
23140 default )
23141
23142 ### Make the necessary directories, if they don't exist.
23143 for dir in etc lisp ; do
23144 test -d ${dir} || mkdir ${dir}
23145 done
23146
23147 # Build src/Makefile from ${srcdir}/src/Makefile.c
23148 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23149 # This must be done after src/config.h is built, since we rely on that file.
23150
23151 # Now get this: Some word that is part of the ${srcdir} directory name
23152 # or the ${configuration} value might, just might, happen to be an
23153 # identifier like `sun4' or `i386' or something, and be predefined by
23154 # the C preprocessor to some helpful value like 1, or maybe the empty
23155 # string. Needless to say consequent macro substitutions are less
23156 # than conducive to the makefile finding the correct directory.
23157 undefs="`echo $top_srcdir $configuration $canonical |
23158 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23159 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23160 `"
23161
23162 echo creating src/epaths.h
23163 ${MAKE-make} epaths-force
23164
23165 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23166 # `..' to `. .' unless invoked with -traditional
23167
23168 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23169 CPPFLAGS="$CPPFLAGS -traditional"
23170 fi
23171
23172 echo creating lib-src/Makefile
23173 ( cd lib-src
23174 rm -f junk.c junk1.c junk2.c
23175 sed -e '/start of cpp stuff/q' \
23176 < Makefile.c > junk1.c
23177 sed -e '1,/start of cpp stuff/d'\
23178 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23179 < Makefile.c > junk.c
23180 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23181 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23182 cat junk1.c junk2.c > Makefile.new
23183 rm -f junk.c junk1.c junk2.c
23184 chmod 444 Makefile.new
23185 mv -f Makefile.new Makefile
23186 )
23187
23188 echo creating src/Makefile
23189 ( cd src
23190 rm -f junk.c junk1.c junk2.c
23191 sed -e '/start of cpp stuff/q' \
23192 < Makefile.c > junk1.c
23193 sed -e '1,/start of cpp stuff/d'\
23194 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23195 < Makefile.c > junk.c
23196 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23197 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23198 cat junk1.c junk2.c > Makefile.new
23199 rm -f junk.c junk1.c junk2.c
23200 chmod 444 Makefile.new
23201 mv -f Makefile.new Makefile
23202 )
23203
23204 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23205 echo creating src/.gdbinit
23206 echo source $srcdir/src/.gdbinit > src/.gdbinit
23207 fi
23208
23209 # This is how we know whether to re-run configure in certain cases.
23210 touch src/config.stamp
23211
23212 ;;
23213 esac
23214 done
23215 _ACEOF
23216
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218
23219 { (exit 0); exit 0; }
23220 _ACEOF
23221 chmod +x $CONFIG_STATUS
23222 ac_clean_files=$ac_clean_files_save
23223
23224
23225 # configure is writing to config.log, and then calls config.status.
23226 # config.status does its own redirection, appending to config.log.
23227 # Unfortunately, on DOS this fails, as config.log is still kept open
23228 # by configure, so config.status won't be able to write to it; its
23229 # output is simply discarded. So we exec the FD to /dev/null,
23230 # effectively closing config.log, so it can be properly (re)opened and
23231 # appended to by config.status. When coming back to configure, we
23232 # need to make the FD available again.
23233 if test "$no_create" != yes; then
23234 ac_cs_success=:
23235 ac_config_status_args=
23236 test "$silent" = yes &&
23237 ac_config_status_args="$ac_config_status_args --quiet"
23238 exec 5>/dev/null
23239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23240 exec 5>>config.log
23241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23242 # would make configure fail if this is the last instruction.
23243 $ac_cs_success || { (exit 1); exit 1; }
23244 fi
23245
23246