]> 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 --disable-largefile omit support for large files
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-gcc don't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version 5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server host
872 --without-sound don't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
887
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CPP C preprocessor
896
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
899
900 _ACEOF
901 fi
902
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
909
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 else
915 ac_dir_suffix= ac_top_builddir=
916 fi
917
918 case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 esac
933
934 # Do not use `cd foo && pwd` to compute absolute paths, because
935 # the directories may not exist.
936 case `pwd` in
937 .) ac_abs_builddir="$ac_dir";;
938 *)
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *)
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
956 *)
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *)
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971 esac
972
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 fi
988 cd $ac_popdir
989 done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994 cat <<\_ACEOF
995
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000 exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1009
1010 $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1240 fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1336
1337
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1350
1351
1352 lispdir='${datadir}/emacs/${version}/lisp'
1353 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath='${locallisppath}:${lispdir}'
1356 etcdir='${datadir}/emacs/${version}/etc'
1357 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir='${datadir}/emacs/${version}/etc'
1359 gamedir='${localstatedir}/games/emacs'
1360
1361 gameuser=games
1362
1363
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1366 withval="$with_gcc"
1367
1368 fi;
1369
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1372 withval="$with_pop"
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define MAIL_USE_POP 1
1376 _ACEOF
1377
1378 else :
1379 fi
1380 else
1381 cat >>confdefs.h <<\_ACEOF
1382 #define MAIL_USE_POP 1
1383 _ACEOF
1384
1385 fi;
1386
1387
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval="$with_kerberos"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define KERBEROS 1
1393 _ACEOF
1394
1395 fi;
1396
1397
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1403 with_kerberos=yes
1404 cat >>confdefs.h <<\_ACEOF
1405 #define KERBEROS 1
1406 _ACEOF
1407
1408 fi
1409 fi
1410
1411 cat >>confdefs.h <<\_ACEOF
1412 #define KERBEROS5 1
1413 _ACEOF
1414
1415 fi;
1416
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval="$with_hesiod"
1420
1421 cat >>confdefs.h <<\_ACEOF
1422 #define HESIOD 1
1423 _ACEOF
1424
1425 fi;
1426
1427
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval="$with_sound"
1431
1432 fi;
1433
1434
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye | yes ) val=athena ;;
1440 n | no ) val=no ;;
1441 l | lu | luc | luci | lucid ) val=lucid ;;
1442 a | at | ath | athe | athen | athena ) val=athena ;;
1443 m | mo | mot | moti | motif ) val=motif ;;
1444 g | gt | gtk ) val=gtk ;;
1445 * )
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1453 ;;
1454 esac
1455 with_x_toolkit=$val
1456
1457 fi;
1458
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1461 withval="$with_xpm"
1462
1463 fi;
1464
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval="$with_jpeg"
1468
1469 fi;
1470
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval="$with_tiff"
1474
1475 fi;
1476
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1479 withval="$with_gif"
1480
1481 fi;
1482
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1485 withval="$with_png"
1486
1487 fi;
1488
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1491 withval="$with_gtk"
1492
1493 fi;
1494
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval="$with_pkg_config_prog"
1498
1499 fi;
1500
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval="$with_toolkit_scroll_bars"
1504
1505 fi;
1506
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1509 withval="$with_xim"
1510
1511 fi;
1512
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval="$with_carbon"
1516
1517 fi;
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval="$enable_carbon_app"
1521 carbon_appdir_x=${enableval}
1522 fi;
1523
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval="$enable_asserts"
1527 USE_XASSERTS=$enableval
1528 else
1529 USE_XASSERTS=no
1530 fi;
1531
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE=$enableval
1536 else
1537 USE_MAINTAINER_MODE=no
1538 fi;
1539 if test $USE_MAINTAINER_MODE = yes; then
1540 MAINT=
1541 else
1542 MAINT=#
1543 fi
1544
1545
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1551 unset CDPATH
1552 case "${srcdir}" in
1553 /* ) ;;
1554 . )
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1561 then
1562 srcdir="$PWD"
1563 else
1564 srcdir="`(cd ${srcdir}; pwd)`"
1565 fi
1566 ;;
1567 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1568 esac
1569
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1585 fi
1586
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1589
1590 ### Canonicalize the configuration name.
1591
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1606 fi
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1612 fi
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 canonical=$host
1672 configuration=${host_alias-$host}
1673
1674
1675
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1679
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1688 ###
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1694 ###
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1698
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1701
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1715
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1719
1720 fi
1721
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ## Altos 3068
1820 m68*-altos-sysv* )
1821 machine=altos opsys=usg5-2
1822 ;;
1823
1824 ## Amdahl UTS
1825 580-amdahl-sysv* )
1826 machine=amdahl opsys=usg5-2-2
1827 ;;
1828
1829 ## Apollo, Domain/OS
1830 m68*-apollo-* )
1831 machine=apollo opsys=bsd4-3
1832 ;;
1833
1834 ## AT&T 3b2, 3b5, 3b15, 3b20
1835 we32k-att-sysv* )
1836 machine=att3b opsys=usg5-2-2
1837 ;;
1838
1839 ## AT&T 3b1 - The Mighty Unix PC!
1840 m68*-att-sysv* )
1841 machine=7300 opsys=usg5-2-2
1842 ;;
1843
1844 ## Bull dpx20
1845 rs6000-bull-bosx* )
1846 machine=ibmrs6000 opsys=aix3-2
1847 ;;
1848
1849 ## Bull dpx2
1850 m68*-bull-sysv3* )
1851 machine=dpx2 opsys=usg5-3
1852 ;;
1853
1854 ## Bull sps7
1855 m68*-bull-sysv2* )
1856 machine=sps7 opsys=usg5-2
1857 ;;
1858
1859 ## CCI 5/32, 6/32 -- see "Tahoe".
1860
1861 ## Celerity
1862 ## I don't know what configuration name to use for this; config.sub
1863 ## doesn't seem to know anything about it. Hey, Celerity users, get
1864 ## in touch with us!
1865 celerity-celerity-bsd* )
1866 machine=celerity opsys=bsd4-2
1867 ;;
1868
1869 ## Clipper
1870 ## What operating systems does this chip run that Emacs has been
1871 ## tested on?
1872 clipper-* )
1873 machine=clipper
1874 ## We'll use the catch-all code at the bottom to guess the
1875 ## operating system.
1876 ;;
1877
1878 ## Compaq Nonstop
1879 mips-compaq-nonstopux* )
1880 machine=nonstopux opsys=nonstopux
1881 ;;
1882
1883 ## Convex
1884 *-convex-bsd* | *-convex-convexos* )
1885 machine=convex opsys=bsd4-3
1886 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1887 NON_GNU_CPP="cc -E -P"
1888 ;;
1889
1890 ## Cubix QBx/386
1891 i[3456]86-cubix-sysv* )
1892 machine=intel386 opsys=usg5-3
1893 ;;
1894
1895 ## Cydra 5
1896 cydra*-cydrome-sysv* )
1897 machine=cydra5 opsys=usg5-3
1898 ;;
1899
1900 ## Data General AViiON Machines
1901 ## DG changed naming conventions with the release of 5.4.4.10, they
1902 ## dropped the initial 5.4 but left the intervening R. Because of the
1903 ## R this shouldn't conflict with older versions of the OS (which I
1904 ## think were named like dgux4.*). In addition, DG new AViiONs series
1905 ## uses either Motorola M88k or Intel Pentium CPUs.
1906 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1907 machine=aviion opsys=dgux4
1908 ;;
1909 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1910 ## This name is dgux5-4-3 instead of dgux5-4r3
1911 ## to avoid a file name conflict on MSDOS.
1912 machine=aviion opsys=dgux5-4-3
1913 ;;
1914 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1915 machine=aviion opsys=dgux5-4r2
1916 ;;
1917 m88k-dg-dgux* )
1918 machine=aviion opsys=dgux
1919 ;;
1920
1921 ## Data General AViiON Intel (x86) Machines
1922 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1923 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1924 i[345]86-dg-dguxR4* )
1925 machine=aviion-intel opsys=dgux4
1926 ;;
1927
1928 ## DECstations
1929 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1930 machine=pmax opsys=bsd4-2
1931 ;;
1932 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1933 machine=pmax opsys=bsd4-3
1934 ;;
1935 mips-dec-ultrix* )
1936 machine=pmax opsys=ultrix4-3
1937 ;;
1938 mips-dec-osf* )
1939 machine=pmax opsys=osf1
1940 ;;
1941 mips-dec-mach_bsd4.3* )
1942 machine=pmax opsys=mach-bsd4-3
1943 ;;
1944
1945 ## Motorola Delta machines
1946 m68k-motorola-sysv* | m68000-motorola-sysv* )
1947 machine=delta opsys=usg5-3
1948 if test -z "`type gnucc | grep 'not found'`"
1949 then
1950 if test -s /etc/167config
1951 then CC="gnucc -m68040"
1952 else CC="gnucc -m68881"
1953 fi
1954 else
1955 if test -z "`type gcc | grep 'not found'`"
1956 then CC=gcc
1957 else CC=cc
1958 fi
1959 fi
1960 ;;
1961 m88k-motorola-sysv4* )
1962 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1963 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1964 # I hope there are not other 4.0 versions for this machine
1965 # which really need usg5-4 instead.
1966 machine=delta88k opsys=usg5-4-2
1967 ;;
1968 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1969 machine=delta88k opsys=usg5-3
1970 ;;
1971
1972 ## Dual machines
1973 m68*-dual-sysv* )
1974 machine=dual opsys=usg5-2
1975 ;;
1976 m68*-dual-uniplus* )
1977 machine=dual opsys=unipl5-2
1978 ;;
1979
1980 ## Elxsi 6400
1981 elxsi-elxsi-sysv* )
1982 machine=elxsi opsys=usg5-2
1983 ;;
1984
1985 ## Encore machines
1986 ns16k-encore-bsd* )
1987 machine=ns16000 opsys=umax
1988 ;;
1989
1990 ## The GEC 63 - apparently, this port isn't really finished yet.
1991 # I'm sure we finished off the last of the machines, though. -- fx
1992
1993 ## Gould Power Node and NP1
1994 pn-gould-bsd4.2* )
1995 machine=gould opsys=bsd4-2
1996 ;;
1997 pn-gould-bsd4.3* )
1998 machine=gould opsys=bsd4-3
1999 ;;
2000 np1-gould-bsd* )
2001 machine=gould-np1 opsys=bsd4-3
2002 ;;
2003
2004 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2005 ## as far as Emacs is concerned).
2006 m88k-harris-cxux* )
2007 # Build needs to be different on 7.0 and later releases
2008 case "`uname -r`" in
2009 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2010 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2011 esac
2012 NON_GNU_CPP="/lib/cpp"
2013 ;;
2014 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2015 m68k-harris-cxux* )
2016 machine=nh3000 opsys=cxux
2017 ;;
2018 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2019 powerpc-harris-powerunix )
2020 machine=nh6000 opsys=powerunix
2021 NON_GNU_CPP="cc -Xo -E -P"
2022 ;;
2023 ## SR2001/SR2201 running HI-UX/MPP
2024 hppa1.1-hitachi-hiuxmpp* )
2025 machine=sr2k opsys=hiuxmpp
2026 ;;
2027 hppa1.1-hitachi-hiuxwe2* )
2028 machine=sr2k opsys=hiuxwe2
2029 ;;
2030 ## Honeywell XPS100
2031 xps*-honeywell-sysv* )
2032 machine=xps100 opsys=usg5-2
2033 ;;
2034
2035 ## HP 9000 series 200 or 300
2036 m68*-hp-bsd* )
2037 machine=hp9000s300 opsys=bsd4-3
2038 ;;
2039 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2040 m68*-hp-hpux* )
2041 case "`uname -r`" in
2042 ## Someone's system reports A.B8.05 for this.
2043 ## I wonder what other possibilities there are.
2044 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2045 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2046 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2047 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2048 *) machine=hp9000s300 opsys=hpux ;;
2049 esac
2050 ;;
2051
2052 ## HP 9000 series 700 and 800, running HP/UX
2053 hppa*-hp-hpux7* )
2054 machine=hp800 opsys=hpux
2055 ;;
2056 hppa*-hp-hpux8* )
2057 machine=hp800 opsys=hpux8
2058 ;;
2059 hppa*-hp-hpux9shr* )
2060 machine=hp800 opsys=hpux9shr
2061 ;;
2062 hppa*-hp-hpux9* )
2063 machine=hp800 opsys=hpux9
2064 ;;
2065 hppa*-hp-hpux10.2* )
2066 machine=hp800 opsys=hpux10-20
2067 ;;
2068 hppa*-hp-hpux10* )
2069 machine=hp800 opsys=hpux10
2070 ;;
2071 hppa*-hp-hpux1[1-9]* )
2072 machine=hp800 opsys=hpux11
2073 ;;
2074
2075 hppa*-*-linux-gnu* )
2076 machine=hp800 opsys=gnu-linux
2077 ;;
2078
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux* )
2081 ## Cross-compilation? Nah!
2082 case "`uname -r`" in
2083 ## Someone's system reports A.B8.05 for this.
2084 ## I wonder what other possibilities there are.
2085 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2086 *.08.* ) machine=hp800 opsys=hpux8 ;;
2087 *.09.* ) machine=hp800 opsys=hpux9 ;;
2088 *) machine=hp800 opsys=hpux10 ;;
2089 esac
2090 ;;
2091 hppa*-*-nextstep* )
2092 machine=hp800 opsys=nextstep
2093 ;;
2094
2095 ## Orion machines
2096 orion-orion-bsd* )
2097 machine=orion opsys=bsd4-2
2098 ;;
2099 clipper-orion-bsd* )
2100 machine=orion105 opsys=bsd4-2
2101 ;;
2102
2103 ## IBM machines
2104 i[3456]86-ibm-aix1.1* )
2105 machine=ibmps2-aix opsys=usg5-2-2
2106 ;;
2107 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2108 machine=ibmps2-aix opsys=usg5-3
2109 ;;
2110 i370-ibm-aix*)
2111 machine=ibm370aix opsys=usg5-3
2112 ;;
2113 s390-*-linux-gnu* )
2114 machine=ibms390 opsys=gnu-linux
2115 ;;
2116 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2117 machine=ibmrs6000 opsys=aix3-1
2118 ;;
2119 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2120 machine=ibmrs6000 opsys=aix3-2-5
2121 ;;
2122 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2123 machine=ibmrs6000 opsys=aix4-1
2124 ;;
2125 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2126 machine=ibmrs6000 opsys=aix4-2
2127 ;;
2128 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2129 machine=ibmrs6000 opsys=aix4-2
2130 ;;
2131 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2132 machine=ibmrs6000 opsys=aix4
2133 ;;
2134 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2135 machine=ibmrs6000 opsys=aix4-1
2136 ;;
2137 rs6000-ibm-aix* | powerpc-ibm-aix* )
2138 machine=ibmrs6000 opsys=aix3-2
2139 ;;
2140 romp-ibm-bsd4.3* )
2141 machine=ibmrt opsys=bsd4-3
2142 ;;
2143 romp-ibm-bsd4.2* )
2144 machine=ibmrt opsys=bsd4-2
2145 ;;
2146 romp-ibm-aos4.3* )
2147 machine=ibmrt opsys=bsd4-3
2148 ;;
2149 romp-ibm-aos4.2* )
2150 machine=ibmrt opsys=bsd4-2
2151 ;;
2152 romp-ibm-aos* )
2153 machine=ibmrt opsys=bsd4-3
2154 ;;
2155 romp-ibm-bsd* )
2156 machine=ibmrt opsys=bsd4-3
2157 ;;
2158 romp-ibm-aix* )
2159 machine=ibmrt-aix opsys=usg5-2-2
2160 ;;
2161
2162 ## Integrated Solutions `Optimum V'
2163 m68*-isi-bsd4.2* )
2164 machine=isi-ov opsys=bsd4-2
2165 ;;
2166 m68*-isi-bsd4.3* )
2167 machine=isi-ov opsys=bsd4-3
2168 ;;
2169
2170 ## Intel 386 machines where we do care about the manufacturer
2171 i[3456]86-intsys-sysv* )
2172 machine=is386 opsys=usg5-2-2
2173 ;;
2174
2175 ## Prime EXL
2176 i[3456]86-prime-sysv* )
2177 machine=i386 opsys=usg5-3
2178 ;;
2179
2180 ## Sequent Symmetry running Dynix
2181 i[3456]86-sequent-bsd* )
2182 machine=symmetry opsys=bsd4-3
2183 ;;
2184
2185 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2186 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2187 machine=sequent-ptx opsys=ptx4
2188 NON_GNU_CPP=/lib/cpp
2189 ;;
2190
2191 ## Sequent Symmetry running DYNIX/ptx
2192 ## Use the old cpp rather than the newer ANSI one.
2193 i[3456]86-sequent-ptx* )
2194 machine=sequent-ptx opsys=ptx
2195 NON_GNU_CPP="/lib/cpp"
2196 ;;
2197
2198 ## ncr machine running svr4.3.
2199 i[3456]86-ncr-sysv4.3 )
2200 machine=ncr386 opsys=usg5-4-3
2201 ;;
2202
2203 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2205 i[3456]86-ncr-sysv* )
2206 machine=ncr386 opsys=usg5-4-2
2207 ;;
2208
2209 ## Intel Paragon OSF/1
2210 i860-intel-osf1* )
2211 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2212 ;;
2213
2214 ## Intel 860
2215 i860-*-sysv4* )
2216 machine=i860 opsys=usg5-4
2217 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2218 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2219 ;;
2220
2221 ## Macintosh PowerPC
2222 powerpc*-*-linux-gnu* )
2223 machine=macppc opsys=gnu-linux
2224 ;;
2225
2226 ## Masscomp machines
2227 m68*-masscomp-rtu* )
2228 machine=masscomp opsys=rtu
2229 ;;
2230
2231 ## Megatest machines
2232 m68*-megatest-bsd* )
2233 machine=mega68 opsys=bsd4-2
2234 ;;
2235
2236 ## Workstations sold by MIPS
2237 ## This is not necessarily all workstations using the MIPS processor -
2238 ## Irises are produced by SGI, and DECstations by DEC.
2239
2240 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2241 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2242 ## it gives for choosing between the alternatives seems to be "Use
2243 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2244 ## the BSD world." I'll assume that these are instructions for
2245 ## handling two odd situations, and that every other situation
2246 ## should use mips.h and usg5-2-2, they being listed first.
2247 mips-mips-usg* )
2248 machine=mips4
2249 ## Fall through to the general code at the bottom to decide on the OS.
2250 ;;
2251 mips-mips-riscos4* )
2252 machine=mips4 opsys=bsd4-3
2253 NON_GNU_CC="cc -systype bsd43"
2254 NON_GNU_CPP="cc -systype bsd43 -E"
2255 ;;
2256 mips-mips-riscos5* )
2257 machine=mips4 opsys=riscos5
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-bsd* )
2262 machine=mips opsys=bsd4-3
2263 ;;
2264 mips-mips-* )
2265 machine=mips opsys=usg5-2-2
2266 ;;
2267
2268 ## NeXT
2269 m68*-next-* | m68k-*-nextstep* )
2270 machine=m68k opsys=nextstep
2271 ;;
2272
2273 ## The complete machine from National Semiconductor
2274 ns32k-ns-genix* )
2275 machine=ns32000 opsys=usg5-2
2276 ;;
2277
2278 ## NCR machines
2279 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2280 machine=tower32 opsys=usg5-2-2
2281 ;;
2282 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2283 machine=tower32v3 opsys=usg5-3
2284 ;;
2285
2286 ## NEC EWS4800
2287 mips-nec-sysv4*)
2288 machine=ews4800 opsys=ux4800
2289 ;;
2290
2291 ## Nixdorf Targon 31
2292 m68*-nixdorf-sysv* )
2293 machine=targon31 opsys=usg5-2-2
2294 ;;
2295
2296 ## Nu (TI or LMI)
2297 m68*-nu-sysv* )
2298 machine=nu opsys=usg5-2
2299 ;;
2300
2301 ## Plexus
2302 m68*-plexus-sysv* )
2303 machine=plexus opsys=usg5-2
2304 ;;
2305
2306 ## Pyramid machines
2307 ## I don't really have any idea what sort of processor the Pyramid has,
2308 ## so I'm assuming it is its own architecture.
2309 pyramid-pyramid-bsd* )
2310 machine=pyramid opsys=bsd4-2
2311 ;;
2312
2313 ## Sequent Balance
2314 ns32k-sequent-bsd4.2* )
2315 machine=sequent opsys=bsd4-2
2316 ;;
2317 ns32k-sequent-bsd4.3* )
2318 machine=sequent opsys=bsd4-3
2319 ;;
2320
2321 ## Siemens Nixdorf
2322 mips-siemens-sysv* | mips-sni-sysv*)
2323 machine=mips-siemens opsys=usg5-4
2324 NON_GNU_CC=/usr/ccs/bin/cc
2325 NON_GNU_CPP=/usr/ccs/lib/cpp
2326 ;;
2327
2328 ## Silicon Graphics machines
2329 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2330 m68*-sgi-iris3.5* )
2331 machine=irist opsys=iris3-5
2332 ;;
2333 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2334 machine=irist opsys=iris3-6
2335 ;;
2336 ## Iris 4D
2337 mips-sgi-irix3* )
2338 machine=iris4d opsys=irix3-3
2339 ;;
2340 mips-sgi-irix4* )
2341 machine=iris4d opsys=irix4-0
2342 ;;
2343 mips-sgi-irix6.5 )
2344 machine=iris4d opsys=irix6-5
2345 # Without defining _LANGUAGE_C, things get masked out in the headers
2346 # so that, for instance, grepping for `free' in stdlib.h fails and
2347 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2348 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2349 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2350 ;;
2351 mips-sgi-irix6* )
2352 machine=iris4d opsys=irix6-0
2353 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2354 # but presumably it does no harm.
2355 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2356 # -32 probably isn't necessary in later v.6s -- anyone know which?
2357 NON_GCC_TEST_OPTIONS=-32
2358 ;;
2359 mips-sgi-irix5.[01]* )
2360 machine=iris4d opsys=irix5-0
2361 ;;
2362 mips-sgi-irix5* | mips-sgi-irix* )
2363 machine=iris4d opsys=irix5-2
2364 ;;
2365
2366 ## SONY machines
2367 m68*-sony-bsd4.2* )
2368 machine=news opsys=bsd4-2
2369 ;;
2370 m68*-sony-bsd4.3* )
2371 machine=news opsys=bsd4-3
2372 ;;
2373 m68*-sony-newsos3* | m68*-sony-news3*)
2374 machine=news opsys=bsd4-3
2375 ;;
2376 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2377 machine=news-risc opsys=bsd4-3
2378 ;;
2379 mips-sony-newsos6* )
2380 machine=news-r6 opsys=newsos6
2381 ;;
2382 mips-sony-news* )
2383 machine=news-risc opsys=newsos5
2384 ;;
2385
2386 ## Stride
2387 m68*-stride-sysv* )
2388 machine=stride opsys=usg5-2
2389 ;;
2390
2391 ## Suns
2392 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2393 machine=sparc opsys=gnu-linux
2394 ;;
2395
2396 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2397 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2398 | rs6000-*-solaris2*)
2399 case "${canonical}" in
2400 m68*-sunos1* ) machine=sun1 ;;
2401 m68*-sunos2* ) machine=sun2 ;;
2402 m68* ) machine=sun3 ;;
2403 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2404 i[3456]86-*-* ) machine=intel386 ;;
2405 powerpcle* ) machine=powerpcle ;;
2406 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2407 sparc* ) machine=sparc ;;
2408 * ) unported=yes ;;
2409 esac
2410 case "${canonical}" in
2411 ## The Sun386 didn't get past 4.0.
2412 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2413 *-sunos4.0* ) opsys=sunos4-0 ;;
2414 *-sunos4.1.[3-9]*noshare )
2415 ## This name is sunos413 instead of sunos4-1-3
2416 ## to avoid a file name conflict on MSDOS.
2417 opsys=sunos413
2418 NON_GNU_CPP=/usr/lib/cpp
2419 NON_GCC_TEST_OPTIONS=-Bstatic
2420 GCC_TEST_OPTIONS=-static
2421 ;;
2422 *-sunos4.1.[3-9]* | *-sunos4shr*)
2423 opsys=sunos4shr
2424 NON_GNU_CPP=/usr/lib/cpp
2425 ;;
2426 *-sunos4* | *-sunos )
2427 opsys=sunos4-1
2428 NON_GCC_TEST_OPTIONS=-Bstatic
2429 GCC_TEST_OPTIONS=-static
2430 ;;
2431 *-sunos5.3* | *-solaris2.3* )
2432 opsys=sol2-3
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 ;;
2435 *-sunos5.4* | *-solaris2.4* )
2436 opsys=sol2-4
2437 NON_GNU_CPP=/usr/ccs/lib/cpp
2438 RANLIB="ar -ts"
2439 ;;
2440 *-sunos5.5* | *-solaris2.5* )
2441 opsys=sol2-5
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.6* | *-solaris2.6* )
2446 opsys=sol2-6
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
2450 *-sunos5* | *-solaris* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 ;;
2454 * ) opsys=bsd4-2 ;;
2455 esac
2456 ## Watch out for a compiler that we know will not work.
2457 case "${canonical}" in
2458 *-solaris* | *-sunos5* )
2459 if [ "x$CC" = x/usr/ucb/cc ]; then
2460 ## /usr/ucb/cc doesn't work;
2461 ## we should find some other compiler that does work.
2462 unset CC
2463 fi
2464 ;;
2465 *) ;;
2466 esac
2467 ;;
2468 sparc-*-nextstep* )
2469 machine=sparc opsys=nextstep
2470 ;;
2471
2472 ## Tadpole 68k
2473 m68*-tadpole-sysv* )
2474 machine=tad68k opsys=usg5-3
2475 ;;
2476
2477 ## Tahoe machines
2478 tahoe-tahoe-bsd4.2* )
2479 machine=tahoe opsys=bsd4-2
2480 ;;
2481 tahoe-tahoe-bsd4.3* )
2482 machine=tahoe opsys=bsd4-3
2483 ;;
2484
2485 ## Tandem Integrity S2
2486 mips-tandem-sysv* )
2487 machine=tandem-s2 opsys=usg5-3
2488 ;;
2489
2490 ## Tektronix XD88
2491 m88k-tektronix-sysv3* )
2492 machine=tekxd88 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix 16000 box (6130?)
2496 ns16k-tektronix-bsd* )
2497 machine=ns16000 opsys=bsd4-2
2498 ;;
2499 ## Tektronix 4300
2500 ## src/m/tek4300.h hints that this is a m68k machine.
2501 m68*-tektronix-bsd* )
2502 machine=tek4300 opsys=bsd4-3
2503 ;;
2504
2505 ## Titan P2 or P3
2506 ## We seem to have lost the machine-description file titan.h!
2507 titan-titan-sysv* )
2508 machine=titan opsys=usg5-3
2509 ;;
2510
2511 ## Ustation E30 (SS5E)
2512 m68*-unisys-uniplus* )
2513 machine=ustation opsystem=unipl5-2
2514 ;;
2515
2516 ## Vaxen.
2517 vax-dec-* )
2518 machine=vax
2519 case "${canonical}" in
2520 *-bsd4.1* ) opsys=bsd4-1 ;;
2521 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2522 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2523 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2524 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2525 *-vms* ) opsys=vms ;;
2526 * ) unported=yes
2527 esac
2528 ;;
2529
2530 ## Whitechapel MG1
2531 ns16k-whitechapel-* )
2532 machine=mg1
2533 ## We don't know what sort of OS runs on these; we'll let the
2534 ## operating system guessing code below try.
2535 ;;
2536
2537 ## Wicat
2538 m68*-wicat-sysv* )
2539 machine=wicat opsys=usg5-2
2540 ;;
2541
2542 ## IA-64
2543 ia64*-*-linux* )
2544 machine=ia64 opsys=gnu-linux
2545 ;;
2546
2547 ## Intel 386 machines where we don't care about the manufacturer
2548 i[3456]86-*-* )
2549 machine=intel386
2550 case "${canonical}" in
2551 *-cygwin ) opsys=cygwin ;;
2552 *-lynxos* ) opsys=lynxos ;;
2553 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2554 *-isc2.2* ) opsys=isc2-2 ;;
2555 *-isc4.0* ) opsys=isc4-0 ;;
2556 *-isc4.* ) opsys=isc4-1
2557 GCC_TEST_OPTIONS=-posix
2558 NON_GCC_TEST_OPTIONS=-Xp
2559 ;;
2560 *-isc* ) opsys=isc3-0 ;;
2561 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2562 *-esix* ) opsys=esix ;;
2563 *-xenix* ) opsys=xenix ;;
2564 *-linux-gnu* ) opsys=gnu-linux ;;
2565 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2566 *-sco3.2v5* ) opsys=sco5
2567 NON_GNU_CPP=/lib/cpp
2568 # Prevent -belf from being passed to $CPP.
2569 # /lib/cpp does not accept it.
2570 OVERRIDE_CPPFLAGS=" "
2571 ;;
2572 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2573 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2574 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2575 *-386bsd* ) opsys=386bsd ;;
2576 *-nextstep* ) opsys=nextstep ;;
2577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2578 esac
2579 ;;
2580
2581 ## m68k Linux-based GNU system
2582 m68k-*-linux-gnu* )
2583 machine=m68k opsys=gnu-linux
2584 ;;
2585
2586 ## Mips Linux-based GNU system
2587 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2588 machine=mips opsys=gnu-linux
2589 ;;
2590
2591 ## UXP/DS
2592 sparc-fujitsu-sysv4* )
2593 machine=sparc opsys=uxpds
2594 NON_GNU_CPP=/usr/ccs/lib/cpp
2595 RANLIB="ar -ts"
2596 ;;
2597
2598 ## UXP/V
2599 f301-fujitsu-uxpv4.1)
2600 machine=f301 opsys=uxpv
2601 ;;
2602
2603 ## Darwin / Mac OS X
2604 powerpc-apple-darwin* )
2605 machine=powermac opsys=darwin
2606 # Define CPP as follows to make autoconf work correctly.
2607 CPP="${CC-cc} -E -no-cpp-precomp"
2608 # Use fink packages if available.
2609 if test -d /sw/include && test -d /sw/lib; then
2610 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2611 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2612 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2613 fi
2614 ;;
2615
2616 ## AMD x86-64 Linux-based GNU system
2617 x86_64-*-linux-gnu* )
2618 machine=amdx86-64 opsys=gnu-linux
2619 ;;
2620
2621 * )
2622 unported=yes
2623 ;;
2624 esac
2625
2626 ### If the code above didn't choose an operating system, just choose
2627 ### an operating system based on the configuration name. You really
2628 ### only want to use this when you have no idea what the right
2629 ### operating system is; if you know what operating systems a machine
2630 ### runs, it's cleaner to make it explicit in the case statement
2631 ### above.
2632 if test x"${opsys}" = x; then
2633 case "${canonical}" in
2634 *-gnu* ) opsys=gnu ;;
2635 *-bsd4.[01] ) opsys=bsd4-1 ;;
2636 *-bsd4.2 ) opsys=bsd4-2 ;;
2637 *-bsd4.3 ) opsys=bsd4-3 ;;
2638 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2639 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2640 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2641 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2642 *-sysv4.2uw* ) opsys=unixware ;;
2643 *-sysv5uw* ) opsys=unixware ;;
2644 *-sysv5OpenUNIX* ) opsys=unixware ;;
2645 *-sysv4.1* | *-sysvr4.1* )
2646 NON_GNU_CPP=/usr/lib/cpp
2647 opsys=usg5-4 ;;
2648 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2649 if [ x$NON_GNU_CPP = x ]; then
2650 if [ -f /usr/ccs/lib/cpp ]; then
2651 NON_GNU_CPP=/usr/ccs/lib/cpp
2652 else
2653 NON_GNU_CPP=/lib/cpp
2654 fi
2655 fi
2656 opsys=usg5-4-2 ;;
2657 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2658 * )
2659 unported=yes
2660 ;;
2661 esac
2662 fi
2663
2664
2665
2666 if test $unported = yes; then
2667 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2668 Check \`etc/MACHINES' for recognized configuration names." >&5
2669 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2670 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 machfile="m/${machine}.h"
2675 opsysfile="s/${opsys}.h"
2676
2677
2678 #### Choose a compiler.
2679 test -n "$CC" && cc_specified=yes
2680
2681 # Save the value of CFLAGS that the user specified.
2682 SPECIFIED_CFLAGS="$CFLAGS"
2683
2684 case ${with_gcc} in
2685 "yes" ) CC="gcc" GCC=yes ;;
2686 "no" ) : ${CC=cc} ;;
2687 * )
2688 esac
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697 echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718
2719 fi
2720 fi
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6
2725 else
2726 echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2728 fi
2729
2730 fi
2731 if test -z "$ac_cv_prog_CC"; then
2732 ac_ct_CC=$CC
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_CC="gcc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756
2757 fi
2758 fi
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2762 echo "${ECHO_T}$ac_ct_CC" >&6
2763 else
2764 echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2766 fi
2767
2768 CC=$ac_ct_CC
2769 else
2770 CC="$ac_cv_prog_CC"
2771 fi
2772
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2808 fi
2809
2810 fi
2811 if test -z "$ac_cv_prog_CC"; then
2812 ac_ct_CC=$CC
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="cc"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836
2837 fi
2838 fi
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2842 echo "${ECHO_T}$ac_ct_CC" >&6
2843 else
2844 echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848 CC=$ac_ct_CC
2849 else
2850 CC="$ac_cv_prog_CC"
2851 fi
2852
2853 fi
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 ac_prog_rejected=no
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2875 continue
2876 fi
2877 ac_cv_prog_CC="cc"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2887 shift
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2892 shift
2893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907 fi
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in cl
2911 do
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 echo "$as_me:$LINENO: result: $CC" >&5
2941 echo "${ECHO_T}$CC" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947 test -n "$CC" && break
2948 done
2949 fi
2950 if test -z "$CC"; then
2951 ac_ct_CC=$CC
2952 for ac_prog in cl
2953 do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977
2978 fi
2979 fi
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6
2984 else
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2987 fi
2988
2989 test -n "$ac_ct_CC" && break
2990 done
2991
2992 CC=$ac_ct_CC
2993 fi
2994
2995 fi
2996
2997
2998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: no acceptable C compiler found in \$PATH
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3003
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO:" \
3006 "checking for C compiler version" >&5
3007 ac_compiler=`set X $ac_compile; echo $2`
3008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3009 (eval $ac_compiler --version </dev/null >&5) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3014 (eval $ac_compiler -v </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3019 (eval $ac_compiler -V </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 ac_clean_files_save=$ac_clean_files
3040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3041 # Try to create an executable without -o first, disregard a.out.
3042 # It will help us diagnose broken compilers, and finding out an intuition
3043 # of exeext.
3044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3048 (eval $ac_link_default) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # Find the output, starting from the most likely. This scheme is
3053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3054 # resort.
3055
3056 # Be careful to initialize this variable, since it used to be cached.
3057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3058 ac_cv_exeext=
3059 # b.out is created by i960 compilers.
3060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3061 do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3065 ;;
3066 conftest.$ac_ext )
3067 # This is the source file.
3068 ;;
3069 [ab].out )
3070 # We found the default executable, but exeext='' is most
3071 # certainly right.
3072 break;;
3073 *.* )
3074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # FIXME: I believe we export ac_cv_exeext for Libtool,
3076 # but it would be cool to find out if it's true. Does anybody
3077 # maintain Libtool? --akim.
3078 export ac_cv_exeext
3079 break;;
3080 * )
3081 break;;
3082 esac
3083 done
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C compiler cannot create executables
3091 See \`config.log' for more details." >&2;}
3092 { (exit 77); exit 77; }; }
3093 fi
3094
3095 ac_exeext=$ac_cv_exeext
3096 echo "$as_me:$LINENO: result: $ac_file" >&5
3097 echo "${ECHO_T}$ac_file" >&6
3098
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104 # If not cross compiling, check that we can run a simple program.
3105 if test "$cross_compiling" != yes; then
3106 if { ac_try='./$ac_file'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 cross_compiling=no
3113 else
3114 if test "$cross_compiling" = maybe; then
3115 cross_compiling=yes
3116 else
3117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3124 fi
3125 fi
3126 fi
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129
3130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3137 echo "${ECHO_T}$cross_compiling" >&6
3138
3139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; then
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 # `rm'.
3150 for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 export ac_cv_exeext
3156 break;;
3157 * ) break;;
3158 esac
3159 done
3160 else
3161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168 rm -f conftest$ac_cv_exeext
3169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3170 echo "${ECHO_T}$ac_cv_exeext" >&6
3171
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3174 ac_exeext=$EXEEXT
3175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3177 if test "${ac_cv_objext+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.o conftest.obj
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207 done
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3220 fi
3221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3222 echo "${ECHO_T}$ac_cv_objext" >&6
3223 OBJEXT=$ac_cv_objext
3224 ac_objext=$OBJEXT
3225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236
3237 int
3238 main ()
3239 {
3240 #ifndef __GNUC__
3241 choke me
3242 #endif
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_compiler_gnu=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_compiler_gnu=no
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3283 GCC=`test $ac_compiler_gnu = yes && echo yes`
3284 ac_test_CFLAGS=${CFLAGS+set}
3285 ac_save_CFLAGS=$CFLAGS
3286 CFLAGS="-g"
3287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3289 if test "${ac_cv_prog_cc_g+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_prog_cc_g=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_cv_prog_cc_g=no
3335 fi
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3340 if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3344 CFLAGS="-g -O2"
3345 else
3346 CFLAGS="-g"
3347 fi
3348 else
3349 if test "$GCC" = yes; then
3350 CFLAGS="-O2"
3351 else
3352 CFLAGS=
3353 fi
3354 fi
3355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 ac_cv_prog_cc_stdc=no
3361 ac_save_CC=$CC
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376 char **p;
3377 int i;
3378 {
3379 return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383 char *s;
3384 va_list v;
3385 va_start (v,p);
3386 s = g (p, va_arg (v,int));
3387 va_end (v);
3388 return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std1 is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std1. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406 int
3407 main ()
3408 {
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 # Don't try gcc -ansi; that turns off useful extensions and
3415 # breaks some systems' header files.
3416 # AIX -qlanglvl=ansi
3417 # Ultrix and OSF/1 -std1
3418 # HP-UX 10.20 and later -Ae
3419 # HP-UX older versions -Aa -D_HPUX_SOURCE
3420 # SVR4 -Xc -D__EXTENSIONS__
3421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_prog_cc_stdc=$ac_arg
3447 break
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 fi
3453 rm -f conftest.err conftest.$ac_objext
3454 done
3455 rm -f conftest.$ac_ext conftest.$ac_objext
3456 CC=$ac_save_CC
3457
3458 fi
3459
3460 case "x$ac_cv_prog_cc_stdc" in
3461 x|xno)
3462 echo "$as_me:$LINENO: result: none needed" >&5
3463 echo "${ECHO_T}none needed" >&6 ;;
3464 *)
3465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3467 CC="$CC $ac_cv_prog_cc_stdc" ;;
3468 esac
3469
3470 # Some people use a C++ compiler to compile C. Since we use `exit',
3471 # in C++ we need to declare it. In case someone uses the same compiler
3472 # for both compiling C and C++ we need to have the C++ compiler decide
3473 # the declaration of exit, since it's the most demanding environment.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #ifndef __cplusplus
3476 choke me
3477 #endif
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 for ac_declaration in \
3502 '' \
3503 'extern "C" void std::exit (int) throw (); using std::exit;' \
3504 'extern "C" void std::exit (int); using std::exit;' \
3505 'extern "C" void exit (int) throw ();' \
3506 'extern "C" void exit (int);' \
3507 'void exit (int);'
3508 do
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_declaration
3516 #include <stdlib.h>
3517 int
3518 main ()
3519 {
3520 exit (42);
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 :
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 continue
3553 fi
3554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_declaration
3562 int
3563 main ()
3564 {
3565 exit (42);
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 break
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 fi
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 done
3600 rm -f conftest*
3601 if test -n "$ac_declaration"; then
3602 echo '#ifdef __cplusplus' >>confdefs.h
3603 echo $ac_declaration >>confdefs.h
3604 echo '#endif' >>confdefs.h
3605 fi
3606
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 fi
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 # On Suns, sometimes $CPP names a directory.
3621 if test -n "$CPP" && test -d "$CPP"; then
3622 CPP=
3623 fi
3624
3625 #### Some systems specify a CPP to use unless we are using GCC.
3626 #### Now that we know whether we are using GCC, we can decide whether
3627 #### to use that one.
3628 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3629 then
3630 CPP="$NON_GNU_CPP"
3631 fi
3632
3633 #### Some systems specify a CC to use unless we are using GCC.
3634 #### Now that we know whether we are using GCC, we can decide whether
3635 #### to use that one.
3636 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3637 test x$cc_specified != xyes
3638 then
3639 CC="$NON_GNU_CC"
3640 fi
3641
3642 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3643 then
3644 CC="$CC $GCC_TEST_OPTIONS"
3645 fi
3646
3647 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $NON_GCC_TEST_OPTIONS"
3650 fi
3651
3652 #### Some other nice autoconf tests.
3653
3654 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3656 LN_S=$as_ln_s
3657 if test "$LN_S" = "ln -s"; then
3658 echo "$as_me:$LINENO: result: yes" >&5
3659 echo "${ECHO_T}yes" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3662 echo "${ECHO_T}no, using $LN_S" >&6
3663 fi
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3671 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3674 CPP=
3675 fi
3676 if test -z "$CPP"; then
3677 if test "${ac_cv_prog_CPP+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 # Double quotes because CPP needs to be expanded
3681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 do
3683 ac_preproc_ok=false
3684 for ac_c_preproc_warn_flag in '' yes
3685 do
3686 # Use a header file that comes with gcc, so configuring glibc
3687 # with a fresh cross-compiler works.
3688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 # <limits.h> exists even on freestanding compilers.
3690 # On the NeXT, cc -E runs the code through the compiler's parser,
3691 # not just through cpp. "Syntax error" is here to catch this case.
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #ifdef __STDC__
3699 # include <limits.h>
3700 #else
3701 # include <assert.h>
3702 #endif
3703 Syntax error
3704 _ACEOF
3705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 else
3717 ac_cpp_err=
3718 fi
3719 else
3720 ac_cpp_err=yes
3721 fi
3722 if test -z "$ac_cpp_err"; then
3723 :
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 # Broken: fails on valid input.
3729 continue
3730 fi
3731 rm -f conftest.err conftest.$ac_ext
3732
3733 # OK, works on sane cases. Now check whether non-existent headers
3734 # can be detected and how.
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 #include <ac_nonexistent.h>
3742 _ACEOF
3743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null; then
3751 if test -s conftest.err; then
3752 ac_cpp_err=$ac_c_preproc_warn_flag
3753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3754 else
3755 ac_cpp_err=
3756 fi
3757 else
3758 ac_cpp_err=yes
3759 fi
3760 if test -z "$ac_cpp_err"; then
3761 # Broken: success on invalid input.
3762 continue
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 # Passes both tests.
3768 ac_preproc_ok=:
3769 break
3770 fi
3771 rm -f conftest.err conftest.$ac_ext
3772
3773 done
3774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775 rm -f conftest.err conftest.$ac_ext
3776 if $ac_preproc_ok; then
3777 break
3778 fi
3779
3780 done
3781 ac_cv_prog_CPP=$CPP
3782
3783 fi
3784 CPP=$ac_cv_prog_CPP
3785 else
3786 ac_cv_prog_CPP=$CPP
3787 fi
3788 echo "$as_me:$LINENO: result: $CPP" >&5
3789 echo "${ECHO_T}$CPP" >&6
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #ifdef __STDC__
3806 # include <limits.h>
3807 #else
3808 # include <assert.h>
3809 #endif
3810 Syntax error
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3825 fi
3826 else
3827 ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830 :
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3863 fi
3864 else
3865 ac_cpp_err=yes
3866 fi
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3869 continue
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884 :
3885 else
3886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&5
3888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&2;}
3890 { (exit 1); exit 1; }; }
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899 # Find a good install program. We prefer a C program (faster),
3900 # so one script is as good as another. But avoid the broken or
3901 # incompatible versions:
3902 # SysV /etc/install, /usr/sbin/install
3903 # SunOS /usr/etc/install
3904 # IRIX /sbin/install
3905 # AIX /bin/install
3906 # AmigaOS /C/install, which installs bootblocks on floppy discs
3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910 # OS/2's system install, which has a completely different semantic
3911 # ./install, which can be erroneously created by make from ./install.sh.
3912 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3913 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3914 if test -z "$INSTALL"; then
3915 if test "${ac_cv_path_install+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 # Account for people who put trailing slashes in PATH elements.
3924 case $as_dir/ in
3925 ./ | .// | /cC/* | \
3926 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3927 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3928 /usr/ucb/* ) ;;
3929 *)
3930 # OSF1 and SCO ODT 3.0 have their own names for install.
3931 # Don't use installbsd from OSF since it installs stuff as root
3932 # by default.
3933 for ac_prog in ginstall scoinst install; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3936 if test $ac_prog = install &&
3937 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # AIX install. It has an incompatible calling convention.
3939 :
3940 elif test $ac_prog = install &&
3941 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3942 # program-specific install script used by HP pwplus--don't use.
3943 :
3944 else
3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3946 break 3
3947 fi
3948 fi
3949 done
3950 done
3951 ;;
3952 esac
3953 done
3954
3955
3956 fi
3957 if test "${ac_cv_path_install+set}" = set; then
3958 INSTALL=$ac_cv_path_install
3959 else
3960 # As a last resort, use the slow shell script. We don't cache a
3961 # path for INSTALL within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the path is relative.
3964 INSTALL=$ac_install_sh
3965 fi
3966 fi
3967 echo "$as_me:$LINENO: result: $INSTALL" >&5
3968 echo "${ECHO_T}$INSTALL" >&6
3969
3970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3971 # It thinks the first close brace ends the variable substitution.
3972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3973
3974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3975
3976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3977
3978 if test "x$RANLIB" = x; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_RANLIB+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -n "$RANLIB"; then
3988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 RANLIB=$ac_cv_prog_RANLIB
4007 if test -n "$RANLIB"; then
4008 echo "$as_me:$LINENO: result: $RANLIB" >&5
4009 echo "${ECHO_T}$RANLIB" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015 fi
4016 if test -z "$ac_cv_prog_RANLIB"; then
4017 ac_ct_RANLIB=$RANLIB
4018 # Extract the first word of "ranlib", so it can be a program name with args.
4019 set dummy ranlib; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test -n "$ac_ct_RANLIB"; then
4026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_RANLIB="ranlib"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041
4042 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4043 fi
4044 fi
4045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4046 if test -n "$ac_ct_RANLIB"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4048 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054 RANLIB=$ac_ct_RANLIB
4055 else
4056 RANLIB="$ac_cv_prog_RANLIB"
4057 fi
4058
4059 fi
4060 # Extract the first word of "install-info", so it can be a program name with args.
4061 set dummy install-info; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 case $INSTALL_INFO in
4068 [\\/]* | ?:[\\/]*)
4069 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4070 ;;
4071 *)
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085
4086 ;;
4087 esac
4088 fi
4089 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4090
4091 if test -n "$INSTALL_INFO"; then
4092 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4093 echo "${ECHO_T}$INSTALL_INFO" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097 fi
4098
4099 # Extract the first word of "install-info", so it can be a program name with args.
4100 set dummy install-info; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 case $INSTALL_INFO in
4107 [\\/]* | ?:[\\/]*)
4108 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4109 ;;
4110 *)
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in /usr/sbin
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124
4125 ;;
4126 esac
4127 fi
4128 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4129
4130 if test -n "$INSTALL_INFO"; then
4131 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4132 echo "${ECHO_T}$INSTALL_INFO" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $INSTALL_INFO in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4148 ;;
4149 *)
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in /sbin
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163
4164 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4165 ;;
4166 esac
4167 fi
4168 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4169
4170 if test -n "$INSTALL_INFO"; then
4171 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4172 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179
4180 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4181 then
4182 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4183 fi
4184
4185 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4188 fi
4189
4190
4191 late_LDFLAGS=$LDFLAGS
4192 if test "$GCC" = yes; then
4193 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4194 else
4195 LDFLAGS="$LDFLAGS -znocombreloc"
4196 fi
4197
4198 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4199 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4200
4201 cat >conftest.$ac_ext <<_ACEOF
4202 main(){return 0;}
4203 _ACEOF
4204 rm -f conftest.$ac_objext conftest$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4226 echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 LDFLAGS=$late_LDFLAGS
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236 rm -f conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4238
4239
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4248 fi
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
4253
4254
4255
4256 echo "$as_me:$LINENO: checking for AIX" >&5
4257 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #ifdef _AIX
4265 yes
4266 #endif
4267
4268 _ACEOF
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "yes" >/dev/null 2>&1; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272 echo "${ECHO_T}yes" >&6
4273 cat >>confdefs.h <<\_ACEOF
4274 #define _ALL_SOURCE 1
4275 _ACEOF
4276
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281 rm -f conftest*
4282
4283
4284
4285
4286 #### Extract some information from the operating system and machine files.
4287
4288 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4289 - which libraries the lib-src programs will want, and
4290 - whether the GNU malloc routines are usable..." >&5
4291 echo "$as_me: checking the machine- and system-dependent files to find out
4292 - which libraries the lib-src programs will want, and
4293 - whether the GNU malloc routines are usable..." >&6;}
4294
4295 ### First figure out CFLAGS (which we use for running the compiler here)
4296 ### and REAL_CFLAGS (which we use for real compilation).
4297 ### The two are the same except on a few systems, where they are made
4298 ### different to work around various lossages. For example,
4299 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4300 ### as implying static linking.
4301
4302 ### If the CFLAGS env var is specified, we use that value
4303 ### instead of the default.
4304
4305 ### It's not important that this name contain the PID; you can't run
4306 ### two configures in the same directory and have anything work
4307 ### anyway.
4308 tempcname="conftest.c"
4309
4310 echo '
4311 #include "'${srcdir}'/src/'${opsysfile}'"
4312 #include "'${srcdir}'/src/'${machfile}'"
4313 #ifndef LIBS_MACHINE
4314 #define LIBS_MACHINE
4315 #endif
4316 #ifndef LIBS_SYSTEM
4317 #define LIBS_SYSTEM
4318 #endif
4319 #ifndef C_SWITCH_SYSTEM
4320 #define C_SWITCH_SYSTEM
4321 #endif
4322 #ifndef C_SWITCH_MACHINE
4323 #define C_SWITCH_MACHINE
4324 #endif
4325 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4326 configure___ c_switch_system=C_SWITCH_SYSTEM
4327 configure___ c_switch_machine=C_SWITCH_MACHINE
4328
4329 #ifndef LIB_X11_LIB
4330 #define LIB_X11_LIB -lX11
4331 #endif
4332
4333 #ifndef LIBX11_MACHINE
4334 #define LIBX11_MACHINE
4335 #endif
4336
4337 #ifndef LIBX11_SYSTEM
4338 #define LIBX11_SYSTEM
4339 #endif
4340 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4341
4342 #ifdef UNEXEC
4343 configure___ unexec=UNEXEC
4344 #else
4345 configure___ unexec=unexec.o
4346 #endif
4347
4348 #ifdef SYSTEM_MALLOC
4349 configure___ system_malloc=yes
4350 #else
4351 configure___ system_malloc=no
4352 #endif
4353
4354 #ifdef USE_MMAP_FOR_BUFFERS
4355 configure___ use_mmap_for_buffers=yes
4356 #else
4357 configure___ use_mmap_for_buffers=no
4358 #endif
4359
4360 #ifndef C_DEBUG_SWITCH
4361 #define C_DEBUG_SWITCH -g
4362 #endif
4363
4364 #ifndef C_OPTIMIZE_SWITCH
4365 #ifdef __GNUC__
4366 #define C_OPTIMIZE_SWITCH -O2
4367 #else
4368 #define C_OPTIMIZE_SWITCH -O
4369 #endif
4370 #endif
4371
4372 #ifndef LD_SWITCH_MACHINE
4373 #define LD_SWITCH_MACHINE
4374 #endif
4375
4376 #ifndef LD_SWITCH_SYSTEM
4377 #define LD_SWITCH_SYSTEM
4378 #endif
4379
4380 #ifndef LD_SWITCH_X_SITE_AUX
4381 #define LD_SWITCH_X_SITE_AUX
4382 #endif
4383
4384 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4385 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4386
4387 #ifdef THIS_IS_CONFIGURE
4388
4389 /* Get the CFLAGS for tests in configure. */
4390 #ifdef __GNUC__
4391 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4392 #else
4393 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4394 #endif
4395
4396 #else /* not THIS_IS_CONFIGURE */
4397
4398 /* Get the CFLAGS for real compilation. */
4399 #ifdef __GNUC__
4400 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else
4402 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4403 #endif
4404
4405 #endif /* not THIS_IS_CONFIGURE */
4406 ' > ${tempcname}
4407
4408 # The value of CPP is a quoted variable reference, so we need to do this
4409 # to get its actual value...
4410 CPP=`eval "echo $CPP"`
4411 eval `${CPP} -Isrc ${tempcname} \
4412 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 if test "x$SPECIFIED_CFLAGS" = x; then
4414 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4415 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4416 else
4417 REAL_CFLAGS="$CFLAGS"
4418 fi
4419 rm ${tempcname}
4420
4421 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4422
4423 ### Make sure subsequent tests use flags consistent with the build flags.
4424
4425 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4426 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4427 else
4428 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4429 fi
4430
4431
4432
4433
4434 cat >>confdefs.h <<\_ACEOF
4435 #define _GNU_SOURCE 1
4436 _ACEOF
4437
4438
4439
4440 # Check whether --enable-largefile or --disable-largefile was given.
4441 if test "${enable_largefile+set}" = set; then
4442 enableval="$enable_largefile"
4443
4444 fi;
4445 if test "$enable_largefile" != no; then
4446
4447 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4448 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4449 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 ac_cv_sys_largefile_CC=no
4453 if test "$GCC" != yes; then
4454 ac_save_CC=$CC
4455 while :; do
4456 # IRIX 6.2 and later do not support large files by default,
4457 # so use the C compiler's -n32 option if that helps.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 /* Check that off_t can represent 2**63 - 1 correctly.
4466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4467 since some C++ compilers masquerading as C compilers
4468 incorrectly reject 9223372036854775807. */
4469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4471 && LARGE_OFF_T % 2147483647 == 1)
4472 ? 1 : -1];
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 break
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 fi
4509 rm -f conftest.err conftest.$ac_objext
4510 CC="$CC -n32"
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_sys_largefile_CC=' -n32'; break
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 fi
4539 rm -f conftest.err conftest.$ac_objext
4540 break
4541 done
4542 CC=$ac_save_CC
4543 rm -f conftest.$ac_ext
4544 fi
4545 fi
4546 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4547 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4548 if test "$ac_cv_sys_largefile_CC" != no; then
4549 CC=$CC$ac_cv_sys_largefile_CC
4550 fi
4551
4552 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4553 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4554 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 while :; do
4558 ac_cv_sys_file_offset_bits=no
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <sys/types.h>
4566 /* Check that off_t can represent 2**63 - 1 correctly.
4567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4568 since some C++ compilers masquerading as C compilers
4569 incorrectly reject 9223372036854775807. */
4570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4572 && LARGE_OFF_T % 2147483647 == 1)
4573 ? 1 : -1];
4574 int
4575 main ()
4576 {
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 break
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619 /* Check that off_t can represent 2**63 - 1 correctly.
4620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621 since some C++ compilers masquerading as C compilers
4622 incorrectly reject 9223372036854775807. */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625 && LARGE_OFF_T % 2147483647 == 1)
4626 ? 1 : -1];
4627 int
4628 main ()
4629 {
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_sys_file_offset_bits=64; break
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 break
4665 done
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4668 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4669 if test "$ac_cv_sys_file_offset_bits" != no; then
4670
4671 cat >>confdefs.h <<_ACEOF
4672 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4673 _ACEOF
4674
4675 fi
4676 rm -f conftest*
4677 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4678 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4679 if test "${ac_cv_sys_large_files+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 while :; do
4683 ac_cv_sys_large_files=no
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 /* Check that off_t can represent 2**63 - 1 correctly.
4692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4693 since some C++ compilers masquerading as C compilers
4694 incorrectly reject 9223372036854775807. */
4695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4697 && LARGE_OFF_T % 2147483647 == 1)
4698 ? 1 : -1];
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest.$ac_objext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 break
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #define _LARGE_FILES 1
4743 #include <sys/types.h>
4744 /* Check that off_t can represent 2**63 - 1 correctly.
4745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746 since some C++ compilers masquerading as C compilers
4747 incorrectly reject 9223372036854775807. */
4748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750 && LARGE_OFF_T % 2147483647 == 1)
4751 ? 1 : -1];
4752 int
4753 main ()
4754 {
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || 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"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_header_stdc=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_cv_header_stdc=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861
4862 if test $ac_cv_header_stdc = yes; then
4863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <string.h>
4871
4872 _ACEOF
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "memchr" >/dev/null 2>&1; then
4875 :
4876 else
4877 ac_cv_header_stdc=no
4878 fi
4879 rm -f conftest*
4880
4881 fi
4882
4883 if test $ac_cv_header_stdc = yes; then
4884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <stdlib.h>
4892
4893 _ACEOF
4894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895 $EGREP "free" >/dev/null 2>&1; then
4896 :
4897 else
4898 ac_cv_header_stdc=no
4899 fi
4900 rm -f conftest*
4901
4902 fi
4903
4904 if test $ac_cv_header_stdc = yes; then
4905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906 if test "$cross_compiling" = yes; then
4907 :
4908 else
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <ctype.h>
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 #else
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #endif
4926
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 int
4929 main ()
4930 {
4931 int i;
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4935 exit(2);
4936 exit (0);
4937 }
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 :
4951 else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ( exit $ac_status )
4957 ac_cv_header_stdc=no
4958 fi
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 fi
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4965 if test $ac_cv_header_stdc = yes; then
4966
4967 cat >>confdefs.h <<\_ACEOF
4968 #define STDC_HEADERS 1
4969 _ACEOF
4970
4971 fi
4972
4973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984 inttypes.h stdint.h unistd.h
4985 do
4986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 echo "$as_me:$LINENO: checking for $ac_header" >&5
4988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999
5000 #include <$ac_header>
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 eval "$as_ac_Header=yes"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 eval "$as_ac_Header=no"
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036 cat >>confdefs.h <<_ACEOF
5037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038 _ACEOF
5039
5040 fi
5041
5042 done
5043
5044
5045
5046
5047
5048 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5049 do
5050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 fi
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 else
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5070 #include <$ac_header>
5071 _ACEOF
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 ac_header_compiler=no
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5104
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5115 _ACEOF
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130 else
5131 ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ac_header_preproc=no
5140 fi
5141 rm -f conftest.err conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5144
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5147 yes:no: )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc=yes
5153 ;;
5154 no:yes:* )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5167 (
5168 cat <<\_ASBOX
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5172 _ASBOX
5173 ) |
5174 sed "s/^/$as_me: WARNING: /" >&2
5175 ;;
5176 esac
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 eval "$as_ac_Header=\$ac_header_preproc"
5183 fi
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5186
5187 fi
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 _ACEOF
5192
5193 fi
5194
5195 done
5196
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lossaudio $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 #ifdef __cplusplus
5214 extern "C"
5215 #endif
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218 char _oss_ioctl ();
5219 int
5220 main ()
5221 {
5222 _oss_ioctl ();
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_c_werror_flag"
5237 || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_ossaudio__oss_ioctl=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_cv_lib_ossaudio__oss_ioctl=no
5255 fi
5256 rm -f conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5261 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5262 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5263 LIBSOUND=-lossaudio
5264 else
5265 LIBSOUND=
5266 fi
5267
5268
5269 fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5297 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5298 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5299 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5300 sys/utsname.h pwd.h
5301 do
5302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5304 echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 fi
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5311 else
5312 # Is the header compilable?
5313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352 fi
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <$ac_header>
5367 _ACEOF
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev/null; then
5376 if test -s conftest.err; then
5377 ac_cpp_err=$ac_c_preproc_warn_flag
5378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379 else
5380 ac_cpp_err=
5381 fi
5382 else
5383 ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_header_preproc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5405 ;;
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 (
5420 cat <<\_ASBOX
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists. ##
5423 ## ------------------------------------------ ##
5424 _ASBOX
5425 ) |
5426 sed "s/^/$as_me: WARNING: /" >&2
5427 ;;
5428 esac
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 eval "$as_ac_Header=\$ac_header_preproc"
5435 fi
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438
5439 fi
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 _ACEOF
5444
5445 fi
5446
5447 done
5448
5449
5450 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5451 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/personality.h>
5459 int
5460 main ()
5461 {
5462 personality (PER_LINUX32)
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -z "$ac_c_werror_flag"
5477 || test ! -s conftest.err'
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); }; } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 emacs_cv_personality_linux32=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 emacs_cv_personality_linux32=no
5495 fi
5496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5497 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5498 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5499
5500 if test $emacs_cv_personality_linux32 = yes; then
5501
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_PERSONALITY_LINUX32 1
5504 _ACEOF
5505
5506 fi
5507
5508
5509 for ac_header in term.h
5510 do
5511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <$ac_header>
5524 _ACEOF
5525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 else
5537 ac_cpp_err=
5538 fi
5539 else
5540 ac_cpp_err=yes
5541 fi
5542 if test -z "$ac_cpp_err"; then
5543 eval "$as_ac_Header=yes"
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 eval "$as_ac_Header=no"
5549 fi
5550 rm -f conftest.err conftest.$ac_ext
5551 fi
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h <<_ACEOF
5556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 _ACEOF
5558
5559 fi
5560
5561 done
5562
5563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5565 if test "${ac_cv_header_stdc+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <stdlib.h>
5575 #include <stdarg.h>
5576 #include <string.h>
5577 #include <float.h>
5578
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <string.h>
5627
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev/null 2>&1; then
5631 :
5632 else
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest*
5636
5637 fi
5638
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648
5649 _ACEOF
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then
5652 :
5653 else
5654 ac_cv_header_stdc=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5663 :
5664 else
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <ctype.h>
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 #else
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #endif
5682
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 int
5685 main ()
5686 {
5687 int i;
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5691 exit(2);
5692 exit (0);
5693 }
5694 _ACEOF
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 :
5707 else
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ( exit $ac_status )
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 fi
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define STDC_HEADERS 1
5725 _ACEOF
5726
5727 fi
5728
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5742 #include <time.h>
5743
5744 int
5745 main ()
5746 {
5747 if ((struct tm *) 0)
5748 return 0;
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_header_time=yes
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_cv_header_time=no
5781 fi
5782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 fi
5784 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5785 echo "${ECHO_T}$ac_cv_header_time" >&6
5786 if test $ac_cv_header_time = yes; then
5787
5788 cat >>confdefs.h <<\_ACEOF
5789 #define TIME_WITH_SYS_TIME 1
5790 _ACEOF
5791
5792 fi
5793
5794 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5795 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5796 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 #ifndef sys_siglist
5810 char *p = (char *) sys_siglist;
5811 #endif
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_have_decl_sys_siglist=yes
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_have_decl_sys_siglist=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5849 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5850 if test $ac_cv_have_decl_sys_siglist = yes; then
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 1
5854 _ACEOF
5855
5856
5857 else
5858 cat >>confdefs.h <<_ACEOF
5859 #define HAVE_DECL_SYS_SIGLIST 0
5860 _ACEOF
5861
5862
5863 fi
5864
5865
5866 if test $ac_cv_have_decl_sys_siglist != yes; then
5867 # For Tru64, at least:
5868 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5869 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5870 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5880 int
5881 main ()
5882 {
5883 #ifndef __sys_siglist
5884 char *p = (char *) __sys_siglist;
5885 #endif
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -z "$ac_c_werror_flag"
5901 || test ! -s conftest.err'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_cv_have_decl___sys_siglist=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 ac_cv_have_decl___sys_siglist=no
5919 fi
5920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5923 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5924 if test $ac_cv_have_decl___sys_siglist = yes; then
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define HAVE_DECL___SYS_SIGLIST 1
5928 _ACEOF
5929
5930
5931 else
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_DECL___SYS_SIGLIST 0
5934 _ACEOF
5935
5936
5937 fi
5938
5939
5940 if test $ac_cv_have_decl___sys_siglist = yes; then
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define sys_siglist __sys_siglist
5944 _ACEOF
5945
5946 fi
5947 fi
5948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/wait.h>
5961 #ifndef WEXITSTATUS
5962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5963 #endif
5964 #ifndef WIFEXITED
5965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5966 #endif
5967
5968 int
5969 main ()
5970 {
5971 int s;
5972 wait (&s);
5973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_header_sys_wait_h=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_header_sys_wait_h=no
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6011 if test $ac_cv_header_sys_wait_h = yes; then
6012
6013 cat >>confdefs.h <<\_ACEOF
6014 #define HAVE_SYS_WAIT_H 1
6015 _ACEOF
6016
6017 fi
6018
6019
6020 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6021 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6022 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #ifdef TIME_WITH_SYS_TIME
6032 #include <sys/time.h>
6033 #include <time.h>
6034 #else
6035 #ifdef HAVE_SYS_TIME_H
6036 #include <sys/time.h>
6037 #else
6038 #include <time.h>
6039 #endif
6040 #endif
6041 #ifdef HAVE_UTIME_H
6042 #include <utime.h>
6043 #endif
6044 int
6045 main ()
6046 {
6047 static struct utimbuf x; x.actime = x.modtime;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -z "$ac_c_werror_flag"
6062 || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 emacs_cv_struct_utimbuf=yes
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 emacs_cv_struct_utimbuf=no
6080 fi
6081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6084 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6085 if test $emacs_cv_struct_utimbuf = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_STRUCT_UTIMBUF 1
6089 _ACEOF
6090
6091 fi
6092
6093 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6094 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6095 if test "${ac_cv_type_signal+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6105 #include <signal.h>
6106 #ifdef signal
6107 # undef signal
6108 #endif
6109 #ifdef __cplusplus
6110 extern "C" void (*signal (int, void (*)(int)))(int);
6111 #else
6112 void (*signal ()) ();
6113 #endif
6114
6115 int
6116 main ()
6117 {
6118 int i;
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_type_signal=void
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_cv_type_signal=int
6151 fi
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6155 echo "${ECHO_T}$ac_cv_type_signal" >&6
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define RETSIGTYPE $ac_cv_type_signal
6159 _ACEOF
6160
6161
6162
6163 echo "$as_me:$LINENO: checking for speed_t" >&5
6164 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6165 if test "${emacs_cv_speed_t+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <termios.h>
6175 int
6176 main ()
6177 {
6178 speed_t x = 1;
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 emacs_cv_speed_t=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 emacs_cv_speed_t=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6215 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6216 if test $emacs_cv_speed_t = yes; then
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define HAVE_SPEED_T 1
6220 _ACEOF
6221
6222 fi
6223
6224 echo "$as_me:$LINENO: checking for struct timeval" >&5
6225 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6226 if test "${emacs_cv_struct_timeval+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #ifdef TIME_WITH_SYS_TIME
6236 #include <sys/time.h>
6237 #include <time.h>
6238 #else
6239 #ifdef HAVE_SYS_TIME_H
6240 #include <sys/time.h>
6241 #else
6242 #include <time.h>
6243 #endif
6244 #endif
6245 int
6246 main ()
6247 {
6248 static struct timeval x; x.tv_sec = x.tv_usec;
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 emacs_cv_struct_timeval=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 emacs_cv_struct_timeval=no
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6285 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6286 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6287 if test $emacs_cv_struct_timeval = yes; then
6288
6289 cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_TIMEVAL 1
6291 _ACEOF
6292
6293 fi
6294
6295 echo "$as_me:$LINENO: checking for struct exception" >&5
6296 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6297 if test "${emacs_cv_struct_exception+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <math.h>
6307 int
6308 main ()
6309 {
6310 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 emacs_cv_struct_exception=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 emacs_cv_struct_exception=no
6343 fi
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 fi
6346 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6347 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6348 HAVE_EXCEPTION=$emacs_cv_struct_exception
6349 if test $emacs_cv_struct_exception != yes; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define NO_MATHERR 1
6353 _ACEOF
6354
6355 fi
6356
6357
6358 for ac_header in sys/socket.h
6359 do
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_compiler=no
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6414
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437 else
6438 ac_cpp_err=
6439 fi
6440 else
6441 ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_preproc=no
6450 fi
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6454
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6463 ;;
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6477 (
6478 cat <<\_ASBOX
6479 ## ------------------------------------------ ##
6480 ## Report this to the AC_PACKAGE_NAME lists. ##
6481 ## ------------------------------------------ ##
6482 _ASBOX
6483 ) |
6484 sed "s/^/$as_me: WARNING: /" >&2
6485 ;;
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 eval "$as_ac_Header=\$ac_header_preproc"
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496
6497 fi
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502
6503 fi
6504
6505 done
6506
6507
6508 for ac_header in net/if.h
6509 do
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #if HAVE_SYS_SOCKET_H
6524 #include <sys/socket.h>
6525 #endif
6526
6527 #include <$ac_header>
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_Header=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_Header=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 fi
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 _ACEOF
6566
6567 fi
6568
6569 done
6570
6571
6572 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6573 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6574 if test "${ac_cv_struct_tm+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6584 #include <time.h>
6585
6586 int
6587 main ()
6588 {
6589 struct tm *tp; tp->tm_sec;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_struct_tm=time.h
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 ac_cv_struct_tm=sys/time.h
6622 fi
6623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6626 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6627 if test $ac_cv_struct_tm = sys/time.h; then
6628
6629 cat >>confdefs.h <<\_ACEOF
6630 #define TM_IN_SYS_TIME 1
6631 _ACEOF
6632
6633 fi
6634
6635 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6636 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6637 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #include <sys/types.h>
6647 #include <$ac_cv_struct_tm>
6648
6649
6650 int
6651 main ()
6652 {
6653 static struct tm ac_aggr;
6654 if (ac_aggr.tm_zone)
6655 return 0;
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_member_struct_tm_tm_zone=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <$ac_cv_struct_tm>
6695
6696
6697 int
6698 main ()
6699 {
6700 static struct tm ac_aggr;
6701 if (sizeof ac_aggr.tm_zone)
6702 return 0;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest.$ac_objext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_member_struct_tm_tm_zone=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 ac_cv_member_struct_tm_tm_zone=no
6735 fi
6736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6741 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6742 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6743
6744 cat >>confdefs.h <<_ACEOF
6745 #define HAVE_STRUCT_TM_TM_ZONE 1
6746 _ACEOF
6747
6748
6749 fi
6750
6751 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6752
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_TM_ZONE 1
6755 _ACEOF
6756
6757 else
6758 echo "$as_me:$LINENO: checking for tzname" >&5
6759 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6760 if test "${ac_cv_var_tzname+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <time.h>
6770 #ifndef tzname /* For SGI. */
6771 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6772 #endif
6773
6774 int
6775 main ()
6776 {
6777 atoi(*tzname);
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_var_tzname=yes
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 ac_cv_var_tzname=no
6810 fi
6811 rm -f conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6815 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6816 if test $ac_cv_var_tzname = yes; then
6817
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_TZNAME 1
6820 _ACEOF
6821
6822 fi
6823 fi
6824
6825 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6826 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6827 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <time.h>
6837
6838 int
6839 main ()
6840 {
6841 static struct tm ac_aggr;
6842 if (ac_aggr.tm_gmtoff)
6843 return 0;
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_cv_member_struct_tm_tm_gmtoff=yes
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6874
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <time.h>
6882
6883 int
6884 main ()
6885 {
6886 static struct tm ac_aggr;
6887 if (sizeof ac_aggr.tm_gmtoff)
6888 return 0;
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_member_struct_tm_tm_gmtoff=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_cv_member_struct_tm_tm_gmtoff=no
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6928 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_TM_GMTOFF 1
6932 _ACEOF
6933
6934 fi
6935
6936 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6937 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6938 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #if HAVE_SYS_SOCKET_H
6949 #include <sys/socket.h>
6950 #endif
6951 #if HAVE_NET_IF_H
6952 #include <net/if.h>
6953 #endif
6954
6955 int
6956 main ()
6957 {
6958 static struct ifreq ac_aggr;
6959 if (ac_aggr.ifr_flags)
6960 return 0;
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_ifreq_ifr_flags=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
6999 #if HAVE_SYS_SOCKET_H
7000 #include <sys/socket.h>
7001 #endif
7002 #if HAVE_NET_IF_H
7003 #include <net/if.h>
7004 #endif
7005
7006 int
7007 main ()
7008 {
7009 static struct ifreq ac_aggr;
7010 if (sizeof ac_aggr.ifr_flags)
7011 return 0;
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_member_struct_ifreq_ifr_flags=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7042
7043 ac_cv_member_struct_ifreq_ifr_flags=no
7044 fi
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7050 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7051 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7055 _ACEOF
7056
7057
7058 fi
7059 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7060 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7061 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 #if HAVE_SYS_SOCKET_H
7072 #include <sys/socket.h>
7073 #endif
7074 #if HAVE_NET_IF_H
7075 #include <net/if.h>
7076 #endif
7077
7078 int
7079 main ()
7080 {
7081 static struct ifreq ac_aggr;
7082 if (ac_aggr.ifr_hwaddr)
7083 return 0;
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest.$ac_objext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7111 else
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 #if HAVE_SYS_SOCKET_H
7123 #include <sys/socket.h>
7124 #endif
7125 #if HAVE_NET_IF_H
7126 #include <net/if.h>
7127 #endif
7128
7129 int
7130 main ()
7131 {
7132 static struct ifreq ac_aggr;
7133 if (sizeof ac_aggr.ifr_hwaddr)
7134 return 0;
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7167 fi
7168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 fi
7172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7173 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7174 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7175
7176 cat >>confdefs.h <<_ACEOF
7177 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7178 _ACEOF
7179
7180
7181 fi
7182 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7183 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7184 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 #if HAVE_SYS_SOCKET_H
7195 #include <sys/socket.h>
7196 #endif
7197 #if HAVE_NET_IF_H
7198 #include <net/if.h>
7199 #endif
7200
7201 int
7202 main ()
7203 {
7204 static struct ifreq ac_aggr;
7205 if (ac_aggr.ifr_netmask)
7206 return 0;
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_member_struct_ifreq_ifr_netmask=yes
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 #if HAVE_SYS_SOCKET_H
7246 #include <sys/socket.h>
7247 #endif
7248 #if HAVE_NET_IF_H
7249 #include <net/if.h>
7250 #endif
7251
7252 int
7253 main ()
7254 {
7255 static struct ifreq ac_aggr;
7256 if (sizeof ac_aggr.ifr_netmask)
7257 return 0;
7258 ;
7259 return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_member_struct_ifreq_ifr_netmask=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_cv_member_struct_ifreq_ifr_netmask=no
7290 fi
7291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7296 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7297 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7301 _ACEOF
7302
7303
7304 fi
7305 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7306 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7307 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 #if HAVE_SYS_SOCKET_H
7318 #include <sys/socket.h>
7319 #endif
7320 #if HAVE_NET_IF_H
7321 #include <net/if.h>
7322 #endif
7323
7324 int
7325 main ()
7326 {
7327 static struct ifreq ac_aggr;
7328 if (ac_aggr.ifr_broadaddr)
7329 return 0;
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 #if HAVE_SYS_SOCKET_H
7369 #include <sys/socket.h>
7370 #endif
7371 #if HAVE_NET_IF_H
7372 #include <net/if.h>
7373 #endif
7374
7375 int
7376 main ()
7377 {
7378 static struct ifreq ac_aggr;
7379 if (sizeof ac_aggr.ifr_broadaddr)
7380 return 0;
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7413 fi
7414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7419 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7420 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7421
7422 cat >>confdefs.h <<_ACEOF
7423 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7424 _ACEOF
7425
7426
7427 fi
7428 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7429 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7430 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #if HAVE_SYS_SOCKET_H
7441 #include <sys/socket.h>
7442 #endif
7443 #if HAVE_NET_IF_H
7444 #include <net/if.h>
7445 #endif
7446
7447 int
7448 main ()
7449 {
7450 static struct ifreq ac_aggr;
7451 if (ac_aggr.ifr_addr)
7452 return 0;
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_member_struct_ifreq_ifr_addr=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 #if HAVE_SYS_SOCKET_H
7492 #include <sys/socket.h>
7493 #endif
7494 #if HAVE_NET_IF_H
7495 #include <net/if.h>
7496 #endif
7497
7498 int
7499 main ()
7500 {
7501 static struct ifreq ac_aggr;
7502 if (sizeof ac_aggr.ifr_addr)
7503 return 0;
7504 ;
7505 return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_member_struct_ifreq_ifr_addr=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_member_struct_ifreq_ifr_addr=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7542 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7543 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7544
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7547 _ACEOF
7548
7549
7550 fi
7551
7552
7553
7554 echo "$as_me:$LINENO: checking for function prototypes" >&5
7555 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7556 if test "$ac_cv_prog_cc_stdc" != no; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558 echo "${ECHO_T}yes" >&6
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define PROTOTYPES 1
7562 _ACEOF
7563
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define __PROTOTYPES 1
7567 _ACEOF
7568
7569 else
7570 echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7572 fi
7573
7574 echo "$as_me:$LINENO: checking for working volatile" >&5
7575 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7576 if test "${ac_cv_c_volatile+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585
7586 int
7587 main ()
7588 {
7589
7590 volatile int x;
7591 int * volatile y;
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_c_volatile=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_cv_c_volatile=no
7624 fi
7625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7628 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7629 if test $ac_cv_c_volatile = no; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define volatile
7633 _ACEOF
7634
7635 fi
7636
7637 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7639 if test "${ac_cv_c_const+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648
7649 int
7650 main ()
7651 {
7652 /* FIXME: Include the comments suggested by Paul. */
7653 #ifndef __cplusplus
7654 /* Ultrix mips cc rejects this. */
7655 typedef int charset[2];
7656 const charset x;
7657 /* SunOS 4.1.1 cc rejects this. */
7658 char const *const *ccp;
7659 char **p;
7660 /* NEC SVR4.0.2 mips cc rejects this. */
7661 struct point {int x, y;};
7662 static struct point const zero = {0,0};
7663 /* AIX XL C 1.02.0.0 rejects this.
7664 It does not let you subtract one const X* pointer from another in
7665 an arm of an if-expression whose if-part is not a constant
7666 expression */
7667 const char *g = "string";
7668 ccp = &g + (g ? g-g : 0);
7669 /* HPUX 7.0 cc rejects these. */
7670 ++ccp;
7671 p = (char**) ccp;
7672 ccp = (char const *const *) p;
7673 { /* SCO 3.2v4 cc rejects this. */
7674 char *t;
7675 char const *s = 0 ? (char *) 0 : (char const *) 0;
7676
7677 *t++ = 0;
7678 }
7679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7680 int x[] = {25, 17};
7681 const int *foo = &x[0];
7682 ++foo;
7683 }
7684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7685 typedef const int *iptr;
7686 iptr p = 0;
7687 ++p;
7688 }
7689 { /* AIX XL C 1.02.0.0 rejects this saying
7690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7691 struct s { int j; const int *ap[3]; };
7692 struct s *b; b->j = 5;
7693 }
7694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7695 const int foo = 10;
7696 }
7697 #endif
7698
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_cv_c_const=yes
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 ac_cv_c_const=no
7731 fi
7732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7735 echo "${ECHO_T}$ac_cv_c_const" >&6
7736 if test $ac_cv_c_const = no; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define const
7740 _ACEOF
7741
7742 fi
7743
7744 echo "$as_me:$LINENO: checking for void * support" >&5
7745 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7746 if test "${emacs_cv_void_star+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755
7756 int
7757 main ()
7758 {
7759 void * foo;
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 emacs_cv_void_star=yes
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 emacs_cv_void_star=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7796 echo "${ECHO_T}$emacs_cv_void_star" >&6
7797 if test $emacs_cv_void_star = yes; then
7798 cat >>confdefs.h <<\_ACEOF
7799 #define POINTER_TYPE void
7800 _ACEOF
7801
7802 else
7803 cat >>confdefs.h <<\_ACEOF
7804 #define POINTER_TYPE char
7805 _ACEOF
7806
7807 fi
7808
7809
7810
7811
7812
7813 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7815 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7816 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 cat >conftest.make <<\_ACEOF
7820 all:
7821 @echo 'ac_maketemp="$(MAKE)"'
7822 _ACEOF
7823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7824 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7825 if test -n "$ac_maketemp"; then
7826 eval ac_cv_prog_make_${ac_make}_set=yes
7827 else
7828 eval ac_cv_prog_make_${ac_make}_set=no
7829 fi
7830 rm -f conftest.make
7831 fi
7832 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7833 echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835 SET_MAKE=
7836 else
7837 echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6
7839 SET_MAKE="MAKE=${MAKE-make}"
7840 fi
7841
7842
7843 echo "$as_me:$LINENO: checking for long file names" >&5
7844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7845 if test "${ac_cv_sys_long_file_names+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 ac_cv_sys_long_file_names=yes
7849 # Test for long file names in all the places we know might matter:
7850 # . the current directory, where building will happen
7851 # $prefix/lib where we will be installing things
7852 # $exec_prefix/lib likewise
7853 # eval it to expand exec_prefix.
7854 # $TMPDIR if set, where it might want to write temporary files
7855 # if $TMPDIR is not set:
7856 # /tmp where it might want to write temporary files
7857 # /var/tmp likewise
7858 # /usr/tmp likewise
7859 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7860 ac_tmpdirs=$TMPDIR
7861 else
7862 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7863 fi
7864 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7865 test -d $ac_dir || continue
7866 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7867 ac_xdir=$ac_dir/cf$$
7868 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7869 ac_tf1=$ac_xdir/conftest9012345
7870 ac_tf2=$ac_xdir/conftest9012346
7871 (echo 1 >$ac_tf1) 2>/dev/null
7872 (echo 2 >$ac_tf2) 2>/dev/null
7873 ac_val=`cat $ac_tf1 2>/dev/null`
7874 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7875 ac_cv_sys_long_file_names=no
7876 rm -rf $ac_xdir 2>/dev/null
7877 break
7878 fi
7879 rm -rf $ac_xdir 2>/dev/null
7880 done
7881 fi
7882 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7883 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7884 if test $ac_cv_sys_long_file_names = yes; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LONG_FILE_NAMES 1
7888 _ACEOF
7889
7890 fi
7891
7892
7893 #### Choose a window system.
7894
7895 echo "$as_me:$LINENO: checking for X" >&5
7896 echo $ECHO_N "checking for X... $ECHO_C" >&6
7897
7898
7899 # Check whether --with-x or --without-x was given.
7900 if test "${with_x+set}" = set; then
7901 withval="$with_x"
7902
7903 fi;
7904 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7905 if test "x$with_x" = xno; then
7906 # The user explicitly disabled X.
7907 have_x=disabled
7908 else
7909 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7910 # Both variables are already set.
7911 have_x=yes
7912 else
7913 if test "${ac_cv_have_x+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 # One or both of the vars are not set, and there is no cached value.
7917 ac_x_includes=no ac_x_libraries=no
7918 rm -fr conftest.dir
7919 if mkdir conftest.dir; then
7920 cd conftest.dir
7921 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7922 cat >Imakefile <<'_ACEOF'
7923 acfindx:
7924 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7925 _ACEOF
7926 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7928 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7929 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7930 for ac_extension in a so sl; do
7931 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7932 test -f $ac_im_libdir/libX11.$ac_extension; then
7933 ac_im_usrlibdir=$ac_im_libdir; break
7934 fi
7935 done
7936 # Screen out bogus values from the imake configuration. They are
7937 # bogus both because they are the default anyway, and because
7938 # using them would break gcc on systems where it needs fixed includes.
7939 case $ac_im_incroot in
7940 /usr/include) ;;
7941 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7942 esac
7943 case $ac_im_usrlibdir in
7944 /usr/lib | /lib) ;;
7945 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7946 esac
7947 fi
7948 cd ..
7949 rm -fr conftest.dir
7950 fi
7951
7952 # Standard set of common directories for X headers.
7953 # Check X11 before X11Rn because it is often a symlink to the current release.
7954 ac_x_header_dirs='
7955 /usr/X11/include
7956 /usr/X11R6/include
7957 /usr/X11R5/include
7958 /usr/X11R4/include
7959
7960 /usr/include/X11
7961 /usr/include/X11R6
7962 /usr/include/X11R5
7963 /usr/include/X11R4
7964
7965 /usr/local/X11/include
7966 /usr/local/X11R6/include
7967 /usr/local/X11R5/include
7968 /usr/local/X11R4/include
7969
7970 /usr/local/include/X11
7971 /usr/local/include/X11R6
7972 /usr/local/include/X11R5
7973 /usr/local/include/X11R4
7974
7975 /usr/X386/include
7976 /usr/x386/include
7977 /usr/XFree86/include/X11
7978
7979 /usr/include
7980 /usr/local/include
7981 /usr/unsupported/include
7982 /usr/athena/include
7983 /usr/local/x11r5/include
7984 /usr/lpp/Xamples/include
7985
7986 /usr/openwin/include
7987 /usr/openwin/share/include'
7988
7989 if test "$ac_x_includes" = no; then
7990 # Guess where to find include files, by looking for Intrinsic.h.
7991 # First, try using that file with no special directory specified.
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <X11/Intrinsic.h>
7999 _ACEOF
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8011 else
8012 ac_cpp_err=
8013 fi
8014 else
8015 ac_cpp_err=yes
8016 fi
8017 if test -z "$ac_cpp_err"; then
8018 # We can compile using X headers with no special include directory.
8019 ac_x_includes=
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 for ac_dir in $ac_x_header_dirs; do
8025 if test -r "$ac_dir/X11/Intrinsic.h"; then
8026 ac_x_includes=$ac_dir
8027 break
8028 fi
8029 done
8030 fi
8031 rm -f conftest.err conftest.$ac_ext
8032 fi # $ac_x_includes = no
8033
8034 if test "$ac_x_libraries" = no; then
8035 # Check for the libraries.
8036 # See if we find them without any special options.
8037 # Don't add to $LIBS permanently.
8038 ac_save_LIBS=$LIBS
8039 LIBS="-lXt $LIBS"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <X11/Intrinsic.h>
8047 int
8048 main ()
8049 {
8050 XtMalloc (0)
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 LIBS=$ac_save_LIBS
8078 # We can link X programs with no special library path.
8079 ac_x_libraries=
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 LIBS=$ac_save_LIBS
8085 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8086 do
8087 # Don't even attempt the hair of trying to link an X program!
8088 for ac_extension in a so sl; do
8089 if test -r $ac_dir/libXt.$ac_extension; then
8090 ac_x_libraries=$ac_dir
8091 break 2
8092 fi
8093 done
8094 done
8095 fi
8096 rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8098 fi # $ac_x_libraries = no
8099
8100 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8101 # Didn't find X anywhere. Cache the known absence of X.
8102 ac_cv_have_x="have_x=no"
8103 else
8104 # Record where we found X for the cache.
8105 ac_cv_have_x="have_x=yes \
8106 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8107 fi
8108 fi
8109
8110 fi
8111 eval "$ac_cv_have_x"
8112 fi # $with_x != no
8113
8114 if test "$have_x" != yes; then
8115 echo "$as_me:$LINENO: result: $have_x" >&5
8116 echo "${ECHO_T}$have_x" >&6
8117 no_x=yes
8118 else
8119 # If each of the values was on the command line, it overrides each guess.
8120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8122 # Update the cache value to reflect the command line values.
8123 ac_cv_have_x="have_x=yes \
8124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8125 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8126 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8127 fi
8128
8129 if test "$no_x" = yes; then
8130 window_system=none
8131 else
8132 window_system=x11
8133 fi
8134
8135 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8136 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8137 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8138 x_default_search_path=""
8139 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8140 x_search_path="\
8141 ${x_library}/X11/%L/%T/%N%C%S:\
8142 ${x_library}/X11/%l/%T/%N%C%S:\
8143 ${x_library}/X11/%T/%N%C%S:\
8144 ${x_library}/X11/%L/%T/%N%S:\
8145 ${x_library}/X11/%l/%T/%N%S:\
8146 ${x_library}/X11/%T/%N%S"
8147 if test x"${x_default_search_path}" = x; then
8148 x_default_search_path=${x_search_path}
8149 else
8150 x_default_search_path="${x_search_path}:${x_default_search_path}"
8151 fi
8152 done
8153 fi
8154 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8155 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8156 fi
8157
8158 if test x"${x_includes}" = x; then
8159 bitmapdir=/usr/include/X11/bitmaps
8160 else
8161 # accumulate include directories that have X11 bitmap subdirectories
8162 bmd_acc="dummyval"
8163 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8164 if test -d "${bmd}/X11/bitmaps"; then
8165 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8166 fi
8167 if test -d "${bmd}/bitmaps"; then
8168 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8169 fi
8170 done
8171 if test ${bmd_acc} != "dummyval"; then
8172 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8173 fi
8174 fi
8175
8176 case "${window_system}" in
8177 x11 )
8178 HAVE_X_WINDOWS=yes
8179 HAVE_X11=yes
8180 case "${with_x_toolkit}" in
8181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8182 motif ) USE_X_TOOLKIT=MOTIF ;;
8183 gtk ) with_gtk=yes
8184 USE_X_TOOLKIT=none ;;
8185 no ) USE_X_TOOLKIT=none ;;
8186 * ) USE_X_TOOLKIT=maybe ;;
8187 esac
8188 ;;
8189 none )
8190 HAVE_X_WINDOWS=no
8191 HAVE_X11=no
8192 USE_X_TOOLKIT=none
8193 ;;
8194 esac
8195
8196 ### If we're using X11, we should use the X menu package.
8197 HAVE_MENUS=no
8198 case ${HAVE_X11} in
8199 yes ) HAVE_MENUS=yes ;;
8200 esac
8201
8202 if test "${opsys}" = "hpux9"; then
8203 case "${x_libraries}" in
8204 *X11R4* )
8205 opsysfile="s/hpux9-x11r4.h"
8206 ;;
8207 esac
8208 fi
8209
8210 if test "${opsys}" = "hpux9shr"; then
8211 case "${x_libraries}" in
8212 *X11R4* )
8213 opsysfile="s/hpux9shxr4.h"
8214 ;;
8215 esac
8216 fi
8217
8218 HAVE_CARBON=no
8219 if test "${HAVE_X11}" != "yes"; then
8220 if test "${with_carbon}" != "no"; then
8221 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8222 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8223 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8224 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8228 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8229 else
8230 # Is the header compilable?
8231 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8232 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 #include <Carbon/Carbon.h>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_header_compiler=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_header_compiler=no
8270 fi
8271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8273 echo "${ECHO_T}$ac_header_compiler" >&6
8274
8275 # Is the header present?
8276 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8277 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h. */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 #include <Carbon/Carbon.h>
8285 _ACEOF
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } >/dev/null; then
8294 if test -s conftest.err; then
8295 ac_cpp_err=$ac_c_preproc_warn_flag
8296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8297 else
8298 ac_cpp_err=
8299 fi
8300 else
8301 ac_cpp_err=yes
8302 fi
8303 if test -z "$ac_cpp_err"; then
8304 ac_header_preproc=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ac_header_preproc=no
8310 fi
8311 rm -f conftest.err conftest.$ac_ext
8312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8313 echo "${ECHO_T}$ac_header_preproc" >&6
8314
8315 # So? What about this header?
8316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8317 yes:no: )
8318 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8319 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8320 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8321 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8322 ac_header_preproc=yes
8323 ;;
8324 no:yes:* )
8325 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8326 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8328 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8330 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8332 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8336 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8337 (
8338 cat <<\_ASBOX
8339 ## ------------------------------------------ ##
8340 ## Report this to the AC_PACKAGE_NAME lists. ##
8341 ## ------------------------------------------ ##
8342 _ASBOX
8343 ) |
8344 sed "s/^/$as_me: WARNING: /" >&2
8345 ;;
8346 esac
8347 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8348 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8349 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8353 fi
8354 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8355 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8356
8357 fi
8358 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8359 HAVE_CARBON=yes
8360 fi
8361
8362
8363 fi
8364 fi
8365
8366 ### Compute the unexec source name from the object name.
8367 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8368
8369 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8370 # Assume not, until told otherwise.
8371 GNU_MALLOC=yes
8372 doug_lea_malloc=yes
8373 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8374 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8375 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8386 #define malloc_get_state innocuous_malloc_get_state
8387
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char malloc_get_state (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8392
8393 #ifdef __STDC__
8394 # include <limits.h>
8395 #else
8396 # include <assert.h>
8397 #endif
8398
8399 #undef malloc_get_state
8400
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 #ifdef __cplusplus
8403 extern "C"
8404 {
8405 #endif
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8408 char malloc_get_state ();
8409 /* The GNU C library defines this for functions which it implements
8410 to always fail with ENOSYS. Some functions are actually named
8411 something starting with __ and the normal name is an alias. */
8412 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8413 choke me
8414 #else
8415 char (*f) () = malloc_get_state;
8416 #endif
8417 #ifdef __cplusplus
8418 }
8419 #endif
8420
8421 int
8422 main ()
8423 {
8424 return f != malloc_get_state;
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext conftest$ac_exeext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431 (eval $ac_link) 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest$ac_exeext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_func_malloc_get_state=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_cv_func_malloc_get_state=no
8457 fi
8458 rm -f conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 fi
8461 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8462 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8463 if test $ac_cv_func_malloc_get_state = yes; then
8464 :
8465 else
8466 doug_lea_malloc=no
8467 fi
8468
8469 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8470 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8471 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define malloc_set_state innocuous_malloc_set_state
8483
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char malloc_set_state (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8488
8489 #ifdef __STDC__
8490 # include <limits.h>
8491 #else
8492 # include <assert.h>
8493 #endif
8494
8495 #undef malloc_set_state
8496
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8500 {
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char malloc_set_state ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8509 choke me
8510 #else
8511 char (*f) () = malloc_set_state;
8512 #endif
8513 #ifdef __cplusplus
8514 }
8515 #endif
8516
8517 int
8518 main ()
8519 {
8520 return f != malloc_set_state;
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_malloc_set_state=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_func_malloc_set_state=no
8553 fi
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 fi
8557 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8558 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8559 if test $ac_cv_func_malloc_set_state = yes; then
8560 :
8561 else
8562 doug_lea_malloc=no
8563 fi
8564
8565 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8566 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8567 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 extern void (* __after_morecore_hook)();
8577 int
8578 main ()
8579 {
8580 __after_morecore_hook = 0
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 emacs_cv_var___after_morecore_hook=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 emacs_cv_var___after_morecore_hook=no
8613 fi
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 fi
8617 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8618 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8619 if test $emacs_cv_var___after_morecore_hook = no; then
8620 doug_lea_malloc=no
8621 fi
8622 if test "${system_malloc}" = "yes"; then
8623 GNU_MALLOC=no
8624 GNU_MALLOC_reason="
8625 (The GNU allocators don't work with this system configuration.)"
8626 fi
8627 if test "$doug_lea_malloc" = "yes" ; then
8628 if test "$GNU_MALLOC" = yes ; then
8629 GNU_MALLOC_reason="
8630 (Using Doug Lea's new malloc from the GNU C Library.)"
8631 fi
8632
8633 cat >>confdefs.h <<\_ACEOF
8634 #define DOUG_LEA_MALLOC 1
8635 _ACEOF
8636
8637 fi
8638
8639 if test x"${REL_ALLOC}" = x; then
8640 REL_ALLOC=${GNU_MALLOC}
8641 fi
8642
8643
8644
8645
8646 for ac_header in stdlib.h unistd.h
8647 do
8648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650 echo "$as_me:$LINENO: checking for $ac_header" >&5
8651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 fi
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8657 else
8658 # Is the header compilable?
8659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #include <$ac_header>
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_header_compiler=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 ac_header_compiler=no
8698 fi
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8701 echo "${ECHO_T}$ac_header_compiler" >&6
8702
8703 # Is the header present?
8704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 #include <$ac_header>
8713 _ACEOF
8714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev/null; then
8722 if test -s conftest.err; then
8723 ac_cpp_err=$ac_c_preproc_warn_flag
8724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8725 else
8726 ac_cpp_err=
8727 fi
8728 else
8729 ac_cpp_err=yes
8730 fi
8731 if test -z "$ac_cpp_err"; then
8732 ac_header_preproc=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_header_preproc=no
8738 fi
8739 rm -f conftest.err conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8741 echo "${ECHO_T}$ac_header_preproc" >&6
8742
8743 # So? What about this header?
8744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8745 yes:no: )
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8750 ac_header_preproc=yes
8751 ;;
8752 no:yes:* )
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8765 (
8766 cat <<\_ASBOX
8767 ## ------------------------------------------ ##
8768 ## Report this to the AC_PACKAGE_NAME lists. ##
8769 ## ------------------------------------------ ##
8770 _ASBOX
8771 ) |
8772 sed "s/^/$as_me: WARNING: /" >&2
8773 ;;
8774 esac
8775 echo "$as_me:$LINENO: checking for $ac_header" >&5
8776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 eval "$as_ac_Header=\$ac_header_preproc"
8781 fi
8782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8784
8785 fi
8786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 _ACEOF
8790
8791 fi
8792
8793 done
8794
8795
8796 for ac_func in getpagesize
8797 do
8798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8812 #define $ac_func innocuous_$ac_func
8813
8814 /* System header to define __stub macros and hopefully few prototypes,
8815 which can conflict with char $ac_func (); below.
8816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8817 <limits.h> exists even on freestanding compilers. */
8818
8819 #ifdef __STDC__
8820 # include <limits.h>
8821 #else
8822 # include <assert.h>
8823 #endif
8824
8825 #undef $ac_func
8826
8827 /* Override any gcc2 internal prototype to avoid an error. */
8828 #ifdef __cplusplus
8829 extern "C"
8830 {
8831 #endif
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8834 char $ac_func ();
8835 /* The GNU C library defines this for functions which it implements
8836 to always fail with ENOSYS. Some functions are actually named
8837 something starting with __ and the normal name is an alias. */
8838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8839 choke me
8840 #else
8841 char (*f) () = $ac_func;
8842 #endif
8843 #ifdef __cplusplus
8844 }
8845 #endif
8846
8847 int
8848 main ()
8849 {
8850 return f != $ac_func;
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -z "$ac_c_werror_flag"
8865 || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest$ac_exeext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 eval "$as_ac_var=yes"
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882 eval "$as_ac_var=no"
8883 fi
8884 rm -f conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 fi
8887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8889 if test `eval echo '${'$as_ac_var'}'` = yes; then
8890 cat >>confdefs.h <<_ACEOF
8891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8892 _ACEOF
8893
8894 fi
8895 done
8896
8897 echo "$as_me:$LINENO: checking for working mmap" >&5
8898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 if test "$cross_compiling" = yes; then
8903 ac_cv_func_mmap_fixed_mapped=no
8904 else
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h. */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 $ac_includes_default
8912 /* malloc might have been renamed as rpl_malloc. */
8913 #undef malloc
8914
8915 /* Thanks to Mike Haertel and Jim Avera for this test.
8916 Here is a matrix of mmap possibilities:
8917 mmap private not fixed
8918 mmap private fixed at somewhere currently unmapped
8919 mmap private fixed at somewhere already mapped
8920 mmap shared not fixed
8921 mmap shared fixed at somewhere currently unmapped
8922 mmap shared fixed at somewhere already mapped
8923 For private mappings, we should verify that changes cannot be read()
8924 back from the file, nor mmap's back from the file at a different
8925 address. (There have been systems where private was not correctly
8926 implemented like the infamous i386 svr4.0, and systems where the
8927 VM page cache was not coherent with the file system buffer cache
8928 like early versions of FreeBSD and possibly contemporary NetBSD.)
8929 For shared mappings, we should conversely verify that changes get
8930 propagated back to all the places they're supposed to be.
8931
8932 Grep wants private fixed already mapped.
8933 The main things grep needs to know about mmap are:
8934 * does it exist and is it safe to write into the mmap'd area
8935 * how to use it (BSD variants) */
8936
8937 #include <fcntl.h>
8938 #include <sys/mman.h>
8939
8940 #if !STDC_HEADERS && !HAVE_STDLIB_H
8941 char *malloc ();
8942 #endif
8943
8944 /* This mess was copied from the GNU getpagesize.h. */
8945 #if !HAVE_GETPAGESIZE
8946 /* Assume that all systems that can run configure have sys/param.h. */
8947 # if !HAVE_SYS_PARAM_H
8948 # define HAVE_SYS_PARAM_H 1
8949 # endif
8950
8951 # ifdef _SC_PAGESIZE
8952 # define getpagesize() sysconf(_SC_PAGESIZE)
8953 # else /* no _SC_PAGESIZE */
8954 # if HAVE_SYS_PARAM_H
8955 # include <sys/param.h>
8956 # ifdef EXEC_PAGESIZE
8957 # define getpagesize() EXEC_PAGESIZE
8958 # else /* no EXEC_PAGESIZE */
8959 # ifdef NBPG
8960 # define getpagesize() NBPG * CLSIZE
8961 # ifndef CLSIZE
8962 # define CLSIZE 1
8963 # endif /* no CLSIZE */
8964 # else /* no NBPG */
8965 # ifdef NBPC
8966 # define getpagesize() NBPC
8967 # else /* no NBPC */
8968 # ifdef PAGESIZE
8969 # define getpagesize() PAGESIZE
8970 # endif /* PAGESIZE */
8971 # endif /* no NBPC */
8972 # endif /* no NBPG */
8973 # endif /* no EXEC_PAGESIZE */
8974 # else /* no HAVE_SYS_PARAM_H */
8975 # define getpagesize() 8192 /* punt totally */
8976 # endif /* no HAVE_SYS_PARAM_H */
8977 # endif /* no _SC_PAGESIZE */
8978
8979 #endif /* no HAVE_GETPAGESIZE */
8980
8981 int
8982 main ()
8983 {
8984 char *data, *data2, *data3;
8985 int i, pagesize;
8986 int fd;
8987
8988 pagesize = getpagesize ();
8989
8990 /* First, make a file with some known garbage in it. */
8991 data = (char *) malloc (pagesize);
8992 if (!data)
8993 exit (1);
8994 for (i = 0; i < pagesize; ++i)
8995 *(data + i) = rand ();
8996 umask (0);
8997 fd = creat ("conftest.mmap", 0600);
8998 if (fd < 0)
8999 exit (1);
9000 if (write (fd, data, pagesize) != pagesize)
9001 exit (1);
9002 close (fd);
9003
9004 /* Next, try to mmap the file at a fixed address which already has
9005 something else allocated at it. If we can, also make sure that
9006 we see the same garbage. */
9007 fd = open ("conftest.mmap", O_RDWR);
9008 if (fd < 0)
9009 exit (1);
9010 data2 = (char *) malloc (2 * pagesize);
9011 if (!data2)
9012 exit (1);
9013 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9016 exit (1);
9017 for (i = 0; i < pagesize; ++i)
9018 if (*(data + i) != *(data2 + i))
9019 exit (1);
9020
9021 /* Finally, make sure that changes to the mapped area do not
9022 percolate back to the file as seen by read(). (This is a bug on
9023 some variants of i386 svr4.0.) */
9024 for (i = 0; i < pagesize; ++i)
9025 *(data2 + i) = *(data2 + i) + 1;
9026 data3 = (char *) malloc (pagesize);
9027 if (!data3)
9028 exit (1);
9029 if (read (fd, data3, pagesize) != pagesize)
9030 exit (1);
9031 for (i = 0; i < pagesize; ++i)
9032 if (*(data + i) != *(data3 + i))
9033 exit (1);
9034 close (fd);
9035 exit (0);
9036 }
9037 _ACEOF
9038 rm -f conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_func_mmap_fixed_mapped=yes
9050 else
9051 echo "$as_me: program exited with status $ac_status" >&5
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ( exit $ac_status )
9056 ac_cv_func_mmap_fixed_mapped=no
9057 fi
9058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9059 fi
9060 fi
9061 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9062 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9063 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_MMAP 1
9067 _ACEOF
9068
9069 fi
9070 rm -f conftest.mmap
9071
9072 if test $use_mmap_for_buffers = yes; then
9073 REL_ALLOC=no
9074 fi
9075
9076 LIBS="$libsrc_libs $LIBS"
9077
9078
9079 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9080 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9081 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-ldnet $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char dnet_ntoa ();
9100 int
9101 main ()
9102 {
9103 dnet_ntoa ();
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_lib_dnet_dnet_ntoa=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_cv_lib_dnet_dnet_ntoa=no
9136 fi
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 LIBS=$ac_check_lib_save_LIBS
9140 fi
9141 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9142 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9143 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_LIBDNET 1
9146 _ACEOF
9147
9148 LIBS="-ldnet $LIBS"
9149
9150 fi
9151
9152
9153 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9154 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9155 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lXbsd $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166
9167
9168 int
9169 main ()
9170 {
9171 main ();
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_Xbsd_main=yes
9199 else
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_cv_lib_Xbsd_main=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9210 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9211 if test $ac_cv_lib_Xbsd_main = yes; then
9212 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9213 fi
9214
9215
9216
9217 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9218 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9219 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 ac_check_lib_save_LIBS=$LIBS
9223 LIBS="-lpthreads $LIBS"
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230
9231 /* Override any gcc2 internal prototype to avoid an error. */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9237 char cma_open ();
9238 int
9239 main ()
9240 {
9241 cma_open ();
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_lib_pthreads_cma_open=yes
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_cv_lib_pthreads_cma_open=no
9274 fi
9275 rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9280 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9281 if test $ac_cv_lib_pthreads_cma_open = yes; then
9282 cat >>confdefs.h <<_ACEOF
9283 #define HAVE_LIBPTHREADS 1
9284 _ACEOF
9285
9286 LIBS="-lpthreads $LIBS"
9287
9288 fi
9289
9290
9291 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9292 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9293 if test -d /usr/X386/include; then
9294 HAVE_XFREE386=yes
9295 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9296 else
9297 HAVE_XFREE386=no
9298 fi
9299 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9300 echo "${ECHO_T}$HAVE_XFREE386" >&6
9301
9302
9303 case ${host_os} in
9304 aix*)
9305 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9306 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9307 if test "${gdb_cv_bigtoc+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310
9311 case $GCC in
9312 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9313 *) gdb_cv_bigtoc=-bbigtoc ;;
9314 esac
9315
9316 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h. */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323
9324 int
9325 main ()
9326 {
9327 int i;
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 :
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359 gdb_cv_bigtoc=
9360 fi
9361 rm -f conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363
9364 fi
9365 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9366 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9367 ;;
9368 esac
9369
9370 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9371 # used for the tests that follow. We set them back to REAL_CFLAGS and
9372 # REAL_CPPFLAGS later on.
9373
9374 REAL_CPPFLAGS="$CPPFLAGS"
9375
9376 if test "${HAVE_X11}" = "yes"; then
9377 DEFS="$C_SWITCH_X_SITE $DEFS"
9378 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9379 LIBS="$LIBX $LIBS"
9380 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9381 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9382
9383 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9384 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9385 # but it's more convenient here to set LD_RUN_PATH
9386 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9387 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9388 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9389 export LD_RUN_PATH
9390 fi
9391
9392 if test "${opsys}" = "gnu-linux"; then
9393 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9394 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401
9402 int
9403 main ()
9404 {
9405 XOpenDisplay ("foo");
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 xlinux_first_failure=no
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 xlinux_first_failure=yes
9438 fi
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 if test "${xlinux_first_failure}" = "yes"; then
9442 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9443 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9444 OLD_CPPFLAGS="$CPPFLAGS"
9445 OLD_LIBS="$LIBS"
9446 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9447 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9448 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9449 LIBS="$LIBS -b i486-linuxaout"
9450 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h. */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456
9457 int
9458 main ()
9459 {
9460 XOpenDisplay ("foo");
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 xlinux_second_failure=no
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 xlinux_second_failure=yes
9493 fi
9494 rm -f conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 if test "${xlinux_second_failure}" = "yes"; then
9497 # If we get the same failure with -b, there is no use adding -b.
9498 # So take it out. This plays safe.
9499 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9500 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9501 CPPFLAGS="$OLD_CPPFLAGS"
9502 LIBS="$OLD_LIBS"
9503 echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9505 else
9506 echo "$as_me:$LINENO: result: yes" >&5
9507 echo "${ECHO_T}yes" >&6
9508 fi
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9512 fi
9513 fi
9514
9515 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9516 # header files included from there.
9517 echo "$as_me:$LINENO: checking for Xkb" >&5
9518 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 #include <X11/Xlib.h>
9526 #include <X11/XKBlib.h>
9527 int
9528 main ()
9529 {
9530 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 emacs_xkb=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562 emacs_xkb=no
9563 fi
9564 rm -f conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9567 echo "${ECHO_T}$emacs_xkb" >&6
9568 if test $emacs_xkb = yes; then
9569
9570 cat >>confdefs.h <<\_ACEOF
9571 #define HAVE_XKBGETKEYBOARD 1
9572 _ACEOF
9573
9574 fi
9575
9576
9577
9578
9579
9580 for ac_func in XrmSetDatabase XScreenResourceString \
9581 XScreenNumberOfScreen XSetWMProtocols
9582 do
9583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9584 echo "$as_me:$LINENO: checking for $ac_func" >&5
9585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9586 if eval "test \"\${$as_ac_var+set}\" = set"; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define $ac_func innocuous_$ac_func
9598
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char $ac_func (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9603
9604 #ifdef __STDC__
9605 # include <limits.h>
9606 #else
9607 # include <assert.h>
9608 #endif
9609
9610 #undef $ac_func
9611
9612 /* Override any gcc2 internal prototype to avoid an error. */
9613 #ifdef __cplusplus
9614 extern "C"
9615 {
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char $ac_func ();
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9624 choke me
9625 #else
9626 char (*f) () = $ac_func;
9627 #endif
9628 #ifdef __cplusplus
9629 }
9630 #endif
9631
9632 int
9633 main ()
9634 {
9635 return f != $ac_func;
9636 ;
9637 return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag"
9650 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 eval "$as_ac_var=yes"
9663 else
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 eval "$as_ac_var=no"
9668 fi
9669 rm -f conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 fi
9672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9674 if test `eval echo '${'$as_ac_var'}'` = yes; then
9675 cat >>confdefs.h <<_ACEOF
9676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9677 _ACEOF
9678
9679 fi
9680 done
9681
9682 fi
9683
9684 if test "${window_system}" = "x11"; then
9685 echo "$as_me:$LINENO: checking X11 version 6" >&5
9686 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9687 if test "${emacs_cv_x11_version_6+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <X11/Xlib.h>
9697 int
9698 main ()
9699 {
9700 #if XlibSpecificationRelease < 6
9701 fail;
9702 #endif
9703
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 emacs_cv_x11_version_6=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 emacs_cv_x11_version_6=no
9736 fi
9737 rm -f conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 fi
9740
9741 if test $emacs_cv_x11_version_6 = yes; then
9742 echo "$as_me:$LINENO: result: 6 or newer" >&5
9743 echo "${ECHO_T}6 or newer" >&6
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_X11R6 1
9747 _ACEOF
9748
9749 else
9750 echo "$as_me:$LINENO: result: before 6" >&5
9751 echo "${ECHO_T}before 6" >&6
9752 fi
9753 fi
9754
9755 if test "${window_system}" = "x11"; then
9756 echo "$as_me:$LINENO: checking X11 version 5" >&5
9757 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9758 if test "${emacs_cv_x11_version_5+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <X11/Xlib.h>
9768 int
9769 main ()
9770 {
9771 #if XlibSpecificationRelease < 5
9772 fail;
9773 #endif
9774
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 emacs_cv_x11_version_5=yes
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 emacs_cv_x11_version_5=no
9807 fi
9808 rm -f conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 fi
9811
9812 if test $emacs_cv_x11_version_5 = yes; then
9813 echo "$as_me:$LINENO: result: 5 or newer" >&5
9814 echo "${ECHO_T}5 or newer" >&6
9815 HAVE_X11R5=yes
9816
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_X11R5 1
9819 _ACEOF
9820
9821 else
9822 HAVE_X11R5=no
9823 echo "$as_me:$LINENO: result: before 5" >&5
9824 echo "${ECHO_T}before 5" >&6
9825 fi
9826 fi
9827
9828
9829
9830 HAVE_GTK=no
9831 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9832 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9833 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9834 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9835 { (exit 1); exit 1; }; };
9836 fi
9837 GLIB_REQUIRED=2.0.1
9838 GTK_REQUIRED=2.0.1
9839 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9840
9841 if test "X${with_pkg_config_prog}" != X; then
9842 PKG_CONFIG="${with_pkg_config_prog}"
9843 fi
9844
9845 succeeded=no
9846
9847 if test -z "$PKG_CONFIG"; then
9848 # Extract the first word of "pkg-config", so it can be a program name with args.
9849 set dummy pkg-config; ac_word=$2
9850 echo "$as_me:$LINENO: checking for $ac_word" >&5
9851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855 case $PKG_CONFIG in
9856 [\\/]* | ?:[\\/]*)
9857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9858 ;;
9859 *)
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9862 do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871 done
9872 done
9873
9874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9875 ;;
9876 esac
9877 fi
9878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9879
9880 if test -n "$PKG_CONFIG"; then
9881 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9882 echo "${ECHO_T}$PKG_CONFIG" >&6
9883 else
9884 echo "$as_me:$LINENO: result: no" >&5
9885 echo "${ECHO_T}no" >&6
9886 fi
9887
9888 fi
9889
9890 if test "$PKG_CONFIG" = "no" ; then
9891 echo "*** The pkg-config script could not be found. Make sure it is"
9892 echo "*** in your path, or give the full path to pkg-config with"
9893 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9894 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9895 else
9896 PKG_CONFIG_MIN_VERSION=0.9.0
9897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9898 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9899 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9900
9901 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9902 echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6
9904 succeeded=yes
9905
9906 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9907 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9908 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9909 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9910 echo "${ECHO_T}$GTK_CFLAGS" >&6
9911
9912 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9913 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9914 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9915 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9916 echo "${ECHO_T}$GTK_LIBS" >&6
9917 else
9918 GTK_CFLAGS=""
9919 GTK_LIBS=""
9920 ## If we have a custom action on failure, don't print errors, but
9921 ## do set a variable so people can do so.
9922 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9923 echo $GTK_PKG_ERRORS
9924 fi
9925
9926
9927
9928 else
9929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9931 fi
9932 fi
9933
9934 if test $succeeded = yes; then
9935 :
9936 else
9937 { { 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
9938 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;}
9939 { (exit 1); exit 1; }; }
9940 fi
9941
9942
9943
9944 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9945 CFLAGS="$CFLAGS $GTK_CFLAGS"
9946 LIBS="$GTK_LIBS $LIBS"
9947 HAVE_GTK=yes
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_GTK 1
9951 _ACEOF
9952
9953 USE_X_TOOLKIT=none
9954
9955 if test "$with_toolkit_scroll_bars" != no; then
9956 with_toolkit_scroll_bars=yes
9957 fi
9958
9959 HAVE_GTK_MULTIDISPLAY=no
9960
9961 for ac_func in gdk_display_open
9962 do
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9966 if eval "test \"\${$as_ac_var+set}\" = set"; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9978
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9983
9984 #ifdef __STDC__
9985 # include <limits.h>
9986 #else
9987 # include <assert.h>
9988 #endif
9989
9990 #undef $ac_func
9991
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 {
9996 #endif
9997 /* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
9999 char $ac_func ();
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10004 choke me
10005 #else
10006 char (*f) () = $ac_func;
10007 #endif
10008 #ifdef __cplusplus
10009 }
10010 #endif
10011
10012 int
10013 main ()
10014 {
10015 return f != $ac_func;
10016 ;
10017 return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 eval "$as_ac_var=yes"
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 eval "$as_ac_var=no"
10048 fi
10049 rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 fi
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10054 if test `eval echo '${'$as_ac_var'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10057 _ACEOF
10058 HAVE_GTK_MULTIDISPLAY=yes
10059 fi
10060 done
10061
10062 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10063
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_GTK_MULTIDISPLAY 1
10066 _ACEOF
10067
10068 fi
10069 HAVE_GTK_FILE_SELECTION=no
10070
10071 for ac_func in gtk_file_selection_new
10072 do
10073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_var+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10088
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10093
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10099
10100 #undef $ac_func
10101
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 #ifdef __cplusplus
10104 extern "C"
10105 {
10106 #endif
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10109 char $ac_func ();
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10114 choke me
10115 #else
10116 char (*f) () = $ac_func;
10117 #endif
10118 #ifdef __cplusplus
10119 }
10120 #endif
10121
10122 int
10123 main ()
10124 {
10125 return f != $ac_func;
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 eval "$as_ac_var=yes"
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 eval "$as_ac_var=no"
10158 fi
10159 rm -f conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 fi
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10167 _ACEOF
10168 HAVE_GTK_FILE_SELECTION=yes
10169 fi
10170 done
10171
10172
10173 HAVE_GTK_FILE_CHOOSER=no
10174
10175 for ac_func in gtk_file_chooser_dialog_new
10176 do
10177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 echo "$as_me:$LINENO: checking for $ac_func" >&5
10179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_var+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10191 #define $ac_func innocuous_$ac_func
10192
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below.
10195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10196 <limits.h> exists even on freestanding compilers. */
10197
10198 #ifdef __STDC__
10199 # include <limits.h>
10200 #else
10201 # include <assert.h>
10202 #endif
10203
10204 #undef $ac_func
10205
10206 /* Override any gcc2 internal prototype to avoid an error. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 {
10210 #endif
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10213 char $ac_func ();
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10218 choke me
10219 #else
10220 char (*f) () = $ac_func;
10221 #endif
10222 #ifdef __cplusplus
10223 }
10224 #endif
10225
10226 int
10227 main ()
10228 {
10229 return f != $ac_func;
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236 (eval $ac_link) 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag"
10244 || test ! -s conftest.err'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest$ac_exeext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 eval "$as_ac_var=yes"
10257 else
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261 eval "$as_ac_var=no"
10262 fi
10263 rm -f conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 fi
10266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10268 if test `eval echo '${'$as_ac_var'}'` = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10271 _ACEOF
10272 HAVE_GTK_FILE_CHOOSER=yes
10273 fi
10274 done
10275
10276
10277 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10278 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_GTK_FILE_BOTH 1
10282 _ACEOF
10283
10284 fi
10285
10286 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10287 HAVE_GTK_AND_PTHREAD=no
10288
10289 for ac_header in pthread.h
10290 do
10291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10293 echo "$as_me:$LINENO: checking for $ac_header" >&5
10294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 fi
10298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10300 else
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 #include <$ac_header>
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_header_compiler=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 ac_header_compiler=no
10341 fi
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10344 echo "${ECHO_T}$ac_header_compiler" >&6
10345
10346 # Is the header present?
10347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <$ac_header>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10368 else
10369 ac_cpp_err=
10370 fi
10371 else
10372 ac_cpp_err=yes
10373 fi
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_header_preproc=no
10381 fi
10382 rm -f conftest.err conftest.$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10384 echo "${ECHO_T}$ac_header_preproc" >&6
10385
10386 # So? What about this header?
10387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10388 yes:no: )
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10393 ac_header_preproc=yes
10394 ;;
10395 no:yes:* )
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10408 (
10409 cat <<\_ASBOX
10410 ## ------------------------------------------ ##
10411 ## Report this to the AC_PACKAGE_NAME lists. ##
10412 ## ------------------------------------------ ##
10413 _ASBOX
10414 ) |
10415 sed "s/^/$as_me: WARNING: /" >&2
10416 ;;
10417 esac
10418 echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10424 fi
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10427
10428 fi
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 _ACEOF
10433
10434 fi
10435
10436 done
10437
10438 if test "$ac_cv_header_pthread_h"; then
10439 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10440 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10441 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lpthread $LIBS"
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459 char pthread_self ();
10460 int
10461 main ()
10462 {
10463 pthread_self ();
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -z "$ac_c_werror_flag"
10478 || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_pthread_pthread_self=yes
10491 else
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_cv_lib_pthread_pthread_self=no
10496 fi
10497 rm -f conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10502 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10503 if test $ac_cv_lib_pthread_pthread_self = yes; then
10504 HAVE_GTK_AND_PTHREAD=yes
10505 fi
10506
10507 fi
10508 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10509 GTK_LIBS="$GTK_LIBS -lpthread"
10510
10511 cat >>confdefs.h <<\_ACEOF
10512 #define HAVE_GTK_AND_PTHREAD 1
10513 _ACEOF
10514
10515 fi
10516 fi
10517 fi
10518
10519 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10520 if test x"${HAVE_X11R5}" = xyes; then
10521 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10522 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10523 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532
10533 #include <X11/Intrinsic.h>
10534 #include <X11/Xaw/Simple.h>
10535 int
10536 main ()
10537 {
10538
10539 ;
10540 return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 emacs_cv_x11_version_5_with_xaw=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 emacs_cv_x11_version_5_with_xaw=no
10571 fi
10572 rm -f conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 fi
10575
10576 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10577 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10578 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10579 USE_X_TOOLKIT=LUCID
10580 else
10581 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10582 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10583 USE_X_TOOLKIT=none
10584 fi
10585 else
10586 USE_X_TOOLKIT=none
10587 fi
10588 fi
10589
10590 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10591
10592 if test "${USE_X_TOOLKIT}" != "none"; then
10593 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10594 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <X11/Intrinsic.h>
10605 int
10606 main ()
10607 {
10608 #if XtSpecificationRelease < 6
10609 fail;
10610 #endif
10611
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_c_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 emacs_cv_x11_toolkit_version_6=yes
10639 else
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 emacs_cv_x11_toolkit_version_6=no
10644 fi
10645 rm -f conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 fi
10648
10649 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10650 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10651 echo "$as_me:$LINENO: result: 6 or newer" >&5
10652 echo "${ECHO_T}6 or newer" >&6
10653
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_X11XTR6 1
10656 _ACEOF
10657
10658 else
10659 echo "$as_me:$LINENO: result: before 6" >&5
10660 echo "${ECHO_T}before 6" >&6
10661 fi
10662
10663 OLDLIBS="$LIBS"
10664 if test x$HAVE_X11XTR6 = xyes; then
10665 LIBS="-lXt -lSM -lICE $LIBS"
10666 else
10667 LIBS="-lXt $LIBS"
10668 fi
10669
10670 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10671 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10672 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_check_lib_save_LIBS=$LIBS
10676 LIBS="-lXmu $LIBS"
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683
10684 /* Override any gcc2 internal prototype to avoid an error. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10690 char XmuConvertStandardSelection ();
10691 int
10692 main ()
10693 {
10694 XmuConvertStandardSelection ();
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10731 fi
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10733 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10734 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_LIBXMU 1
10737 _ACEOF
10738
10739 LIBS="-lXmu $LIBS"
10740
10741 fi
10742
10743 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10744 fi
10745
10746 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10747 if test "${HAVE_X11}" = "yes"; then
10748 if test "${USE_X_TOOLKIT}" != "none"; then
10749
10750 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10751 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10752 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lXext $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char XShapeQueryExtension ();
10771 int
10772 main ()
10773 {
10774 XShapeQueryExtension ();
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_Xext_XShapeQueryExtension=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_cv_lib_Xext_XShapeQueryExtension=no
10807 fi
10808 rm -f conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10813 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10814 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10815 cat >>confdefs.h <<_ACEOF
10816 #define HAVE_LIBXEXT 1
10817 _ACEOF
10818
10819 LIBS="-lXext $LIBS"
10820
10821 fi
10822
10823 fi
10824 fi
10825
10826 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10827 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10828 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10829 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 #include <Xm/Xm.h>
10839 int
10840 main ()
10841 {
10842 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10843 int x = 5;
10844 #else
10845 Motif version prior to 2.1.
10846 #endif
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag"
10861 || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 emacs_cv_motif_version_2_1=yes
10874 else
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 emacs_cv_motif_version_2_1=no
10879 fi
10880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10883 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10884 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10885 if test $emacs_cv_motif_version_2_1 = yes; then
10886 HAVE_LIBXP=no
10887
10888 cat >>confdefs.h <<\_ACEOF
10889 #define HAVE_MOTIF_2_1 1
10890 _ACEOF
10891
10892 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10893 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10894 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-lXp $LIBS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905
10906 /* Override any gcc2 internal prototype to avoid an error. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char XpCreateContext ();
10913 int
10914 main ()
10915 {
10916 XpCreateContext ();
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest$ac_exeext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_cv_lib_Xp_XpCreateContext=yes
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ac_cv_lib_Xp_XpCreateContext=no
10949 fi
10950 rm -f conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10955 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10956 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10957 HAVE_LIBXP=yes
10958 fi
10959
10960 if test ${HAVE_LIBXP} = yes; then
10961
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_LIBXP 1
10964 _ACEOF
10965
10966 fi
10967 else
10968 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10969 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10970 if test "${emacs_cv_lesstif+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 # We put this in CFLAGS temporarily to precede other -I options
10974 # that might be in CFLAGS temporarily.
10975 # We put this in CPPFLAGS where it precedes the other -I options.
10976 OLD_CPPFLAGS=$CPPFLAGS
10977 OLD_CFLAGS=$CFLAGS
10978 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10979 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10987 int
10988 main ()
10989 {
10990 int x = 5;
10991 ;
10992 return 0;
10993 }
10994 _ACEOF
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -z "$ac_c_werror_flag"
11005 || test ! -s conftest.err'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 emacs_cv_lesstif=yes
11018 else
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022 emacs_cv_lesstif=no
11023 fi
11024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11025 fi
11026 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11027 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11028 if test $emacs_cv_lesstif = yes; then
11029 # Make sure this -I option remains in CPPFLAGS after it is set
11030 # back to REAL_CPPFLAGS.
11031 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11032 # have those other -I options anyway. Ultimately, having this
11033 # directory ultimately in CPPFLAGS will be enough.
11034 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11035 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11036 else
11037 CFLAGS=$OLD_CFLAGS
11038 CPPFLAGS=$OLD_CPPFLAGS
11039 fi
11040 fi
11041 fi
11042
11043 ### Is -lXaw3d available?
11044 HAVE_XAW3D=no
11045 if test "${HAVE_X11}" = "yes"; then
11046 if test "${USE_X_TOOLKIT}" != "none"; then
11047 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11048 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #include <X11/Xaw3d/Scrollbar.h>
11059 _ACEOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11071 else
11072 ac_cpp_err=
11073 fi
11074 else
11075 ac_cpp_err=yes
11076 fi
11077 if test -z "$ac_cpp_err"; then
11078 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 fi
11087 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11088 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11089 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11090 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11091 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11092 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095 ac_check_lib_save_LIBS=$LIBS
11096 LIBS="-lXaw3d $LIBS"
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103
11104 /* Override any gcc2 internal prototype to avoid an error. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char XawScrollbarSetThumb ();
11111 int
11112 main ()
11113 {
11114 XawScrollbarSetThumb ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11147 fi
11148 rm -f conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11153 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11154 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11155 HAVE_XAW3D=yes
11156 fi
11157
11158 fi
11159
11160
11161 if test "${HAVE_XAW3D}" = "yes"; then
11162
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_XAW3D 1
11165 _ACEOF
11166
11167 fi
11168 fi
11169 fi
11170
11171
11172
11173 USE_TOOLKIT_SCROLL_BARS=no
11174 if test "${with_toolkit_scroll_bars}" != "no"; then
11175 if test "${USE_X_TOOLKIT}" != "none"; then
11176 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11177 cat >>confdefs.h <<\_ACEOF
11178 #define USE_TOOLKIT_SCROLL_BARS 1
11179 _ACEOF
11180
11181 HAVE_XAW3D=no
11182 USE_TOOLKIT_SCROLL_BARS=yes
11183 elif test "${HAVE_XAW3D}" = "yes"; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define USE_TOOLKIT_SCROLL_BARS 1
11186 _ACEOF
11187
11188 USE_TOOLKIT_SCROLL_BARS=yes
11189 fi
11190 elif test "${HAVE_GTK}" = "yes"; then
11191 cat >>confdefs.h <<\_ACEOF
11192 #define USE_TOOLKIT_SCROLL_BARS 1
11193 _ACEOF
11194
11195 USE_TOOLKIT_SCROLL_BARS=yes
11196 elif test "${HAVE_CARBON}" = "yes"; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define USE_TOOLKIT_SCROLL_BARS 1
11199 _ACEOF
11200
11201 USE_TOOLKIT_SCROLL_BARS=yes
11202 fi
11203 fi
11204
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211
11212 #include <X11/Xlib.h>
11213 #include <X11/Xresource.h>
11214 int
11215 main ()
11216 {
11217 XIMProc callback;
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 HAVE_XIM=yes
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_XIM 1
11248 _ACEOF
11249
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 HAVE_XIM=no
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257
11258
11259 if test "${with_xim}" != "no"; then
11260
11261 cat >>confdefs.h <<\_ACEOF
11262 #define USE_XIM 1
11263 _ACEOF
11264
11265 fi
11266
11267
11268 if test "${HAVE_XIM}" != "no"; then
11269 late_CFLAGS=$CFLAGS
11270 if test "$GCC" = yes; then
11271 CFLAGS="$CFLAGS --pedantic-errors"
11272 fi
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279
11280 #include <X11/Xlib.h>
11281 #include <X11/Xresource.h>
11282 int
11283 main ()
11284 {
11285 Display *display;
11286 XrmDatabase db;
11287 char *res_name;
11288 char *res_class;
11289 XIMProc callback;
11290 XPointer *client_data;
11291 #ifndef __GNUC__
11292 /* If we're not using GCC, it's probably not XFree86, and this is
11293 probably right, but we can't use something like --pedantic-errors. */
11294 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11295 char*, XIMProc, XPointer*);
11296 #endif
11297 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11298 client_data);
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 emacs_cv_arg6_star=yes
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 fi
11331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332
11333 if test "$emacs_cv_arg6_star" = yes; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11336 _ACEOF
11337
11338 else
11339 cat >>confdefs.h <<\_ACEOF
11340 #define XRegisterIMInstantiateCallback_arg6 XPointer
11341 _ACEOF
11342
11343 fi
11344 CFLAGS=$late_CFLAGS
11345 fi
11346
11347 ### Use -lXpm if available, unless `--with-xpm=no'.
11348 HAVE_XPM=no
11349 if test "${HAVE_X11}" = "yes"; then
11350 if test "${with_xpm}" != "no"; then
11351 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11352 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11353 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11354 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 fi
11357 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11359 else
11360 # Is the header compilable?
11361 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11362 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 #include <X11/xpm.h>
11371 _ACEOF
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_header_compiler=yes
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_header_compiler=no
11400 fi
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11404
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11407 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h. */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <X11/xpm.h>
11415 _ACEOF
11416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427 else
11428 ac_cpp_err=
11429 fi
11430 else
11431 ac_cpp_err=yes
11432 fi
11433 if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_header_preproc=no
11440 fi
11441 rm -f conftest.err conftest.$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6
11444
11445 # So? What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447 yes:no: )
11448 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11452 ac_header_preproc=yes
11453 ;;
11454 no:yes:* )
11455 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11467 (
11468 cat <<\_ASBOX
11469 ## ------------------------------------------ ##
11470 ## Report this to the AC_PACKAGE_NAME lists. ##
11471 ## ------------------------------------------ ##
11472 _ASBOX
11473 ) |
11474 sed "s/^/$as_me: WARNING: /" >&2
11475 ;;
11476 esac
11477 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11478 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11479 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482 ac_cv_header_X11_xpm_h=$ac_header_preproc
11483 fi
11484 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11486
11487 fi
11488 if test $ac_cv_header_X11_xpm_h = yes; then
11489 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11490 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11491 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-lXpm -lX11 $LIBS"
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char XpmReadFileToPixmap ();
11510 int
11511 main ()
11512 {
11513 XpmReadFileToPixmap ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11546 fi
11547 rm -f conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11552 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11553 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11554 HAVE_XPM=yes
11555 fi
11556
11557 fi
11558
11559
11560 if test "${HAVE_XPM}" = "yes"; then
11561 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11562 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include "X11/xpm.h"
11570 #ifndef XpmReturnAllocPixels
11571 no_return_alloc_pixels
11572 #endif
11573
11574 _ACEOF
11575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11576 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11577 HAVE_XPM=no
11578 else
11579 HAVE_XPM=yes
11580 fi
11581 rm -f conftest*
11582
11583
11584 if test "${HAVE_XPM}" = "yes"; then
11585 echo "$as_me:$LINENO: result: yes" >&5
11586 echo "${ECHO_T}yes" >&6
11587 else
11588 echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11590 fi
11591 fi
11592 fi
11593
11594 if test "${HAVE_XPM}" = "yes"; then
11595
11596 cat >>confdefs.h <<\_ACEOF
11597 #define HAVE_XPM 1
11598 _ACEOF
11599
11600 fi
11601 fi
11602
11603 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11604 HAVE_JPEG=no
11605 if test "${HAVE_X11}" = "yes"; then
11606 if test "${with_jpeg}" != "no"; then
11607 if test "${ac_cv_header_jerror_h+set}" = set; then
11608 echo "$as_me:$LINENO: checking for jerror.h" >&5
11609 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11610 if test "${ac_cv_header_jerror_h+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 fi
11613 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11614 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11615 else
11616 # Is the header compilable?
11617 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11618 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11626 #include <jerror.h>
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630 (eval $ac_compile) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_header_compiler=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_header_compiler=no
11656 fi
11657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11659 echo "${ECHO_T}$ac_header_compiler" >&6
11660
11661 # Is the header present?
11662 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11663 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <jerror.h>
11671 _ACEOF
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null; then
11680 if test -s conftest.err; then
11681 ac_cpp_err=$ac_c_preproc_warn_flag
11682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11683 else
11684 ac_cpp_err=
11685 fi
11686 else
11687 ac_cpp_err=yes
11688 fi
11689 if test -z "$ac_cpp_err"; then
11690 ac_header_preproc=yes
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_header_preproc=no
11696 fi
11697 rm -f conftest.err conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6
11700
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 yes:no: )
11704 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc=yes
11709 ;;
11710 no:yes:* )
11711 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11723 (
11724 cat <<\_ASBOX
11725 ## ------------------------------------------ ##
11726 ## Report this to the AC_PACKAGE_NAME lists. ##
11727 ## ------------------------------------------ ##
11728 _ASBOX
11729 ) |
11730 sed "s/^/$as_me: WARNING: /" >&2
11731 ;;
11732 esac
11733 echo "$as_me:$LINENO: checking for jerror.h" >&5
11734 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11735 if test "${ac_cv_header_jerror_h+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 ac_cv_header_jerror_h=$ac_header_preproc
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11741 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11742
11743 fi
11744 if test $ac_cv_header_jerror_h = yes; then
11745 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11746 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11747 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-ljpeg $LIBS"
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758
11759 /* Override any gcc2 internal prototype to avoid an error. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 /* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11765 char jpeg_destroy_compress ();
11766 int
11767 main ()
11768 {
11769 jpeg_destroy_compress ();
11770 ;
11771 return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11802 fi
11803 rm -f conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11808 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11809 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11810 HAVE_JPEG=yes
11811 fi
11812
11813 fi
11814
11815
11816 fi
11817
11818
11819 if test "${HAVE_JPEG}" = "yes"; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_JPEG 1
11822 _ACEOF
11823
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <jpeglib.h>
11831 version=JPEG_LIB_VERSION
11832
11833 _ACEOF
11834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11835 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11836 cat >>confdefs.h <<\_ACEOF
11837 #define HAVE_JPEG 1
11838 _ACEOF
11839
11840 else
11841 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11842 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11843 HAVE_JPEG=no
11844 fi
11845 rm -f conftest*
11846
11847 fi
11848 fi
11849
11850 ### Use -lpng if available, unless `--with-png=no'.
11851 HAVE_PNG=no
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_png}" != "no"; then
11854 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11855 # in /usr/include/libpng.
11856
11857
11858 for ac_header in png.h libpng/png.h
11859 do
11860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11862 echo "$as_me:$LINENO: checking for $ac_header" >&5
11863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 fi
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11869 else
11870 # Is the header compilable?
11871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11880 #include <$ac_header>
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag"
11892 || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_header_compiler=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_header_compiler=no
11910 fi
11911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11913 echo "${ECHO_T}$ac_header_compiler" >&6
11914
11915 # Is the header present?
11916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h. */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 #include <$ac_header>
11925 _ACEOF
11926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } >/dev/null; then
11934 if test -s conftest.err; then
11935 ac_cpp_err=$ac_c_preproc_warn_flag
11936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11937 else
11938 ac_cpp_err=
11939 fi
11940 else
11941 ac_cpp_err=yes
11942 fi
11943 if test -z "$ac_cpp_err"; then
11944 ac_header_preproc=yes
11945 else
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 ac_header_preproc=no
11950 fi
11951 rm -f conftest.err conftest.$ac_ext
11952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6
11954
11955 # So? What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11957 yes:no: )
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc=yes
11963 ;;
11964 no:yes:* )
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11977 (
11978 cat <<\_ASBOX
11979 ## ------------------------------------------ ##
11980 ## Report this to the AC_PACKAGE_NAME lists. ##
11981 ## ------------------------------------------ ##
11982 _ASBOX
11983 ) |
11984 sed "s/^/$as_me: WARNING: /" >&2
11985 ;;
11986 esac
11987 echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 eval "$as_ac_Header=\$ac_header_preproc"
11993 fi
11994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11996
11997 fi
11998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11999 cat >>confdefs.h <<_ACEOF
12000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12001 _ACEOF
12002
12003 fi
12004
12005 done
12006
12007 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12008 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12009 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12010 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-lpng -lz -lm $LIBS"
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021
12022 /* Override any gcc2 internal prototype to avoid an error. */
12023 #ifdef __cplusplus
12024 extern "C"
12025 #endif
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12028 char png_get_channels ();
12029 int
12030 main ()
12031 {
12032 png_get_channels ();
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_lib_png_png_get_channels=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_cv_lib_png_png_get_channels=no
12065 fi
12066 rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12071 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12072 if test $ac_cv_lib_png_png_get_channels = yes; then
12073 HAVE_PNG=yes
12074 fi
12075
12076 fi
12077 fi
12078
12079 if test "${HAVE_PNG}" = "yes"; then
12080
12081 cat >>confdefs.h <<\_ACEOF
12082 #define HAVE_PNG 1
12083 _ACEOF
12084
12085 fi
12086 fi
12087
12088 ### Use -ltiff if available, unless `--with-tiff=no'.
12089 HAVE_TIFF=no
12090 if test "${HAVE_X11}" = "yes"; then
12091 if test "${with_tiff}" != "no"; then
12092 if test "${ac_cv_header_tiffio_h+set}" = set; then
12093 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12094 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12095 if test "${ac_cv_header_tiffio_h+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 fi
12098 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12099 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12100 else
12101 # Is the header compilable?
12102 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12103 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 #include <tiffio.h>
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_header_compiler=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_header_compiler=no
12141 fi
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12144 echo "${ECHO_T}$ac_header_compiler" >&6
12145
12146 # Is the header present?
12147 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12148 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <tiffio.h>
12156 _ACEOF
12157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } >/dev/null; then
12165 if test -s conftest.err; then
12166 ac_cpp_err=$ac_c_preproc_warn_flag
12167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12168 else
12169 ac_cpp_err=
12170 fi
12171 else
12172 ac_cpp_err=yes
12173 fi
12174 if test -z "$ac_cpp_err"; then
12175 ac_header_preproc=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_header_preproc=no
12181 fi
12182 rm -f conftest.err conftest.$ac_ext
12183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184 echo "${ECHO_T}$ac_header_preproc" >&6
12185
12186 # So? What about this header?
12187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12188 yes:no: )
12189 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12190 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12192 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12193 ac_header_preproc=yes
12194 ;;
12195 no:yes:* )
12196 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12197 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12199 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12201 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12203 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12205 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12207 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12208 (
12209 cat <<\_ASBOX
12210 ## ------------------------------------------ ##
12211 ## Report this to the AC_PACKAGE_NAME lists. ##
12212 ## ------------------------------------------ ##
12213 _ASBOX
12214 ) |
12215 sed "s/^/$as_me: WARNING: /" >&2
12216 ;;
12217 esac
12218 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12219 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12220 if test "${ac_cv_header_tiffio_h+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 ac_cv_header_tiffio_h=$ac_header_preproc
12224 fi
12225 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12226 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12227
12228 fi
12229 if test $ac_cv_header_tiffio_h = yes; then
12230 tifflibs="-lz -lm"
12231 # At least one tiff package requires the jpeg library.
12232 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12233 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12234 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12235 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-ltiff $tifflibs $LIBS"
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 /* We use char because int might match the return type of a gcc2
12252 builtin and then its argument prototype would still apply. */
12253 char TIFFGetVersion ();
12254 int
12255 main ()
12256 {
12257 TIFFGetVersion ();
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_tiff_TIFFGetVersion=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ac_cv_lib_tiff_TIFFGetVersion=no
12290 fi
12291 rm -f conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12296 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12297 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12298 HAVE_TIFF=yes
12299 fi
12300
12301 fi
12302
12303
12304 fi
12305
12306 if test "${HAVE_TIFF}" = "yes"; then
12307
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_TIFF 1
12310 _ACEOF
12311
12312 fi
12313 fi
12314
12315 ### Use -lgif if available, unless `--with-gif=no'.
12316 HAVE_GIF=no
12317 if test "${HAVE_X11}" = "yes"; then
12318 if test "${with_gif}" != "no"; then
12319 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12320 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12321 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 fi
12325 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12326 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12327 else
12328 # Is the header compilable?
12329 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12330 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 #include <gif_lib.h>
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_header_compiler=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_header_compiler=no
12368 fi
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12371 echo "${ECHO_T}$ac_header_compiler" >&6
12372
12373 # Is the header present?
12374 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12375 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include <gif_lib.h>
12383 _ACEOF
12384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } >/dev/null; then
12392 if test -s conftest.err; then
12393 ac_cpp_err=$ac_c_preproc_warn_flag
12394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12395 else
12396 ac_cpp_err=
12397 fi
12398 else
12399 ac_cpp_err=yes
12400 fi
12401 if test -z "$ac_cpp_err"; then
12402 ac_header_preproc=yes
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 ac_header_preproc=no
12408 fi
12409 rm -f conftest.err conftest.$ac_ext
12410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12411 echo "${ECHO_T}$ac_header_preproc" >&6
12412
12413 # So? What about this header?
12414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 yes:no: )
12416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12417 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12418 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12419 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12420 ac_header_preproc=yes
12421 ;;
12422 no:yes:* )
12423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12424 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12426 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12428 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12430 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12432 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12434 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12435 (
12436 cat <<\_ASBOX
12437 ## ------------------------------------------ ##
12438 ## Report this to the AC_PACKAGE_NAME lists. ##
12439 ## ------------------------------------------ ##
12440 _ASBOX
12441 ) |
12442 sed "s/^/$as_me: WARNING: /" >&2
12443 ;;
12444 esac
12445 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12446 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12447 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450 ac_cv_header_gif_lib_h=$ac_header_preproc
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12453 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12454
12455 fi
12456 if test $ac_cv_header_gif_lib_h = yes; then
12457 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12458 # Earlier versions can crash Emacs.
12459 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12460 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12461 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-lungif $LIBS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472
12473 /* Override any gcc2 internal prototype to avoid an error. */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char EGifPutExtensionLast ();
12480 int
12481 main ()
12482 {
12483 EGifPutExtensionLast ();
12484 ;
12485 return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 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"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 ac_cv_lib_ungif_EGifPutExtensionLast=no
12516 fi
12517 rm -f conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
12519 LIBS=$ac_check_lib_save_LIBS
12520 fi
12521 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12522 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12523 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12524 HAVE_GIF=yes
12525 fi
12526
12527 fi
12528
12529
12530 fi
12531
12532 if test "${HAVE_GIF}" = "yes"; then
12533
12534 cat >>confdefs.h <<\_ACEOF
12535 #define HAVE_GIF 1
12536 _ACEOF
12537
12538 fi
12539 fi
12540
12541 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12542 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12543 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12548 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12549 else
12550 # Is the header compilable?
12551 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12552 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 $ac_includes_default
12560 #include <malloc/malloc.h>
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 ac_header_compiler=yes
12585 else
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ac_header_compiler=no
12590 fi
12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6
12594
12595 # Is the header present?
12596 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12597 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <malloc/malloc.h>
12605 _ACEOF
12606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } >/dev/null; then
12614 if test -s conftest.err; then
12615 ac_cpp_err=$ac_c_preproc_warn_flag
12616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12617 else
12618 ac_cpp_err=
12619 fi
12620 else
12621 ac_cpp_err=yes
12622 fi
12623 if test -z "$ac_cpp_err"; then
12624 ac_header_preproc=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 ac_header_preproc=no
12630 fi
12631 rm -f conftest.err conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12633 echo "${ECHO_T}$ac_header_preproc" >&6
12634
12635 # So? What about this header?
12636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12637 yes:no: )
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12641 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12642 ac_header_preproc=yes
12643 ;;
12644 no:yes:* )
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12654 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12656 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12657 (
12658 cat <<\_ASBOX
12659 ## ------------------------------------------ ##
12660 ## Report this to the AC_PACKAGE_NAME lists. ##
12661 ## ------------------------------------------ ##
12662 _ASBOX
12663 ) |
12664 sed "s/^/$as_me: WARNING: /" >&2
12665 ;;
12666 esac
12667 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12668 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12669 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12673 fi
12674 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12675 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12676
12677 fi
12678 if test $ac_cv_header_malloc_malloc_h = yes; then
12679
12680 cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_MALLOC_MALLOC_H 1
12682 _ACEOF
12683
12684 fi
12685
12686
12687
12688 ### Use Mac OS X Carbon API to implement GUI.
12689 if test "${HAVE_CARBON}" = "yes"; then
12690
12691 cat >>confdefs.h <<\_ACEOF
12692 #define HAVE_CARBON 1
12693 _ACEOF
12694
12695 window_system=mac
12696 ## Specify the install directory
12697 carbon_appdir=
12698 if test "${carbon_appdir_x}" != ""; then
12699 case ${carbon_appdir_x} in
12700 y | ye | yes) carbon_appdir=/Applications ;;
12701 * ) carbon_appdir=${carbon_appdir_x} ;;
12702 esac
12703 fi
12704 # We also have mouse menus.
12705 HAVE_MENUS=yes
12706 fi
12707
12708 ### Use session management (-lSM -lICE) if available
12709 HAVE_X_SM=no
12710 if test "${HAVE_X11}" = "yes"; then
12711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12712 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12713 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12714 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 fi
12717 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12718 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12719 else
12720 # Is the header compilable?
12721 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12722 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 #include <X11/SM/SMlib.h>
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_header_compiler=yes
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 ac_header_compiler=no
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12763 echo "${ECHO_T}$ac_header_compiler" >&6
12764
12765 # Is the header present?
12766 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12767 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 #include <X11/SM/SMlib.h>
12775 _ACEOF
12776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev/null; then
12784 if test -s conftest.err; then
12785 ac_cpp_err=$ac_c_preproc_warn_flag
12786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12787 else
12788 ac_cpp_err=
12789 fi
12790 else
12791 ac_cpp_err=yes
12792 fi
12793 if test -z "$ac_cpp_err"; then
12794 ac_header_preproc=yes
12795 else
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_header_preproc=no
12800 fi
12801 rm -f conftest.err conftest.$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12803 echo "${ECHO_T}$ac_header_preproc" >&6
12804
12805 # So? What about this header?
12806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12807 yes:no: )
12808 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12809 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12811 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12812 ac_header_preproc=yes
12813 ;;
12814 no:yes:* )
12815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12816 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12818 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12820 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12822 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12826 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12827 (
12828 cat <<\_ASBOX
12829 ## ------------------------------------------ ##
12830 ## Report this to the AC_PACKAGE_NAME lists. ##
12831 ## ------------------------------------------ ##
12832 _ASBOX
12833 ) |
12834 sed "s/^/$as_me: WARNING: /" >&2
12835 ;;
12836 esac
12837 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12838 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12843 fi
12844 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12846
12847 fi
12848 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12849 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12850 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12851 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854 ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-lSM -lICE $LIBS"
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862
12863 /* Override any gcc2 internal prototype to avoid an error. */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 /* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12869 char SmcOpenConnection ();
12870 int
12871 main ()
12872 {
12873 SmcOpenConnection ();
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"
12888 || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_lib_SM_SmcOpenConnection=yes
12901 else
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_cv_lib_SM_SmcOpenConnection=no
12906 fi
12907 rm -f conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12910 fi
12911 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12912 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12913 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12914 HAVE_X_SM=yes
12915 fi
12916
12917 fi
12918
12919
12920
12921 if test "${HAVE_X_SM}" = "yes"; then
12922
12923 cat >>confdefs.h <<\_ACEOF
12924 #define HAVE_X_SM 1
12925 _ACEOF
12926
12927 case "$LIBS" in
12928 *-lSM*) ;;
12929 *) LIBS="-lSM -lICE $LIBS" ;;
12930 esac
12931 fi
12932 fi
12933
12934 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12935 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12936 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12937 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h. */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 #include <netdb.h>
12947 int
12948 main ()
12949 {
12950 return h_errno;
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 emacs_cv_netdb_declares_h_errno=yes
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 emacs_cv_netdb_declares_h_errno=no
12983 fi
12984 rm -f conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12986 fi
12987 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12988 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12989 if test $emacs_cv_netdb_declares_h_errno = yes; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_H_ERRNO 1
12993 _ACEOF
12994
12995 fi
12996
12997 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12998 # for constant arguments. Useless!
12999 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13000 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13001 if test "${ac_cv_working_alloca_h+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <alloca.h>
13011 int
13012 main ()
13013 {
13014 char *p = (char *) alloca (2 * sizeof (int));
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag"
13029 || test ! -s conftest.err'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest$ac_exeext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_working_alloca_h=yes
13042 else
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_cv_working_alloca_h=no
13047 fi
13048 rm -f conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 fi
13051 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13052 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13053 if test $ac_cv_working_alloca_h = yes; then
13054
13055 cat >>confdefs.h <<\_ACEOF
13056 #define HAVE_ALLOCA_H 1
13057 _ACEOF
13058
13059 fi
13060
13061 echo "$as_me:$LINENO: checking for alloca" >&5
13062 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13063 if test "${ac_cv_func_alloca_works+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #ifdef __GNUC__
13073 # define alloca __builtin_alloca
13074 #else
13075 # ifdef _MSC_VER
13076 # include <malloc.h>
13077 # define alloca _alloca
13078 # else
13079 # if HAVE_ALLOCA_H
13080 # include <alloca.h>
13081 # else
13082 # ifdef _AIX
13083 #pragma alloca
13084 # else
13085 # ifndef alloca /* predefined by HP cc +Olibcalls */
13086 char *alloca ();
13087 # endif
13088 # endif
13089 # endif
13090 # endif
13091 #endif
13092
13093 int
13094 main ()
13095 {
13096 char *p = (char *) alloca (1);
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_func_alloca_works=yes
13124 else
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_cv_func_alloca_works=no
13129 fi
13130 rm -f conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 fi
13133 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13134 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13135
13136 if test $ac_cv_func_alloca_works = yes; then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_ALLOCA 1
13140 _ACEOF
13141
13142 else
13143 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13144 # that cause trouble. Some versions do not even contain alloca or
13145 # contain a buggy version. If you still want to use their alloca,
13146 # use ar to extract alloca.o from them instead of compiling alloca.c.
13147
13148 ALLOCA=alloca.$ac_objext
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define C_ALLOCA 1
13152 _ACEOF
13153
13154
13155 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13156 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13157 if test "${ac_cv_os_cray+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160 cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h. */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #if defined(CRAY) && ! defined(CRAY2)
13167 webecray
13168 #else
13169 wenotbecray
13170 #endif
13171
13172 _ACEOF
13173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13174 $EGREP "webecray" >/dev/null 2>&1; then
13175 ac_cv_os_cray=yes
13176 else
13177 ac_cv_os_cray=no
13178 fi
13179 rm -f conftest*
13180
13181 fi
13182 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13183 echo "${ECHO_T}$ac_cv_os_cray" >&6
13184 if test $ac_cv_os_cray = yes; then
13185 for ac_func in _getb67 GETB67 getb67; do
13186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13187 echo "$as_me:$LINENO: checking for $ac_func" >&5
13188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13189 if eval "test \"\${$as_ac_var+set}\" = set"; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13200 #define $ac_func innocuous_$ac_func
13201
13202 /* System header to define __stub macros and hopefully few prototypes,
13203 which can conflict with char $ac_func (); below.
13204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13205 <limits.h> exists even on freestanding compilers. */
13206
13207 #ifdef __STDC__
13208 # include <limits.h>
13209 #else
13210 # include <assert.h>
13211 #endif
13212
13213 #undef $ac_func
13214
13215 /* Override any gcc2 internal prototype to avoid an error. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 {
13219 #endif
13220 /* We use char because int might match the return type of a gcc2
13221 builtin and then its argument prototype would still apply. */
13222 char $ac_func ();
13223 /* The GNU C library defines this for functions which it implements
13224 to always fail with ENOSYS. Some functions are actually named
13225 something starting with __ and the normal name is an alias. */
13226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13227 choke me
13228 #else
13229 char (*f) () = $ac_func;
13230 #endif
13231 #ifdef __cplusplus
13232 }
13233 #endif
13234
13235 int
13236 main ()
13237 {
13238 return f != $ac_func;
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest.$ac_objext conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -z "$ac_c_werror_flag"
13253 || test ! -s conftest.err'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest$ac_exeext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 eval "$as_ac_var=yes"
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 eval "$as_ac_var=no"
13271 fi
13272 rm -f conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 fi
13275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13277 if test `eval echo '${'$as_ac_var'}'` = yes; then
13278
13279 cat >>confdefs.h <<_ACEOF
13280 #define CRAY_STACKSEG_END $ac_func
13281 _ACEOF
13282
13283 break
13284 fi
13285
13286 done
13287 fi
13288
13289 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13290 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13291 if test "${ac_cv_c_stack_direction+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 if test "$cross_compiling" = yes; then
13295 ac_cv_c_stack_direction=0
13296 else
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 int
13304 find_stack_direction ()
13305 {
13306 static char *addr = 0;
13307 auto char dummy;
13308 if (addr == 0)
13309 {
13310 addr = &dummy;
13311 return find_stack_direction ();
13312 }
13313 else
13314 return (&dummy > addr) ? 1 : -1;
13315 }
13316
13317 int
13318 main ()
13319 {
13320 exit (find_stack_direction () < 0);
13321 }
13322 _ACEOF
13323 rm -f conftest$ac_exeext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_c_stack_direction=1
13335 else
13336 echo "$as_me: program exited with status $ac_status" >&5
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 ( exit $ac_status )
13341 ac_cv_c_stack_direction=-1
13342 fi
13343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 fi
13346 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13347 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13348
13349 cat >>confdefs.h <<_ACEOF
13350 #define STACK_DIRECTION $ac_cv_c_stack_direction
13351 _ACEOF
13352
13353
13354 fi
13355
13356
13357 # fmod, logb, and frexp are found in -lm on most systems.
13358 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13359
13360 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13361 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13362 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365 ac_check_lib_save_LIBS=$LIBS
13366 LIBS="-lm $LIBS"
13367 cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h. */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373
13374 /* Override any gcc2 internal prototype to avoid an error. */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 /* We use char because int might match the return type of a gcc2
13379 builtin and then its argument prototype would still apply. */
13380 char sqrt ();
13381 int
13382 main ()
13383 {
13384 sqrt ();
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
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); }; } &&
13405 { ac_try='test -s conftest$ac_exeext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_cv_lib_m_sqrt=yes
13412 else
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_cv_lib_m_sqrt=no
13417 fi
13418 rm -f conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13421 fi
13422 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13423 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13424 if test $ac_cv_lib_m_sqrt = yes; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_LIBM 1
13427 _ACEOF
13428
13429 LIBS="-lm $LIBS"
13430
13431 fi
13432
13433
13434 # Check for mail-locking functions in a "mail" library. Probably this should
13435 # have the same check as for liblockfile below.
13436
13437 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13438 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13439 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442 ac_check_lib_save_LIBS=$LIBS
13443 LIBS="-lmail $LIBS"
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450
13451 /* Override any gcc2 internal prototype to avoid an error. */
13452 #ifdef __cplusplus
13453 extern "C"
13454 #endif
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13457 char maillock ();
13458 int
13459 main ()
13460 {
13461 maillock ();
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_lib_mail_maillock=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13492
13493 ac_cv_lib_mail_maillock=no
13494 fi
13495 rm -f conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LIBS=$ac_check_lib_save_LIBS
13498 fi
13499 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13500 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13501 if test $ac_cv_lib_mail_maillock = yes; then
13502 cat >>confdefs.h <<_ACEOF
13503 #define HAVE_LIBMAIL 1
13504 _ACEOF
13505
13506 LIBS="-lmail $LIBS"
13507
13508 fi
13509
13510
13511 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13512 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13513 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 ac_check_lib_save_LIBS=$LIBS
13517 LIBS="-llockfile $LIBS"
13518 cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h. */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524
13525 /* Override any gcc2 internal prototype to avoid an error. */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 /* We use char because int might match the return type of a gcc2
13530 builtin and then its argument prototype would still apply. */
13531 char maillock ();
13532 int
13533 main ()
13534 {
13535 maillock ();
13536 ;
13537 return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_lib_lockfile_maillock=yes
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_cv_lib_lockfile_maillock=no
13568 fi
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13572 fi
13573 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13574 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13575 if test $ac_cv_lib_lockfile_maillock = yes; then
13576 cat >>confdefs.h <<_ACEOF
13577 #define HAVE_LIBLOCKFILE 1
13578 _ACEOF
13579
13580 LIBS="-llockfile $LIBS"
13581
13582 fi
13583
13584 # If we have the shared liblockfile, assume we must use it for mail
13585 # locking (e.g. Debian). If we couldn't link against liblockfile
13586 # (no liblockfile.a installed), ensure that we don't need to.
13587 if test "$ac_cv_lib_lockfile_maillock" = no; then
13588 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13589 set dummy liblockfile.so; ac_word=$2
13590 echo "$as_me:$LINENO: checking for $ac_word" >&5
13591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13592 if test "${ac_cv_prog_liblockfile+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 if test -n "$liblockfile"; then
13596 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13597 else
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13600 for as_dir in $as_dummy
13601 do
13602 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_prog_liblockfile="yes"
13607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 break 2
13609 fi
13610 done
13611 done
13612
13613 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13614 fi
13615 fi
13616 liblockfile=$ac_cv_prog_liblockfile
13617 if test -n "$liblockfile"; then
13618 echo "$as_me:$LINENO: result: $liblockfile" >&5
13619 echo "${ECHO_T}$liblockfile" >&6
13620 else
13621 echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6
13623 fi
13624
13625 if test $ac_cv_prog_liblockfile = yes; then
13626 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13627 This probably means that movemail could lose mail.
13628 There may be a \`development' package to install containing liblockfile." >&5
13629 echo "$as_me: error: Shared liblockfile found but can't link against it.
13630 This probably means that movemail could lose mail.
13631 There may be a \`development' package to install containing liblockfile." >&2;}
13632 { (exit 1); exit 1; }; }
13633 else :
13634 fi
13635 fi
13636
13637 for ac_func in touchlock
13638 do
13639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13640 echo "$as_me:$LINENO: checking for $ac_func" >&5
13641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13642 if eval "test \"\${$as_ac_var+set}\" = set"; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13653 #define $ac_func innocuous_$ac_func
13654
13655 /* System header to define __stub macros and hopefully few prototypes,
13656 which can conflict with char $ac_func (); below.
13657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13658 <limits.h> exists even on freestanding compilers. */
13659
13660 #ifdef __STDC__
13661 # include <limits.h>
13662 #else
13663 # include <assert.h>
13664 #endif
13665
13666 #undef $ac_func
13667
13668 /* Override any gcc2 internal prototype to avoid an error. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 {
13672 #endif
13673 /* We use char because int might match the return type of a gcc2
13674 builtin and then its argument prototype would still apply. */
13675 char $ac_func ();
13676 /* The GNU C library defines this for functions which it implements
13677 to always fail with ENOSYS. Some functions are actually named
13678 something starting with __ and the normal name is an alias. */
13679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13680 choke me
13681 #else
13682 char (*f) () = $ac_func;
13683 #endif
13684 #ifdef __cplusplus
13685 }
13686 #endif
13687
13688 int
13689 main ()
13690 {
13691 return f != $ac_func;
13692 ;
13693 return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag"
13706 || test ! -s conftest.err'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 eval "$as_ac_var=yes"
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723 eval "$as_ac_var=no"
13724 fi
13725 rm -f conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 fi
13728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13730 if test `eval echo '${'$as_ac_var'}'` = yes; then
13731 cat >>confdefs.h <<_ACEOF
13732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13733 _ACEOF
13734
13735 fi
13736 done
13737
13738
13739 for ac_header in maillock.h
13740 do
13741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 fi
13748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13750 else
13751 # Is the header compilable?
13752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $ac_includes_default
13761 #include <$ac_header>
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest.$ac_objext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_header_compiler=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 ac_header_compiler=no
13791 fi
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13794 echo "${ECHO_T}$ac_header_compiler" >&6
13795
13796 # Is the header present?
13797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <$ac_header>
13806 _ACEOF
13807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } >/dev/null; then
13815 if test -s conftest.err; then
13816 ac_cpp_err=$ac_c_preproc_warn_flag
13817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13818 else
13819 ac_cpp_err=
13820 fi
13821 else
13822 ac_cpp_err=yes
13823 fi
13824 if test -z "$ac_cpp_err"; then
13825 ac_header_preproc=yes
13826 else
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_header_preproc=no
13831 fi
13832 rm -f conftest.err conftest.$ac_ext
13833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6
13835
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838 yes:no: )
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc=yes
13844 ;;
13845 no:yes:* )
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13858 (
13859 cat <<\_ASBOX
13860 ## ------------------------------------------ ##
13861 ## Report this to the AC_PACKAGE_NAME lists. ##
13862 ## ------------------------------------------ ##
13863 _ASBOX
13864 ) |
13865 sed "s/^/$as_me: WARNING: /" >&2
13866 ;;
13867 esac
13868 echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 eval "$as_ac_Header=\$ac_header_preproc"
13874 fi
13875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13877
13878 fi
13879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13880 cat >>confdefs.h <<_ACEOF
13881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13882 _ACEOF
13883
13884 fi
13885
13886 done
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956 for ac_func in gethostname getdomainname dup2 \
13957 rename closedir mkdir rmdir sysinfo getrusage \
13958 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13959 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13960 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13961 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13962 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13963 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13964 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13965 do
13966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 echo "$as_me:$LINENO: checking for $ac_func" >&5
13968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13969 if eval "test \"\${$as_ac_var+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h. */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13980 #define $ac_func innocuous_$ac_func
13981
13982 /* System header to define __stub macros and hopefully few prototypes,
13983 which can conflict with char $ac_func (); below.
13984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13985 <limits.h> exists even on freestanding compilers. */
13986
13987 #ifdef __STDC__
13988 # include <limits.h>
13989 #else
13990 # include <assert.h>
13991 #endif
13992
13993 #undef $ac_func
13994
13995 /* Override any gcc2 internal prototype to avoid an error. */
13996 #ifdef __cplusplus
13997 extern "C"
13998 {
13999 #endif
14000 /* We use char because int might match the return type of a gcc2
14001 builtin and then its argument prototype would still apply. */
14002 char $ac_func ();
14003 /* The GNU C library defines this for functions which it implements
14004 to always fail with ENOSYS. Some functions are actually named
14005 something starting with __ and the normal name is an alias. */
14006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14007 choke me
14008 #else
14009 char (*f) () = $ac_func;
14010 #endif
14011 #ifdef __cplusplus
14012 }
14013 #endif
14014
14015 int
14016 main ()
14017 {
14018 return f != $ac_func;
14019 ;
14020 return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest$ac_exeext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 eval "$as_ac_var=yes"
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 eval "$as_ac_var=no"
14051 fi
14052 rm -f conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 fi
14055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14057 if test `eval echo '${'$as_ac_var'}'` = yes; then
14058 cat >>confdefs.h <<_ACEOF
14059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14060 _ACEOF
14061
14062 fi
14063 done
14064
14065
14066
14067 for ac_header in sys/un.h
14068 do
14069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14071 echo "$as_me:$LINENO: checking for $ac_header" >&5
14072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 fi
14076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14078 else
14079 # Is the header compilable?
14080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h. */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14089 #include <$ac_header>
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_header_compiler=yes
14114 else
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_header_compiler=no
14119 fi
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122 echo "${ECHO_T}$ac_header_compiler" >&6
14123
14124 # Is the header present?
14125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 #include <$ac_header>
14134 _ACEOF
14135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev/null; then
14143 if test -s conftest.err; then
14144 ac_cpp_err=$ac_c_preproc_warn_flag
14145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14146 else
14147 ac_cpp_err=
14148 fi
14149 else
14150 ac_cpp_err=yes
14151 fi
14152 if test -z "$ac_cpp_err"; then
14153 ac_header_preproc=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 ac_header_preproc=no
14159 fi
14160 rm -f conftest.err conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162 echo "${ECHO_T}$ac_header_preproc" >&6
14163
14164 # So? What about this header?
14165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14166 yes:no: )
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14171 ac_header_preproc=yes
14172 ;;
14173 no:yes:* )
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14186 (
14187 cat <<\_ASBOX
14188 ## ------------------------------------------ ##
14189 ## Report this to the AC_PACKAGE_NAME lists. ##
14190 ## ------------------------------------------ ##
14191 _ASBOX
14192 ) |
14193 sed "s/^/$as_me: WARNING: /" >&2
14194 ;;
14195 esac
14196 echo "$as_me:$LINENO: checking for $ac_header" >&5
14197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 eval "$as_ac_Header=\$ac_header_preproc"
14202 fi
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14205
14206 fi
14207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14210 _ACEOF
14211
14212 fi
14213
14214 done
14215
14216
14217
14218
14219
14220 for ac_header in stdlib.h sys/time.h unistd.h
14221 do
14222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 fi
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14231 else
14232 # Is the header compilable?
14233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 $ac_includes_default
14242 #include <$ac_header>
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_header_compiler=yes
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_header_compiler=no
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14275 echo "${ECHO_T}$ac_header_compiler" >&6
14276
14277 # Is the header present?
14278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <$ac_header>
14287 _ACEOF
14288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } >/dev/null; then
14296 if test -s conftest.err; then
14297 ac_cpp_err=$ac_c_preproc_warn_flag
14298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14299 else
14300 ac_cpp_err=
14301 fi
14302 else
14303 ac_cpp_err=yes
14304 fi
14305 if test -z "$ac_cpp_err"; then
14306 ac_header_preproc=yes
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_header_preproc=no
14312 fi
14313 rm -f conftest.err conftest.$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315 echo "${ECHO_T}$ac_header_preproc" >&6
14316
14317 # So? What about this header?
14318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 yes:no: )
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324 ac_header_preproc=yes
14325 ;;
14326 no:yes:* )
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14339 (
14340 cat <<\_ASBOX
14341 ## ------------------------------------------ ##
14342 ## Report this to the AC_PACKAGE_NAME lists. ##
14343 ## ------------------------------------------ ##
14344 _ASBOX
14345 ) |
14346 sed "s/^/$as_me: WARNING: /" >&2
14347 ;;
14348 esac
14349 echo "$as_me:$LINENO: checking for $ac_header" >&5
14350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354 eval "$as_ac_Header=\$ac_header_preproc"
14355 fi
14356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14358
14359 fi
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 _ACEOF
14364
14365 fi
14366
14367 done
14368
14369
14370 for ac_func in alarm
14371 do
14372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14373 echo "$as_me:$LINENO: checking for $ac_func" >&5
14374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14375 if eval "test \"\${$as_ac_var+set}\" = set"; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14386 #define $ac_func innocuous_$ac_func
14387
14388 /* System header to define __stub macros and hopefully few prototypes,
14389 which can conflict with char $ac_func (); below.
14390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14391 <limits.h> exists even on freestanding compilers. */
14392
14393 #ifdef __STDC__
14394 # include <limits.h>
14395 #else
14396 # include <assert.h>
14397 #endif
14398
14399 #undef $ac_func
14400
14401 /* Override any gcc2 internal prototype to avoid an error. */
14402 #ifdef __cplusplus
14403 extern "C"
14404 {
14405 #endif
14406 /* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14408 char $ac_func ();
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14413 choke me
14414 #else
14415 char (*f) () = $ac_func;
14416 #endif
14417 #ifdef __cplusplus
14418 }
14419 #endif
14420
14421 int
14422 main ()
14423 {
14424 return f != $ac_func;
14425 ;
14426 return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431 (eval $ac_link) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 eval "$as_ac_var=yes"
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 eval "$as_ac_var=no"
14457 fi
14458 rm -f conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 fi
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466 _ACEOF
14467
14468 fi
14469 done
14470
14471 echo "$as_me:$LINENO: checking for working mktime" >&5
14472 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14473 if test "${ac_cv_func_working_mktime+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476 if test "$cross_compiling" = yes; then
14477 ac_cv_func_working_mktime=no
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Test program from Paul Eggert and Tony Leneis. */
14486 #if TIME_WITH_SYS_TIME
14487 # include <sys/time.h>
14488 # include <time.h>
14489 #else
14490 # if HAVE_SYS_TIME_H
14491 # include <sys/time.h>
14492 # else
14493 # include <time.h>
14494 # endif
14495 #endif
14496
14497 #if HAVE_STDLIB_H
14498 # include <stdlib.h>
14499 #endif
14500
14501 #if HAVE_UNISTD_H
14502 # include <unistd.h>
14503 #endif
14504
14505 #if !HAVE_ALARM
14506 # define alarm(X) /* empty */
14507 #endif
14508
14509 /* Work around redefinition to rpl_putenv by other config tests. */
14510 #undef putenv
14511
14512 static time_t time_t_max;
14513 static time_t time_t_min;
14514
14515 /* Values we'll use to set the TZ environment variable. */
14516 static char *tz_strings[] = {
14517 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14518 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14519 };
14520 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14521
14522 /* Fail if mktime fails to convert a date in the spring-forward gap.
14523 Based on a problem report from Andreas Jaeger. */
14524 static void
14525 spring_forward_gap ()
14526 {
14527 /* glibc (up to about 1998-10-07) failed this test. */
14528 struct tm tm;
14529
14530 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14531 instead of "TZ=America/Vancouver" in order to detect the bug even
14532 on systems that don't support the Olson extension, or don't have the
14533 full zoneinfo tables installed. */
14534 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14535
14536 tm.tm_year = 98;
14537 tm.tm_mon = 3;
14538 tm.tm_mday = 5;
14539 tm.tm_hour = 2;
14540 tm.tm_min = 0;
14541 tm.tm_sec = 0;
14542 tm.tm_isdst = -1;
14543 if (mktime (&tm) == (time_t)-1)
14544 exit (1);
14545 }
14546
14547 static void
14548 mktime_test1 (now)
14549 time_t now;
14550 {
14551 struct tm *lt;
14552 if ((lt = localtime (&now)) && mktime (lt) != now)
14553 exit (1);
14554 }
14555
14556 static void
14557 mktime_test (now)
14558 time_t now;
14559 {
14560 mktime_test1 (now);
14561 mktime_test1 ((time_t) (time_t_max - now));
14562 mktime_test1 ((time_t) (time_t_min + now));
14563 }
14564
14565 static void
14566 irix_6_4_bug ()
14567 {
14568 /* Based on code from Ariel Faigon. */
14569 struct tm tm;
14570 tm.tm_year = 96;
14571 tm.tm_mon = 3;
14572 tm.tm_mday = 0;
14573 tm.tm_hour = 0;
14574 tm.tm_min = 0;
14575 tm.tm_sec = 0;
14576 tm.tm_isdst = -1;
14577 mktime (&tm);
14578 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14579 exit (1);
14580 }
14581
14582 static void
14583 bigtime_test (j)
14584 int j;
14585 {
14586 struct tm tm;
14587 time_t now;
14588 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14589 now = mktime (&tm);
14590 if (now != (time_t) -1)
14591 {
14592 struct tm *lt = localtime (&now);
14593 if (! (lt
14594 && lt->tm_year == tm.tm_year
14595 && lt->tm_mon == tm.tm_mon
14596 && lt->tm_mday == tm.tm_mday
14597 && lt->tm_hour == tm.tm_hour
14598 && lt->tm_min == tm.tm_min
14599 && lt->tm_sec == tm.tm_sec
14600 && lt->tm_yday == tm.tm_yday
14601 && lt->tm_wday == tm.tm_wday
14602 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14603 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14604 exit (1);
14605 }
14606 }
14607
14608 int
14609 main ()
14610 {
14611 time_t t, delta;
14612 int i, j;
14613
14614 /* This test makes some buggy mktime implementations loop.
14615 Give up after 60 seconds; a mktime slower than that
14616 isn't worth using anyway. */
14617 alarm (60);
14618
14619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14620 continue;
14621 time_t_max--;
14622 if ((time_t) -1 < 0)
14623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14624 continue;
14625 delta = time_t_max / 997; /* a suitable prime number */
14626 for (i = 0; i < N_STRINGS; i++)
14627 {
14628 if (tz_strings[i])
14629 putenv (tz_strings[i]);
14630
14631 for (t = 0; t <= time_t_max - delta; t += delta)
14632 mktime_test (t);
14633 mktime_test ((time_t) 1);
14634 mktime_test ((time_t) (60 * 60));
14635 mktime_test ((time_t) (60 * 60 * 24));
14636
14637 for (j = 1; 0 < j; j *= 2)
14638 bigtime_test (j);
14639 bigtime_test (j - 1);
14640 }
14641 irix_6_4_bug ();
14642 spring_forward_gap ();
14643 exit (0);
14644 }
14645 _ACEOF
14646 rm -f conftest$ac_exeext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14648 (eval $ac_link) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_func_working_mktime=yes
14658 else
14659 echo "$as_me: program exited with status $ac_status" >&5
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ( exit $ac_status )
14664 ac_cv_func_working_mktime=no
14665 fi
14666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14667 fi
14668 fi
14669 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14670 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14671 if test $ac_cv_func_working_mktime = no; then
14672 case $LIBOBJS in
14673 "mktime.$ac_objext" | \
14674 *" mktime.$ac_objext" | \
14675 "mktime.$ac_objext "* | \
14676 *" mktime.$ac_objext "* ) ;;
14677 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14678 esac
14679
14680 fi
14681
14682 if test "$ac_cv_func_working_mktime" = no; then
14683
14684 cat >>confdefs.h <<\_ACEOF
14685 #define BROKEN_MKTIME 1
14686 _ACEOF
14687
14688 fi
14689
14690 ac_have_func=no # yes means we've found a way to get the load average.
14691
14692 # Make sure getloadavg.c is where it belongs, at configure-time.
14693 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14694 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14695 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14696 { (exit 1); exit 1; }; }
14697
14698 ac_save_LIBS=$LIBS
14699
14700 # Check for getloadavg, but be sure not to touch the cache variable.
14701 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14702 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14703 if test "${ac_cv_func_getloadavg+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14714 #define getloadavg innocuous_getloadavg
14715
14716 /* System header to define __stub macros and hopefully few prototypes,
14717 which can conflict with char getloadavg (); below.
14718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14719 <limits.h> exists even on freestanding compilers. */
14720
14721 #ifdef __STDC__
14722 # include <limits.h>
14723 #else
14724 # include <assert.h>
14725 #endif
14726
14727 #undef getloadavg
14728
14729 /* Override any gcc2 internal prototype to avoid an error. */
14730 #ifdef __cplusplus
14731 extern "C"
14732 {
14733 #endif
14734 /* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
14736 char getloadavg ();
14737 /* The GNU C library defines this for functions which it implements
14738 to always fail with ENOSYS. Some functions are actually named
14739 something starting with __ and the normal name is an alias. */
14740 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14741 choke me
14742 #else
14743 char (*f) () = getloadavg;
14744 #endif
14745 #ifdef __cplusplus
14746 }
14747 #endif
14748
14749 int
14750 main ()
14751 {
14752 return f != getloadavg;
14753 ;
14754 return 0;
14755 }
14756 _ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14759 (eval $ac_link) 2>conftest.er1
14760 ac_status=$?
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 ac_cv_func_getloadavg=yes
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 ac_cv_func_getloadavg=no
14785 fi
14786 rm -f conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788 fi
14789 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14790 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14791 if test $ac_cv_func_getloadavg = yes; then
14792 exit 0
14793 else
14794 exit 1
14795 fi
14796 ) && ac_have_func=yes
14797
14798 # On HPUX9, an unprivileged user can get load averages through this function.
14799
14800 for ac_func in pstat_getdynamic
14801 do
14802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14803 echo "$as_me:$LINENO: checking for $ac_func" >&5
14804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14805 if eval "test \"\${$as_ac_var+set}\" = set"; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h. */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14816 #define $ac_func innocuous_$ac_func
14817
14818 /* System header to define __stub macros and hopefully few prototypes,
14819 which can conflict with char $ac_func (); below.
14820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14821 <limits.h> exists even on freestanding compilers. */
14822
14823 #ifdef __STDC__
14824 # include <limits.h>
14825 #else
14826 # include <assert.h>
14827 #endif
14828
14829 #undef $ac_func
14830
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 #ifdef __cplusplus
14833 extern "C"
14834 {
14835 #endif
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838 char $ac_func ();
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14843 choke me
14844 #else
14845 char (*f) () = $ac_func;
14846 #endif
14847 #ifdef __cplusplus
14848 }
14849 #endif
14850
14851 int
14852 main ()
14853 {
14854 return f != $ac_func;
14855 ;
14856 return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag"
14869 || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 eval "$as_ac_var=yes"
14882 else
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14885
14886 eval "$as_ac_var=no"
14887 fi
14888 rm -f conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 fi
14891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14893 if test `eval echo '${'$as_ac_var'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14896 _ACEOF
14897
14898 fi
14899 done
14900
14901
14902 # Solaris has libkstat which does not require root.
14903
14904 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14905 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14906 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909 ac_check_lib_save_LIBS=$LIBS
14910 LIBS="-lkstat $LIBS"
14911 cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h. */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917
14918 /* Override any gcc2 internal prototype to avoid an error. */
14919 #ifdef __cplusplus
14920 extern "C"
14921 #endif
14922 /* We use char because int might match the return type of a gcc2
14923 builtin and then its argument prototype would still apply. */
14924 char kstat_open ();
14925 int
14926 main ()
14927 {
14928 kstat_open ();
14929 ;
14930 return 0;
14931 }
14932 _ACEOF
14933 rm -f conftest.$ac_objext conftest$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_lib_kstat_kstat_open=yes
14956 else
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14959
14960 ac_cv_lib_kstat_kstat_open=no
14961 fi
14962 rm -f conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14964 LIBS=$ac_check_lib_save_LIBS
14965 fi
14966 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14967 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14968 if test $ac_cv_lib_kstat_kstat_open = yes; then
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_LIBKSTAT 1
14971 _ACEOF
14972
14973 LIBS="-lkstat $LIBS"
14974
14975 fi
14976
14977 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14978
14979 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14980 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14981 # to get the right answer into the cache.
14982 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14983 if test $ac_have_func = no; then
14984 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14985 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14986 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 ac_check_lib_save_LIBS=$LIBS
14990 LIBS="-lelf $LIBS"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997
14998 /* Override any gcc2 internal prototype to avoid an error. */
14999 #ifdef __cplusplus
15000 extern "C"
15001 #endif
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15004 char elf_begin ();
15005 int
15006 main ()
15007 {
15008 elf_begin ();
15009 ;
15010 return 0;
15011 }
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag"
15023 || test ! -s conftest.err'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; } &&
15029 { ac_try='test -s conftest$ac_exeext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_cv_lib_elf_elf_begin=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_cv_lib_elf_elf_begin=no
15041 fi
15042 rm -f conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 LIBS=$ac_check_lib_save_LIBS
15045 fi
15046 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15047 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15048 if test $ac_cv_lib_elf_elf_begin = yes; then
15049 LIBS="-lelf $LIBS"
15050 fi
15051
15052 fi
15053 if test $ac_have_func = no; then
15054 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15055 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15056 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lkvm $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067
15068 /* Override any gcc2 internal prototype to avoid an error. */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074 char kvm_open ();
15075 int
15076 main ()
15077 {
15078 kvm_open ();
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085 (eval $ac_link) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_kvm_kvm_open=yes
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_lib_kvm_kvm_open=no
15111 fi
15112 rm -f conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15114 LIBS=$ac_check_lib_save_LIBS
15115 fi
15116 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15117 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15118 if test $ac_cv_lib_kvm_kvm_open = yes; then
15119 LIBS="-lkvm $LIBS"
15120 fi
15121
15122 # Check for the 4.4BSD definition of getloadavg.
15123 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15124 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15125 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 ac_check_lib_save_LIBS=$LIBS
15129 LIBS="-lutil $LIBS"
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136
15137 /* Override any gcc2 internal prototype to avoid an error. */
15138 #ifdef __cplusplus
15139 extern "C"
15140 #endif
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15143 char getloadavg ();
15144 int
15145 main ()
15146 {
15147 getloadavg ();
15148 ;
15149 return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_lib_util_getloadavg=yes
15175 else
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 ac_cv_lib_util_getloadavg=no
15180 fi
15181 rm -f conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15183 LIBS=$ac_check_lib_save_LIBS
15184 fi
15185 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15186 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15187 if test $ac_cv_lib_util_getloadavg = yes; then
15188 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15189 fi
15190
15191 fi
15192
15193 if test $ac_have_func = no; then
15194 # There is a commonly available library for RS/6000 AIX.
15195 # Since it is not a standard part of AIX, it might be installed locally.
15196 ac_getloadavg_LIBS=$LIBS
15197 LIBS="-L/usr/local/lib $LIBS"
15198 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15199 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15200 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 ac_check_lib_save_LIBS=$LIBS
15204 LIBS="-lgetloadavg $LIBS"
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211
15212 /* Override any gcc2 internal prototype to avoid an error. */
15213 #ifdef __cplusplus
15214 extern "C"
15215 #endif
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char getloadavg ();
15219 int
15220 main ()
15221 {
15222 getloadavg ();
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229 (eval $ac_link) 2>conftest.er1
15230 ac_status=$?
15231 grep -v '^ *+' conftest.er1 >conftest.err
15232 rm -f conftest.er1
15233 cat conftest.err >&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
15236 { ac_try='test -z "$ac_c_werror_flag"
15237 || test ! -s conftest.err'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_cv_lib_getloadavg_getloadavg=yes
15250 else
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_cv_lib_getloadavg_getloadavg=no
15255 fi
15256 rm -f conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15258 LIBS=$ac_check_lib_save_LIBS
15259 fi
15260 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15261 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15262 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15263 LIBS="-lgetloadavg $LIBS"
15264 else
15265 LIBS=$ac_getloadavg_LIBS
15266 fi
15267
15268 fi
15269
15270 # Make sure it is really in the library, if we think we found it,
15271 # otherwise set up the replacement function.
15272
15273 for ac_func in getloadavg
15274 do
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15290
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15295
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15301
15302 #undef $ac_func
15303
15304 /* Override any gcc2 internal prototype to avoid an error. */
15305 #ifdef __cplusplus
15306 extern "C"
15307 {
15308 #endif
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15311 char $ac_func ();
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15316 choke me
15317 #else
15318 char (*f) () = $ac_func;
15319 #endif
15320 #ifdef __cplusplus
15321 }
15322 #endif
15323
15324 int
15325 main ()
15326 {
15327 return f != $ac_func;
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag"
15342 || test ! -s conftest.err'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 eval "$as_ac_var=yes"
15355 else
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 eval "$as_ac_var=no"
15360 fi
15361 rm -f conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 fi
15364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15366 if test `eval echo '${'$as_ac_var'}'` = yes; then
15367 cat >>confdefs.h <<_ACEOF
15368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15369 _ACEOF
15370
15371 else
15372 case $LIBOBJS in
15373 "getloadavg.$ac_objext" | \
15374 *" getloadavg.$ac_objext" | \
15375 "getloadavg.$ac_objext "* | \
15376 *" getloadavg.$ac_objext "* ) ;;
15377 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15378 esac
15379
15380
15381 cat >>confdefs.h <<\_ACEOF
15382 #define C_GETLOADAVG 1
15383 _ACEOF
15384
15385 # Figure out what our getloadavg.c needs.
15386 ac_have_func=no
15387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15388 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15389 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15390 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 fi
15393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15394 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15395 else
15396 # Is the header compilable?
15397 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15398 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 #include <sys/dg_sys_info.h>
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15410 (eval $ac_compile) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag"
15418 || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_header_compiler=yes
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 ac_header_compiler=no
15436 fi
15437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15439 echo "${ECHO_T}$ac_header_compiler" >&6
15440
15441 # Is the header present?
15442 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15443 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h. */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 #include <sys/dg_sys_info.h>
15451 _ACEOF
15452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } >/dev/null; then
15460 if test -s conftest.err; then
15461 ac_cpp_err=$ac_c_preproc_warn_flag
15462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15463 else
15464 ac_cpp_err=
15465 fi
15466 else
15467 ac_cpp_err=yes
15468 fi
15469 if test -z "$ac_cpp_err"; then
15470 ac_header_preproc=yes
15471 else
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475 ac_header_preproc=no
15476 fi
15477 rm -f conftest.err conftest.$ac_ext
15478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479 echo "${ECHO_T}$ac_header_preproc" >&6
15480
15481 # So? What about this header?
15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15483 yes:no: )
15484 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15485 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15487 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15488 ac_header_preproc=yes
15489 ;;
15490 no:yes:* )
15491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15492 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15494 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15496 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15498 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15502 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15503 (
15504 cat <<\_ASBOX
15505 ## ------------------------------------------ ##
15506 ## Report this to the AC_PACKAGE_NAME lists. ##
15507 ## ------------------------------------------ ##
15508 _ASBOX
15509 ) |
15510 sed "s/^/$as_me: WARNING: /" >&2
15511 ;;
15512 esac
15513 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15514 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15515 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15519 fi
15520 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15521 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15522
15523 fi
15524 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15525 ac_have_func=yes
15526
15527 cat >>confdefs.h <<\_ACEOF
15528 #define DGUX 1
15529 _ACEOF
15530
15531
15532 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15533 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15534 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-ldgc $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545
15546 /* Override any gcc2 internal prototype to avoid an error. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552 char dg_sys_info ();
15553 int
15554 main ()
15555 {
15556 dg_sys_info ();
15557 ;
15558 return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag"
15571 || test ! -s conftest.err'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_lib_dgc_dg_sys_info=yes
15584 else
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15587
15588 ac_cv_lib_dgc_dg_sys_info=no
15589 fi
15590 rm -f conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 LIBS=$ac_check_lib_save_LIBS
15593 fi
15594 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15595 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15596 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_LIBDGC 1
15599 _ACEOF
15600
15601 LIBS="-ldgc $LIBS"
15602
15603 fi
15604
15605 fi
15606
15607
15608
15609 if test "${ac_cv_header_locale_h+set}" = set; then
15610 echo "$as_me:$LINENO: checking for locale.h" >&5
15611 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15612 if test "${ac_cv_header_locale_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 fi
15615 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15617 else
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking locale.h usability" >&5
15620 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <locale.h>
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler=yes
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 ac_header_compiler=no
15658 fi
15659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15662
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking locale.h presence" >&5
15665 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <locale.h>
15673 _ACEOF
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev/null; then
15682 if test -s conftest.err; then
15683 ac_cpp_err=$ac_c_preproc_warn_flag
15684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15685 else
15686 ac_cpp_err=
15687 fi
15688 else
15689 ac_cpp_err=yes
15690 fi
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ac_header_preproc=no
15698 fi
15699 rm -f conftest.err conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15702
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
15706 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15711 ;;
15712 no:yes:* )
15713 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15725 (
15726 cat <<\_ASBOX
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15730 _ASBOX
15731 ) |
15732 sed "s/^/$as_me: WARNING: /" >&2
15733 ;;
15734 esac
15735 echo "$as_me:$LINENO: checking for locale.h" >&5
15736 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15737 if test "${ac_cv_header_locale_h+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 ac_cv_header_locale_h=$ac_header_preproc
15741 fi
15742 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15743 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15744
15745 fi
15746
15747
15748
15749 for ac_func in setlocale
15750 do
15751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15752 echo "$as_me:$LINENO: checking for $ac_func" >&5
15753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_var+set}\" = set"; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15765 #define $ac_func innocuous_$ac_func
15766
15767 /* System header to define __stub macros and hopefully few prototypes,
15768 which can conflict with char $ac_func (); below.
15769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770 <limits.h> exists even on freestanding compilers. */
15771
15772 #ifdef __STDC__
15773 # include <limits.h>
15774 #else
15775 # include <assert.h>
15776 #endif
15777
15778 #undef $ac_func
15779
15780 /* Override any gcc2 internal prototype to avoid an error. */
15781 #ifdef __cplusplus
15782 extern "C"
15783 {
15784 #endif
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15787 char $ac_func ();
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15792 choke me
15793 #else
15794 char (*f) () = $ac_func;
15795 #endif
15796 #ifdef __cplusplus
15797 }
15798 #endif
15799
15800 int
15801 main ()
15802 {
15803 return f != $ac_func;
15804 ;
15805 return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 eval "$as_ac_var=no"
15836 fi
15837 rm -f conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 fi
15840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15842 if test `eval echo '${'$as_ac_var'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15845 _ACEOF
15846
15847 fi
15848 done
15849
15850
15851 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15852 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15853 # Irix 4.0.5F has the header but not the library.
15854 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15855 ac_have_func=yes
15856
15857 cat >>confdefs.h <<\_ACEOF
15858 #define SVR4 1
15859 _ACEOF
15860
15861 fi
15862
15863 if test $ac_have_func = no; then
15864 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15866 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15867 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 fi
15870 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15871 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15872 else
15873 # Is the header compilable?
15874 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15875 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <inq_stats/cpustats.h>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 ac_header_compiler=no
15913 fi
15914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15917
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15920 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h. */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 #include <inq_stats/cpustats.h>
15928 _ACEOF
15929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_c_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15940 else
15941 ac_cpp_err=
15942 fi
15943 else
15944 ac_cpp_err=yes
15945 fi
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_preproc=no
15953 fi
15954 rm -f conftest.err conftest.$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15957
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 yes:no: )
15961 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15964 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc=yes
15966 ;;
15967 no:yes:* )
15968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15969 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15971 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15973 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15979 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15980 (
15981 cat <<\_ASBOX
15982 ## ------------------------------------------ ##
15983 ## Report this to the AC_PACKAGE_NAME lists. ##
15984 ## ------------------------------------------ ##
15985 _ASBOX
15986 ) |
15987 sed "s/^/$as_me: WARNING: /" >&2
15988 ;;
15989 esac
15990 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15991 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15992 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15996 fi
15997 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15998 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15999
16000 fi
16001 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16002 ac_have_func=yes
16003
16004 cat >>confdefs.h <<\_ACEOF
16005 #define UMAX 1
16006 _ACEOF
16007
16008
16009 cat >>confdefs.h <<\_ACEOF
16010 #define UMAX4_3 1
16011 _ACEOF
16012
16013 fi
16014
16015
16016 fi
16017
16018 if test $ac_have_func = no; then
16019 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16020 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16021 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16022 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 fi
16025 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16026 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16027 else
16028 # Is the header compilable?
16029 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16030 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 #include <sys/cpustats.h>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_compiler=no
16068 fi
16069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16072
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16075 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <sys/cpustats.h>
16083 _ACEOF
16084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } >/dev/null; then
16092 if test -s conftest.err; then
16093 ac_cpp_err=$ac_c_preproc_warn_flag
16094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16095 else
16096 ac_cpp_err=
16097 fi
16098 else
16099 ac_cpp_err=yes
16100 fi
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc=yes
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107 ac_header_preproc=no
16108 fi
16109 rm -f conftest.err conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16112
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115 yes:no: )
16116 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16121 ;;
16122 no:yes:* )
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16135 (
16136 cat <<\_ASBOX
16137 ## ------------------------------------------ ##
16138 ## Report this to the AC_PACKAGE_NAME lists. ##
16139 ## ------------------------------------------ ##
16140 _ASBOX
16141 ) |
16142 sed "s/^/$as_me: WARNING: /" >&2
16143 ;;
16144 esac
16145 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16146 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16151 fi
16152 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16154
16155 fi
16156 if test $ac_cv_header_sys_cpustats_h = yes; then
16157 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16158 #define UMAX 1
16159 _ACEOF
16160
16161 fi
16162
16163
16164 fi
16165
16166 if test $ac_have_func = no; then
16167
16168 for ac_header in mach/mach.h
16169 do
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 fi
16177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16179 else
16180 # Is the header compilable?
16181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 #include <$ac_header>
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_header_compiler=no
16220 fi
16221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6
16224
16225 # Is the header present?
16226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16235 _ACEOF
16236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev/null; then
16244 if test -s conftest.err; then
16245 ac_cpp_err=$ac_c_preproc_warn_flag
16246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16247 else
16248 ac_cpp_err=
16249 fi
16250 else
16251 ac_cpp_err=yes
16252 fi
16253 if test -z "$ac_cpp_err"; then
16254 ac_header_preproc=yes
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259 ac_header_preproc=no
16260 fi
16261 rm -f conftest.err conftest.$ac_ext
16262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16263 echo "${ECHO_T}$ac_header_preproc" >&6
16264
16265 # So? What about this header?
16266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16267 yes:no: )
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16272 ac_header_preproc=yes
16273 ;;
16274 no:yes:* )
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16287 (
16288 cat <<\_ASBOX
16289 ## ------------------------------------------ ##
16290 ## Report this to the AC_PACKAGE_NAME lists. ##
16291 ## ------------------------------------------ ##
16292 _ASBOX
16293 ) |
16294 sed "s/^/$as_me: WARNING: /" >&2
16295 ;;
16296 esac
16297 echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 eval "$as_ac_Header=\$ac_header_preproc"
16303 fi
16304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16306
16307 fi
16308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16309 cat >>confdefs.h <<_ACEOF
16310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16311 _ACEOF
16312
16313 fi
16314
16315 done
16316
16317 fi
16318
16319
16320 for ac_header in nlist.h
16321 do
16322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16324 echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 fi
16329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16331 else
16332 # Is the header compilable?
16333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 #include <$ac_header>
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_header_compiler=yes
16367 else
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 ac_header_compiler=no
16372 fi
16373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6
16376
16377 # Is the header present?
16378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <$ac_header>
16387 _ACEOF
16388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev/null; then
16396 if test -s conftest.err; then
16397 ac_cpp_err=$ac_c_preproc_warn_flag
16398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16399 else
16400 ac_cpp_err=
16401 fi
16402 else
16403 ac_cpp_err=yes
16404 fi
16405 if test -z "$ac_cpp_err"; then
16406 ac_header_preproc=yes
16407 else
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 ac_header_preproc=no
16412 fi
16413 rm -f conftest.err conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16415 echo "${ECHO_T}$ac_header_preproc" >&6
16416
16417 # So? What about this header?
16418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16419 yes:no: )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16424 ac_header_preproc=yes
16425 ;;
16426 no:yes:* )
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16439 (
16440 cat <<\_ASBOX
16441 ## ------------------------------------------ ##
16442 ## Report this to the AC_PACKAGE_NAME lists. ##
16443 ## ------------------------------------------ ##
16444 _ASBOX
16445 ) |
16446 sed "s/^/$as_me: WARNING: /" >&2
16447 ;;
16448 esac
16449 echo "$as_me:$LINENO: checking for $ac_header" >&5
16450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454 eval "$as_ac_Header=\$ac_header_preproc"
16455 fi
16456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16465 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16466 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 #include <nlist.h>
16476
16477 int
16478 main ()
16479 {
16480 static struct nlist ac_aggr;
16481 if (ac_aggr.n_un.n_name)
16482 return 0;
16483 ;
16484 return 0;
16485 }
16486 _ACEOF
16487 rm -f conftest.$ac_objext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16489 (eval $ac_compile) 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag"
16497 || test ! -s conftest.err'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; } &&
16503 { ac_try='test -s conftest.$ac_objext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 ac_cv_member_struct_nlist_n_un_n_name=yes
16510 else
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <nlist.h>
16521
16522 int
16523 main ()
16524 {
16525 static struct nlist ac_aggr;
16526 if (sizeof ac_aggr.n_un.n_name)
16527 return 0;
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534 (eval $ac_compile) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_member_struct_nlist_n_un_n_name=yes
16555 else
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_cv_member_struct_nlist_n_un_n_name=no
16560 fi
16561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562 fi
16563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16564 fi
16565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16566 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16567 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16568
16569 cat >>confdefs.h <<_ACEOF
16570 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16571 _ACEOF
16572
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define NLIST_NAME_UNION 1
16576 _ACEOF
16577
16578 fi
16579
16580
16581 fi
16582
16583 done
16584
16585 fi
16586 done
16587
16588
16589 # Some definitions of getloadavg require that the program be installed setgid.
16590 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16591 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16592 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16602 #ifdef LDAV_PRIVILEGED
16603 Yowza Am I SETGID yet
16604 #endif
16605 _ACEOF
16606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16607 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16608 ac_cv_func_getloadavg_setgid=yes
16609 else
16610 ac_cv_func_getloadavg_setgid=no
16611 fi
16612 rm -f conftest*
16613
16614 fi
16615 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16616 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16617 if test $ac_cv_func_getloadavg_setgid = yes; then
16618 NEED_SETGID=true
16619
16620 cat >>confdefs.h <<\_ACEOF
16621 #define GETLOADAVG_PRIVILEGED 1
16622 _ACEOF
16623
16624 else
16625 NEED_SETGID=false
16626 fi
16627
16628 if test $ac_cv_func_getloadavg_setgid = yes; then
16629 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16630 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16631 if test "${ac_cv_group_kmem+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16635 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16636 # If we got an error (system does not support symlinks), try without -L.
16637 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16638 ac_cv_group_kmem=`echo $ac_ls_output \
16639 | sed -ne 's/[ ][ ]*/ /g;
16640 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16641 / /s/.* //;p;'`
16642
16643 fi
16644 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16645 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16646 KMEM_GROUP=$ac_cv_group_kmem
16647 fi
16648 if test "x$ac_save_LIBS" = x; then
16649 GETLOADAVG_LIBS=$LIBS
16650 else
16651 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16652 fi
16653 LIBS=$ac_save_LIBS
16654
16655
16656
16657 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16658 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16659 if test "${ac_cv_sys_largefile_source+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662 while :; do
16663 ac_cv_sys_largefile_source=no
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 #include <stdio.h>
16671 int
16672 main ()
16673 {
16674 return !fseeko;
16675 ;
16676 return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16681 (eval $ac_compile) 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_c_werror_flag"
16689 || 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_objext'
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 break
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 fi
16707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #define _LARGEFILE_SOURCE 1
16715 #include <stdio.h>
16716 int
16717 main ()
16718 {
16719 return !fseeko;
16720 ;
16721 return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_sys_largefile_source=1; break
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 fi
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16753 break
16754 done
16755 fi
16756 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16757 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16758 if test "$ac_cv_sys_largefile_source" != no; then
16759
16760 cat >>confdefs.h <<_ACEOF
16761 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16762 _ACEOF
16763
16764 fi
16765 rm -f conftest*
16766
16767 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16768 # in glibc 2.1.3, but that breaks too many other things.
16769 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16770 echo "$as_me:$LINENO: checking for fseeko" >&5
16771 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16772 if test "${ac_cv_func_fseeko+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 #include <stdio.h>
16782 int
16783 main ()
16784 {
16785 return fseeko && fseeko (stdin, 0, 0);
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext conftest$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>conftest.er1
16793 ac_status=$?
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
16799 { ac_try='test -z "$ac_c_werror_flag"
16800 || test ! -s conftest.err'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest$ac_exeext'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_func_fseeko=yes
16813 else
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 ac_cv_func_fseeko=no
16818 fi
16819 rm -f conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 fi
16822 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16823 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16824 if test $ac_cv_func_fseeko = yes; then
16825
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_FSEEKO 1
16828 _ACEOF
16829
16830 fi
16831
16832
16833 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16834 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16835 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838 # Use it with a single arg.
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16846 int
16847 main ()
16848 {
16849 getpgrp (0);
16850 ;
16851 return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_func_getpgrp_void=no
16877 else
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_cv_func_getpgrp_void=yes
16882 fi
16883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884
16885 fi
16886 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16887 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16888 if test $ac_cv_func_getpgrp_void = yes; then
16889
16890 cat >>confdefs.h <<\_ACEOF
16891 #define GETPGRP_VOID 1
16892 _ACEOF
16893
16894 fi
16895
16896
16897
16898 for ac_func in strftime
16899 do
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_var+set}\" = set"; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16915
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16920
16921 #ifdef __STDC__
16922 # include <limits.h>
16923 #else
16924 # include <assert.h>
16925 #endif
16926
16927 #undef $ac_func
16928
16929 /* Override any gcc2 internal prototype to avoid an error. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 {
16933 #endif
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char $ac_func ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 choke me
16942 #else
16943 char (*f) () = $ac_func;
16944 #endif
16945 #ifdef __cplusplus
16946 }
16947 #endif
16948
16949 int
16950 main ()
16951 {
16952 return f != $ac_func;
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 eval "$as_ac_var=yes"
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 eval "$as_ac_var=no"
16985 fi
16986 rm -f conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988 fi
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 _ACEOF
16995
16996 else
16997 # strftime is in -lintl on SCO UNIX.
16998 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16999 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17000 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003 ac_check_lib_save_LIBS=$LIBS
17004 LIBS="-lintl $LIBS"
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011
17012 /* Override any gcc2 internal prototype to avoid an error. */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 /* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018 char strftime ();
17019 int
17020 main ()
17021 {
17022 strftime ();
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029 (eval $ac_link) 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest$ac_exeext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_lib_intl_strftime=yes
17050 else
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_cv_lib_intl_strftime=no
17055 fi
17056 rm -f conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17059 fi
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17061 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17062 if test $ac_cv_lib_intl_strftime = yes; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define HAVE_STRFTIME 1
17065 _ACEOF
17066
17067 LIBS="-lintl $LIBS"
17068 fi
17069
17070 fi
17071 done
17072
17073
17074 # UNIX98 PTYs.
17075
17076 for ac_func in grantpt
17077 do
17078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17079 echo "$as_me:$LINENO: checking for $ac_func" >&5
17080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_var+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092 #define $ac_func innocuous_$ac_func
17093
17094 /* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char $ac_func (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17098
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104
17105 #undef $ac_func
17106
17107 /* Override any gcc2 internal prototype to avoid an error. */
17108 #ifdef __cplusplus
17109 extern "C"
17110 {
17111 #endif
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17114 char $ac_func ();
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17119 choke me
17120 #else
17121 char (*f) () = $ac_func;
17122 #endif
17123 #ifdef __cplusplus
17124 }
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return f != $ac_func;
17131 ;
17132 return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 eval "$as_ac_var=yes"
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 eval "$as_ac_var=no"
17163 fi
17164 rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17166 fi
17167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170 cat >>confdefs.h <<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172 _ACEOF
17173
17174 fi
17175 done
17176
17177
17178 # PTY-related GNU extensions.
17179
17180 for ac_func in getpt
17181 do
17182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17183 echo "$as_me:$LINENO: checking for $ac_func" >&5
17184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17185 if eval "test \"\${$as_ac_var+set}\" = set"; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196 #define $ac_func innocuous_$ac_func
17197
17198 /* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char $ac_func (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17202
17203 #ifdef __STDC__
17204 # include <limits.h>
17205 #else
17206 # include <assert.h>
17207 #endif
17208
17209 #undef $ac_func
17210
17211 /* Override any gcc2 internal prototype to avoid an error. */
17212 #ifdef __cplusplus
17213 extern "C"
17214 {
17215 #endif
17216 /* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
17218 char $ac_func ();
17219 /* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
17222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17223 choke me
17224 #else
17225 char (*f) () = $ac_func;
17226 #endif
17227 #ifdef __cplusplus
17228 }
17229 #endif
17230
17231 int
17232 main ()
17233 {
17234 return f != $ac_func;
17235 ;
17236 return 0;
17237 }
17238 _ACEOF
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17262 else
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 eval "$as_ac_var=no"
17267 fi
17268 rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 fi
17271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17276 _ACEOF
17277
17278 fi
17279 done
17280
17281
17282 # Check this now, so that we will NOT find the above functions in ncurses.
17283 # That is because we have not set up to link ncurses in lib-src.
17284 # It's better to believe a function is not available
17285 # than to expect to find it in ncurses.
17286
17287 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17288 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17289 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292 ac_check_lib_save_LIBS=$LIBS
17293 LIBS="-lncurses $LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300
17301 /* Override any gcc2 internal prototype to avoid an error. */
17302 #ifdef __cplusplus
17303 extern "C"
17304 #endif
17305 /* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17307 char tparm ();
17308 int
17309 main ()
17310 {
17311 tparm ();
17312 ;
17313 return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_lib_ncurses_tparm=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_cv_lib_ncurses_tparm=no
17344 fi
17345 rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17348 fi
17349 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17350 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17351 if test $ac_cv_lib_ncurses_tparm = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353 #define HAVE_LIBNCURSES 1
17354 _ACEOF
17355
17356 LIBS="-lncurses $LIBS"
17357
17358 fi
17359
17360
17361 # Do we need the Hesiod library to provide the support routines?
17362 if test "$with_hesiod" = yes ; then
17363 # Don't set $LIBS here -- see comments above.
17364 resolv=no
17365 echo "$as_me:$LINENO: checking for res_send" >&5
17366 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17367 if test "${ac_cv_func_res_send+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define res_send innocuous_res_send
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char res_send (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef res_send
17392
17393 /* Override any gcc2 internal prototype to avoid an error. */
17394 #ifdef __cplusplus
17395 extern "C"
17396 {
17397 #endif
17398 /* We use char because int might match the return type of a gcc2
17399 builtin and then its argument prototype would still apply. */
17400 char res_send ();
17401 /* The GNU C library defines this for functions which it implements
17402 to always fail with ENOSYS. Some functions are actually named
17403 something starting with __ and the normal name is an alias. */
17404 #if defined (__stub_res_send) || defined (__stub___res_send)
17405 choke me
17406 #else
17407 char (*f) () = res_send;
17408 #endif
17409 #ifdef __cplusplus
17410 }
17411 #endif
17412
17413 int
17414 main ()
17415 {
17416 return f != res_send;
17417 ;
17418 return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest$ac_exeext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_func_res_send=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 ac_cv_func_res_send=no
17449 fi
17450 rm -f conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
17452 fi
17453 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17454 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17455 if test $ac_cv_func_res_send = yes; then
17456 :
17457 else
17458 echo "$as_me:$LINENO: checking for __res_send" >&5
17459 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17460 if test "${ac_cv_func___res_send+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17471 #define __res_send innocuous___res_send
17472
17473 /* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char __res_send (); below.
17475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476 <limits.h> exists even on freestanding compilers. */
17477
17478 #ifdef __STDC__
17479 # include <limits.h>
17480 #else
17481 # include <assert.h>
17482 #endif
17483
17484 #undef __res_send
17485
17486 /* Override any gcc2 internal prototype to avoid an error. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 {
17490 #endif
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char __res_send ();
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined (__stub___res_send) || defined (__stub_____res_send)
17498 choke me
17499 #else
17500 char (*f) () = __res_send;
17501 #endif
17502 #ifdef __cplusplus
17503 }
17504 #endif
17505
17506 int
17507 main ()
17508 {
17509 return f != __res_send;
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>conftest.er1
17517 ac_status=$?
17518 grep -v '^ *+' conftest.er1 >conftest.err
17519 rm -f conftest.er1
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try='test -z "$ac_c_werror_flag"
17524 || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_func___res_send=yes
17537 else
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 ac_cv_func___res_send=no
17542 fi
17543 rm -f conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17547 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17548 if test $ac_cv_func___res_send = yes; then
17549 :
17550 else
17551 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17552 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17553 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556 ac_check_lib_save_LIBS=$LIBS
17557 LIBS="-lresolv $LIBS"
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564
17565 /* Override any gcc2 internal prototype to avoid an error. */
17566 #ifdef __cplusplus
17567 extern "C"
17568 #endif
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17571 char res_send ();
17572 int
17573 main ()
17574 {
17575 res_send ();
17576 ;
17577 return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag"
17590 || test ! -s conftest.err'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try='test -s conftest$ac_exeext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_lib_resolv_res_send=yes
17603 else
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 ac_cv_lib_resolv_res_send=no
17608 fi
17609 rm -f conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17612 fi
17613 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17614 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17615 if test $ac_cv_lib_resolv_res_send = yes; then
17616 resolv=yes
17617 else
17618 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17619 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17620 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623 ac_check_lib_save_LIBS=$LIBS
17624 LIBS="-lresolv $LIBS"
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631
17632 /* Override any gcc2 internal prototype to avoid an error. */
17633 #ifdef __cplusplus
17634 extern "C"
17635 #endif
17636 /* We use char because int might match the return type of a gcc2
17637 builtin and then its argument prototype would still apply. */
17638 char __res_send ();
17639 int
17640 main ()
17641 {
17642 __res_send ();
17643 ;
17644 return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_lib_resolv___res_send=yes
17670 else
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 ac_cv_lib_resolv___res_send=no
17675 fi
17676 rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17679 fi
17680 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17681 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17682 if test $ac_cv_lib_resolv___res_send = yes; then
17683 resolv=yes
17684 fi
17685
17686 fi
17687
17688 fi
17689
17690 fi
17691
17692 if test "$resolv" = yes ; then
17693 RESOLVLIB=-lresolv
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_LIBRESOLV 1
17697 _ACEOF
17698
17699 else
17700 RESOLVLIB=
17701 fi
17702 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17703 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17704 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715 #define hes_getmailhost innocuous_hes_getmailhost
17716
17717 /* System header to define __stub macros and hopefully few prototypes,
17718 which can conflict with char hes_getmailhost (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
17721
17722 #ifdef __STDC__
17723 # include <limits.h>
17724 #else
17725 # include <assert.h>
17726 #endif
17727
17728 #undef hes_getmailhost
17729
17730 /* Override any gcc2 internal prototype to avoid an error. */
17731 #ifdef __cplusplus
17732 extern "C"
17733 {
17734 #endif
17735 /* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737 char hes_getmailhost ();
17738 /* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17742 choke me
17743 #else
17744 char (*f) () = hes_getmailhost;
17745 #endif
17746 #ifdef __cplusplus
17747 }
17748 #endif
17749
17750 int
17751 main ()
17752 {
17753 return f != hes_getmailhost;
17754 ;
17755 return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_func_hes_getmailhost=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_cv_func_hes_getmailhost=no
17786 fi
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 fi
17790 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17791 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17792 if test $ac_cv_func_hes_getmailhost = yes; then
17793 :
17794 else
17795 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17796 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17797 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800 ac_check_lib_save_LIBS=$LIBS
17801 LIBS="-lhesiod $RESOLVLIB $LIBS"
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h. */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808
17809 /* Override any gcc2 internal prototype to avoid an error. */
17810 #ifdef __cplusplus
17811 extern "C"
17812 #endif
17813 /* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17815 char hes_getmailhost ();
17816 int
17817 main ()
17818 {
17819 hes_getmailhost ();
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17826 (eval $ac_link) 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_hesiod_hes_getmailhost=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 ac_cv_lib_hesiod_hes_getmailhost=no
17852 fi
17853 rm -f conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
17855 LIBS=$ac_check_lib_save_LIBS
17856 fi
17857 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17858 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17860
17861 cat >>confdefs.h <<\_ACEOF
17862 #define HAVE_LIBHESIOD 1
17863 _ACEOF
17864
17865 else
17866 :
17867 fi
17868
17869 fi
17870
17871 fi
17872
17873 # These tell us which Kerberos-related libraries to use.
17874 if test "${with_kerberos+set}" = set; then
17875
17876 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17877 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17878 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lcom_err $LIBS"
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889
17890 /* Override any gcc2 internal prototype to avoid an error. */
17891 #ifdef __cplusplus
17892 extern "C"
17893 #endif
17894 /* We use char because int might match the return type of a gcc2
17895 builtin and then its argument prototype would still apply. */
17896 char com_err ();
17897 int
17898 main ()
17899 {
17900 com_err ();
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag"
17915 || test ! -s conftest.err'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest$ac_exeext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_lib_com_err_com_err=yes
17928 else
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ac_cv_lib_com_err_com_err=no
17933 fi
17934 rm -f conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17937 fi
17938 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17939 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17940 if test $ac_cv_lib_com_err_com_err = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define HAVE_LIBCOM_ERR 1
17943 _ACEOF
17944
17945 LIBS="-lcom_err $LIBS"
17946
17947 fi
17948
17949
17950 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17951 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17952 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lk5crypto $LIBS"
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963
17964 /* Override any gcc2 internal prototype to avoid an error. */
17965 #ifdef __cplusplus
17966 extern "C"
17967 #endif
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17970 char mit_des_cbc_encrypt ();
17971 int
17972 main ()
17973 {
17974 mit_des_cbc_encrypt ();
17975 ;
17976 return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18007 fi
18008 rm -f conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18011 fi
18012 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18013 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18014 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_LIBK5CRYPTO 1
18017 _ACEOF
18018
18019 LIBS="-lk5crypto $LIBS"
18020
18021 fi
18022
18023
18024 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18025 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18026 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029 ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-lcrypto $LIBS"
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037
18038 /* Override any gcc2 internal prototype to avoid an error. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 /* We use char because int might match the return type of a gcc2
18043 builtin and then its argument prototype would still apply. */
18044 char mit_des_cbc_encrypt ();
18045 int
18046 main ()
18047 {
18048 mit_des_cbc_encrypt ();
18049 ;
18050 return 0;
18051 }
18052 _ACEOF
18053 rm -f conftest.$ac_objext conftest$ac_exeext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055 (eval $ac_link) 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -z "$ac_c_werror_flag"
18063 || test ! -s conftest.err'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18076 else
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18079
18080 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18081 fi
18082 rm -f conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18084 LIBS=$ac_check_lib_save_LIBS
18085 fi
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18087 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18088 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18089 cat >>confdefs.h <<_ACEOF
18090 #define HAVE_LIBCRYPTO 1
18091 _ACEOF
18092
18093 LIBS="-lcrypto $LIBS"
18094
18095 fi
18096
18097
18098 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18099 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18100 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103 ac_check_lib_save_LIBS=$LIBS
18104 LIBS="-lkrb5 $LIBS"
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111
18112 /* Override any gcc2 internal prototype to avoid an error. */
18113 #ifdef __cplusplus
18114 extern "C"
18115 #endif
18116 /* We use char because int might match the return type of a gcc2
18117 builtin and then its argument prototype would still apply. */
18118 char krb5_init_context ();
18119 int
18120 main ()
18121 {
18122 krb5_init_context ();
18123 ;
18124 return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag"
18137 || test ! -s conftest.err'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try='test -s conftest$ac_exeext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 ac_cv_lib_krb5_krb5_init_context=yes
18150 else
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154 ac_cv_lib_krb5_krb5_init_context=no
18155 fi
18156 rm -f conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 LIBS=$ac_check_lib_save_LIBS
18159 fi
18160 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18161 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18162 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18163 cat >>confdefs.h <<_ACEOF
18164 #define HAVE_LIBKRB5 1
18165 _ACEOF
18166
18167 LIBS="-lkrb5 $LIBS"
18168
18169 fi
18170
18171 if test "${with_kerberos5+set}" != set; then
18172
18173 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18174 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18175 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 ac_check_lib_save_LIBS=$LIBS
18179 LIBS="-ldes425 $LIBS"
18180 cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h. */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186
18187 /* Override any gcc2 internal prototype to avoid an error. */
18188 #ifdef __cplusplus
18189 extern "C"
18190 #endif
18191 /* We use char because int might match the return type of a gcc2
18192 builtin and then its argument prototype would still apply. */
18193 char des_cbc_encrypt ();
18194 int
18195 main ()
18196 {
18197 des_cbc_encrypt ();
18198 ;
18199 return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204 (eval $ac_link) 2>conftest.er1
18205 ac_status=$?
18206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_des425_des_cbc_encrypt=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_cv_lib_des425_des_cbc_encrypt=no
18230 fi
18231 rm -f conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 LIBS=$ac_check_lib_save_LIBS
18234 fi
18235 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18236 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18237 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define HAVE_LIBDES425 1
18240 _ACEOF
18241
18242 LIBS="-ldes425 $LIBS"
18243
18244 else
18245
18246 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18247 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18248 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-ldes $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259
18260 /* Override any gcc2 internal prototype to avoid an error. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 /* We use char because int might match the return type of a gcc2
18265 builtin and then its argument prototype would still apply. */
18266 char des_cbc_encrypt ();
18267 int
18268 main ()
18269 {
18270 des_cbc_encrypt ();
18271 ;
18272 return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_des_des_cbc_encrypt=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 ac_cv_lib_des_des_cbc_encrypt=no
18303 fi
18304 rm -f conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18307 fi
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18309 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18310 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_LIBDES 1
18313 _ACEOF
18314
18315 LIBS="-ldes $LIBS"
18316
18317 fi
18318
18319 fi
18320
18321
18322 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18323 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18324 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327 ac_check_lib_save_LIBS=$LIBS
18328 LIBS="-lkrb4 $LIBS"
18329 cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h. */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335
18336 /* Override any gcc2 internal prototype to avoid an error. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 /* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
18342 char krb_get_cred ();
18343 int
18344 main ()
18345 {
18346 krb_get_cred ();
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 rm -f conftest.$ac_objext conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest$ac_exeext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_lib_krb4_krb_get_cred=yes
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 ac_cv_lib_krb4_krb_get_cred=no
18379 fi
18380 rm -f conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18383 fi
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18385 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18386 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_LIBKRB4 1
18389 _ACEOF
18390
18391 LIBS="-lkrb4 $LIBS"
18392
18393 else
18394
18395 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18396 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18397 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400 ac_check_lib_save_LIBS=$LIBS
18401 LIBS="-lkrb $LIBS"
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
18409 /* Override any gcc2 internal prototype to avoid an error. */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 /* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18415 char krb_get_cred ();
18416 int
18417 main ()
18418 {
18419 krb_get_cred ();
18420 ;
18421 return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426 (eval $ac_link) 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -z "$ac_c_werror_flag"
18434 || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_cv_lib_krb_krb_get_cred=yes
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18450
18451 ac_cv_lib_krb_krb_get_cred=no
18452 fi
18453 rm -f conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18456 fi
18457 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18458 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18459 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define HAVE_LIBKRB 1
18462 _ACEOF
18463
18464 LIBS="-lkrb $LIBS"
18465
18466 fi
18467
18468 fi
18469
18470 fi
18471
18472 if test "${with_kerberos5+set}" = set; then
18473
18474 for ac_header in krb5.h
18475 do
18476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18478 echo "$as_me:$LINENO: checking for $ac_header" >&5
18479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 fi
18483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18485 else
18486 # Is the header compilable?
18487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 $ac_includes_default
18496 #include <$ac_header>
18497 _ACEOF
18498 rm -f conftest.$ac_objext
18499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18500 (eval $ac_compile) 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_c_werror_flag"
18508 || test ! -s conftest.err'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; } &&
18514 { ac_try='test -s conftest.$ac_objext'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_header_compiler=yes
18521 else
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525 ac_header_compiler=no
18526 fi
18527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18529 echo "${ECHO_T}$ac_header_compiler" >&6
18530
18531 # Is the header present?
18532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h. */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 #include <$ac_header>
18541 _ACEOF
18542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } >/dev/null; then
18550 if test -s conftest.err; then
18551 ac_cpp_err=$ac_c_preproc_warn_flag
18552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18553 else
18554 ac_cpp_err=
18555 fi
18556 else
18557 ac_cpp_err=yes
18558 fi
18559 if test -z "$ac_cpp_err"; then
18560 ac_header_preproc=yes
18561 else
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ac_header_preproc=no
18566 fi
18567 rm -f conftest.err conftest.$ac_ext
18568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18569 echo "${ECHO_T}$ac_header_preproc" >&6
18570
18571 # So? What about this header?
18572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18573 yes:no: )
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18578 ac_header_preproc=yes
18579 ;;
18580 no:yes:* )
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18593 (
18594 cat <<\_ASBOX
18595 ## ------------------------------------------ ##
18596 ## Report this to the AC_PACKAGE_NAME lists. ##
18597 ## ------------------------------------------ ##
18598 _ASBOX
18599 ) |
18600 sed "s/^/$as_me: WARNING: /" >&2
18601 ;;
18602 esac
18603 echo "$as_me:$LINENO: checking for $ac_header" >&5
18604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608 eval "$as_ac_Header=\$ac_header_preproc"
18609 fi
18610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18612
18613 fi
18614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18615 cat >>confdefs.h <<_ACEOF
18616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18617 _ACEOF
18618
18619 fi
18620
18621 done
18622
18623 else
18624
18625 for ac_header in des.h
18626 do
18627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo "$as_me:$LINENO: checking for $ac_header" >&5
18630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 fi
18634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18636 else
18637 # Is the header compilable?
18638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18646 $ac_includes_default
18647 #include <$ac_header>
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651 (eval $ac_compile) 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_c_werror_flag"
18659 || test ! -s conftest.err'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler=yes
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_header_compiler=no
18677 fi
18678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18681
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h. */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 #include <$ac_header>
18692 _ACEOF
18693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } >/dev/null; then
18701 if test -s conftest.err; then
18702 ac_cpp_err=$ac_c_preproc_warn_flag
18703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18704 else
18705 ac_cpp_err=
18706 fi
18707 else
18708 ac_cpp_err=yes
18709 fi
18710 if test -z "$ac_cpp_err"; then
18711 ac_header_preproc=yes
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_header_preproc=no
18717 fi
18718 rm -f conftest.err conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18721
18722 # So? What about this header?
18723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18724 yes:no: )
18725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18729 ac_header_preproc=yes
18730 ;;
18731 no:yes:* )
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18744 (
18745 cat <<\_ASBOX
18746 ## ------------------------------------------ ##
18747 ## Report this to the AC_PACKAGE_NAME lists. ##
18748 ## ------------------------------------------ ##
18749 _ASBOX
18750 ) |
18751 sed "s/^/$as_me: WARNING: /" >&2
18752 ;;
18753 esac
18754 echo "$as_me:$LINENO: checking for $ac_header" >&5
18755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759 eval "$as_ac_Header=\$ac_header_preproc"
18760 fi
18761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18763
18764 fi
18765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18768 _ACEOF
18769
18770 else
18771
18772 for ac_header in kerberosIV/des.h
18773 do
18774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo "$as_me:$LINENO: checking for $ac_header" >&5
18777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 fi
18781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18783 else
18784 # Is the header compilable?
18785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18794 #include <$ac_header>
18795 _ACEOF
18796 rm -f conftest.$ac_objext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_header_compiler=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823 ac_header_compiler=no
18824 fi
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6
18828
18829 # Is the header present?
18830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <$ac_header>
18839 _ACEOF
18840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } >/dev/null; then
18848 if test -s conftest.err; then
18849 ac_cpp_err=$ac_c_preproc_warn_flag
18850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18851 else
18852 ac_cpp_err=
18853 fi
18854 else
18855 ac_cpp_err=yes
18856 fi
18857 if test -z "$ac_cpp_err"; then
18858 ac_header_preproc=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_header_preproc=no
18864 fi
18865 rm -f conftest.err conftest.$ac_ext
18866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6
18868
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 yes:no: )
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc=yes
18877 ;;
18878 no:yes:* )
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18891 (
18892 cat <<\_ASBOX
18893 ## ------------------------------------------ ##
18894 ## Report this to the AC_PACKAGE_NAME lists. ##
18895 ## ------------------------------------------ ##
18896 _ASBOX
18897 ) |
18898 sed "s/^/$as_me: WARNING: /" >&2
18899 ;;
18900 esac
18901 echo "$as_me:$LINENO: checking for $ac_header" >&5
18902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 eval "$as_ac_Header=\$ac_header_preproc"
18907 fi
18908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18910
18911 fi
18912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18913 cat >>confdefs.h <<_ACEOF
18914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18915 _ACEOF
18916
18917 else
18918
18919 for ac_header in kerberos/des.h
18920 do
18921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923 echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 fi
18928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18930 else
18931 # Is the header compilable?
18932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 #include <$ac_header>
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_header_compiler=yes
18966 else
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_header_compiler=no
18971 fi
18972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18974 echo "${ECHO_T}$ac_header_compiler" >&6
18975
18976 # Is the header present?
18977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 #include <$ac_header>
18986 _ACEOF
18987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } >/dev/null; then
18995 if test -s conftest.err; then
18996 ac_cpp_err=$ac_c_preproc_warn_flag
18997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18998 else
18999 ac_cpp_err=
19000 fi
19001 else
19002 ac_cpp_err=yes
19003 fi
19004 if test -z "$ac_cpp_err"; then
19005 ac_header_preproc=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ac_header_preproc=no
19011 fi
19012 rm -f conftest.err conftest.$ac_ext
19013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19014 echo "${ECHO_T}$ac_header_preproc" >&6
19015
19016 # So? What about this header?
19017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19018 yes:no: )
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19023 ac_header_preproc=yes
19024 ;;
19025 no:yes:* )
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19038 (
19039 cat <<\_ASBOX
19040 ## ------------------------------------------ ##
19041 ## Report this to the AC_PACKAGE_NAME lists. ##
19042 ## ------------------------------------------ ##
19043 _ASBOX
19044 ) |
19045 sed "s/^/$as_me: WARNING: /" >&2
19046 ;;
19047 esac
19048 echo "$as_me:$LINENO: checking for $ac_header" >&5
19049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053 eval "$as_ac_Header=\$ac_header_preproc"
19054 fi
19055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19057
19058 fi
19059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19060 cat >>confdefs.h <<_ACEOF
19061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19062 _ACEOF
19063
19064 fi
19065
19066 done
19067
19068 fi
19069
19070 done
19071
19072 fi
19073
19074 done
19075
19076
19077 for ac_header in krb.h
19078 do
19079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19081 echo "$as_me:$LINENO: checking for $ac_header" >&5
19082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 fi
19086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19088 else
19089 # Is the header compilable?
19090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19092 cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h. */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 $ac_includes_default
19099 #include <$ac_header>
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103 (eval $ac_compile) 2>conftest.er1
19104 ac_status=$?
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_c_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest.$ac_objext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_header_compiler=yes
19124 else
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_header_compiler=no
19129 fi
19130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19132 echo "${ECHO_T}$ac_header_compiler" >&6
19133
19134 # Is the header present?
19135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <$ac_header>
19144 _ACEOF
19145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } >/dev/null; then
19153 if test -s conftest.err; then
19154 ac_cpp_err=$ac_c_preproc_warn_flag
19155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19156 else
19157 ac_cpp_err=
19158 fi
19159 else
19160 ac_cpp_err=yes
19161 fi
19162 if test -z "$ac_cpp_err"; then
19163 ac_header_preproc=yes
19164 else
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168 ac_header_preproc=no
19169 fi
19170 rm -f conftest.err conftest.$ac_ext
19171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19172 echo "${ECHO_T}$ac_header_preproc" >&6
19173
19174 # So? What about this header?
19175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19176 yes:no: )
19177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19181 ac_header_preproc=yes
19182 ;;
19183 no:yes:* )
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19196 (
19197 cat <<\_ASBOX
19198 ## ------------------------------------------ ##
19199 ## Report this to the AC_PACKAGE_NAME lists. ##
19200 ## ------------------------------------------ ##
19201 _ASBOX
19202 ) |
19203 sed "s/^/$as_me: WARNING: /" >&2
19204 ;;
19205 esac
19206 echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211 eval "$as_ac_Header=\$ac_header_preproc"
19212 fi
19213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19215
19216 fi
19217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19220 _ACEOF
19221
19222 else
19223
19224 for ac_header in kerberosIV/krb.h
19225 do
19226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo "$as_me:$LINENO: checking for $ac_header" >&5
19229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 fi
19233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19235 else
19236 # Is the header compilable?
19237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19246 #include <$ac_header>
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -z "$ac_c_werror_flag"
19258 || test ! -s conftest.err'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_header_compiler=yes
19271 else
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_header_compiler=no
19276 fi
19277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19279 echo "${ECHO_T}$ac_header_compiler" >&6
19280
19281 # Is the header present?
19282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <$ac_header>
19291 _ACEOF
19292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } >/dev/null; then
19300 if test -s conftest.err; then
19301 ac_cpp_err=$ac_c_preproc_warn_flag
19302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19303 else
19304 ac_cpp_err=
19305 fi
19306 else
19307 ac_cpp_err=yes
19308 fi
19309 if test -z "$ac_cpp_err"; then
19310 ac_header_preproc=yes
19311 else
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_header_preproc=no
19316 fi
19317 rm -f conftest.err conftest.$ac_ext
19318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19319 echo "${ECHO_T}$ac_header_preproc" >&6
19320
19321 # So? What about this header?
19322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19323 yes:no: )
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19328 ac_header_preproc=yes
19329 ;;
19330 no:yes:* )
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19343 (
19344 cat <<\_ASBOX
19345 ## ------------------------------------------ ##
19346 ## Report this to the AC_PACKAGE_NAME lists. ##
19347 ## ------------------------------------------ ##
19348 _ASBOX
19349 ) |
19350 sed "s/^/$as_me: WARNING: /" >&2
19351 ;;
19352 esac
19353 echo "$as_me:$LINENO: checking for $ac_header" >&5
19354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358 eval "$as_ac_Header=\$ac_header_preproc"
19359 fi
19360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19362
19363 fi
19364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19367 _ACEOF
19368
19369 else
19370
19371 for ac_header in kerberos/krb.h
19372 do
19373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo "$as_me:$LINENO: checking for $ac_header" >&5
19376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 fi
19380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 else
19383 # Is the header compilable?
19384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19393 #include <$ac_header>
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19397 (eval $ac_compile) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_header_compiler=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_header_compiler=no
19423 fi
19424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19426 echo "${ECHO_T}$ac_header_compiler" >&6
19427
19428 # Is the header present?
19429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h. */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 #include <$ac_header>
19438 _ACEOF
19439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } >/dev/null; then
19447 if test -s conftest.err; then
19448 ac_cpp_err=$ac_c_preproc_warn_flag
19449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19450 else
19451 ac_cpp_err=
19452 fi
19453 else
19454 ac_cpp_err=yes
19455 fi
19456 if test -z "$ac_cpp_err"; then
19457 ac_header_preproc=yes
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_header_preproc=no
19463 fi
19464 rm -f conftest.err conftest.$ac_ext
19465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19466 echo "${ECHO_T}$ac_header_preproc" >&6
19467
19468 # So? What about this header?
19469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19470 yes:no: )
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19475 ac_header_preproc=yes
19476 ;;
19477 no:yes:* )
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19490 (
19491 cat <<\_ASBOX
19492 ## ------------------------------------------ ##
19493 ## Report this to the AC_PACKAGE_NAME lists. ##
19494 ## ------------------------------------------ ##
19495 _ASBOX
19496 ) |
19497 sed "s/^/$as_me: WARNING: /" >&2
19498 ;;
19499 esac
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505 eval "$as_ac_Header=\$ac_header_preproc"
19506 fi
19507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19509
19510 fi
19511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19512 cat >>confdefs.h <<_ACEOF
19513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19514 _ACEOF
19515
19516 fi
19517
19518 done
19519
19520 fi
19521
19522 done
19523
19524 fi
19525
19526 done
19527
19528 fi
19529
19530 for ac_header in com_err.h
19531 do
19532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo "$as_me:$LINENO: checking for $ac_header" >&5
19535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 fi
19539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19541 else
19542 # Is the header compilable?
19543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19552 #include <$ac_header>
19553 _ACEOF
19554 rm -f conftest.$ac_objext
19555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19556 (eval $ac_compile) 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
19563 { ac_try='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler=yes
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581 ac_header_compiler=no
19582 fi
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585 echo "${ECHO_T}$ac_header_compiler" >&6
19586
19587 # Is the header present?
19588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 #include <$ac_header>
19597 _ACEOF
19598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev/null; then
19606 if test -s conftest.err; then
19607 ac_cpp_err=$ac_c_preproc_warn_flag
19608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19609 else
19610 ac_cpp_err=
19611 fi
19612 else
19613 ac_cpp_err=yes
19614 fi
19615 if test -z "$ac_cpp_err"; then
19616 ac_header_preproc=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_header_preproc=no
19622 fi
19623 rm -f conftest.err conftest.$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625 echo "${ECHO_T}$ac_header_preproc" >&6
19626
19627 # So? What about this header?
19628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19629 yes:no: )
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc=yes
19635 ;;
19636 no:yes:* )
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19649 (
19650 cat <<\_ASBOX
19651 ## ------------------------------------------ ##
19652 ## Report this to the AC_PACKAGE_NAME lists. ##
19653 ## ------------------------------------------ ##
19654 _ASBOX
19655 ) |
19656 sed "s/^/$as_me: WARNING: /" >&2
19657 ;;
19658 esac
19659 echo "$as_me:$LINENO: checking for $ac_header" >&5
19660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664 eval "$as_ac_Header=\$ac_header_preproc"
19665 fi
19666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19668
19669 fi
19670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19671 cat >>confdefs.h <<_ACEOF
19672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19673 _ACEOF
19674
19675 fi
19676
19677 done
19678
19679 fi
19680
19681 # Solaris requires -lintl if you want strerror (which calls dgettext)
19682 # to return localized messages.
19683
19684 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19685 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19686 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lintl $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697
19698 /* Override any gcc2 internal prototype to avoid an error. */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 /* We use char because int might match the return type of a gcc2
19703 builtin and then its argument prototype would still apply. */
19704 char dgettext ();
19705 int
19706 main ()
19707 {
19708 dgettext ();
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_intl_dgettext=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_cv_lib_intl_dgettext=no
19741 fi
19742 rm -f conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19747 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19748 if test $ac_cv_lib_intl_dgettext = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_LIBINTL 1
19751 _ACEOF
19752
19753 LIBS="-lintl $LIBS"
19754
19755 fi
19756
19757
19758 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19759 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19760 if test "${emacs_cv_localtime_cache+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 if test x$ac_cv_func_tzset = xyes; then
19764 if test "$cross_compiling" = yes; then
19765 # If we have tzset, assume the worst when cross-compiling.
19766 emacs_cv_localtime_cache=yes
19767 else
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 #include <time.h>
19775 extern char **environ;
19776 unset_TZ ()
19777 {
19778 char **from, **to;
19779 for (to = from = environ; (*to = *from); from++)
19780 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19781 to++;
19782 }
19783 char TZ_GMT0[] = "TZ=GMT0";
19784 char TZ_PST8[] = "TZ=PST8";
19785 main()
19786 {
19787 time_t now = time ((time_t *) 0);
19788 int hour_GMT0, hour_unset;
19789 if (putenv (TZ_GMT0) != 0)
19790 exit (1);
19791 hour_GMT0 = localtime (&now)->tm_hour;
19792 unset_TZ ();
19793 hour_unset = localtime (&now)->tm_hour;
19794 if (putenv (TZ_PST8) != 0)
19795 exit (1);
19796 if (localtime (&now)->tm_hour == hour_GMT0)
19797 exit (1);
19798 unset_TZ ();
19799 if (localtime (&now)->tm_hour != hour_unset)
19800 exit (1);
19801 exit (0);
19802 }
19803 _ACEOF
19804 rm -f conftest$ac_exeext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19806 (eval $ac_link) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 emacs_cv_localtime_cache=no
19816 else
19817 echo "$as_me: program exited with status $ac_status" >&5
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ( exit $ac_status )
19822 emacs_cv_localtime_cache=yes
19823 fi
19824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19825 fi
19826 else
19827 # If we lack tzset, report that localtime does not cache TZ,
19828 # since we can't invalidate the cache if we don't have tzset.
19829 emacs_cv_localtime_cache=no
19830 fi
19831 fi
19832 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19833 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19834 if test $emacs_cv_localtime_cache = yes; then
19835
19836 cat >>confdefs.h <<\_ACEOF
19837 #define LOCALTIME_CACHE 1
19838 _ACEOF
19839
19840 fi
19841
19842 if test "x$HAVE_TIMEVAL" = xyes; then
19843
19844 for ac_func in gettimeofday
19845 do
19846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19847 echo "$as_me:$LINENO: checking for $ac_func" >&5
19848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19849 if eval "test \"\${$as_ac_var+set}\" = set"; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19860 #define $ac_func innocuous_$ac_func
19861
19862 /* System header to define __stub macros and hopefully few prototypes,
19863 which can conflict with char $ac_func (); below.
19864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19865 <limits.h> exists even on freestanding compilers. */
19866
19867 #ifdef __STDC__
19868 # include <limits.h>
19869 #else
19870 # include <assert.h>
19871 #endif
19872
19873 #undef $ac_func
19874
19875 /* Override any gcc2 internal prototype to avoid an error. */
19876 #ifdef __cplusplus
19877 extern "C"
19878 {
19879 #endif
19880 /* We use char because int might match the return type of a gcc2
19881 builtin and then its argument prototype would still apply. */
19882 char $ac_func ();
19883 /* The GNU C library defines this for functions which it implements
19884 to always fail with ENOSYS. Some functions are actually named
19885 something starting with __ and the normal name is an alias. */
19886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19887 choke me
19888 #else
19889 char (*f) () = $ac_func;
19890 #endif
19891 #ifdef __cplusplus
19892 }
19893 #endif
19894
19895 int
19896 main ()
19897 {
19898 return f != $ac_func;
19899 ;
19900 return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905 (eval $ac_link) 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -z "$ac_c_werror_flag"
19913 || 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_exeext'
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 eval "$as_ac_var=yes"
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 eval "$as_ac_var=no"
19931 fi
19932 rm -f conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934 fi
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19937 if test `eval echo '${'$as_ac_var'}'` = yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19940 _ACEOF
19941
19942 fi
19943 done
19944
19945 if test $ac_cv_func_gettimeofday = yes; then
19946 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19947 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19948 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957
19958 #ifdef TIME_WITH_SYS_TIME
19959 #include <sys/time.h>
19960 #include <time.h>
19961 #else
19962 #ifdef HAVE_SYS_TIME_H
19963 #include <sys/time.h>
19964 #else
19965 #include <time.h>
19966 #endif
19967 #endif
19968 int
19969 main ()
19970 {
19971 struct timeval time;
19972 gettimeofday (&time, 0);
19973 ;
19974 return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try='test -z "$ac_c_werror_flag"
19987 || test ! -s conftest.err'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 emacs_cv_gettimeofday_two_arguments=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 emacs_cv_gettimeofday_two_arguments=no
20005 fi
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20009 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20010 if test $emacs_cv_gettimeofday_two_arguments = no; then
20011
20012 cat >>confdefs.h <<\_ACEOF
20013 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20014 _ACEOF
20015
20016 fi
20017 fi
20018 fi
20019
20020 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <sys/types.h>
20033 #include <$ac_cv_struct_tm>
20034
20035
20036 int
20037 main ()
20038 {
20039 static struct tm ac_aggr;
20040 if (ac_aggr.tm_zone)
20041 return 0;
20042 ;
20043 return 0;
20044 }
20045 _ACEOF
20046 rm -f conftest.$ac_objext
20047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20048 (eval $ac_compile) 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
20055 { ac_try='test -z "$ac_c_werror_flag"
20056 || test ! -s conftest.err'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest.$ac_objext'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_member_struct_tm_tm_zone=yes
20069 else
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
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/types.h>
20080 #include <$ac_cv_struct_tm>
20081
20082
20083 int
20084 main ()
20085 {
20086 static struct tm ac_aggr;
20087 if (sizeof ac_aggr.tm_zone)
20088 return 0;
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
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); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_member_struct_tm_tm_zone=yes
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ac_cv_member_struct_tm_tm_zone=no
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 fi
20124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125 fi
20126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_STRUCT_TM_TM_ZONE 1
20132 _ACEOF
20133
20134
20135 fi
20136
20137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20138
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_TM_ZONE 1
20141 _ACEOF
20142
20143 else
20144 echo "$as_me:$LINENO: checking for tzname" >&5
20145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20146 if test "${ac_cv_var_tzname+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <time.h>
20156 #ifndef tzname /* For SGI. */
20157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20158 #endif
20159
20160 int
20161 main ()
20162 {
20163 atoi(*tzname);
20164 ;
20165 return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_var_tzname=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_var_tzname=no
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20202 if test $ac_cv_var_tzname = yes; then
20203
20204 cat >>confdefs.h <<\_ACEOF
20205 #define HAVE_TZNAME 1
20206 _ACEOF
20207
20208 fi
20209 fi
20210
20211
20212 if test "$ac_cv_func_gettimeofday" = yes; then
20213 echo "$as_me:$LINENO: checking for struct timezone" >&5
20214 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20215 if test "${emacs_cv_struct_timezone+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <sys/time.h>
20225 int
20226 main ()
20227 {
20228 struct timezone tz;
20229 ;
20230 return 0;
20231 }
20232 _ACEOF
20233 rm -f conftest.$ac_objext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20235 (eval $ac_compile) 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 if test "$cross_compiling" = yes; then
20256 emacs_cv_struct_timezone=yes
20257 else
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264
20265 #ifdef TIME_WITH_SYS_TIME
20266 #include <sys/time.h>
20267 #include <time.h>
20268 #else
20269 #ifdef HAVE_SYS_TIME_H
20270 #include <sys/time.h>
20271 #else
20272 #include <time.h>
20273 #endif
20274 #endif
20275 main () {
20276 struct timeval time;
20277 struct timezone dummy;
20278 exit (gettimeofday (&time, &dummy));
20279 }
20280 _ACEOF
20281 rm -f conftest$ac_exeext
20282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20283 (eval $ac_link) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 emacs_cv_struct_timezone=yes
20293 else
20294 echo "$as_me: program exited with status $ac_status" >&5
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ( exit $ac_status )
20299 emacs_cv_struct_timezone=no
20300 fi
20301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 else
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307 emacs_cv_struct_timezone=no
20308 fi
20309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310 fi
20311 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20312 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20313 fi
20314
20315 ok_so_far=yes
20316 echo "$as_me:$LINENO: checking for socket" >&5
20317 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20318 if test "${ac_cv_func_socket+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20329 #define socket innocuous_socket
20330
20331 /* System header to define __stub macros and hopefully few prototypes,
20332 which can conflict with char socket (); below.
20333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20334 <limits.h> exists even on freestanding compilers. */
20335
20336 #ifdef __STDC__
20337 # include <limits.h>
20338 #else
20339 # include <assert.h>
20340 #endif
20341
20342 #undef socket
20343
20344 /* Override any gcc2 internal prototype to avoid an error. */
20345 #ifdef __cplusplus
20346 extern "C"
20347 {
20348 #endif
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20351 char socket ();
20352 /* The GNU C library defines this for functions which it implements
20353 to always fail with ENOSYS. Some functions are actually named
20354 something starting with __ and the normal name is an alias. */
20355 #if defined (__stub_socket) || defined (__stub___socket)
20356 choke me
20357 #else
20358 char (*f) () = socket;
20359 #endif
20360 #ifdef __cplusplus
20361 }
20362 #endif
20363
20364 int
20365 main ()
20366 {
20367 return f != socket;
20368 ;
20369 return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374 (eval $ac_link) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_c_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_cv_func_socket=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ac_cv_func_socket=no
20400 fi
20401 rm -f conftest.err conftest.$ac_objext \
20402 conftest$ac_exeext conftest.$ac_ext
20403 fi
20404 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20405 echo "${ECHO_T}$ac_cv_func_socket" >&6
20406 if test $ac_cv_func_socket = yes; then
20407 :
20408 else
20409 ok_so_far=no
20410 fi
20411
20412 if test $ok_so_far = yes; then
20413 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20414 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20415 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20416 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 fi
20419 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20420 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20421 else
20422 # Is the header compilable?
20423 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20424 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20432 #include <netinet/in.h>
20433 _ACEOF
20434 rm -f conftest.$ac_objext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436 (eval $ac_compile) 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_header_compiler=yes
20457 else
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_header_compiler=no
20462 fi
20463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20465 echo "${ECHO_T}$ac_header_compiler" >&6
20466
20467 # Is the header present?
20468 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20469 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20470 cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h. */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 #include <netinet/in.h>
20477 _ACEOF
20478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } >/dev/null; then
20486 if test -s conftest.err; then
20487 ac_cpp_err=$ac_c_preproc_warn_flag
20488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20489 else
20490 ac_cpp_err=
20491 fi
20492 else
20493 ac_cpp_err=yes
20494 fi
20495 if test -z "$ac_cpp_err"; then
20496 ac_header_preproc=yes
20497 else
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501 ac_header_preproc=no
20502 fi
20503 rm -f conftest.err conftest.$ac_ext
20504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20505 echo "${ECHO_T}$ac_header_preproc" >&6
20506
20507 # So? What about this header?
20508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20509 yes:no: )
20510 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20511 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20513 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20514 ac_header_preproc=yes
20515 ;;
20516 no:yes:* )
20517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20518 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20520 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20522 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20524 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20526 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20528 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20529 (
20530 cat <<\_ASBOX
20531 ## ------------------------------------------ ##
20532 ## Report this to the AC_PACKAGE_NAME lists. ##
20533 ## ------------------------------------------ ##
20534 _ASBOX
20535 ) |
20536 sed "s/^/$as_me: WARNING: /" >&2
20537 ;;
20538 esac
20539 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20540 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20541 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544 ac_cv_header_netinet_in_h=$ac_header_preproc
20545 fi
20546 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20547 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20548
20549 fi
20550 if test $ac_cv_header_netinet_in_h = yes; then
20551 :
20552 else
20553 ok_so_far=no
20554 fi
20555
20556
20557 fi
20558 if test $ok_so_far = yes; then
20559 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20560 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20561 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20562 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 fi
20565 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20566 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20567 else
20568 # Is the header compilable?
20569 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20570 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 $ac_includes_default
20578 #include <arpa/inet.h>
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582 (eval $ac_compile) 2>conftest.er1
20583 ac_status=$?
20584 grep -v '^ *+' conftest.er1 >conftest.err
20585 rm -f conftest.er1
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -z "$ac_c_werror_flag"
20590 || test ! -s conftest.err'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; } &&
20596 { ac_try='test -s conftest.$ac_objext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_header_compiler=yes
20603 else
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 ac_header_compiler=no
20608 fi
20609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20611 echo "${ECHO_T}$ac_header_compiler" >&6
20612
20613 # Is the header present?
20614 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20615 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20616 cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h. */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 #include <arpa/inet.h>
20623 _ACEOF
20624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } >/dev/null; then
20632 if test -s conftest.err; then
20633 ac_cpp_err=$ac_c_preproc_warn_flag
20634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20635 else
20636 ac_cpp_err=
20637 fi
20638 else
20639 ac_cpp_err=yes
20640 fi
20641 if test -z "$ac_cpp_err"; then
20642 ac_header_preproc=yes
20643 else
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ac_header_preproc=no
20648 fi
20649 rm -f conftest.err conftest.$ac_ext
20650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6
20652
20653 # So? What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20655 yes:no: )
20656 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20660 ac_header_preproc=yes
20661 ;;
20662 no:yes:* )
20663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20675 (
20676 cat <<\_ASBOX
20677 ## ------------------------------------------ ##
20678 ## Report this to the AC_PACKAGE_NAME lists. ##
20679 ## ------------------------------------------ ##
20680 _ASBOX
20681 ) |
20682 sed "s/^/$as_me: WARNING: /" >&2
20683 ;;
20684 esac
20685 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20686 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20687 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690 ac_cv_header_arpa_inet_h=$ac_header_preproc
20691 fi
20692 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20693 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20694
20695 fi
20696 if test $ac_cv_header_arpa_inet_h = yes; then
20697 :
20698 else
20699 ok_so_far=no
20700 fi
20701
20702
20703 fi
20704 if test $ok_so_far = yes; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_INET_SOCKETS 1
20708 _ACEOF
20709
20710 fi
20711
20712
20713 for ac_header in sys/ioctl.h
20714 do
20715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 fi
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20724 else
20725 # Is the header compilable?
20726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_header_compiler=yes
20760 else
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ac_header_compiler=no
20765 fi
20766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20768 echo "${ECHO_T}$ac_header_compiler" >&6
20769
20770 # Is the header present?
20771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 #include <$ac_header>
20780 _ACEOF
20781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } >/dev/null; then
20789 if test -s conftest.err; then
20790 ac_cpp_err=$ac_c_preproc_warn_flag
20791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20792 else
20793 ac_cpp_err=
20794 fi
20795 else
20796 ac_cpp_err=yes
20797 fi
20798 if test -z "$ac_cpp_err"; then
20799 ac_header_preproc=yes
20800 else
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_header_preproc=no
20805 fi
20806 rm -f conftest.err conftest.$ac_ext
20807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20808 echo "${ECHO_T}$ac_header_preproc" >&6
20809
20810 # So? What about this header?
20811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20812 yes:no: )
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20817 ac_header_preproc=yes
20818 ;;
20819 no:yes:* )
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20832 (
20833 cat <<\_ASBOX
20834 ## ------------------------------------------ ##
20835 ## Report this to the AC_PACKAGE_NAME lists. ##
20836 ## ------------------------------------------ ##
20837 _ASBOX
20838 ) |
20839 sed "s/^/$as_me: WARNING: /" >&2
20840 ;;
20841 esac
20842 echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 eval "$as_ac_Header=\$ac_header_preproc"
20848 fi
20849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20851
20852 fi
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20856 _ACEOF
20857
20858 fi
20859
20860 done
20861
20862
20863 if test -f /usr/lpp/X11/bin/smt.exp; then
20864
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_AIX_SMT_EXP 1
20867 _ACEOF
20868
20869 fi
20870
20871 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20872 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20873 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20874 echo "$as_me:$LINENO: result: yes" >&5
20875 echo "${ECHO_T}yes" >&6
20876
20877 cat >>confdefs.h <<\_ACEOF
20878 #define HAVE_DEV_PTMX 1
20879 _ACEOF
20880
20881 else
20882 echo "$as_me:$LINENO: result: no" >&5
20883 echo "${ECHO_T}no" >&6
20884 fi
20885
20886 echo "$as_me:$LINENO: checking for pid_t" >&5
20887 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20888 if test "${ac_cv_type_pid_t+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 $ac_includes_default
20898 int
20899 main ()
20900 {
20901 if ((pid_t *) 0)
20902 return 0;
20903 if (sizeof (pid_t))
20904 return 0;
20905 ;
20906 return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_cv_type_pid_t=yes
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_cv_type_pid_t=no
20937 fi
20938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20939 fi
20940 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20941 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20942 if test $ac_cv_type_pid_t = yes; then
20943 :
20944 else
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define pid_t int
20948 _ACEOF
20949
20950 fi
20951
20952
20953
20954 for ac_header in unistd.h vfork.h
20955 do
20956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20958 echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 fi
20963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20965 else
20966 # Is the header compilable?
20967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 $ac_includes_default
20976 #include <$ac_header>
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_header_compiler=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ac_header_compiler=no
21006 fi
21007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21009 echo "${ECHO_T}$ac_header_compiler" >&6
21010
21011 # Is the header present?
21012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 #include <$ac_header>
21021 _ACEOF
21022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } >/dev/null; then
21030 if test -s conftest.err; then
21031 ac_cpp_err=$ac_c_preproc_warn_flag
21032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21033 else
21034 ac_cpp_err=
21035 fi
21036 else
21037 ac_cpp_err=yes
21038 fi
21039 if test -z "$ac_cpp_err"; then
21040 ac_header_preproc=yes
21041 else
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_header_preproc=no
21046 fi
21047 rm -f conftest.err conftest.$ac_ext
21048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6
21050
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21053 yes:no: )
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21058 ac_header_preproc=yes
21059 ;;
21060 no:yes:* )
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21073 (
21074 cat <<\_ASBOX
21075 ## ------------------------------------------ ##
21076 ## Report this to the AC_PACKAGE_NAME lists. ##
21077 ## ------------------------------------------ ##
21078 _ASBOX
21079 ) |
21080 sed "s/^/$as_me: WARNING: /" >&2
21081 ;;
21082 esac
21083 echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088 eval "$as_ac_Header=\$ac_header_preproc"
21089 fi
21090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21092
21093 fi
21094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21095 cat >>confdefs.h <<_ACEOF
21096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21097 _ACEOF
21098
21099 fi
21100
21101 done
21102
21103
21104
21105 for ac_func in fork vfork
21106 do
21107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21108 echo "$as_me:$LINENO: checking for $ac_func" >&5
21109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21110 if eval "test \"\${$as_ac_var+set}\" = set"; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21121 #define $ac_func innocuous_$ac_func
21122
21123 /* System header to define __stub macros and hopefully few prototypes,
21124 which can conflict with char $ac_func (); below.
21125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21126 <limits.h> exists even on freestanding compilers. */
21127
21128 #ifdef __STDC__
21129 # include <limits.h>
21130 #else
21131 # include <assert.h>
21132 #endif
21133
21134 #undef $ac_func
21135
21136 /* Override any gcc2 internal prototype to avoid an error. */
21137 #ifdef __cplusplus
21138 extern "C"
21139 {
21140 #endif
21141 /* We use char because int might match the return type of a gcc2
21142 builtin and then its argument prototype would still apply. */
21143 char $ac_func ();
21144 /* The GNU C library defines this for functions which it implements
21145 to always fail with ENOSYS. Some functions are actually named
21146 something starting with __ and the normal name is an alias. */
21147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21148 choke me
21149 #else
21150 char (*f) () = $ac_func;
21151 #endif
21152 #ifdef __cplusplus
21153 }
21154 #endif
21155
21156 int
21157 main ()
21158 {
21159 return f != $ac_func;
21160 ;
21161 return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext conftest$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166 (eval $ac_link) 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest$ac_exeext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 eval "$as_ac_var=yes"
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 eval "$as_ac_var=no"
21192 fi
21193 rm -f conftest.err conftest.$ac_objext \
21194 conftest$ac_exeext conftest.$ac_ext
21195 fi
21196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21198 if test `eval echo '${'$as_ac_var'}'` = yes; then
21199 cat >>confdefs.h <<_ACEOF
21200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21201 _ACEOF
21202
21203 fi
21204 done
21205
21206 if test "x$ac_cv_func_fork" = xyes; then
21207 echo "$as_me:$LINENO: checking for working fork" >&5
21208 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21209 if test "${ac_cv_func_fork_works+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212 if test "$cross_compiling" = yes; then
21213 ac_cv_func_fork_works=cross
21214 else
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* By Ruediger Kuhlmann. */
21217 #include <sys/types.h>
21218 #if HAVE_UNISTD_H
21219 # include <unistd.h>
21220 #endif
21221 /* Some systems only have a dummy stub for fork() */
21222 int main ()
21223 {
21224 if (fork() < 0)
21225 exit (1);
21226 exit (0);
21227 }
21228 _ACEOF
21229 rm -f conftest$ac_exeext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21231 (eval $ac_link) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_func_fork_works=yes
21241 else
21242 echo "$as_me: program exited with status $ac_status" >&5
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ( exit $ac_status )
21247 ac_cv_func_fork_works=no
21248 fi
21249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21250 fi
21251 fi
21252 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21253 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21254
21255 else
21256 ac_cv_func_fork_works=$ac_cv_func_fork
21257 fi
21258 if test "x$ac_cv_func_fork_works" = xcross; then
21259 case $host in
21260 *-*-amigaos* | *-*-msdosdjgpp*)
21261 # Override, as these systems have only a dummy fork() stub
21262 ac_cv_func_fork_works=no
21263 ;;
21264 *)
21265 ac_cv_func_fork_works=yes
21266 ;;
21267 esac
21268 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21269 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21270 fi
21271 ac_cv_func_vfork_works=$ac_cv_func_vfork
21272 if test "x$ac_cv_func_vfork" = xyes; then
21273 echo "$as_me:$LINENO: checking for working vfork" >&5
21274 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21275 if test "${ac_cv_func_vfork_works+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278 if test "$cross_compiling" = yes; then
21279 ac_cv_func_vfork_works=cross
21280 else
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h. */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 /* Thanks to Paul Eggert for this test. */
21288 #include <stdio.h>
21289 #include <stdlib.h>
21290 #include <sys/types.h>
21291 #include <sys/stat.h>
21292 #include <sys/wait.h>
21293 #if HAVE_UNISTD_H
21294 # include <unistd.h>
21295 #endif
21296 #if HAVE_VFORK_H
21297 # include <vfork.h>
21298 #endif
21299 /* On some sparc systems, changes by the child to local and incoming
21300 argument registers are propagated back to the parent. The compiler
21301 is told about this with #include <vfork.h>, but some compilers
21302 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21303 static variable whose address is put into a register that is
21304 clobbered by the vfork. */
21305 static void
21306 #ifdef __cplusplus
21307 sparc_address_test (int arg)
21308 # else
21309 sparc_address_test (arg) int arg;
21310 #endif
21311 {
21312 static pid_t child;
21313 if (!child) {
21314 child = vfork ();
21315 if (child < 0) {
21316 perror ("vfork");
21317 _exit(2);
21318 }
21319 if (!child) {
21320 arg = getpid();
21321 write(-1, "", 0);
21322 _exit (arg);
21323 }
21324 }
21325 }
21326
21327 int
21328 main ()
21329 {
21330 pid_t parent = getpid ();
21331 pid_t child;
21332
21333 sparc_address_test (0);
21334
21335 child = vfork ();
21336
21337 if (child == 0) {
21338 /* Here is another test for sparc vfork register problems. This
21339 test uses lots of local variables, at least as many local
21340 variables as main has allocated so far including compiler
21341 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21342 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21343 reuse the register of parent for one of the local variables,
21344 since it will think that parent can't possibly be used any more
21345 in this routine. Assigning to the local variable will thus
21346 munge parent in the parent process. */
21347 pid_t
21348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21350 /* Convince the compiler that p..p7 are live; otherwise, it might
21351 use the same hardware register for all 8 local variables. */
21352 if (p != p1 || p != p2 || p != p3 || p != p4
21353 || p != p5 || p != p6 || p != p7)
21354 _exit(1);
21355
21356 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21357 from child file descriptors. If the child closes a descriptor
21358 before it execs or exits, this munges the parent's descriptor
21359 as well. Test for this by closing stdout in the child. */
21360 _exit(close(fileno(stdout)) != 0);
21361 } else {
21362 int status;
21363 struct stat st;
21364
21365 while (wait(&status) != child)
21366 ;
21367 exit(
21368 /* Was there some problem with vforking? */
21369 child < 0
21370
21371 /* Did the child fail? (This shouldn't happen.) */
21372 || status
21373
21374 /* Did the vfork/compiler bug occur? */
21375 || parent != getpid()
21376
21377 /* Did the file descriptor bug occur? */
21378 || fstat(fileno(stdout), &st) != 0
21379 );
21380 }
21381 }
21382 _ACEOF
21383 rm -f conftest$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385 (eval $ac_link) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_func_vfork_works=yes
21395 else
21396 echo "$as_me: program exited with status $ac_status" >&5
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ( exit $ac_status )
21401 ac_cv_func_vfork_works=no
21402 fi
21403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21404 fi
21405 fi
21406 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21407 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21408
21409 fi;
21410 if test "x$ac_cv_func_fork_works" = xcross; then
21411 ac_cv_func_vfork_works=$ac_cv_func_vfork
21412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21413 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21414 fi
21415
21416 if test "x$ac_cv_func_vfork_works" = xyes; then
21417
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_WORKING_VFORK 1
21420 _ACEOF
21421
21422 else
21423
21424 cat >>confdefs.h <<\_ACEOF
21425 #define vfork fork
21426 _ACEOF
21427
21428 fi
21429 if test "x$ac_cv_func_fork_works" = xyes; then
21430
21431 cat >>confdefs.h <<\_ACEOF
21432 #define HAVE_WORKING_FORK 1
21433 _ACEOF
21434
21435 fi
21436
21437
21438 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21439 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21440 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443 cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h. */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 #include <langinfo.h>
21450 int
21451 main ()
21452 {
21453 char* cs = nl_langinfo(CODESET);
21454 ;
21455 return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 emacs_cv_langinfo_codeset=yes
21481 else
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 emacs_cv_langinfo_codeset=no
21486 fi
21487 rm -f conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21489
21490 fi
21491 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21492 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21493 if test $emacs_cv_langinfo_codeset = yes; then
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_LANGINFO_CODESET 1
21497 _ACEOF
21498
21499 fi
21500
21501 echo "$as_me:$LINENO: checking for size_t" >&5
21502 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21503 if test "${ac_cv_type_size_t+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 $ac_includes_default
21513 int
21514 main ()
21515 {
21516 if ((size_t *) 0)
21517 return 0;
21518 if (sizeof (size_t))
21519 return 0;
21520 ;
21521 return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21527 ac_status=$?
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_type_size_t=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ac_cv_type_size_t=no
21552 fi
21553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21554 fi
21555 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21556 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21557 if test $ac_cv_type_size_t = yes; then
21558
21559 cat >>confdefs.h <<_ACEOF
21560 #define HAVE_SIZE_T 1
21561 _ACEOF
21562
21563
21564 fi
21565
21566
21567 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21568 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21569 if test "${ac_cv_type_mbstate_t+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572 cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h. */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 $ac_includes_default
21579 # include <wchar.h>
21580 int
21581 main ()
21582 {
21583 mbstate_t x; return sizeof x;
21584 ;
21585 return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21590 (eval $ac_compile) 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try='test -z "$ac_c_werror_flag"
21598 || test ! -s conftest.err'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; } &&
21604 { ac_try='test -s conftest.$ac_objext'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 ac_cv_type_mbstate_t=yes
21611 else
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615 ac_cv_type_mbstate_t=no
21616 fi
21617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21618 fi
21619 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21620 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21621 if test $ac_cv_type_mbstate_t = yes; then
21622
21623 cat >>confdefs.h <<\_ACEOF
21624 #define HAVE_MBSTATE_T 1
21625 _ACEOF
21626
21627 else
21628
21629 cat >>confdefs.h <<\_ACEOF
21630 #define mbstate_t int
21631 _ACEOF
21632
21633 fi
21634
21635 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21636 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21637 if test "${emacs_cv_c_restrict+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 void fred (int *restrict x);
21647 int
21648 main ()
21649 {
21650
21651 ;
21652 return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657 (eval $ac_compile) 2>conftest.er1
21658 ac_status=$?
21659 grep -v '^ *+' conftest.er1 >conftest.err
21660 rm -f conftest.er1
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -z "$ac_c_werror_flag"
21665 || test ! -s conftest.err'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try='test -s conftest.$ac_objext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 emacs_cv_c_restrict=yes
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 void fred (int *__restrict x);
21689 int
21690 main ()
21691 {
21692
21693 ;
21694 return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21699 (eval $ac_compile) 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try='test -z "$ac_c_werror_flag"
21707 || test ! -s conftest.err'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try='test -s conftest.$ac_objext'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 emacs_cv_c_restrict=__restrict
21720 else
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 emacs_cv_c_restrict=no
21725 fi
21726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21727 fi
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729 fi
21730 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21731 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21732 case "$emacs_cv_c_restrict" in
21733 yes) emacs_restrict=restrict;;
21734 no) emacs_restrict="";;
21735 *) emacs_restrict="$emacs_cv_c_restrict";;
21736 esac
21737 if test "$emacs_restrict" != __restrict; then
21738
21739 cat >>confdefs.h <<_ACEOF
21740 #define __restrict $emacs_restrict
21741 _ACEOF
21742
21743 fi
21744
21745 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21746 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21747 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 void fred (int x[__restrict]);
21757 int
21758 main ()
21759 {
21760
21761 ;
21762 return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest.$ac_objext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_c_werror_flag"
21775 || test ! -s conftest.err'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest.$ac_objext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 emacs_cv_c_restrict_arr=yes
21788 else
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 emacs_cv_c_restrict_arr=no
21793 fi
21794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21795 fi
21796 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21797 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21798 if test "$emacs_cv_c_restrict_arr" = yes; then
21799
21800 cat >>confdefs.h <<\_ACEOF
21801 #define __restrict_arr __restrict
21802 _ACEOF
21803
21804 fi
21805
21806
21807
21808 # Set up the CFLAGS for real compilation, so we can substitute it.
21809 CFLAGS="$REAL_CFLAGS"
21810 CPPFLAGS="$REAL_CPPFLAGS"
21811
21812 #### Find out which version of Emacs this is.
21813 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21814 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21815 if test x"${version}" = x; then
21816 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21817 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21818 { (exit 1); exit 1; }; }
21819 fi
21820
21821 ### Specify what sort of things we'll be editing into Makefile and config.h.
21822 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858 cat >>confdefs.h <<_ACEOF
21859 #define EMACS_CONFIGURATION "${canonical}"
21860 _ACEOF
21861
21862
21863 cat >>confdefs.h <<_ACEOF
21864 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21865 _ACEOF
21866
21867
21868 cat >>confdefs.h <<_ACEOF
21869 #define config_machfile "${machfile}"
21870 _ACEOF
21871
21872
21873 cat >>confdefs.h <<_ACEOF
21874 #define config_opsysfile "${opsysfile}"
21875 _ACEOF
21876
21877
21878 cat >>confdefs.h <<_ACEOF
21879 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21880 _ACEOF
21881
21882
21883 cat >>confdefs.h <<_ACEOF
21884 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21885 _ACEOF
21886
21887
21888 cat >>confdefs.h <<_ACEOF
21889 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21890 _ACEOF
21891
21892
21893 cat >>confdefs.h <<_ACEOF
21894 #define UNEXEC_SRC ${UNEXEC_SRC}
21895 _ACEOF
21896
21897
21898 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21899
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_X_WINDOWS 1
21902 _ACEOF
21903
21904 fi
21905 if test "${USE_X_TOOLKIT}" != "none" ; then
21906
21907 cat >>confdefs.h <<\_ACEOF
21908 #define USE_X_TOOLKIT 1
21909 _ACEOF
21910
21911 fi
21912 if test "${HAVE_X11}" = "yes" ; then
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_X11 1
21916 _ACEOF
21917
21918 fi
21919 if test "${HAVE_XFREE386}" = "yes" ; then
21920
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_XFREE386 1
21923 _ACEOF
21924
21925 fi
21926 if test "${HAVE_MENUS}" = "yes" ; then
21927
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_MENUS 1
21930 _ACEOF
21931
21932 fi
21933 if test "${GNU_MALLOC}" = "yes" ; then
21934
21935 cat >>confdefs.h <<\_ACEOF
21936 #define GNU_MALLOC 1
21937 _ACEOF
21938
21939 fi
21940 if test "${REL_ALLOC}" = "yes" ; then
21941
21942 cat >>confdefs.h <<\_ACEOF
21943 #define REL_ALLOC 1
21944 _ACEOF
21945
21946 fi
21947
21948
21949
21950
21951
21952 #### Report on what we decided to do.
21953 #### Report GTK as a toolkit, even if it doesn't use Xt.
21954 #### It makes printing result more understandable as using GTK sets
21955 #### toolkit_scroll_bars to yes by default.
21956 if test "${HAVE_GTK}" = "yes"; then
21957 USE_X_TOOLKIT=GTK
21958 fi
21959
21960 echo "
21961 Configured for \`${canonical}'.
21962
21963 Where should the build process find the source code? ${srcdir}
21964 What operating system and machine description files should Emacs use?
21965 \`${opsysfile}' and \`${machfile}'
21966 What compiler should emacs be built with? ${CC} ${CFLAGS}
21967 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21968 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21969 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21970 What window system should Emacs use? ${window_system}
21971 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21972
21973 if test -n "${x_includes}"; then
21974 echo " Where do we find X Windows header files? ${x_includes}"
21975 else
21976 echo " Where do we find X Windows header files? Standard dirs"
21977 fi
21978 if test -n "${x_libraries}"; then
21979 echo " Where do we find X Windows libraries? ${x_libraries}"
21980 else
21981 echo " Where do we find X Windows libraries? Standard dirs"
21982 fi
21983
21984 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21985 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21986 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21987 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21988 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21989 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21990 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21991 echo
21992
21993 if test $USE_XASSERTS = yes; then
21994 echo " Compiling with asserts turned on."
21995 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21996 echo
21997 fi
21998
21999
22000
22001 # Remove any trailing slashes in these variables.
22002 test "${prefix}" != NONE &&
22003 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22004 test "${exec_prefix}" != NONE &&
22005 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22006
22007 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22008 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22009 ## from Makefile.c can correctly provide the arg `-traditional' to the
22010 ## C preprocessor.
22011
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 yes..yes
22019 _ACEOF
22020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22021 $EGREP "yes..yes" >/dev/null 2>&1; then
22022 CPP_NEED_TRADITIONAL=no
22023 else
22024 CPP_NEED_TRADITIONAL=yes
22025 fi
22026 rm -f conftest*
22027
22028
22029 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"
22030 ac_config_commands="$ac_config_commands default"
22031 cat >confcache <<\_ACEOF
22032 # This file is a shell script that caches the results of configure
22033 # tests run on this system so they can be shared between configure
22034 # scripts and configure runs, see configure's option --config-cache.
22035 # It is not useful on other systems. If it contains results you don't
22036 # want to keep, you may remove or edit it.
22037 #
22038 # config.status only pays attention to the cache file if you give it
22039 # the --recheck option to rerun configure.
22040 #
22041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22043 # following values.
22044
22045 _ACEOF
22046
22047 # The following way of writing the cache mishandles newlines in values,
22048 # but we know of no workaround that is simple, portable, and efficient.
22049 # So, don't put newlines in cache variables' values.
22050 # Ultrix sh set writes to stderr and can't be redirected directly,
22051 # and sets the high bit in the cache file unless we assign to the vars.
22052 {
22053 (set) 2>&1 |
22054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22055 *ac_space=\ *)
22056 # `set' does not quote correctly, so add quotes (double-quote
22057 # substitution turns \\\\ into \\, and sed turns \\ into \).
22058 sed -n \
22059 "s/'/'\\\\''/g;
22060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22061 ;;
22062 *)
22063 # `set' quotes correctly as required by POSIX, so do not add quotes.
22064 sed -n \
22065 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22066 ;;
22067 esac;
22068 } |
22069 sed '
22070 t clear
22071 : clear
22072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22073 t end
22074 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22075 : end' >>confcache
22076 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22077 if test -w $cache_file; then
22078 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22079 cat confcache >$cache_file
22080 else
22081 echo "not updating unwritable cache $cache_file"
22082 fi
22083 fi
22084 rm -f confcache
22085
22086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22087 # Let make expand exec_prefix.
22088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22089
22090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22092 # trailing colons and then remove the whole line if VPATH becomes empty
22093 # (actually we leave an empty line to preserve line numbers).
22094 if test "x$srcdir" = x.; then
22095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22096 s/:*\$(srcdir):*/:/;
22097 s/:*\${srcdir}:*/:/;
22098 s/:*@srcdir@:*/:/;
22099 s/^\([^=]*=[ ]*\):*/\1/;
22100 s/:*$//;
22101 s/^[^=]*=[ ]*$//;
22102 }'
22103 fi
22104
22105 DEFS=-DHAVE_CONFIG_H
22106
22107 ac_libobjs=
22108 ac_ltlibobjs=
22109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22110 # 1. Remove the extension, and $U if already installed.
22111 ac_i=`echo "$ac_i" |
22112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22113 # 2. Add them.
22114 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22115 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22116 done
22117 LIBOBJS=$ac_libobjs
22118
22119 LTLIBOBJS=$ac_ltlibobjs
22120
22121
22122
22123 : ${CONFIG_STATUS=./config.status}
22124 ac_clean_files_save=$ac_clean_files
22125 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22126 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22127 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22128 cat >$CONFIG_STATUS <<_ACEOF
22129 #! $SHELL
22130 # Generated by $as_me.
22131 # Run this file to recreate the current configuration.
22132 # Compiler output produced by configure, useful for debugging
22133 # configure, is in config.log if it exists.
22134
22135 debug=false
22136 ac_cs_recheck=false
22137 ac_cs_silent=false
22138 SHELL=\${CONFIG_SHELL-$SHELL}
22139 _ACEOF
22140
22141 cat >>$CONFIG_STATUS <<\_ACEOF
22142 ## --------------------- ##
22143 ## M4sh Initialization. ##
22144 ## --------------------- ##
22145
22146 # Be Bourne compatible
22147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22148 emulate sh
22149 NULLCMD=:
22150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22151 # is contrary to our usage. Disable this feature.
22152 alias -g '${1+"$@"}'='"$@"'
22153 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22154 set -o posix
22155 fi
22156 DUALCASE=1; export DUALCASE # for MKS sh
22157
22158 # Support unset when possible.
22159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22160 as_unset=unset
22161 else
22162 as_unset=false
22163 fi
22164
22165
22166 # Work around bugs in pre-3.0 UWIN ksh.
22167 $as_unset ENV MAIL MAILPATH
22168 PS1='$ '
22169 PS2='> '
22170 PS4='+ '
22171
22172 # NLS nuisances.
22173 for as_var in \
22174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22176 LC_TELEPHONE LC_TIME
22177 do
22178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22179 eval $as_var=C; export $as_var
22180 else
22181 $as_unset $as_var
22182 fi
22183 done
22184
22185 # Required to use basename.
22186 if expr a : '\(a\)' >/dev/null 2>&1; then
22187 as_expr=expr
22188 else
22189 as_expr=false
22190 fi
22191
22192 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22193 as_basename=basename
22194 else
22195 as_basename=false
22196 fi
22197
22198
22199 # Name of the executable.
22200 as_me=`$as_basename "$0" ||
22201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22202 X"$0" : 'X\(//\)$' \| \
22203 X"$0" : 'X\(/\)$' \| \
22204 . : '\(.\)' 2>/dev/null ||
22205 echo X/"$0" |
22206 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22207 /^X\/\(\/\/\)$/{ s//\1/; q; }
22208 /^X\/\(\/\).*/{ s//\1/; q; }
22209 s/.*/./; q'`
22210
22211
22212 # PATH needs CR, and LINENO needs CR and PATH.
22213 # Avoid depending upon Character Ranges.
22214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22217 as_cr_digits='0123456789'
22218 as_cr_alnum=$as_cr_Letters$as_cr_digits
22219
22220 # The user is always right.
22221 if test "${PATH_SEPARATOR+set}" != set; then
22222 echo "#! /bin/sh" >conf$$.sh
22223 echo "exit 0" >>conf$$.sh
22224 chmod +x conf$$.sh
22225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22226 PATH_SEPARATOR=';'
22227 else
22228 PATH_SEPARATOR=:
22229 fi
22230 rm -f conf$$.sh
22231 fi
22232
22233
22234 as_lineno_1=$LINENO
22235 as_lineno_2=$LINENO
22236 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22237 test "x$as_lineno_1" != "x$as_lineno_2" &&
22238 test "x$as_lineno_3" = "x$as_lineno_2" || {
22239 # Find who we are. Look in the path if we contain no path at all
22240 # relative or not.
22241 case $0 in
22242 *[\\/]* ) as_myself=$0 ;;
22243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22244 for as_dir in $PATH
22245 do
22246 IFS=$as_save_IFS
22247 test -z "$as_dir" && as_dir=.
22248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22249 done
22250
22251 ;;
22252 esac
22253 # We did not find ourselves, most probably we were run as `sh COMMAND'
22254 # in which case we are not to be found in the path.
22255 if test "x$as_myself" = x; then
22256 as_myself=$0
22257 fi
22258 if test ! -f "$as_myself"; then
22259 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22260 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22261 { (exit 1); exit 1; }; }
22262 fi
22263 case $CONFIG_SHELL in
22264 '')
22265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22266 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22267 do
22268 IFS=$as_save_IFS
22269 test -z "$as_dir" && as_dir=.
22270 for as_base in sh bash ksh sh5; do
22271 case $as_dir in
22272 /*)
22273 if ("$as_dir/$as_base" -c '
22274 as_lineno_1=$LINENO
22275 as_lineno_2=$LINENO
22276 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22277 test "x$as_lineno_1" != "x$as_lineno_2" &&
22278 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22279 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22280 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22281 CONFIG_SHELL=$as_dir/$as_base
22282 export CONFIG_SHELL
22283 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22284 fi;;
22285 esac
22286 done
22287 done
22288 ;;
22289 esac
22290
22291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22292 # uniformly replaced by the line number. The first 'sed' inserts a
22293 # line-number line before each line; the second 'sed' does the real
22294 # work. The second script uses 'N' to pair each line-number line
22295 # with the numbered line, and appends trailing '-' during
22296 # substitution so that $LINENO is not a special case at line end.
22297 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22298 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22299 sed '=' <$as_myself |
22300 sed '
22301 N
22302 s,$,-,
22303 : loop
22304 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22305 t loop
22306 s,-$,,
22307 s,^['$as_cr_digits']*\n,,
22308 ' >$as_me.lineno &&
22309 chmod +x $as_me.lineno ||
22310 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22311 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22312 { (exit 1); exit 1; }; }
22313
22314 # Don't try to exec as it changes $[0], causing all sort of problems
22315 # (the dirname of $[0] is not the place where we might find the
22316 # original and so on. Autoconf is especially sensible to this).
22317 . ./$as_me.lineno
22318 # Exit status is that of the last command.
22319 exit
22320 }
22321
22322
22323 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22324 *c*,-n*) ECHO_N= ECHO_C='
22325 ' ECHO_T=' ' ;;
22326 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22327 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22328 esac
22329
22330 if expr a : '\(a\)' >/dev/null 2>&1; then
22331 as_expr=expr
22332 else
22333 as_expr=false
22334 fi
22335
22336 rm -f conf$$ conf$$.exe conf$$.file
22337 echo >conf$$.file
22338 if ln -s conf$$.file conf$$ 2>/dev/null; then
22339 # We could just check for DJGPP; but this test a) works b) is more generic
22340 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22341 if test -f conf$$.exe; then
22342 # Don't use ln at all; we don't have any links
22343 as_ln_s='cp -p'
22344 else
22345 as_ln_s='ln -s'
22346 fi
22347 elif ln conf$$.file conf$$ 2>/dev/null; then
22348 as_ln_s=ln
22349 else
22350 as_ln_s='cp -p'
22351 fi
22352 rm -f conf$$ conf$$.exe conf$$.file
22353
22354 if mkdir -p . 2>/dev/null; then
22355 as_mkdir_p=:
22356 else
22357 test -d ./-p && rmdir ./-p
22358 as_mkdir_p=false
22359 fi
22360
22361 as_executable_p="test -f"
22362
22363 # Sed expression to map a string onto a valid CPP name.
22364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22365
22366 # Sed expression to map a string onto a valid variable name.
22367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22368
22369
22370 # IFS
22371 # We need space, tab and new line, in precisely that order.
22372 as_nl='
22373 '
22374 IFS=" $as_nl"
22375
22376 # CDPATH.
22377 $as_unset CDPATH
22378
22379 exec 6>&1
22380
22381 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22382 # report actual input values of CONFIG_FILES etc. instead of their
22383 # values after options handling. Logging --version etc. is OK.
22384 exec 5>>config.log
22385 {
22386 echo
22387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22388 ## Running $as_me. ##
22389 _ASBOX
22390 } >&5
22391 cat >&5 <<_CSEOF
22392
22393 This file was extended by $as_me, which was
22394 generated by GNU Autoconf 2.59. Invocation command line was
22395
22396 CONFIG_FILES = $CONFIG_FILES
22397 CONFIG_HEADERS = $CONFIG_HEADERS
22398 CONFIG_LINKS = $CONFIG_LINKS
22399 CONFIG_COMMANDS = $CONFIG_COMMANDS
22400 $ $0 $@
22401
22402 _CSEOF
22403 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22404 echo >&5
22405 _ACEOF
22406
22407 # Files that config.status was made for.
22408 if test -n "$ac_config_files"; then
22409 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22410 fi
22411
22412 if test -n "$ac_config_headers"; then
22413 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22414 fi
22415
22416 if test -n "$ac_config_links"; then
22417 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22418 fi
22419
22420 if test -n "$ac_config_commands"; then
22421 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22422 fi
22423
22424 cat >>$CONFIG_STATUS <<\_ACEOF
22425
22426 ac_cs_usage="\
22427 \`$as_me' instantiates files from templates according to the
22428 current configuration.
22429
22430 Usage: $0 [OPTIONS] [FILE]...
22431
22432 -h, --help print this help, then exit
22433 -V, --version print version number, then exit
22434 -q, --quiet do not print progress messages
22435 -d, --debug don't remove temporary files
22436 --recheck update $as_me by reconfiguring in the same conditions
22437 --file=FILE[:TEMPLATE]
22438 instantiate the configuration file FILE
22439 --header=FILE[:TEMPLATE]
22440 instantiate the configuration header FILE
22441
22442 Configuration files:
22443 $config_files
22444
22445 Configuration headers:
22446 $config_headers
22447
22448 Configuration commands:
22449 $config_commands
22450
22451 Report bugs to <bug-autoconf@gnu.org>."
22452 _ACEOF
22453
22454 cat >>$CONFIG_STATUS <<_ACEOF
22455 ac_cs_version="\\
22456 config.status
22457 configured by $0, generated by GNU Autoconf 2.59,
22458 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22459
22460 Copyright (C) 2003 Free Software Foundation, Inc.
22461 This config.status script is free software; the Free Software Foundation
22462 gives unlimited permission to copy, distribute and modify it."
22463 srcdir=$srcdir
22464 INSTALL="$INSTALL"
22465 _ACEOF
22466
22467 cat >>$CONFIG_STATUS <<\_ACEOF
22468 # If no file are specified by the user, then we need to provide default
22469 # value. By we need to know if files were specified by the user.
22470 ac_need_defaults=:
22471 while test $# != 0
22472 do
22473 case $1 in
22474 --*=*)
22475 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22476 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22477 ac_shift=:
22478 ;;
22479 -*)
22480 ac_option=$1
22481 ac_optarg=$2
22482 ac_shift=shift
22483 ;;
22484 *) # This is not an option, so the user has probably given explicit
22485 # arguments.
22486 ac_option=$1
22487 ac_need_defaults=false;;
22488 esac
22489
22490 case $ac_option in
22491 # Handling of the options.
22492 _ACEOF
22493 cat >>$CONFIG_STATUS <<\_ACEOF
22494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22495 ac_cs_recheck=: ;;
22496 --version | --vers* | -V )
22497 echo "$ac_cs_version"; exit 0 ;;
22498 --he | --h)
22499 # Conflict between --help and --header
22500 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22501 Try \`$0 --help' for more information." >&5
22502 echo "$as_me: error: ambiguous option: $1
22503 Try \`$0 --help' for more information." >&2;}
22504 { (exit 1); exit 1; }; };;
22505 --help | --hel | -h )
22506 echo "$ac_cs_usage"; exit 0 ;;
22507 --debug | --d* | -d )
22508 debug=: ;;
22509 --file | --fil | --fi | --f )
22510 $ac_shift
22511 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22512 ac_need_defaults=false;;
22513 --header | --heade | --head | --hea )
22514 $ac_shift
22515 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22516 ac_need_defaults=false;;
22517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22519 ac_cs_silent=: ;;
22520
22521 # This is an error.
22522 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22523 Try \`$0 --help' for more information." >&5
22524 echo "$as_me: error: unrecognized option: $1
22525 Try \`$0 --help' for more information." >&2;}
22526 { (exit 1); exit 1; }; } ;;
22527
22528 *) ac_config_targets="$ac_config_targets $1" ;;
22529
22530 esac
22531 shift
22532 done
22533
22534 ac_configure_extra_args=
22535
22536 if $ac_cs_silent; then
22537 exec 6>/dev/null
22538 ac_configure_extra_args="$ac_configure_extra_args --silent"
22539 fi
22540
22541 _ACEOF
22542 cat >>$CONFIG_STATUS <<_ACEOF
22543 if \$ac_cs_recheck; then
22544 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22545 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22546 fi
22547
22548 _ACEOF
22549
22550 cat >>$CONFIG_STATUS <<_ACEOF
22551 #
22552 # INIT-COMMANDS section.
22553 #
22554
22555 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22556
22557 _ACEOF
22558
22559
22560
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 for ac_config_target in $ac_config_targets
22563 do
22564 case "$ac_config_target" in
22565 # Handling of arguments.
22566 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22567 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22568 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22569 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22570 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22571 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22572 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22573 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22574 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22575 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22576 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22577 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22578 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22579 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22580 { (exit 1); exit 1; }; };;
22581 esac
22582 done
22583
22584 # If the user did not use the arguments to specify the items to instantiate,
22585 # then the envvar interface is used. Set only those that are not.
22586 # We use the long form for the default assignment because of an extremely
22587 # bizarre bug on SunOS 4.1.3.
22588 if $ac_need_defaults; then
22589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22592 fi
22593
22594 # Have a temporary directory for convenience. Make it in the build tree
22595 # simply because there is no reason to put it here, and in addition,
22596 # creating and moving files from /tmp can sometimes cause problems.
22597 # Create a temporary directory, and hook for its removal unless debugging.
22598 $debug ||
22599 {
22600 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22601 trap '{ (exit 1); exit 1; }' 1 2 13 15
22602 }
22603
22604 # Create a (secure) tmp directory for tmp files.
22605
22606 {
22607 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22608 test -n "$tmp" && test -d "$tmp"
22609 } ||
22610 {
22611 tmp=./confstat$$-$RANDOM
22612 (umask 077 && mkdir $tmp)
22613 } ||
22614 {
22615 echo "$me: cannot create a temporary directory in ." >&2
22616 { (exit 1); exit 1; }
22617 }
22618
22619 _ACEOF
22620
22621 cat >>$CONFIG_STATUS <<_ACEOF
22622
22623 #
22624 # CONFIG_FILES section.
22625 #
22626
22627 # No need to generate the scripts if there are no CONFIG_FILES.
22628 # This happens for instance when ./config.status config.h
22629 if test -n "\$CONFIG_FILES"; then
22630 # Protect against being on the right side of a sed subst in config.status.
22631 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22632 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22633 s,@SHELL@,$SHELL,;t t
22634 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22635 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22636 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22637 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22638 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22639 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22640 s,@exec_prefix@,$exec_prefix,;t t
22641 s,@prefix@,$prefix,;t t
22642 s,@program_transform_name@,$program_transform_name,;t t
22643 s,@bindir@,$bindir,;t t
22644 s,@sbindir@,$sbindir,;t t
22645 s,@libexecdir@,$libexecdir,;t t
22646 s,@datadir@,$datadir,;t t
22647 s,@sysconfdir@,$sysconfdir,;t t
22648 s,@sharedstatedir@,$sharedstatedir,;t t
22649 s,@localstatedir@,$localstatedir,;t t
22650 s,@libdir@,$libdir,;t t
22651 s,@includedir@,$includedir,;t t
22652 s,@oldincludedir@,$oldincludedir,;t t
22653 s,@infodir@,$infodir,;t t
22654 s,@mandir@,$mandir,;t t
22655 s,@build_alias@,$build_alias,;t t
22656 s,@host_alias@,$host_alias,;t t
22657 s,@target_alias@,$target_alias,;t t
22658 s,@DEFS@,$DEFS,;t t
22659 s,@ECHO_C@,$ECHO_C,;t t
22660 s,@ECHO_N@,$ECHO_N,;t t
22661 s,@ECHO_T@,$ECHO_T,;t t
22662 s,@LIBS@,$LIBS,;t t
22663 s,@MAINT@,$MAINT,;t t
22664 s,@build@,$build,;t t
22665 s,@build_cpu@,$build_cpu,;t t
22666 s,@build_vendor@,$build_vendor,;t t
22667 s,@build_os@,$build_os,;t t
22668 s,@host@,$host,;t t
22669 s,@host_cpu@,$host_cpu,;t t
22670 s,@host_vendor@,$host_vendor,;t t
22671 s,@host_os@,$host_os,;t t
22672 s,@CC@,$CC,;t t
22673 s,@CFLAGS@,$CFLAGS,;t t
22674 s,@LDFLAGS@,$LDFLAGS,;t t
22675 s,@CPPFLAGS@,$CPPFLAGS,;t t
22676 s,@ac_ct_CC@,$ac_ct_CC,;t t
22677 s,@EXEEXT@,$EXEEXT,;t t
22678 s,@OBJEXT@,$OBJEXT,;t t
22679 s,@LN_S@,$LN_S,;t t
22680 s,@CPP@,$CPP,;t t
22681 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22682 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22683 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22684 s,@RANLIB@,$RANLIB,;t t
22685 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22686 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22687 s,@EGREP@,$EGREP,;t t
22688 s,@LIBSOUND@,$LIBSOUND,;t t
22689 s,@SET_MAKE@,$SET_MAKE,;t t
22690 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22691 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22692 s,@GTK_LIBS@,$GTK_LIBS,;t t
22693 s,@ALLOCA@,$ALLOCA,;t t
22694 s,@liblockfile@,$liblockfile,;t t
22695 s,@LIBOBJS@,$LIBOBJS,;t t
22696 s,@NEED_SETGID@,$NEED_SETGID,;t t
22697 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22698 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22699 s,@version@,$version,;t t
22700 s,@configuration@,$configuration,;t t
22701 s,@canonical@,$canonical,;t t
22702 s,@srcdir@,$srcdir,;t t
22703 s,@lispdir@,$lispdir,;t t
22704 s,@locallisppath@,$locallisppath,;t t
22705 s,@lisppath@,$lisppath,;t t
22706 s,@x_default_search_path@,$x_default_search_path,;t t
22707 s,@etcdir@,$etcdir,;t t
22708 s,@archlibdir@,$archlibdir,;t t
22709 s,@docdir@,$docdir,;t t
22710 s,@bitmapdir@,$bitmapdir,;t t
22711 s,@gamedir@,$gamedir,;t t
22712 s,@gameuser@,$gameuser,;t t
22713 s,@c_switch_system@,$c_switch_system,;t t
22714 s,@c_switch_machine@,$c_switch_machine,;t t
22715 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22716 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22717 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22718 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22719 s,@machfile@,$machfile,;t t
22720 s,@opsysfile@,$opsysfile,;t t
22721 s,@carbon_appdir@,$carbon_appdir,;t t
22722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22723 CEOF
22724
22725 _ACEOF
22726
22727 cat >>$CONFIG_STATUS <<\_ACEOF
22728 # Split the substitutions into bite-sized pieces for seds with
22729 # small command number limits, like on Digital OSF/1 and HP-UX.
22730 ac_max_sed_lines=48
22731 ac_sed_frag=1 # Number of current file.
22732 ac_beg=1 # First line for current file.
22733 ac_end=$ac_max_sed_lines # Line after last line for current file.
22734 ac_more_lines=:
22735 ac_sed_cmds=
22736 while $ac_more_lines; do
22737 if test $ac_beg -gt 1; then
22738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22739 else
22740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22741 fi
22742 if test ! -s $tmp/subs.frag; then
22743 ac_more_lines=false
22744 else
22745 # The purpose of the label and of the branching condition is to
22746 # speed up the sed processing (if there are no `@' at all, there
22747 # is no need to browse any of the substitutions).
22748 # These are the two extra sed commands mentioned above.
22749 (echo ':t
22750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22751 if test -z "$ac_sed_cmds"; then
22752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22753 else
22754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22755 fi
22756 ac_sed_frag=`expr $ac_sed_frag + 1`
22757 ac_beg=$ac_end
22758 ac_end=`expr $ac_end + $ac_max_sed_lines`
22759 fi
22760 done
22761 if test -z "$ac_sed_cmds"; then
22762 ac_sed_cmds=cat
22763 fi
22764 fi # test -n "$CONFIG_FILES"
22765
22766 _ACEOF
22767 cat >>$CONFIG_STATUS <<\_ACEOF
22768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22770 case $ac_file in
22771 - | *:- | *:-:* ) # input from stdin
22772 cat >$tmp/stdin
22773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22777 * ) ac_file_in=$ac_file.in ;;
22778 esac
22779
22780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$ac_file" : 'X\(//\)[^/]' \| \
22784 X"$ac_file" : 'X\(//\)$' \| \
22785 X"$ac_file" : 'X\(/\)' \| \
22786 . : '\(.\)' 2>/dev/null ||
22787 echo X"$ac_file" |
22788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22790 /^X\(\/\/\)$/{ s//\1/; q; }
22791 /^X\(\/\).*/{ s//\1/; q; }
22792 s/.*/./; q'`
22793 { if $as_mkdir_p; then
22794 mkdir -p "$ac_dir"
22795 else
22796 as_dir="$ac_dir"
22797 as_dirs=
22798 while test ! -d "$as_dir"; do
22799 as_dirs="$as_dir $as_dirs"
22800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22802 X"$as_dir" : 'X\(//\)[^/]' \| \
22803 X"$as_dir" : 'X\(//\)$' \| \
22804 X"$as_dir" : 'X\(/\)' \| \
22805 . : '\(.\)' 2>/dev/null ||
22806 echo X"$as_dir" |
22807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22809 /^X\(\/\/\)$/{ s//\1/; q; }
22810 /^X\(\/\).*/{ s//\1/; q; }
22811 s/.*/./; q'`
22812 done
22813 test ! -n "$as_dirs" || mkdir $as_dirs
22814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22816 { (exit 1); exit 1; }; }; }
22817
22818 ac_builddir=.
22819
22820 if test "$ac_dir" != .; then
22821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22822 # A "../" for each directory in $ac_dir_suffix.
22823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22824 else
22825 ac_dir_suffix= ac_top_builddir=
22826 fi
22827
22828 case $srcdir in
22829 .) # No --srcdir option. We are building in place.
22830 ac_srcdir=.
22831 if test -z "$ac_top_builddir"; then
22832 ac_top_srcdir=.
22833 else
22834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22835 fi ;;
22836 [\\/]* | ?:[\\/]* ) # Absolute path.
22837 ac_srcdir=$srcdir$ac_dir_suffix;
22838 ac_top_srcdir=$srcdir ;;
22839 *) # Relative path.
22840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22842 esac
22843
22844 # Do not use `cd foo && pwd` to compute absolute paths, because
22845 # the directories may not exist.
22846 case `pwd` in
22847 .) ac_abs_builddir="$ac_dir";;
22848 *)
22849 case "$ac_dir" in
22850 .) ac_abs_builddir=`pwd`;;
22851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22853 esac;;
22854 esac
22855 case $ac_abs_builddir in
22856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22857 *)
22858 case ${ac_top_builddir}. in
22859 .) ac_abs_top_builddir=$ac_abs_builddir;;
22860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22862 esac;;
22863 esac
22864 case $ac_abs_builddir in
22865 .) ac_abs_srcdir=$ac_srcdir;;
22866 *)
22867 case $ac_srcdir in
22868 .) ac_abs_srcdir=$ac_abs_builddir;;
22869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22871 esac;;
22872 esac
22873 case $ac_abs_builddir in
22874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22875 *)
22876 case $ac_top_srcdir in
22877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22880 esac;;
22881 esac
22882
22883
22884 case $INSTALL in
22885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22886 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22887 esac
22888
22889 if test x"$ac_file" != x-; then
22890 { echo "$as_me:$LINENO: creating $ac_file" >&5
22891 echo "$as_me: creating $ac_file" >&6;}
22892 rm -f "$ac_file"
22893 fi
22894 # Let's still pretend it is `configure' which instantiates (i.e., don't
22895 # use $as_me), people would be surprised to read:
22896 # /* config.h. Generated by config.status. */
22897 if test x"$ac_file" = x-; then
22898 configure_input=
22899 else
22900 configure_input="$ac_file. "
22901 fi
22902 configure_input=$configure_input"Generated from `echo $ac_file_in |
22903 sed 's,.*/,,'` by configure."
22904
22905 # First look for the input files in the build tree, otherwise in the
22906 # src tree.
22907 ac_file_inputs=`IFS=:
22908 for f in $ac_file_in; do
22909 case $f in
22910 -) echo $tmp/stdin ;;
22911 [\\/$]*)
22912 # Absolute (can't be DOS-style, as IFS=:)
22913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22914 echo "$as_me: error: cannot find input file: $f" >&2;}
22915 { (exit 1); exit 1; }; }
22916 echo "$f";;
22917 *) # Relative
22918 if test -f "$f"; then
22919 # Build tree
22920 echo "$f"
22921 elif test -f "$srcdir/$f"; then
22922 # Source tree
22923 echo "$srcdir/$f"
22924 else
22925 # /dev/null tree
22926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22927 echo "$as_me: error: cannot find input file: $f" >&2;}
22928 { (exit 1); exit 1; }; }
22929 fi;;
22930 esac
22931 done` || { (exit 1); exit 1; }
22932 _ACEOF
22933 cat >>$CONFIG_STATUS <<_ACEOF
22934 sed "$ac_vpsub
22935 $extrasub
22936 _ACEOF
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22938 :t
22939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22940 s,@configure_input@,$configure_input,;t t
22941 s,@srcdir@,$ac_srcdir,;t t
22942 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22943 s,@top_srcdir@,$ac_top_srcdir,;t t
22944 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22945 s,@builddir@,$ac_builddir,;t t
22946 s,@abs_builddir@,$ac_abs_builddir,;t t
22947 s,@top_builddir@,$ac_top_builddir,;t t
22948 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22949 s,@INSTALL@,$ac_INSTALL,;t t
22950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22951 rm -f $tmp/stdin
22952 if test x"$ac_file" != x-; then
22953 mv $tmp/out $ac_file
22954 else
22955 cat $tmp/out
22956 rm -f $tmp/out
22957 fi
22958
22959 done
22960 _ACEOF
22961 cat >>$CONFIG_STATUS <<\_ACEOF
22962
22963 #
22964 # CONFIG_HEADER section.
22965 #
22966
22967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22969 #
22970 # ac_d sets the value in "#define NAME VALUE" lines.
22971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22972 ac_dB='[ ].*$,\1#\2'
22973 ac_dC=' '
22974 ac_dD=',;t'
22975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22977 ac_uB='$,\1#\2define\3'
22978 ac_uC=' '
22979 ac_uD=',;t'
22980
22981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22983 case $ac_file in
22984 - | *:- | *:-:* ) # input from stdin
22985 cat >$tmp/stdin
22986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990 * ) ac_file_in=$ac_file.in ;;
22991 esac
22992
22993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22994 echo "$as_me: creating $ac_file" >&6;}
22995
22996 # First look for the input files in the build tree, otherwise in the
22997 # src tree.
22998 ac_file_inputs=`IFS=:
22999 for f in $ac_file_in; do
23000 case $f in
23001 -) echo $tmp/stdin ;;
23002 [\\/$]*)
23003 # Absolute (can't be DOS-style, as IFS=:)
23004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23005 echo "$as_me: error: cannot find input file: $f" >&2;}
23006 { (exit 1); exit 1; }; }
23007 # Do quote $f, to prevent DOS paths from being IFS'd.
23008 echo "$f";;
23009 *) # Relative
23010 if test -f "$f"; then
23011 # Build tree
23012 echo "$f"
23013 elif test -f "$srcdir/$f"; then
23014 # Source tree
23015 echo "$srcdir/$f"
23016 else
23017 # /dev/null tree
23018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23019 echo "$as_me: error: cannot find input file: $f" >&2;}
23020 { (exit 1); exit 1; }; }
23021 fi;;
23022 esac
23023 done` || { (exit 1); exit 1; }
23024 # Remove the trailing spaces.
23025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23026
23027 _ACEOF
23028
23029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23030 # `conftest.undefs', that substitutes the proper values into
23031 # config.h.in to produce config.h. The first handles `#define'
23032 # templates, and the second `#undef' templates.
23033 # And first: Protect against being on the right side of a sed subst in
23034 # config.status. Protect against being in an unquoted here document
23035 # in config.status.
23036 rm -f conftest.defines conftest.undefs
23037 # Using a here document instead of a string reduces the quoting nightmare.
23038 # Putting comments in sed scripts is not portable.
23039 #
23040 # `end' is used to avoid that the second main sed command (meant for
23041 # 0-ary CPP macros) applies to n-ary macro definitions.
23042 # See the Autoconf documentation for `clear'.
23043 cat >confdef2sed.sed <<\_ACEOF
23044 s/[\\&,]/\\&/g
23045 s,[\\$`],\\&,g
23046 t clear
23047 : clear
23048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23049 t end
23050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23051 : end
23052 _ACEOF
23053 # If some macros were called several times there might be several times
23054 # the same #defines, which is useless. Nevertheless, we may not want to
23055 # sort them, since we want the *last* AC-DEFINE to be honored.
23056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23058 rm -f confdef2sed.sed
23059
23060 # This sed command replaces #undef with comments. This is necessary, for
23061 # example, in the case of _POSIX_SOURCE, which is predefined and required
23062 # on some systems where configure will not decide to define it.
23063 cat >>conftest.undefs <<\_ACEOF
23064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23065 _ACEOF
23066
23067 # Break up conftest.defines because some shells have a limit on the size
23068 # of here documents, and old seds have small limits too (100 cmds).
23069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23072 echo ' :' >>$CONFIG_STATUS
23073 rm -f conftest.tail
23074 while grep . conftest.defines >/dev/null
23075 do
23076 # Write a limited-size here document to $tmp/defines.sed.
23077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23078 # Speed up: don't consider the non `#define' lines.
23079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23080 # Work around the forget-to-reset-the-flag bug.
23081 echo 't clr' >>$CONFIG_STATUS
23082 echo ': clr' >>$CONFIG_STATUS
23083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23084 echo 'CEOF
23085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23086 rm -f $tmp/in
23087 mv $tmp/out $tmp/in
23088 ' >>$CONFIG_STATUS
23089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23090 rm -f conftest.defines
23091 mv conftest.tail conftest.defines
23092 done
23093 rm -f conftest.defines
23094 echo ' fi # grep' >>$CONFIG_STATUS
23095 echo >>$CONFIG_STATUS
23096
23097 # Break up conftest.undefs because some shells have a limit on the size
23098 # of here documents, and old seds have small limits too (100 cmds).
23099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23100 rm -f conftest.tail
23101 while grep . conftest.undefs >/dev/null
23102 do
23103 # Write a limited-size here document to $tmp/undefs.sed.
23104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23105 # Speed up: don't consider the non `#undef'
23106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23107 # Work around the forget-to-reset-the-flag bug.
23108 echo 't clr' >>$CONFIG_STATUS
23109 echo ': clr' >>$CONFIG_STATUS
23110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23111 echo 'CEOF
23112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23113 rm -f $tmp/in
23114 mv $tmp/out $tmp/in
23115 ' >>$CONFIG_STATUS
23116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23117 rm -f conftest.undefs
23118 mv conftest.tail conftest.undefs
23119 done
23120 rm -f conftest.undefs
23121
23122 cat >>$CONFIG_STATUS <<\_ACEOF
23123 # Let's still pretend it is `configure' which instantiates (i.e., don't
23124 # use $as_me), people would be surprised to read:
23125 # /* config.h. Generated by config.status. */
23126 if test x"$ac_file" = x-; then
23127 echo "/* Generated by configure. */" >$tmp/config.h
23128 else
23129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23130 fi
23131 cat $tmp/in >>$tmp/config.h
23132 rm -f $tmp/in
23133 if test x"$ac_file" != x-; then
23134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23136 echo "$as_me: $ac_file is unchanged" >&6;}
23137 else
23138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23140 X"$ac_file" : 'X\(//\)[^/]' \| \
23141 X"$ac_file" : 'X\(//\)$' \| \
23142 X"$ac_file" : 'X\(/\)' \| \
23143 . : '\(.\)' 2>/dev/null ||
23144 echo X"$ac_file" |
23145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23147 /^X\(\/\/\)$/{ s//\1/; q; }
23148 /^X\(\/\).*/{ s//\1/; q; }
23149 s/.*/./; q'`
23150 { if $as_mkdir_p; then
23151 mkdir -p "$ac_dir"
23152 else
23153 as_dir="$ac_dir"
23154 as_dirs=
23155 while test ! -d "$as_dir"; do
23156 as_dirs="$as_dir $as_dirs"
23157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23159 X"$as_dir" : 'X\(//\)[^/]' \| \
23160 X"$as_dir" : 'X\(//\)$' \| \
23161 X"$as_dir" : 'X\(/\)' \| \
23162 . : '\(.\)' 2>/dev/null ||
23163 echo X"$as_dir" |
23164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23166 /^X\(\/\/\)$/{ s//\1/; q; }
23167 /^X\(\/\).*/{ s//\1/; q; }
23168 s/.*/./; q'`
23169 done
23170 test ! -n "$as_dirs" || mkdir $as_dirs
23171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23173 { (exit 1); exit 1; }; }; }
23174
23175 rm -f $ac_file
23176 mv $tmp/config.h $ac_file
23177 fi
23178 else
23179 cat $tmp/config.h
23180 rm -f $tmp/config.h
23181 fi
23182 done
23183 _ACEOF
23184 cat >>$CONFIG_STATUS <<\_ACEOF
23185
23186 #
23187 # CONFIG_COMMANDS section.
23188 #
23189 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23190 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23191 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23193 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23194 X"$ac_dest" : 'X\(//\)[^/]' \| \
23195 X"$ac_dest" : 'X\(//\)$' \| \
23196 X"$ac_dest" : 'X\(/\)' \| \
23197 . : '\(.\)' 2>/dev/null ||
23198 echo X"$ac_dest" |
23199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23201 /^X\(\/\/\)$/{ s//\1/; q; }
23202 /^X\(\/\).*/{ s//\1/; q; }
23203 s/.*/./; q'`
23204 { if $as_mkdir_p; then
23205 mkdir -p "$ac_dir"
23206 else
23207 as_dir="$ac_dir"
23208 as_dirs=
23209 while test ! -d "$as_dir"; do
23210 as_dirs="$as_dir $as_dirs"
23211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23213 X"$as_dir" : 'X\(//\)[^/]' \| \
23214 X"$as_dir" : 'X\(//\)$' \| \
23215 X"$as_dir" : 'X\(/\)' \| \
23216 . : '\(.\)' 2>/dev/null ||
23217 echo X"$as_dir" |
23218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23220 /^X\(\/\/\)$/{ s//\1/; q; }
23221 /^X\(\/\).*/{ s//\1/; q; }
23222 s/.*/./; q'`
23223 done
23224 test ! -n "$as_dirs" || mkdir $as_dirs
23225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23227 { (exit 1); exit 1; }; }; }
23228
23229 ac_builddir=.
23230
23231 if test "$ac_dir" != .; then
23232 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23233 # A "../" for each directory in $ac_dir_suffix.
23234 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23235 else
23236 ac_dir_suffix= ac_top_builddir=
23237 fi
23238
23239 case $srcdir in
23240 .) # No --srcdir option. We are building in place.
23241 ac_srcdir=.
23242 if test -z "$ac_top_builddir"; then
23243 ac_top_srcdir=.
23244 else
23245 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23246 fi ;;
23247 [\\/]* | ?:[\\/]* ) # Absolute path.
23248 ac_srcdir=$srcdir$ac_dir_suffix;
23249 ac_top_srcdir=$srcdir ;;
23250 *) # Relative path.
23251 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23252 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23253 esac
23254
23255 # Do not use `cd foo && pwd` to compute absolute paths, because
23256 # the directories may not exist.
23257 case `pwd` in
23258 .) ac_abs_builddir="$ac_dir";;
23259 *)
23260 case "$ac_dir" in
23261 .) ac_abs_builddir=`pwd`;;
23262 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23263 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23264 esac;;
23265 esac
23266 case $ac_abs_builddir in
23267 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23268 *)
23269 case ${ac_top_builddir}. in
23270 .) ac_abs_top_builddir=$ac_abs_builddir;;
23271 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23272 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23273 esac;;
23274 esac
23275 case $ac_abs_builddir in
23276 .) ac_abs_srcdir=$ac_srcdir;;
23277 *)
23278 case $ac_srcdir in
23279 .) ac_abs_srcdir=$ac_abs_builddir;;
23280 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23281 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23282 esac;;
23283 esac
23284 case $ac_abs_builddir in
23285 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23286 *)
23287 case $ac_top_srcdir in
23288 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23289 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23290 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23291 esac;;
23292 esac
23293
23294
23295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23296 echo "$as_me: executing $ac_dest commands" >&6;}
23297 case $ac_dest in
23298 default )
23299
23300 ### Make the necessary directories, if they don't exist.
23301 for dir in etc lisp ; do
23302 test -d ${dir} || mkdir ${dir}
23303 done
23304
23305 # Build src/Makefile from ${srcdir}/src/Makefile.c
23306 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23307 # This must be done after src/config.h is built, since we rely on that file.
23308
23309 # Now get this: Some word that is part of the ${srcdir} directory name
23310 # or the ${configuration} value might, just might, happen to be an
23311 # identifier like `sun4' or `i386' or something, and be predefined by
23312 # the C preprocessor to some helpful value like 1, or maybe the empty
23313 # string. Needless to say consequent macro substitutions are less
23314 # than conducive to the makefile finding the correct directory.
23315 undefs="`echo $top_srcdir $configuration $canonical |
23316 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23317 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23318 `"
23319
23320 echo creating src/epaths.h
23321 ${MAKE-make} epaths-force
23322
23323 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23324 # `..' to `. .' unless invoked with -traditional
23325
23326 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23327 CPPFLAGS="$CPPFLAGS -traditional"
23328 fi
23329
23330 echo creating lib-src/Makefile
23331 ( cd lib-src
23332 rm -f junk.c junk1.c junk2.c
23333 sed -e '/start of cpp stuff/q' \
23334 < Makefile.c > junk1.c
23335 sed -e '1,/start of cpp stuff/d'\
23336 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23337 < Makefile.c > junk.c
23338 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23339 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23340 cat junk1.c junk2.c > Makefile.new
23341 rm -f junk.c junk1.c junk2.c
23342 chmod 444 Makefile.new
23343 mv -f Makefile.new Makefile
23344 )
23345
23346 echo creating src/Makefile
23347 ( cd src
23348 rm -f junk.c junk1.c junk2.c
23349 sed -e '/start of cpp stuff/q' \
23350 < Makefile.c > junk1.c
23351 sed -e '1,/start of cpp stuff/d'\
23352 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23353 < Makefile.c > junk.c
23354 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23355 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23356 cat junk1.c junk2.c > Makefile.new
23357 rm -f junk.c junk1.c junk2.c
23358 chmod 444 Makefile.new
23359 mv -f Makefile.new Makefile
23360 )
23361
23362 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23363 echo creating src/.gdbinit
23364 echo source $srcdir/src/.gdbinit > src/.gdbinit
23365 fi
23366
23367 # This is how we know whether to re-run configure in certain cases.
23368 touch src/config.stamp
23369
23370 ;;
23371 esac
23372 done
23373 _ACEOF
23374
23375 cat >>$CONFIG_STATUS <<\_ACEOF
23376
23377 { (exit 0); exit 0; }
23378 _ACEOF
23379 chmod +x $CONFIG_STATUS
23380 ac_clean_files=$ac_clean_files_save
23381
23382
23383 # configure is writing to config.log, and then calls config.status.
23384 # config.status does its own redirection, appending to config.log.
23385 # Unfortunately, on DOS this fails, as config.log is still kept open
23386 # by configure, so config.status won't be able to write to it; its
23387 # output is simply discarded. So we exec the FD to /dev/null,
23388 # effectively closing config.log, so it can be properly (re)opened and
23389 # appended to by config.status. When coming back to configure, we
23390 # need to make the FD available again.
23391 if test "$no_create" != yes; then
23392 ac_cs_success=:
23393 ac_config_status_args=
23394 test "$silent" = yes &&
23395 ac_config_status_args="$ac_config_status_args --quiet"
23396 exec 5>/dev/null
23397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23398 exec 5>>config.log
23399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23400 # would make configure fail if this is the last instruction.
23401 $ac_cs_success || { (exit 1); exit 1; }
23402 fi
23403
23404