]> code.delx.au - gnu-emacs/blob - configure
Rebuild.
[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-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576
1577 extrasub='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1585 fi
1586
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1589
1590 ### Canonicalize the configuration name.
1591
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1606 fi
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1612 fi
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 canonical=$host
1672 configuration=${host_alias-$host}
1673
1674
1675
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1679
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1688 ###
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1694 ###
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1698
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1701
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1715
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1719
1720 fi
1721
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
1821 machine=macppc opsys=gnu-linux
1822 ;;
1823
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1827 ;;
1828
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1832 ;;
1833
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1837 ;;
1838
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1842 ;;
1843
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1847 ;;
1848
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1852 ;;
1853
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1857 ;;
1858
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1862 ;;
1863
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1865
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1872 ;;
1873
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1881 ;;
1882
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1886 ;;
1887
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1893 ;;
1894
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1898 ;;
1899
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1903 ;;
1904
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1913 ;;
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1918 ;;
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1921 ;;
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1924 ;;
1925
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1931 ;;
1932
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1936 ;;
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1939 ;;
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1942 ;;
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1945 ;;
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1948 ;;
1949
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1958 fi
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1963 fi
1964 fi
1965 ;;
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1972 ;;
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1975 ;;
1976
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1980 ;;
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1983 ;;
1984
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1988 ;;
1989
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1993 ;;
1994
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1997
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2001 ;;
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2004 ;;
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2007 ;;
2008
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2018 ;;
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2022 ;;
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2027 ;;
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2031 ;;
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2034 ;;
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2038 ;;
2039
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2043 ;;
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2055 ;;
2056
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2060 ;;
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2063 ;;
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2066 ;;
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2069 ;;
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2072 ;;
2073 hppa*-hp-hpux10* )
2074 machine=hp800 opsys=hpux10
2075 ;;
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2078 ;;
2079
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2082 ;;
2083
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2095 ;;
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2098 ;;
2099
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2103 ;;
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2106 ;;
2107
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2111 ;;
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2114 ;;
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2117 ;;
2118 s390-*-linux-gnu* )
2119 machine=ibms390 opsys=gnu-linux
2120 ;;
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2123 ;;
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2126 ;;
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2129 ;;
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2132 ;;
2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2134 machine=ibmrs6000 opsys=aix4-2
2135 ;;
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2138 ;;
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2141 ;;
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2144 ;;
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2147 ;;
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2150 ;;
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2156 ;;
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2159 ;;
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2162 ;;
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2165 ;;
2166
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2170 ;;
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2173 ;;
2174
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2178 ;;
2179
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2183 ;;
2184
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2188 ;;
2189
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2194 ;;
2195
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2201 ;;
2202
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2206 ;;
2207
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2212 ;;
2213
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2217 ;;
2218
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2224 ;;
2225
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2229 ;;
2230
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2234 ;;
2235
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2239 ;;
2240
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2244
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2255 ;;
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2265 ;;
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2268 ;;
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2271 ;;
2272
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2276 ;;
2277
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2281 ;;
2282
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2286 ;;
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2289 ;;
2290
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2294 ;;
2295
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2299 ;;
2300
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2304 ;;
2305
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2309 ;;
2310
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2316 ;;
2317
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2321 ;;
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2324 ;;
2325
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 ;;
2332
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2337 ;;
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2340 ;;
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2344 ;;
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2347 ;;
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2355 ;;
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS=-32
2363 ;;
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2366 ;;
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2369 ;;
2370
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2374 ;;
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2377 ;;
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2380 ;;
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2383 ;;
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2386 ;;
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2389 ;;
2390
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2394 ;;
2395
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2399 ;;
2400
2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2430 ;;
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2435 ;;
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 ;;
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2454 ;;
2455 *-sunos5* | *-solaris* )
2456 opsys=sol2-6
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 ;;
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2468 fi
2469 ;;
2470 *) ;;
2471 esac
2472 ;;
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2475 ;;
2476
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2480 ;;
2481
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2485 ;;
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2488 ;;
2489
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2498 ;;
2499
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2503 ;;
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2508 ;;
2509
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2514 ;;
2515
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2519 ;;
2520
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2533 ;;
2534
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2540 ;;
2541
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2545 ;;
2546
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2550 ;;
2551
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
2556 *-cygwin ) opsys=cygwin ;;
2557 *-lynxos* ) opsys=lynxos ;;
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2564 ;;
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2571 *-sco3.2v5* ) opsys=sco5
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2576 ;;
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2580 *-386bsd* ) opsys=386bsd ;;
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2584 ;;
2585
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2589 ;;
2590
2591 ## Mips Linux-based GNU system
2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2593 machine=mips opsys=gnu-linux
2594 ;;
2595
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2601 ;;
2602
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2606 ;;
2607
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP="${CC-cc} -E -no-cpp-precomp"
2613 ;;
2614
2615 ## AMD x86-64 Linux-based GNU system
2616 x86_64-*-linux-gnu* )
2617 machine=amdx86-64 opsys=gnu-linux
2618 ;;
2619
2620 * )
2621 unported=yes
2622 ;;
2623 esac
2624
2625 ### If the code above didn't choose an operating system, just choose
2626 ### an operating system based on the configuration name. You really
2627 ### only want to use this when you have no idea what the right
2628 ### operating system is; if you know what operating systems a machine
2629 ### runs, it's cleaner to make it explicit in the case statement
2630 ### above.
2631 if test x"${opsys}" = x; then
2632 case "${canonical}" in
2633 *-gnu* ) opsys=gnu ;;
2634 *-bsd4.[01] ) opsys=bsd4-1 ;;
2635 *-bsd4.2 ) opsys=bsd4-2 ;;
2636 *-bsd4.3 ) opsys=bsd4-3 ;;
2637 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2638 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2639 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2640 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2641 *-sysv4.2uw* ) opsys=unixware ;;
2642 *-sysv5uw* ) opsys=unixware ;;
2643 *-sysv5OpenUNIX* ) opsys=unixware ;;
2644 *-sysv4.1* | *-sysvr4.1* )
2645 NON_GNU_CPP=/usr/lib/cpp
2646 opsys=usg5-4 ;;
2647 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2648 if [ x$NON_GNU_CPP = x ]; then
2649 if [ -f /usr/ccs/lib/cpp ]; then
2650 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 else
2652 NON_GNU_CPP=/lib/cpp
2653 fi
2654 fi
2655 opsys=usg5-4-2 ;;
2656 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2657 * )
2658 unported=yes
2659 ;;
2660 esac
2661 fi
2662
2663
2664
2665 if test $unported = yes; then
2666 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2667 Check \`etc/MACHINES' for recognized configuration names." >&5
2668 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2669 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2670 { (exit 1); exit 1; }; }
2671 fi
2672
2673 machfile="m/${machine}.h"
2674 opsysfile="s/${opsys}.h"
2675
2676
2677 #### Choose a compiler.
2678 test -n "$CC" && cc_specified=yes
2679
2680 # Save the value of CFLAGS that the user specified.
2681 SPECIFIED_CFLAGS="$CFLAGS"
2682
2683 case ${with_gcc} in
2684 "yes" ) CC="gcc" GCC=yes ;;
2685 "no" ) : ${CC=cc} ;;
2686 * )
2687 esac
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 fi
2728
2729 fi
2730 if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC="gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2765 fi
2766
2767 CC=$ac_ct_CC
2768 else
2769 CC="$ac_cv_prog_CC"
2770 fi
2771
2772 if test -z "$CC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}cc; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC="${ac_tool_prefix}cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2807 fi
2808
2809 fi
2810 if test -z "$ac_cv_prog_CC"; then
2811 ac_ct_CC=$CC
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 CC=$ac_ct_CC
2848 else
2849 CC="$ac_cv_prog_CC"
2850 fi
2851
2852 fi
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 ac_prog_rejected=no
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2874 continue
2875 fi
2876 ac_cv_prog_CC="cc"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy $ac_cv_prog_CC
2886 shift
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2891 shift
2892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2893 fi
2894 fi
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 echo "$as_me:$LINENO: result: $CC" >&5
2900 echo "${ECHO_T}$CC" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2904 fi
2905
2906 fi
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944 fi
2945
2946 test -n "$CC" && break
2947 done
2948 fi
2949 if test -z "$CC"; then
2950 ac_ct_CC=$CC
2951 for ac_prog in cl
2952 do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2986 fi
2987
2988 test -n "$ac_ct_CC" && break
2989 done
2990
2991 CC=$ac_ct_CC
2992 fi
2993
2994 fi
2995
2996
2997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3002
3003 # Provide some information about the compiler.
3004 echo "$as_me:$LINENO:" \
3005 "checking for C compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3008 (eval $ac_compiler --version </dev/null >&5) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3013 (eval $ac_compiler -v </dev/null >&5) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3018 (eval $ac_compiler -V </dev/null >&5) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3022
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029
3030 int
3031 main ()
3032 {
3033
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 ac_clean_files_save=$ac_clean_files
3039 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3042 # of exeext.
3043 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3044 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3045 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3047 (eval $ac_link_default) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Find the output, starting from the most likely. This scheme is
3052 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3053 # resort.
3054
3055 # Be careful to initialize this variable, since it used to be cached.
3056 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3057 ac_cv_exeext=
3058 # b.out is created by i960 compilers.
3059 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3060 do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3064 ;;
3065 conftest.$ac_ext )
3066 # This is the source file.
3067 ;;
3068 [ab].out )
3069 # We found the default executable, but exeext='' is most
3070 # certainly right.
3071 break;;
3072 *.* )
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # FIXME: I believe we export ac_cv_exeext for Libtool,
3075 # but it would be cool to find out if it's true. Does anybody
3076 # maintain Libtool? --akim.
3077 export ac_cv_exeext
3078 break;;
3079 * )
3080 break;;
3081 esac
3082 done
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3092 fi
3093
3094 ac_exeext=$ac_cv_exeext
3095 echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6
3097
3098 # Check the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 cross_compiling=no
3112 else
3113 if test "$cross_compiling" = maybe; then
3114 cross_compiling=yes
3115 else
3116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot run C compiled programs.
3120 If you meant to cross compile, use \`--host'.
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3123 fi
3124 fi
3125 fi
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3128
3129 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3130 ac_clean_files=$ac_clean_files_save
3131 # Check the compiler produces executables we can run. If not, either
3132 # the compiler is broken, or we cross compile.
3133 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3136 echo "${ECHO_T}$cross_compiling" >&6
3137
3138 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3148 # `rm'.
3149 for ac_file in conftest.exe conftest conftest.*; do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 export ac_cv_exeext
3155 break;;
3156 * ) break;;
3157 esac
3158 done
3159 else
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3165 fi
3166
3167 rm -f conftest$ac_cv_exeext
3168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3169 echo "${ECHO_T}$ac_cv_exeext" >&6
3170
3171 rm -f conftest.$ac_ext
3172 EXEEXT=$ac_cv_exeext
3173 ac_exeext=$EXEEXT
3174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3176 if test "${ac_cv_objext+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.o conftest.obj
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204 break;;
3205 esac
3206 done
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3216 fi
3217
3218 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221 echo "${ECHO_T}$ac_cv_objext" >&6
3222 OBJEXT=$ac_cv_objext
3223 ac_objext=$OBJEXT
3224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239 #ifndef __GNUC__
3240 choke me
3241 #endif
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -z "$ac_c_werror_flag"
3257 || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_compiler_gnu=yes
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_compiler_gnu=no
3275 fi
3276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278
3279 fi
3280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3282 GCC=`test $ac_compiler_gnu = yes && echo yes`
3283 ac_test_CFLAGS=${CFLAGS+set}
3284 ac_save_CFLAGS=$CFLAGS
3285 CFLAGS="-g"
3286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3288 if test "${ac_cv_prog_cc_g+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297
3298 int
3299 main ()
3300 {
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_prog_cc_g=yes
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ac_cv_prog_cc_g=no
3334 fi
3335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3346 fi
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3352 fi
3353 fi
3354 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3355 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_cv_prog_cc_stdc=no
3360 ac_save_CC=$CC
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3377 {
3378 return p[i];
3379 }
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3381 {
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3388 }
3389
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std1 is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std1. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403 int argc;
3404 char **argv;
3405 int
3406 main ()
3407 {
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 # Don't try gcc -ansi; that turns off useful extensions and
3414 # breaks some systems' header files.
3415 # AIX -qlanglvl=ansi
3416 # Ultrix and OSF/1 -std1
3417 # HP-UX 10.20 and later -Ae
3418 # HP-UX older versions -Aa -D_HPUX_SOURCE
3419 # SVR4 -Xc -D__EXTENSIONS__
3420 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422 CC="$ac_save_CC $ac_arg"
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_prog_cc_stdc=$ac_arg
3446 break
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 fi
3452 rm -f conftest.err conftest.$ac_objext
3453 done
3454 rm -f conftest.$ac_ext conftest.$ac_objext
3455 CC=$ac_save_CC
3456
3457 fi
3458
3459 case "x$ac_cv_prog_cc_stdc" in
3460 x|xno)
3461 echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6 ;;
3463 *)
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3466 CC="$CC $ac_cv_prog_cc_stdc" ;;
3467 esac
3468
3469 # Some people use a C++ compiler to compile C. Since we use `exit',
3470 # in C++ we need to declare it. In case someone uses the same compiler
3471 # for both compiling C and C++ we need to have the C++ compiler decide
3472 # the declaration of exit, since it's the most demanding environment.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #ifndef __cplusplus
3475 choke me
3476 #endif
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 for ac_declaration in \
3501 '' \
3502 'extern "C" void std::exit (int) throw (); using std::exit;' \
3503 'extern "C" void std::exit (int); using std::exit;' \
3504 'extern "C" void exit (int) throw ();' \
3505 'extern "C" void exit (int);' \
3506 'void exit (int);'
3507 do
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_declaration
3515 #include <stdlib.h>
3516 int
3517 main ()
3518 {
3519 exit (42);
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3546 :
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 continue
3552 fi
3553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_declaration
3561 int
3562 main ()
3563 {
3564 exit (42);
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 break
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 fi
3597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598 done
3599 rm -f conftest*
3600 if test -n "$ac_declaration"; then
3601 echo '#ifdef __cplusplus' >>confdefs.h
3602 echo $ac_declaration >>confdefs.h
3603 echo '#endif' >>confdefs.h
3604 fi
3605
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 fi
3611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619 # On Suns, sometimes $CPP names a directory.
3620 if test -n "$CPP" && test -d "$CPP"; then
3621 CPP=
3622 fi
3623
3624 #### Some systems specify a CPP to use unless we are using GCC.
3625 #### Now that we know whether we are using GCC, we can decide whether
3626 #### to use that one.
3627 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3628 then
3629 CPP="$NON_GNU_CPP"
3630 fi
3631
3632 #### Some systems specify a CC to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3636 test x$cc_specified != xyes
3637 then
3638 CC="$NON_GNU_CC"
3639 fi
3640
3641 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3642 then
3643 CC="$CC $GCC_TEST_OPTIONS"
3644 fi
3645
3646 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3647 then
3648 CC="$CC $NON_GCC_TEST_OPTIONS"
3649 fi
3650
3651 #### Some other nice autoconf tests.
3652
3653 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3655 LN_S=$as_ln_s
3656 if test "$LN_S" = "ln -s"; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3661 echo "${ECHO_T}no, using $LN_S" >&6
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3673 CPP=
3674 fi
3675 if test -z "$CPP"; then
3676 if test "${ac_cv_prog_CPP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 # Double quotes because CPP needs to be expanded
3680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681 do
3682 ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3684 do
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702 Syntax error
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3715 else
3716 ac_cpp_err=
3717 fi
3718 else
3719 ac_cpp_err=yes
3720 fi
3721 if test -z "$ac_cpp_err"; then
3722 :
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 # Broken: fails on valid input.
3728 continue
3729 fi
3730 rm -f conftest.err conftest.$ac_ext
3731
3732 # OK, works on sane cases. Now check whether non-existent headers
3733 # can be detected and how.
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3741 _ACEOF
3742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev/null; then
3750 if test -s conftest.err; then
3751 ac_cpp_err=$ac_c_preproc_warn_flag
3752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3753 else
3754 ac_cpp_err=
3755 fi
3756 else
3757 ac_cpp_err=yes
3758 fi
3759 if test -z "$ac_cpp_err"; then
3760 # Broken: success on invalid input.
3761 continue
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 # Passes both tests.
3767 ac_preproc_ok=:
3768 break
3769 fi
3770 rm -f conftest.err conftest.$ac_ext
3771
3772 done
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.err conftest.$ac_ext
3775 if $ac_preproc_ok; then
3776 break
3777 fi
3778
3779 done
3780 ac_cv_prog_CPP=$CPP
3781
3782 fi
3783 CPP=$ac_cv_prog_CPP
3784 else
3785 ac_cv_prog_CPP=$CPP
3786 fi
3787 echo "$as_me:$LINENO: result: $CPP" >&5
3788 echo "${ECHO_T}$CPP" >&6
3789 ac_preproc_ok=false
3790 for ac_c_preproc_warn_flag in '' yes
3791 do
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #ifdef __STDC__
3805 # include <limits.h>
3806 #else
3807 # include <assert.h>
3808 #endif
3809 Syntax error
3810 _ACEOF
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null; then
3819 if test -s conftest.err; then
3820 ac_cpp_err=$ac_c_preproc_warn_flag
3821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3822 else
3823 ac_cpp_err=
3824 fi
3825 else
3826 ac_cpp_err=yes
3827 fi
3828 if test -z "$ac_cpp_err"; then
3829 :
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 # Broken: fails on valid input.
3835 continue
3836 fi
3837 rm -f conftest.err conftest.$ac_ext
3838
3839 # OK, works on sane cases. Now check whether non-existent headers
3840 # can be detected and how.
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3848 _ACEOF
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null; then
3857 if test -s conftest.err; then
3858 ac_cpp_err=$ac_c_preproc_warn_flag
3859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860 else
3861 ac_cpp_err=
3862 fi
3863 else
3864 ac_cpp_err=yes
3865 fi
3866 if test -z "$ac_cpp_err"; then
3867 # Broken: success on invalid input.
3868 continue
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877 rm -f conftest.err conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then
3883 :
3884 else
3885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3890 fi
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3904 # AIX /bin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # OS/2's system install, which has a completely different semantic
3910 # ./install, which can be erroneously created by make from ./install.sh.
3911 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3913 if test -z "$INSTALL"; then
3914 if test "${ac_cv_path_install+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 # Account for people who put trailing slashes in PATH elements.
3923 case $as_dir/ in
3924 ./ | .// | /cC/* | \
3925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3927 /usr/ucb/* ) ;;
3928 *)
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3931 # by default.
3932 for ac_prog in ginstall scoinst install; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3935 if test $ac_prog = install &&
3936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3938 :
3939 elif test $ac_prog = install &&
3940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3942 :
3943 else
3944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 break 3
3946 fi
3947 fi
3948 done
3949 done
3950 ;;
3951 esac
3952 done
3953
3954
3955 fi
3956 if test "${ac_cv_path_install+set}" = set; then
3957 INSTALL=$ac_cv_path_install
3958 else
3959 # As a last resort, use the slow shell script. We don't cache a
3960 # path for INSTALL within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the path is relative.
3963 INSTALL=$ac_install_sh
3964 fi
3965 fi
3966 echo "$as_me:$LINENO: result: $INSTALL" >&5
3967 echo "${ECHO_T}$INSTALL" >&6
3968
3969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970 # It thinks the first close brace ends the variable substitution.
3971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3972
3973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3974
3975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3976
3977 if test "x$RANLIB" = x; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_RANLIB+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 if test -n "$RANLIB"; then
3987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002
4003 fi
4004 fi
4005 RANLIB=$ac_cv_prog_RANLIB
4006 if test -n "$RANLIB"; then
4007 echo "$as_me:$LINENO: result: $RANLIB" >&5
4008 echo "${ECHO_T}$RANLIB" >&6
4009 else
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4012 fi
4013
4014 fi
4015 if test -z "$ac_cv_prog_RANLIB"; then
4016 ac_ct_RANLIB=$RANLIB
4017 # Extract the first word of "ranlib", so it can be a program name with args.
4018 set dummy ranlib; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 if test -n "$ac_ct_RANLIB"; then
4025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_RANLIB="ranlib"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040
4041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4042 fi
4043 fi
4044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4045 if test -n "$ac_ct_RANLIB"; then
4046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053 RANLIB=$ac_ct_RANLIB
4054 else
4055 RANLIB="$ac_cv_prog_RANLIB"
4056 fi
4057
4058 fi
4059 # Extract the first word of "install-info", so it can be a program name with args.
4060 set dummy install-info; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 case $INSTALL_INFO in
4067 [\\/]* | ?:[\\/]*)
4068 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4069 ;;
4070 *)
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084
4085 ;;
4086 esac
4087 fi
4088 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4089
4090 if test -n "$INSTALL_INFO"; then
4091 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4092 echo "${ECHO_T}$INSTALL_INFO" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4096 fi
4097
4098 # Extract the first word of "install-info", so it can be a program name with args.
4099 set dummy install-info; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 case $INSTALL_INFO in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4108 ;;
4109 *)
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in /usr/sbin
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121 done
4122 done
4123
4124 ;;
4125 esac
4126 fi
4127 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4128
4129 if test -n "$INSTALL_INFO"; then
4130 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4131 echo "${ECHO_T}$INSTALL_INFO" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4135 fi
4136
4137 # Extract the first word of "install-info", so it can be a program name with args.
4138 set dummy install-info; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 case $INSTALL_INFO in
4145 [\\/]* | ?:[\\/]*)
4146 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4147 ;;
4148 *)
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in /sbin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162
4163 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4164 ;;
4165 esac
4166 fi
4167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4168
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177
4178
4179 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4180 then
4181 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4182 fi
4183
4184 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4185 then
4186 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 fi
4188
4189
4190
4191 echo "$as_me:$LINENO: checking for egrep" >&5
4192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4193 if test "${ac_cv_prog_egrep+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4197 then ac_cv_prog_egrep='grep -E'
4198 else ac_cv_prog_egrep='egrep'
4199 fi
4200 fi
4201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4203 EGREP=$ac_cv_prog_egrep
4204
4205
4206
4207 echo "$as_me:$LINENO: checking for AIX" >&5
4208 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #ifdef _AIX
4216 yes
4217 #endif
4218
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "yes" >/dev/null 2>&1; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 cat >>confdefs.h <<\_ACEOF
4225 #define _ALL_SOURCE 1
4226 _ACEOF
4227
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232 rm -f conftest*
4233
4234
4235
4236 #### Extract some information from the operating system and machine files.
4237
4238 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4239 - which libraries the lib-src programs will want, and
4240 - whether the GNU malloc routines are usable..." >&5
4241 echo "$as_me: checking the machine- and system-dependent files to find out
4242 - which libraries the lib-src programs will want, and
4243 - whether the GNU malloc routines are usable..." >&6;}
4244
4245 ### First figure out CFLAGS (which we use for running the compiler here)
4246 ### and REAL_CFLAGS (which we use for real compilation).
4247 ### The two are the same except on a few systems, where they are made
4248 ### different to work around various lossages. For example,
4249 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4250 ### as implying static linking.
4251
4252 ### If the CFLAGS env var is specified, we use that value
4253 ### instead of the default.
4254
4255 ### It's not important that this name contain the PID; you can't run
4256 ### two configures in the same directory and have anything work
4257 ### anyway.
4258 tempcname="conftest.c"
4259
4260 echo '
4261 #include "'${srcdir}'/src/'${opsysfile}'"
4262 #include "'${srcdir}'/src/'${machfile}'"
4263 #ifndef LIBS_MACHINE
4264 #define LIBS_MACHINE
4265 #endif
4266 #ifndef LIBS_SYSTEM
4267 #define LIBS_SYSTEM
4268 #endif
4269 #ifndef C_SWITCH_SYSTEM
4270 #define C_SWITCH_SYSTEM
4271 #endif
4272 #ifndef C_SWITCH_MACHINE
4273 #define C_SWITCH_MACHINE
4274 #endif
4275 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4276 configure___ c_switch_system=C_SWITCH_SYSTEM
4277 configure___ c_switch_machine=C_SWITCH_MACHINE
4278
4279 #ifndef LIB_X11_LIB
4280 #define LIB_X11_LIB -lX11
4281 #endif
4282
4283 #ifndef LIBX11_MACHINE
4284 #define LIBX11_MACHINE
4285 #endif
4286
4287 #ifndef LIBX11_SYSTEM
4288 #define LIBX11_SYSTEM
4289 #endif
4290 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4291
4292 #ifdef UNEXEC
4293 configure___ unexec=UNEXEC
4294 #else
4295 configure___ unexec=unexec.o
4296 #endif
4297
4298 #ifdef SYSTEM_MALLOC
4299 configure___ system_malloc=yes
4300 #else
4301 configure___ system_malloc=no
4302 #endif
4303
4304 #ifdef USE_MMAP_FOR_BUFFERS
4305 configure___ use_mmap_for_buffers=yes
4306 #else
4307 configure___ use_mmap_for_buffers=no
4308 #endif
4309
4310 #ifndef C_DEBUG_SWITCH
4311 #define C_DEBUG_SWITCH -g
4312 #endif
4313
4314 #ifndef C_OPTIMIZE_SWITCH
4315 #ifdef __GNUC__
4316 #define C_OPTIMIZE_SWITCH -O2
4317 #else
4318 #define C_OPTIMIZE_SWITCH -O
4319 #endif
4320 #endif
4321
4322 #ifndef LD_SWITCH_MACHINE
4323 #define LD_SWITCH_MACHINE
4324 #endif
4325
4326 #ifndef LD_SWITCH_SYSTEM
4327 #define LD_SWITCH_SYSTEM
4328 #endif
4329
4330 #ifndef LD_SWITCH_X_SITE_AUX
4331 #define LD_SWITCH_X_SITE_AUX
4332 #endif
4333
4334 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4335 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4336
4337 #ifdef THIS_IS_CONFIGURE
4338
4339 /* Get the CFLAGS for tests in configure. */
4340 #ifdef __GNUC__
4341 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4342 #else
4343 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4344 #endif
4345
4346 #else /* not THIS_IS_CONFIGURE */
4347
4348 /* Get the CFLAGS for real compilation. */
4349 #ifdef __GNUC__
4350 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4351 #else
4352 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4353 #endif
4354
4355 #endif /* not THIS_IS_CONFIGURE */
4356 ' > ${tempcname}
4357
4358 # The value of CPP is a quoted variable reference, so we need to do this
4359 # to get its actual value...
4360 CPP=`eval "echo $CPP"`
4361 eval `${CPP} -Isrc ${tempcname} \
4362 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4363 if test "x$SPECIFIED_CFLAGS" = x; then
4364 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4365 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4366 else
4367 REAL_CFLAGS="$CFLAGS"
4368 fi
4369 rm ${tempcname}
4370
4371 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4372
4373 ### Make sure subsequent tests use flags consistent with the build flags.
4374
4375 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4376 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4377 else
4378 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4379 fi
4380
4381
4382
4383
4384 cat >>confdefs.h <<\_ACEOF
4385 #define _GNU_SOURCE 1
4386 _ACEOF
4387
4388
4389
4390 # Check whether --enable-largefile or --disable-largefile was given.
4391 if test "${enable_largefile+set}" = set; then
4392 enableval="$enable_largefile"
4393
4394 fi;
4395 if test "$enable_largefile" != no; then
4396
4397 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4398 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 ac_cv_sys_largefile_CC=no
4403 if test "$GCC" != yes; then
4404 ac_save_CC=$CC
4405 while :; do
4406 # IRIX 6.2 and later do not support large files by default,
4407 # so use the C compiler's -n32 option if that helps.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4422 ? 1 : -1];
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 break
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 fi
4459 rm -f conftest.err conftest.$ac_objext
4460 CC="$CC -n32"
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_sys_largefile_CC=' -n32'; break
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 fi
4489 rm -f conftest.err conftest.$ac_objext
4490 break
4491 done
4492 CC=$ac_save_CC
4493 rm -f conftest.$ac_ext
4494 fi
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4497 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4498 if test "$ac_cv_sys_largefile_CC" != no; then
4499 CC=$CC$ac_cv_sys_largefile_CC
4500 fi
4501
4502 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4503 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 while :; do
4508 ac_cv_sys_file_offset_bits=no
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 /* Check that off_t can represent 2**63 - 1 correctly.
4517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518 since some C++ compilers masquerading as C compilers
4519 incorrectly reject 9223372036854775807. */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522 && LARGE_OFF_T % 2147483647 == 1)
4523 ? 1 : -1];
4524 int
4525 main ()
4526 {
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 break
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 fi
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #define _FILE_OFFSET_BITS 64
4568 #include <sys/types.h>
4569 /* Check that off_t can represent 2**63 - 1 correctly.
4570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4571 since some C++ compilers masquerading as C compilers
4572 incorrectly reject 9223372036854775807. */
4573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4575 && LARGE_OFF_T % 2147483647 == 1)
4576 ? 1 : -1];
4577 int
4578 main ()
4579 {
4580
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_sys_file_offset_bits=64; break
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 fi
4613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 break
4615 done
4616 fi
4617 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4618 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4619 if test "$ac_cv_sys_file_offset_bits" != no; then
4620
4621 cat >>confdefs.h <<_ACEOF
4622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4623 _ACEOF
4624
4625 fi
4626 rm -f conftest*
4627 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4629 if test "${ac_cv_sys_large_files+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 while :; do
4633 ac_cv_sys_large_files=no
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 /* Check that off_t can represent 2**63 - 1 correctly.
4642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4643 since some C++ compilers masquerading as C compilers
4644 incorrectly reject 9223372036854775807. */
4645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4647 && LARGE_OFF_T % 2147483647 == 1)
4648 ? 1 : -1];
4649 int
4650 main ()
4651 {
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 break
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 fi
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #define _LARGE_FILES 1
4693 #include <sys/types.h>
4694 /* Check that off_t can represent 2**63 - 1 correctly.
4695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696 since some C++ compilers masquerading as C compilers
4697 incorrectly reject 9223372036854775807. */
4698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700 && LARGE_OFF_T % 2147483647 == 1)
4701 ? 1 : -1];
4702 int
4703 main ()
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_sys_large_files=1; break
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 break
4740 done
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4743 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4744 if test "$ac_cv_sys_large_files" != no; then
4745
4746 cat >>confdefs.h <<_ACEOF
4747 #define _LARGE_FILES $ac_cv_sys_large_files
4748 _ACEOF
4749
4750 fi
4751 rm -f conftest*
4752 fi
4753
4754
4755 if test "${with_sound}" != "no"; then
4756 # Sound support for GNU/Linux and the free BSDs.
4757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4772
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_header_stdc=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_cv_header_stdc=no
4809 fi
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <string.h>
4821
4822 _ACEOF
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev/null 2>&1; then
4825 :
4826 else
4827 ac_cv_header_stdc=no
4828 fi
4829 rm -f conftest*
4830
4831 fi
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <stdlib.h>
4842
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "free" >/dev/null 2>&1; then
4846 :
4847 else
4848 ac_cv_header_stdc=no
4849 fi
4850 rm -f conftest*
4851
4852 fi
4853
4854 if test $ac_cv_header_stdc = yes; then
4855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4856 if test "$cross_compiling" = yes; then
4857 :
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <ctype.h>
4866 #if ((' ' & 0x0FF) == 0x020)
4867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4869 #else
4870 # define ISLOWER(c) \
4871 (('a' <= (c) && (c) <= 'i') \
4872 || ('j' <= (c) && (c) <= 'r') \
4873 || ('s' <= (c) && (c) <= 'z'))
4874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4875 #endif
4876
4877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4878 int
4879 main ()
4880 {
4881 int i;
4882 for (i = 0; i < 256; i++)
4883 if (XOR (islower (i), ISLOWER (i))
4884 || toupper (i) != TOUPPER (i))
4885 exit(2);
4886 exit (0);
4887 }
4888 _ACEOF
4889 rm -f conftest$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 :
4901 else
4902 echo "$as_me: program exited with status $ac_status" >&5
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ( exit $ac_status )
4907 ac_cv_header_stdc=no
4908 fi
4909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 fi
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4914 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4915 if test $ac_cv_header_stdc = yes; then
4916
4917 cat >>confdefs.h <<\_ACEOF
4918 #define STDC_HEADERS 1
4919 _ACEOF
4920
4921 fi
4922
4923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4934 inttypes.h stdint.h unistd.h
4935 do
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4949
4950 #include <$ac_header>
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 eval "$as_ac_Header=yes"
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 eval "$as_ac_Header=no"
4980 fi
4981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986 cat >>confdefs.h <<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 _ACEOF
4989
4990 fi
4991
4992 done
4993
4994
4995
4996
4997
4998 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4999 do
5000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5002 echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 fi
5007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5009 else
5010 # Is the header compilable?
5011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_header_compiler=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_header_compiler=no
5050 fi
5051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6
5054
5055 # Is the header present?
5056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <$ac_header>
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_c_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5077 else
5078 ac_cpp_err=
5079 fi
5080 else
5081 ac_cpp_err=yes
5082 fi
5083 if test -z "$ac_cpp_err"; then
5084 ac_header_preproc=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 ac_header_preproc=no
5090 fi
5091 rm -f conftest.err conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5093 echo "${ECHO_T}$ac_header_preproc" >&6
5094
5095 # So? What about this header?
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5097 yes:no: )
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5102 ac_header_preproc=yes
5103 ;;
5104 no:yes:* )
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5117 (
5118 cat <<\_ASBOX
5119 ## ------------------------------------------ ##
5120 ## Report this to the AC_PACKAGE_NAME lists. ##
5121 ## ------------------------------------------ ##
5122 _ASBOX
5123 ) |
5124 sed "s/^/$as_me: WARNING: /" >&2
5125 ;;
5126 esac
5127 echo "$as_me:$LINENO: checking for $ac_header" >&5
5128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 eval "$as_ac_Header=\$ac_header_preproc"
5133 fi
5134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5136
5137 fi
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h <<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 _ACEOF
5142
5143 fi
5144
5145 done
5146
5147 # Emulation library used on NetBSD.
5148 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5149 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5150 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 ac_check_lib_save_LIBS=$LIBS
5154 LIBS="-lossaudio $LIBS"
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161
5162 /* Override any gcc2 internal prototype to avoid an error. */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char _oss_ioctl ();
5169 int
5170 main ()
5171 {
5172 _oss_ioctl ();
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext conftest$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_lib_ossaudio__oss_ioctl=yes
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_cv_lib_ossaudio__oss_ioctl=no
5205 fi
5206 rm -f conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5213 LIBSOUND=-lossaudio
5214 else
5215 LIBSOUND=
5216 fi
5217
5218
5219 fi
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5245 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5246 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5247 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5248 do
5249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5251 echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 fi
5256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5258 else
5259 # Is the header compilable?
5260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 #include <$ac_header>
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_header_compiler=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 ac_header_compiler=no
5299 fi
5300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5302 echo "${ECHO_T}$ac_header_compiler" >&6
5303
5304 # Is the header present?
5305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <$ac_header>
5314 _ACEOF
5315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev/null; then
5323 if test -s conftest.err; then
5324 ac_cpp_err=$ac_c_preproc_warn_flag
5325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5326 else
5327 ac_cpp_err=
5328 fi
5329 else
5330 ac_cpp_err=yes
5331 fi
5332 if test -z "$ac_cpp_err"; then
5333 ac_header_preproc=yes
5334 else
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 ac_header_preproc=no
5339 fi
5340 rm -f conftest.err conftest.$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342 echo "${ECHO_T}$ac_header_preproc" >&6
5343
5344 # So? What about this header?
5345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5346 yes:no: )
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351 ac_header_preproc=yes
5352 ;;
5353 no:yes:* )
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5366 (
5367 cat <<\_ASBOX
5368 ## ------------------------------------------ ##
5369 ## Report this to the AC_PACKAGE_NAME lists. ##
5370 ## ------------------------------------------ ##
5371 _ASBOX
5372 ) |
5373 sed "s/^/$as_me: WARNING: /" >&2
5374 ;;
5375 esac
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 eval "$as_ac_Header=\$ac_header_preproc"
5382 fi
5383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5385
5386 fi
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5390 _ACEOF
5391
5392 fi
5393
5394 done
5395
5396
5397 for ac_header in term.h
5398 do
5399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
5427 else
5428 ac_cpp_err=yes
5429 fi
5430 if test -z "$ac_cpp_err"; then
5431 eval "$as_ac_Header=yes"
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 eval "$as_ac_Header=no"
5437 fi
5438 rm -f conftest.err conftest.$ac_ext
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 _ACEOF
5446
5447 fi
5448
5449 done
5450
5451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <stdlib.h>
5463 #include <stdarg.h>
5464 #include <string.h>
5465 #include <float.h>
5466
5467 int
5468 main ()
5469 {
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_header_stdc=yes
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502 ac_cv_header_stdc=no
5503 fi
5504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505
5506 if test $ac_cv_header_stdc = yes; then
5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <string.h>
5515
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev/null 2>&1; then
5519 :
5520 else
5521 ac_cv_header_stdc=no
5522 fi
5523 rm -f conftest*
5524
5525 fi
5526
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <stdlib.h>
5536
5537 _ACEOF
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then
5540 :
5541 else
5542 ac_cv_header_stdc=no
5543 fi
5544 rm -f conftest*
5545
5546 fi
5547
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then
5551 :
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <ctype.h>
5560 #if ((' ' & 0x0FF) == 0x020)
5561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5563 #else
5564 # define ISLOWER(c) \
5565 (('a' <= (c) && (c) <= 'i') \
5566 || ('j' <= (c) && (c) <= 'r') \
5567 || ('s' <= (c) && (c) <= 'z'))
5568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569 #endif
5570
5571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5572 int
5573 main ()
5574 {
5575 int i;
5576 for (i = 0; i < 256; i++)
5577 if (XOR (islower (i), ISLOWER (i))
5578 || toupper (i) != TOUPPER (i))
5579 exit(2);
5580 exit (0);
5581 }
5582 _ACEOF
5583 rm -f conftest$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 :
5595 else
5596 echo "$as_me: program exited with status $ac_status" >&5
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 ( exit $ac_status )
5601 ac_cv_header_stdc=no
5602 fi
5603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5604 fi
5605 fi
5606 fi
5607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5609 if test $ac_cv_header_stdc = yes; then
5610
5611 cat >>confdefs.h <<\_ACEOF
5612 #define STDC_HEADERS 1
5613 _ACEOF
5614
5615 fi
5616
5617 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5619 if test "${ac_cv_header_time+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 #include <sys/time.h>
5630 #include <time.h>
5631
5632 int
5633 main ()
5634 {
5635 if ((struct tm *) 0)
5636 return 0;
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_header_time=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 ac_cv_header_time=no
5669 fi
5670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 fi
5672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5673 echo "${ECHO_T}$ac_cv_header_time" >&6
5674 if test $ac_cv_header_time = yes; then
5675
5676 cat >>confdefs.h <<\_ACEOF
5677 #define TIME_WITH_SYS_TIME 1
5678 _ACEOF
5679
5680 fi
5681
5682 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5683 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5684 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5694 int
5695 main ()
5696 {
5697 #ifndef sys_siglist
5698 char *p = (char *) sys_siglist;
5699 #endif
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_have_decl_sys_siglist=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_cv_have_decl_sys_siglist=no
5733 fi
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5737 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5738 if test $ac_cv_have_decl_sys_siglist = yes; then
5739
5740 cat >>confdefs.h <<_ACEOF
5741 #define HAVE_DECL_SYS_SIGLIST 1
5742 _ACEOF
5743
5744
5745 else
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 0
5748 _ACEOF
5749
5750
5751 fi
5752
5753
5754 if test $ac_cv_have_decl_sys_siglist != yes; then
5755 # For Tru64, at least:
5756 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5757 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5758 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5768 int
5769 main ()
5770 {
5771 #ifndef __sys_siglist
5772 char *p = (char *) __sys_siglist;
5773 #endif
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_have_decl___sys_siglist=yes
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_cv_have_decl___sys_siglist=no
5807 fi
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5811 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5812 if test $ac_cv_have_decl___sys_siglist = yes; then
5813
5814 cat >>confdefs.h <<_ACEOF
5815 #define HAVE_DECL___SYS_SIGLIST 1
5816 _ACEOF
5817
5818
5819 else
5820 cat >>confdefs.h <<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 0
5822 _ACEOF
5823
5824
5825 fi
5826
5827
5828 if test $ac_cv_have_decl___sys_siglist = yes; then
5829
5830 cat >>confdefs.h <<\_ACEOF
5831 #define sys_siglist __sys_siglist
5832 _ACEOF
5833
5834 fi
5835 fi
5836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <sys/types.h>
5848 #include <sys/wait.h>
5849 #ifndef WEXITSTATUS
5850 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5851 #endif
5852 #ifndef WIFEXITED
5853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5854 #endif
5855
5856 int
5857 main ()
5858 {
5859 int s;
5860 wait (&s);
5861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_header_sys_wait_h=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_cv_header_sys_wait_h=no
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5899 if test $ac_cv_header_sys_wait_h = yes; then
5900
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_SYS_WAIT_H 1
5903 _ACEOF
5904
5905 fi
5906
5907
5908 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5909 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5910 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef TIME_WITH_SYS_TIME
5920 #include <sys/time.h>
5921 #include <time.h>
5922 #else
5923 #ifdef HAVE_SYS_TIME_H
5924 #include <sys/time.h>
5925 #else
5926 #include <time.h>
5927 #endif
5928 #endif
5929 #ifdef HAVE_UTIME_H
5930 #include <utime.h>
5931 #endif
5932 int
5933 main ()
5934 {
5935 static struct utimbuf x; x.actime = x.modtime;
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 emacs_cv_struct_utimbuf=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 emacs_cv_struct_utimbuf=no
5968 fi
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5972 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5973 if test $emacs_cv_struct_utimbuf = yes; then
5974
5975 cat >>confdefs.h <<\_ACEOF
5976 #define HAVE_STRUCT_UTIMBUF 1
5977 _ACEOF
5978
5979 fi
5980
5981 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5983 if test "${ac_cv_type_signal+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 #include <signal.h>
5994 #ifdef signal
5995 # undef signal
5996 #endif
5997 #ifdef __cplusplus
5998 extern "C" void (*signal (int, void (*)(int)))(int);
5999 #else
6000 void (*signal ()) ();
6001 #endif
6002
6003 int
6004 main ()
6005 {
6006 int i;
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_signal=void
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_cv_type_signal=int
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6043 echo "${ECHO_T}$ac_cv_type_signal" >&6
6044
6045 cat >>confdefs.h <<_ACEOF
6046 #define RETSIGTYPE $ac_cv_type_signal
6047 _ACEOF
6048
6049
6050
6051 echo "$as_me:$LINENO: checking for speed_t" >&5
6052 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6053 if test "${emacs_cv_speed_t+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <termios.h>
6063 int
6064 main ()
6065 {
6066 speed_t x = 1;
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_speed_t=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 emacs_cv_speed_t=no
6099 fi
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6103 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6104 if test $emacs_cv_speed_t = yes; then
6105
6106 cat >>confdefs.h <<\_ACEOF
6107 #define HAVE_SPEED_T 1
6108 _ACEOF
6109
6110 fi
6111
6112 echo "$as_me:$LINENO: checking for struct timeval" >&5
6113 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6114 if test "${emacs_cv_struct_timeval+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #ifdef TIME_WITH_SYS_TIME
6124 #include <sys/time.h>
6125 #include <time.h>
6126 #else
6127 #ifdef HAVE_SYS_TIME_H
6128 #include <sys/time.h>
6129 #else
6130 #include <time.h>
6131 #endif
6132 #endif
6133 int
6134 main ()
6135 {
6136 static struct timeval x; x.tv_sec = x.tv_usec;
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 emacs_cv_struct_timeval=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 emacs_cv_struct_timeval=no
6169 fi
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6173 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6174 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6175 if test $emacs_cv_struct_timeval = yes; then
6176
6177 cat >>confdefs.h <<\_ACEOF
6178 #define HAVE_TIMEVAL 1
6179 _ACEOF
6180
6181 fi
6182
6183 echo "$as_me:$LINENO: checking for struct exception" >&5
6184 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6185 if test "${emacs_cv_struct_exception+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <math.h>
6195 int
6196 main ()
6197 {
6198 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 emacs_cv_struct_exception=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 emacs_cv_struct_exception=no
6231 fi
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6233 fi
6234 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6235 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6236 HAVE_EXCEPTION=$emacs_cv_struct_exception
6237 if test $emacs_cv_struct_exception != yes; then
6238
6239 cat >>confdefs.h <<\_ACEOF
6240 #define NO_MATHERR 1
6241 _ACEOF
6242
6243 fi
6244
6245 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6246 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6247 if test "${ac_cv_struct_tm+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <sys/types.h>
6257 #include <time.h>
6258
6259 int
6260 main ()
6261 {
6262 struct tm *tp; tp->tm_sec;
6263 ;
6264 return 0;
6265 }
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_struct_tm=time.h
6290 else
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_cv_struct_tm=sys/time.h
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6299 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6300 if test $ac_cv_struct_tm = sys/time.h; then
6301
6302 cat >>confdefs.h <<\_ACEOF
6303 #define TM_IN_SYS_TIME 1
6304 _ACEOF
6305
6306 fi
6307
6308 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6309 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6310 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6320 #include <$ac_cv_struct_tm>
6321
6322
6323 int
6324 main ()
6325 {
6326 static struct tm ac_aggr;
6327 if (ac_aggr.tm_zone)
6328 return 0;
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_member_struct_tm_tm_zone=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <$ac_cv_struct_tm>
6368
6369
6370 int
6371 main ()
6372 {
6373 static struct tm ac_aggr;
6374 if (sizeof ac_aggr.tm_zone)
6375 return 0;
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_member_struct_tm_tm_zone=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ac_cv_member_struct_tm_tm_zone=no
6408 fi
6409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 fi
6413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6416
6417 cat >>confdefs.h <<_ACEOF
6418 #define HAVE_STRUCT_TM_TM_ZONE 1
6419 _ACEOF
6420
6421
6422 fi
6423
6424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6425
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_TM_ZONE 1
6428 _ACEOF
6429
6430 else
6431 echo "$as_me:$LINENO: checking for tzname" >&5
6432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6433 if test "${ac_cv_var_tzname+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <time.h>
6443 #ifndef tzname /* For SGI. */
6444 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6445 #endif
6446
6447 int
6448 main ()
6449 {
6450 atoi(*tzname);
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext conftest$ac_exeext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6457 (eval $ac_link) 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest$ac_exeext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_var_tzname=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_var_tzname=no
6483 fi
6484 rm -f conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6486 fi
6487 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6488 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6489 if test $ac_cv_var_tzname = yes; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_TZNAME 1
6493 _ACEOF
6494
6495 fi
6496 fi
6497
6498 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6499 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6500 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <time.h>
6510
6511 int
6512 main ()
6513 {
6514 static struct tm ac_aggr;
6515 if (ac_aggr.tm_gmtoff)
6516 return 0;
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_member_struct_tm_tm_gmtoff=yes
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <time.h>
6555
6556 int
6557 main ()
6558 {
6559 static struct tm ac_aggr;
6560 if (sizeof ac_aggr.tm_gmtoff)
6561 return 0;
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_member_struct_tm_tm_gmtoff=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_member_struct_tm_tm_gmtoff=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6600 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6601 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6602
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_TM_GMTOFF 1
6605 _ACEOF
6606
6607 fi
6608
6609 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6610 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6611 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <net/if.h>
6621
6622 int
6623 main ()
6624 {
6625 static struct ifreq ac_aggr;
6626 if (ac_aggr.ifr_flags)
6627 return 0;
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_member_struct_ifreq_ifr_flags=yes
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <net/if.h>
6666
6667 int
6668 main ()
6669 {
6670 static struct ifreq ac_aggr;
6671 if (sizeof ac_aggr.ifr_flags)
6672 return 0;
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679 (eval $ac_compile) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_member_struct_ifreq_ifr_flags=yes
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 ac_cv_member_struct_ifreq_ifr_flags=no
6705 fi
6706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 fi
6710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6711 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6712 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6713
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6716 _ACEOF
6717
6718
6719 fi
6720 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6721 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6722 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <net/if.h>
6732
6733 int
6734 main ()
6735 {
6736 static struct ifreq ac_aggr;
6737 if (ac_aggr.ifr_hwaddr)
6738 return 0;
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6766 else
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 #include <net/if.h>
6777
6778 int
6779 main ()
6780 {
6781 static struct ifreq ac_aggr;
6782 if (sizeof ac_aggr.ifr_hwaddr)
6783 return 0;
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
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); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820 fi
6821 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6822 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6823 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6824
6825 cat >>confdefs.h <<_ACEOF
6826 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6827 _ACEOF
6828
6829
6830 fi
6831 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6832 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6833 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <net/if.h>
6843
6844 int
6845 main ()
6846 {
6847 static struct ifreq ac_aggr;
6848 if (ac_aggr.ifr_netmask)
6849 return 0;
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
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); }; } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_member_struct_ifreq_ifr_netmask=yes
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <net/if.h>
6888
6889 int
6890 main ()
6891 {
6892 static struct ifreq ac_aggr;
6893 if (sizeof ac_aggr.ifr_netmask)
6894 return 0;
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
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); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_member_struct_ifreq_ifr_netmask=yes
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_cv_member_struct_ifreq_ifr_netmask=no
6927 fi
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6933 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6934 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6935
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6938 _ACEOF
6939
6940
6941 fi
6942 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6943 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6944 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <net/if.h>
6954
6955 int
6956 main ()
6957 {
6958 static struct ifreq ac_aggr;
6959 if (ac_aggr.ifr_broadaddr)
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_broadaddr=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 #include <net/if.h>
6999
7000 int
7001 main ()
7002 {
7003 static struct ifreq ac_aggr;
7004 if (sizeof ac_aggr.ifr_broadaddr)
7005 return 0;
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7032 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7038 fi
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7044 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7045 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7046
7047 cat >>confdefs.h <<_ACEOF
7048 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7049 _ACEOF
7050
7051
7052 fi
7053 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7054 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7055 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <net/if.h>
7065
7066 int
7067 main ()
7068 {
7069 static struct ifreq ac_aggr;
7070 if (ac_aggr.ifr_addr)
7071 return 0;
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_member_struct_ifreq_ifr_addr=yes
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <net/if.h>
7110
7111 int
7112 main ()
7113 {
7114 static struct ifreq ac_aggr;
7115 if (sizeof ac_aggr.ifr_addr)
7116 return 0;
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 ac_cv_member_struct_ifreq_ifr_addr=yes
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_member_struct_ifreq_ifr_addr=no
7149 fi
7150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7151 fi
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7155 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7156 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7160 _ACEOF
7161
7162
7163 fi
7164
7165
7166
7167 echo "$as_me:$LINENO: checking for function prototypes" >&5
7168 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7169 if test "$ac_cv_prog_cc_stdc" != no; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171 echo "${ECHO_T}yes" >&6
7172
7173 cat >>confdefs.h <<\_ACEOF
7174 #define PROTOTYPES 1
7175 _ACEOF
7176
7177
7178 cat >>confdefs.h <<\_ACEOF
7179 #define __PROTOTYPES 1
7180 _ACEOF
7181
7182 else
7183 echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7185 fi
7186
7187 echo "$as_me:$LINENO: checking for working volatile" >&5
7188 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7189 if test "${ac_cv_c_volatile+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198
7199 int
7200 main ()
7201 {
7202
7203 volatile int x;
7204 int * volatile y;
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 ac_cv_c_volatile=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 ac_cv_c_volatile=no
7237 fi
7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239 fi
7240 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7241 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7242 if test $ac_cv_c_volatile = no; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define volatile
7246 _ACEOF
7247
7248 fi
7249
7250 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7251 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7252 if test "${ac_cv_c_const+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261
7262 int
7263 main ()
7264 {
7265 /* FIXME: Include the comments suggested by Paul. */
7266 #ifndef __cplusplus
7267 /* Ultrix mips cc rejects this. */
7268 typedef int charset[2];
7269 const charset x;
7270 /* SunOS 4.1.1 cc rejects this. */
7271 char const *const *ccp;
7272 char **p;
7273 /* NEC SVR4.0.2 mips cc rejects this. */
7274 struct point {int x, y;};
7275 static struct point const zero = {0,0};
7276 /* AIX XL C 1.02.0.0 rejects this.
7277 It does not let you subtract one const X* pointer from another in
7278 an arm of an if-expression whose if-part is not a constant
7279 expression */
7280 const char *g = "string";
7281 ccp = &g + (g ? g-g : 0);
7282 /* HPUX 7.0 cc rejects these. */
7283 ++ccp;
7284 p = (char**) ccp;
7285 ccp = (char const *const *) p;
7286 { /* SCO 3.2v4 cc rejects this. */
7287 char *t;
7288 char const *s = 0 ? (char *) 0 : (char const *) 0;
7289
7290 *t++ = 0;
7291 }
7292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7293 int x[] = {25, 17};
7294 const int *foo = &x[0];
7295 ++foo;
7296 }
7297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7298 typedef const int *iptr;
7299 iptr p = 0;
7300 ++p;
7301 }
7302 { /* AIX XL C 1.02.0.0 rejects this saying
7303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7304 struct s { int j; const int *ap[3]; };
7305 struct s *b; b->j = 5;
7306 }
7307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7308 const int foo = 10;
7309 }
7310 #endif
7311
7312 ;
7313 return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_cv_c_const=yes
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7342
7343 ac_cv_c_const=no
7344 fi
7345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7348 echo "${ECHO_T}$ac_cv_c_const" >&6
7349 if test $ac_cv_c_const = no; then
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define const
7353 _ACEOF
7354
7355 fi
7356
7357 echo "$as_me:$LINENO: checking for void * support" >&5
7358 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7359 if test "${emacs_cv_void_star+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368
7369 int
7370 main ()
7371 {
7372 void * foo;
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 rm -f conftest.$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>conftest.er1
7380 ac_status=$?
7381 grep -v '^ *+' conftest.er1 >conftest.err
7382 rm -f conftest.er1
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -z "$ac_c_werror_flag"
7387 || test ! -s conftest.err'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; } &&
7393 { ac_try='test -s conftest.$ac_objext'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 (eval $ac_try) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; }; then
7399 emacs_cv_void_star=yes
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 emacs_cv_void_star=no
7405 fi
7406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7409 echo "${ECHO_T}$emacs_cv_void_star" >&6
7410 if test $emacs_cv_void_star = yes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define POINTER_TYPE void
7413 _ACEOF
7414
7415 else
7416 cat >>confdefs.h <<\_ACEOF
7417 #define POINTER_TYPE char
7418 _ACEOF
7419
7420 fi
7421
7422
7423
7424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7426 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 cat >conftest.make <<\_ACEOF
7431 all:
7432 @echo 'ac_maketemp="$(MAKE)"'
7433 _ACEOF
7434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7436 if test -n "$ac_maketemp"; then
7437 eval ac_cv_prog_make_${ac_make}_set=yes
7438 else
7439 eval ac_cv_prog_make_${ac_make}_set=no
7440 fi
7441 rm -f conftest.make
7442 fi
7443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445 echo "${ECHO_T}yes" >&6
7446 SET_MAKE=
7447 else
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450 SET_MAKE="MAKE=${MAKE-make}"
7451 fi
7452
7453
7454 echo "$as_me:$LINENO: checking for long file names" >&5
7455 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7456 if test "${ac_cv_sys_long_file_names+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 ac_cv_sys_long_file_names=yes
7460 # Test for long file names in all the places we know might matter:
7461 # . the current directory, where building will happen
7462 # $prefix/lib where we will be installing things
7463 # $exec_prefix/lib likewise
7464 # eval it to expand exec_prefix.
7465 # $TMPDIR if set, where it might want to write temporary files
7466 # if $TMPDIR is not set:
7467 # /tmp where it might want to write temporary files
7468 # /var/tmp likewise
7469 # /usr/tmp likewise
7470 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7471 ac_tmpdirs=$TMPDIR
7472 else
7473 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7474 fi
7475 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7476 test -d $ac_dir || continue
7477 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7478 ac_xdir=$ac_dir/cf$$
7479 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7480 ac_tf1=$ac_xdir/conftest9012345
7481 ac_tf2=$ac_xdir/conftest9012346
7482 (echo 1 >$ac_tf1) 2>/dev/null
7483 (echo 2 >$ac_tf2) 2>/dev/null
7484 ac_val=`cat $ac_tf1 2>/dev/null`
7485 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7486 ac_cv_sys_long_file_names=no
7487 rm -rf $ac_xdir 2>/dev/null
7488 break
7489 fi
7490 rm -rf $ac_xdir 2>/dev/null
7491 done
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7494 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7495 if test $ac_cv_sys_long_file_names = yes; then
7496
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_LONG_FILE_NAMES 1
7499 _ACEOF
7500
7501 fi
7502
7503
7504 #### Choose a window system.
7505
7506 echo "$as_me:$LINENO: checking for X" >&5
7507 echo $ECHO_N "checking for X... $ECHO_C" >&6
7508
7509
7510 # Check whether --with-x or --without-x was given.
7511 if test "${with_x+set}" = set; then
7512 withval="$with_x"
7513
7514 fi;
7515 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7516 if test "x$with_x" = xno; then
7517 # The user explicitly disabled X.
7518 have_x=disabled
7519 else
7520 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7521 # Both variables are already set.
7522 have_x=yes
7523 else
7524 if test "${ac_cv_have_x+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 # One or both of the vars are not set, and there is no cached value.
7528 ac_x_includes=no ac_x_libraries=no
7529 rm -fr conftest.dir
7530 if mkdir conftest.dir; then
7531 cd conftest.dir
7532 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7533 cat >Imakefile <<'_ACEOF'
7534 acfindx:
7535 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7536 _ACEOF
7537 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7539 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7540 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7541 for ac_extension in a so sl; do
7542 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7543 test -f $ac_im_libdir/libX11.$ac_extension; then
7544 ac_im_usrlibdir=$ac_im_libdir; break
7545 fi
7546 done
7547 # Screen out bogus values from the imake configuration. They are
7548 # bogus both because they are the default anyway, and because
7549 # using them would break gcc on systems where it needs fixed includes.
7550 case $ac_im_incroot in
7551 /usr/include) ;;
7552 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7553 esac
7554 case $ac_im_usrlibdir in
7555 /usr/lib | /lib) ;;
7556 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7557 esac
7558 fi
7559 cd ..
7560 rm -fr conftest.dir
7561 fi
7562
7563 # Standard set of common directories for X headers.
7564 # Check X11 before X11Rn because it is often a symlink to the current release.
7565 ac_x_header_dirs='
7566 /usr/X11/include
7567 /usr/X11R6/include
7568 /usr/X11R5/include
7569 /usr/X11R4/include
7570
7571 /usr/include/X11
7572 /usr/include/X11R6
7573 /usr/include/X11R5
7574 /usr/include/X11R4
7575
7576 /usr/local/X11/include
7577 /usr/local/X11R6/include
7578 /usr/local/X11R5/include
7579 /usr/local/X11R4/include
7580
7581 /usr/local/include/X11
7582 /usr/local/include/X11R6
7583 /usr/local/include/X11R5
7584 /usr/local/include/X11R4
7585
7586 /usr/X386/include
7587 /usr/x386/include
7588 /usr/XFree86/include/X11
7589
7590 /usr/include
7591 /usr/local/include
7592 /usr/unsupported/include
7593 /usr/athena/include
7594 /usr/local/x11r5/include
7595 /usr/lpp/Xamples/include
7596
7597 /usr/openwin/include
7598 /usr/openwin/share/include'
7599
7600 if test "$ac_x_includes" = no; then
7601 # Guess where to find include files, by looking for Intrinsic.h.
7602 # First, try using that file with no special directory specified.
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <X11/Intrinsic.h>
7610 _ACEOF
7611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } >/dev/null; then
7619 if test -s conftest.err; then
7620 ac_cpp_err=$ac_c_preproc_warn_flag
7621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7622 else
7623 ac_cpp_err=
7624 fi
7625 else
7626 ac_cpp_err=yes
7627 fi
7628 if test -z "$ac_cpp_err"; then
7629 # We can compile using X headers with no special include directory.
7630 ac_x_includes=
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7634
7635 for ac_dir in $ac_x_header_dirs; do
7636 if test -r "$ac_dir/X11/Intrinsic.h"; then
7637 ac_x_includes=$ac_dir
7638 break
7639 fi
7640 done
7641 fi
7642 rm -f conftest.err conftest.$ac_ext
7643 fi # $ac_x_includes = no
7644
7645 if test "$ac_x_libraries" = no; then
7646 # Check for the libraries.
7647 # See if we find them without any special options.
7648 # Don't add to $LIBS permanently.
7649 ac_save_LIBS=$LIBS
7650 LIBS="-lXt $LIBS"
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <X11/Intrinsic.h>
7658 int
7659 main ()
7660 {
7661 XtMalloc (0)
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -z "$ac_c_werror_flag"
7676 || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 LIBS=$ac_save_LIBS
7689 # We can link X programs with no special library path.
7690 ac_x_libraries=
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 LIBS=$ac_save_LIBS
7696 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7697 do
7698 # Don't even attempt the hair of trying to link an X program!
7699 for ac_extension in a so sl; do
7700 if test -r $ac_dir/libXt.$ac_extension; then
7701 ac_x_libraries=$ac_dir
7702 break 2
7703 fi
7704 done
7705 done
7706 fi
7707 rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 fi # $ac_x_libraries = no
7710
7711 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7712 # Didn't find X anywhere. Cache the known absence of X.
7713 ac_cv_have_x="have_x=no"
7714 else
7715 # Record where we found X for the cache.
7716 ac_cv_have_x="have_x=yes \
7717 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7718 fi
7719 fi
7720
7721 fi
7722 eval "$ac_cv_have_x"
7723 fi # $with_x != no
7724
7725 if test "$have_x" != yes; then
7726 echo "$as_me:$LINENO: result: $have_x" >&5
7727 echo "${ECHO_T}$have_x" >&6
7728 no_x=yes
7729 else
7730 # If each of the values was on the command line, it overrides each guess.
7731 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7732 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7733 # Update the cache value to reflect the command line values.
7734 ac_cv_have_x="have_x=yes \
7735 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7736 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7737 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7738 fi
7739
7740 if test "$no_x" = yes; then
7741 window_system=none
7742 else
7743 window_system=x11
7744 fi
7745
7746 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7747 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7748 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7749 x_default_search_path=""
7750 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7751 x_search_path="\
7752 ${x_library}/X11/%L/%T/%N%C%S:\
7753 ${x_library}/X11/%l/%T/%N%C%S:\
7754 ${x_library}/X11/%T/%N%C%S:\
7755 ${x_library}/X11/%L/%T/%N%S:\
7756 ${x_library}/X11/%l/%T/%N%S:\
7757 ${x_library}/X11/%T/%N%S"
7758 if test x"${x_default_search_path}" = x; then
7759 x_default_search_path=${x_search_path}
7760 else
7761 x_default_search_path="${x_search_path}:${x_default_search_path}"
7762 fi
7763 done
7764 fi
7765 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7766 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7767 fi
7768
7769 if test x"${x_includes}" = x; then
7770 bitmapdir=/usr/include/X11/bitmaps
7771 else
7772 # accumulate include directories that have X11 bitmap subdirectories
7773 bmd_acc="dummyval"
7774 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7775 if test -d "${bmd}/X11/bitmaps"; then
7776 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7777 fi
7778 if test -d "${bmd}/bitmaps"; then
7779 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7780 fi
7781 done
7782 if test ${bmd_acc} != "dummyval"; then
7783 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7784 fi
7785 fi
7786
7787 case "${window_system}" in
7788 x11 )
7789 HAVE_X_WINDOWS=yes
7790 HAVE_X11=yes
7791 case "${with_x_toolkit}" in
7792 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7793 motif ) USE_X_TOOLKIT=MOTIF ;;
7794 gtk ) with_gtk=yes
7795 USE_X_TOOLKIT=none ;;
7796 no ) USE_X_TOOLKIT=none ;;
7797 * ) USE_X_TOOLKIT=maybe ;;
7798 esac
7799 ;;
7800 none )
7801 HAVE_X_WINDOWS=no
7802 HAVE_X11=no
7803 USE_X_TOOLKIT=none
7804 ;;
7805 esac
7806
7807 ### If we're using X11, we should use the X menu package.
7808 HAVE_MENUS=no
7809 case ${HAVE_X11} in
7810 yes ) HAVE_MENUS=yes ;;
7811 esac
7812
7813 if test "${opsys}" = "hpux9"; then
7814 case "${x_libraries}" in
7815 *X11R4* )
7816 opsysfile="s/hpux9-x11r4.h"
7817 ;;
7818 esac
7819 fi
7820
7821 if test "${opsys}" = "hpux9shr"; then
7822 case "${x_libraries}" in
7823 *X11R4* )
7824 opsysfile="s/hpux9shxr4.h"
7825 ;;
7826 esac
7827 fi
7828
7829 ### Compute the unexec source name from the object name.
7830 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7831
7832 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7833 # Assume not, until told otherwise.
7834 GNU_MALLOC=yes
7835 doug_lea_malloc=yes
7836 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7837 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7838 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
7848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7849 #define malloc_get_state innocuous_malloc_get_state
7850
7851 /* System header to define __stub macros and hopefully few prototypes,
7852 which can conflict with char malloc_get_state (); below.
7853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 <limits.h> exists even on freestanding compilers. */
7855
7856 #ifdef __STDC__
7857 # include <limits.h>
7858 #else
7859 # include <assert.h>
7860 #endif
7861
7862 #undef malloc_get_state
7863
7864 /* Override any gcc2 internal prototype to avoid an error. */
7865 #ifdef __cplusplus
7866 extern "C"
7867 {
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char malloc_get_state ();
7872 /* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7876 choke me
7877 #else
7878 char (*f) () = malloc_get_state;
7879 #endif
7880 #ifdef __cplusplus
7881 }
7882 #endif
7883
7884 int
7885 main ()
7886 {
7887 return f != malloc_get_state;
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_func_malloc_get_state=yes
7915 else
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 ac_cv_func_malloc_get_state=no
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 fi
7924 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7925 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7926 if test $ac_cv_func_malloc_get_state = yes; then
7927 :
7928 else
7929 doug_lea_malloc=no
7930 fi
7931
7932 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7933 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7934 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
7944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7945 #define malloc_set_state innocuous_malloc_set_state
7946
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char malloc_set_state (); below.
7949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950 <limits.h> exists even on freestanding compilers. */
7951
7952 #ifdef __STDC__
7953 # include <limits.h>
7954 #else
7955 # include <assert.h>
7956 #endif
7957
7958 #undef malloc_set_state
7959
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 #ifdef __cplusplus
7962 extern "C"
7963 {
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char malloc_set_state ();
7968 /* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7972 choke me
7973 #else
7974 char (*f) () = malloc_set_state;
7975 #endif
7976 #ifdef __cplusplus
7977 }
7978 #endif
7979
7980 int
7981 main ()
7982 {
7983 return f != malloc_set_state;
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_func_malloc_set_state=yes
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 ac_cv_func_malloc_set_state=no
8016 fi
8017 rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019 fi
8020 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8021 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8022 if test $ac_cv_func_malloc_set_state = yes; then
8023 :
8024 else
8025 doug_lea_malloc=no
8026 fi
8027
8028 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8029 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8030 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 extern void (* __after_morecore_hook)();
8040 int
8041 main ()
8042 {
8043 __after_morecore_hook = 0
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 emacs_cv_var___after_morecore_hook=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 emacs_cv_var___after_morecore_hook=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 fi
8080 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8081 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8082 if test $emacs_cv_var___after_morecore_hook = no; then
8083 doug_lea_malloc=no
8084 fi
8085 if test "${system_malloc}" = "yes"; then
8086 GNU_MALLOC=no
8087 GNU_MALLOC_reason="
8088 (The GNU allocators don't work with this system configuration.)"
8089 fi
8090 if test "$doug_lea_malloc" = "yes" ; then
8091 if test "$GNU_MALLOC" = yes ; then
8092 GNU_MALLOC_reason="
8093 (Using Doug Lea's new malloc from the GNU C Library.)"
8094 fi
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define DOUG_LEA_MALLOC 1
8098 _ACEOF
8099
8100 fi
8101
8102 if test x"${REL_ALLOC}" = x; then
8103 REL_ALLOC=${GNU_MALLOC}
8104 fi
8105
8106
8107
8108
8109 for ac_header in stdlib.h unistd.h
8110 do
8111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113 echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 fi
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8120 else
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #include <$ac_header>
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_header_compiler=yes
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_header_compiler=no
8161 fi
8162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8164 echo "${ECHO_T}$ac_header_compiler" >&6
8165
8166 # Is the header present?
8167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <$ac_header>
8176 _ACEOF
8177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } >/dev/null; then
8185 if test -s conftest.err; then
8186 ac_cpp_err=$ac_c_preproc_warn_flag
8187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8188 else
8189 ac_cpp_err=
8190 fi
8191 else
8192 ac_cpp_err=yes
8193 fi
8194 if test -z "$ac_cpp_err"; then
8195 ac_header_preproc=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_header_preproc=no
8201 fi
8202 rm -f conftest.err conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6
8205
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8208 yes:no: )
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213 ac_header_preproc=yes
8214 ;;
8215 no:yes:* )
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8228 (
8229 cat <<\_ASBOX
8230 ## ------------------------------------------ ##
8231 ## Report this to the AC_PACKAGE_NAME lists. ##
8232 ## ------------------------------------------ ##
8233 _ASBOX
8234 ) |
8235 sed "s/^/$as_me: WARNING: /" >&2
8236 ;;
8237 esac
8238 echo "$as_me:$LINENO: checking for $ac_header" >&5
8239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 eval "$as_ac_Header=\$ac_header_preproc"
8244 fi
8245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8247
8248 fi
8249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8250 cat >>confdefs.h <<_ACEOF
8251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8252 _ACEOF
8253
8254 fi
8255
8256 done
8257
8258
8259 for ac_func in getpagesize
8260 do
8261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8262 echo "$as_me:$LINENO: checking for $ac_func" >&5
8263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_var+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275 #define $ac_func innocuous_$ac_func
8276
8277 /* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char $ac_func (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8281
8282 #ifdef __STDC__
8283 # include <limits.h>
8284 #else
8285 # include <assert.h>
8286 #endif
8287
8288 #undef $ac_func
8289
8290 /* Override any gcc2 internal prototype to avoid an error. */
8291 #ifdef __cplusplus
8292 extern "C"
8293 {
8294 #endif
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297 char $ac_func ();
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8302 choke me
8303 #else
8304 char (*f) () = $ac_func;
8305 #endif
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 return f != $ac_func;
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 eval "$as_ac_var=yes"
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 eval "$as_ac_var=no"
8346 fi
8347 rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 fi
8350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8352 if test `eval echo '${'$as_ac_var'}'` = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8355 _ACEOF
8356
8357 fi
8358 done
8359
8360 echo "$as_me:$LINENO: checking for working mmap" >&5
8361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 if test "$cross_compiling" = yes; then
8366 ac_cv_func_mmap_fixed_mapped=no
8367 else
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 /* malloc might have been renamed as rpl_malloc. */
8376 #undef malloc
8377
8378 /* Thanks to Mike Haertel and Jim Avera for this test.
8379 Here is a matrix of mmap possibilities:
8380 mmap private not fixed
8381 mmap private fixed at somewhere currently unmapped
8382 mmap private fixed at somewhere already mapped
8383 mmap shared not fixed
8384 mmap shared fixed at somewhere currently unmapped
8385 mmap shared fixed at somewhere already mapped
8386 For private mappings, we should verify that changes cannot be read()
8387 back from the file, nor mmap's back from the file at a different
8388 address. (There have been systems where private was not correctly
8389 implemented like the infamous i386 svr4.0, and systems where the
8390 VM page cache was not coherent with the file system buffer cache
8391 like early versions of FreeBSD and possibly contemporary NetBSD.)
8392 For shared mappings, we should conversely verify that changes get
8393 propagated back to all the places they're supposed to be.
8394
8395 Grep wants private fixed already mapped.
8396 The main things grep needs to know about mmap are:
8397 * does it exist and is it safe to write into the mmap'd area
8398 * how to use it (BSD variants) */
8399
8400 #include <fcntl.h>
8401 #include <sys/mman.h>
8402
8403 #if !STDC_HEADERS && !HAVE_STDLIB_H
8404 char *malloc ();
8405 #endif
8406
8407 /* This mess was copied from the GNU getpagesize.h. */
8408 #if !HAVE_GETPAGESIZE
8409 /* Assume that all systems that can run configure have sys/param.h. */
8410 # if !HAVE_SYS_PARAM_H
8411 # define HAVE_SYS_PARAM_H 1
8412 # endif
8413
8414 # ifdef _SC_PAGESIZE
8415 # define getpagesize() sysconf(_SC_PAGESIZE)
8416 # else /* no _SC_PAGESIZE */
8417 # if HAVE_SYS_PARAM_H
8418 # include <sys/param.h>
8419 # ifdef EXEC_PAGESIZE
8420 # define getpagesize() EXEC_PAGESIZE
8421 # else /* no EXEC_PAGESIZE */
8422 # ifdef NBPG
8423 # define getpagesize() NBPG * CLSIZE
8424 # ifndef CLSIZE
8425 # define CLSIZE 1
8426 # endif /* no CLSIZE */
8427 # else /* no NBPG */
8428 # ifdef NBPC
8429 # define getpagesize() NBPC
8430 # else /* no NBPC */
8431 # ifdef PAGESIZE
8432 # define getpagesize() PAGESIZE
8433 # endif /* PAGESIZE */
8434 # endif /* no NBPC */
8435 # endif /* no NBPG */
8436 # endif /* no EXEC_PAGESIZE */
8437 # else /* no HAVE_SYS_PARAM_H */
8438 # define getpagesize() 8192 /* punt totally */
8439 # endif /* no HAVE_SYS_PARAM_H */
8440 # endif /* no _SC_PAGESIZE */
8441
8442 #endif /* no HAVE_GETPAGESIZE */
8443
8444 int
8445 main ()
8446 {
8447 char *data, *data2, *data3;
8448 int i, pagesize;
8449 int fd;
8450
8451 pagesize = getpagesize ();
8452
8453 /* First, make a file with some known garbage in it. */
8454 data = (char *) malloc (pagesize);
8455 if (!data)
8456 exit (1);
8457 for (i = 0; i < pagesize; ++i)
8458 *(data + i) = rand ();
8459 umask (0);
8460 fd = creat ("conftest.mmap", 0600);
8461 if (fd < 0)
8462 exit (1);
8463 if (write (fd, data, pagesize) != pagesize)
8464 exit (1);
8465 close (fd);
8466
8467 /* Next, try to mmap the file at a fixed address which already has
8468 something else allocated at it. If we can, also make sure that
8469 we see the same garbage. */
8470 fd = open ("conftest.mmap", O_RDWR);
8471 if (fd < 0)
8472 exit (1);
8473 data2 = (char *) malloc (2 * pagesize);
8474 if (!data2)
8475 exit (1);
8476 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8479 exit (1);
8480 for (i = 0; i < pagesize; ++i)
8481 if (*(data + i) != *(data2 + i))
8482 exit (1);
8483
8484 /* Finally, make sure that changes to the mapped area do not
8485 percolate back to the file as seen by read(). (This is a bug on
8486 some variants of i386 svr4.0.) */
8487 for (i = 0; i < pagesize; ++i)
8488 *(data2 + i) = *(data2 + i) + 1;
8489 data3 = (char *) malloc (pagesize);
8490 if (!data3)
8491 exit (1);
8492 if (read (fd, data3, pagesize) != pagesize)
8493 exit (1);
8494 for (i = 0; i < pagesize; ++i)
8495 if (*(data + i) != *(data3 + i))
8496 exit (1);
8497 close (fd);
8498 exit (0);
8499 }
8500 _ACEOF
8501 rm -f conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_func_mmap_fixed_mapped=yes
8513 else
8514 echo "$as_me: program exited with status $ac_status" >&5
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ( exit $ac_status )
8519 ac_cv_func_mmap_fixed_mapped=no
8520 fi
8521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 fi
8524 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8525 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define HAVE_MMAP 1
8530 _ACEOF
8531
8532 fi
8533 rm -f conftest.mmap
8534
8535 if test $use_mmap_for_buffers = yes; then
8536 REL_ALLOC=no
8537 fi
8538
8539 LIBS="$libsrc_libs $LIBS"
8540
8541
8542 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8543 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8544 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 ac_check_lib_save_LIBS=$LIBS
8548 LIBS="-ldnet $LIBS"
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555
8556 /* Override any gcc2 internal prototype to avoid an error. */
8557 #ifdef __cplusplus
8558 extern "C"
8559 #endif
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8562 char dnet_ntoa ();
8563 int
8564 main ()
8565 {
8566 dnet_ntoa ();
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_lib_dnet_dnet_ntoa=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598 ac_cv_lib_dnet_dnet_ntoa=no
8599 fi
8600 rm -f conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 LIBS=$ac_check_lib_save_LIBS
8603 fi
8604 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8605 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8606 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8607 cat >>confdefs.h <<_ACEOF
8608 #define HAVE_LIBDNET 1
8609 _ACEOF
8610
8611 LIBS="-ldnet $LIBS"
8612
8613 fi
8614
8615
8616 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8617 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8618 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 ac_check_lib_save_LIBS=$LIBS
8622 LIBS="-lXbsd $LIBS"
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629
8630
8631 int
8632 main ()
8633 {
8634 main ();
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_lib_Xbsd_main=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_lib_Xbsd_main=no
8667 fi
8668 rm -f conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8671 fi
8672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8673 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8674 if test $ac_cv_lib_Xbsd_main = yes; then
8675 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8676 fi
8677
8678
8679
8680 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8681 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8682 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lpthreads $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693
8694 /* Override any gcc2 internal prototype to avoid an error. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char cma_open ();
8701 int
8702 main ()
8703 {
8704 cma_open ();
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_lib_pthreads_cma_open=yes
8732 else
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_lib_pthreads_cma_open=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8743 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8744 if test $ac_cv_lib_pthreads_cma_open = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define HAVE_LIBPTHREADS 1
8747 _ACEOF
8748
8749 LIBS="-lpthreads $LIBS"
8750
8751 fi
8752
8753
8754 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8755 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8756 if test -d /usr/X386/include; then
8757 HAVE_XFREE386=yes
8758 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8759 else
8760 HAVE_XFREE386=no
8761 fi
8762 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8763 echo "${ECHO_T}$HAVE_XFREE386" >&6
8764
8765
8766 case ${host_os} in
8767 aix*)
8768 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8769 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8770 if test "${gdb_cv_bigtoc+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773
8774 case $GCC in
8775 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8776 *) gdb_cv_bigtoc=-bbigtoc ;;
8777 esac
8778
8779 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786
8787 int
8788 main ()
8789 {
8790 int i;
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 :
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 gdb_cv_bigtoc=
8823 fi
8824 rm -f conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826
8827 fi
8828 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8829 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8830 ;;
8831 esac
8832
8833 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8834 # used for the tests that follow. We set them back to REAL_CFLAGS and
8835 # REAL_CPPFLAGS later on.
8836
8837 REAL_CPPFLAGS="$CPPFLAGS"
8838
8839 if test "${HAVE_X11}" = "yes"; then
8840 DEFS="$C_SWITCH_X_SITE $DEFS"
8841 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8842 LIBS="$LIBX $LIBS"
8843 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8844 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8845
8846 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8847 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8848 # but it's more convenient here to set LD_RUN_PATH
8849 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8850 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8851 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8852 export LD_RUN_PATH
8853 fi
8854
8855 if test "${opsys}" = "gnu-linux"; then
8856 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8857 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864
8865 int
8866 main ()
8867 {
8868 XOpenDisplay ("foo");
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag"
8883 || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 xlinux_first_failure=no
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 xlinux_first_failure=yes
8901 fi
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 if test "${xlinux_first_failure}" = "yes"; then
8905 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8906 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8907 OLD_CPPFLAGS="$CPPFLAGS"
8908 OLD_LIBS="$LIBS"
8909 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8910 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8911 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8912 LIBS="$LIBS -b i486-linuxaout"
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h. */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8919
8920 int
8921 main ()
8922 {
8923 XOpenDisplay ("foo");
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 xlinux_second_failure=no
8951 else
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 xlinux_second_failure=yes
8956 fi
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 if test "${xlinux_second_failure}" = "yes"; then
8960 # If we get the same failure with -b, there is no use adding -b.
8961 # So take it out. This plays safe.
8962 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8963 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8964 CPPFLAGS="$OLD_CPPFLAGS"
8965 LIBS="$OLD_LIBS"
8966 echo "$as_me:$LINENO: result: no" >&5
8967 echo "${ECHO_T}no" >&6
8968 else
8969 echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6
8971 fi
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6
8975 fi
8976 fi
8977
8978 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8979 # header files included from there.
8980 echo "$as_me:$LINENO: checking for Xkb" >&5
8981 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 #include <X11/Xlib.h>
8989 #include <X11/XKBlib.h>
8990 int
8991 main ()
8992 {
8993 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 emacs_xkb=yes
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 emacs_xkb=no
9026 fi
9027 rm -f conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9030 echo "${ECHO_T}$emacs_xkb" >&6
9031 if test $emacs_xkb = yes; then
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_XKBGETKEYBOARD 1
9035 _ACEOF
9036
9037 fi
9038
9039
9040
9041
9042
9043 for ac_func in XrmSetDatabase XScreenResourceString \
9044 XScreenNumberOfScreen XSetWMProtocols
9045 do
9046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9047 echo "$as_me:$LINENO: checking for $ac_func" >&5
9048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_var+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h. */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9060 #define $ac_func innocuous_$ac_func
9061
9062 /* System header to define __stub macros and hopefully few prototypes,
9063 which can conflict with char $ac_func (); below.
9064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065 <limits.h> exists even on freestanding compilers. */
9066
9067 #ifdef __STDC__
9068 # include <limits.h>
9069 #else
9070 # include <assert.h>
9071 #endif
9072
9073 #undef $ac_func
9074
9075 /* Override any gcc2 internal prototype to avoid an error. */
9076 #ifdef __cplusplus
9077 extern "C"
9078 {
9079 #endif
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9082 char $ac_func ();
9083 /* The GNU C library defines this for functions which it implements
9084 to always fail with ENOSYS. Some functions are actually named
9085 something starting with __ and the normal name is an alias. */
9086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9087 choke me
9088 #else
9089 char (*f) () = $ac_func;
9090 #endif
9091 #ifdef __cplusplus
9092 }
9093 #endif
9094
9095 int
9096 main ()
9097 {
9098 return f != $ac_func;
9099 ;
9100 return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 eval "$as_ac_var=yes"
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 eval "$as_ac_var=no"
9131 fi
9132 rm -f conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 fi
9135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9140 _ACEOF
9141
9142 fi
9143 done
9144
9145 fi
9146
9147 if test "${window_system}" = "x11"; then
9148 echo "$as_me:$LINENO: checking X11 version 6" >&5
9149 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9150 if test "${emacs_cv_x11_version_6+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <X11/Xlib.h>
9160 int
9161 main ()
9162 {
9163 #if XlibSpecificationRelease < 6
9164 fail;
9165 #endif
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 emacs_cv_x11_version_6=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 emacs_cv_x11_version_6=no
9199 fi
9200 rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi
9203
9204 if test $emacs_cv_x11_version_6 = yes; then
9205 echo "$as_me:$LINENO: result: 6 or newer" >&5
9206 echo "${ECHO_T}6 or newer" >&6
9207
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_X11R6 1
9210 _ACEOF
9211
9212 else
9213 echo "$as_me:$LINENO: result: before 6" >&5
9214 echo "${ECHO_T}before 6" >&6
9215 fi
9216 fi
9217
9218 if test "${window_system}" = "x11"; then
9219 echo "$as_me:$LINENO: checking X11 version 5" >&5
9220 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9221 if test "${emacs_cv_x11_version_5+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
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 #include <X11/Xlib.h>
9231 int
9232 main ()
9233 {
9234 #if XlibSpecificationRelease < 5
9235 fail;
9236 #endif
9237
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -z "$ac_c_werror_flag"
9252 || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 emacs_cv_x11_version_5=yes
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269 emacs_cv_x11_version_5=no
9270 fi
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 fi
9274
9275 if test $emacs_cv_x11_version_5 = yes; then
9276 echo "$as_me:$LINENO: result: 5 or newer" >&5
9277 echo "${ECHO_T}5 or newer" >&6
9278 HAVE_X11R5=yes
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_X11R5 1
9282 _ACEOF
9283
9284 else
9285 HAVE_X11R5=no
9286 echo "$as_me:$LINENO: result: before 5" >&5
9287 echo "${ECHO_T}before 5" >&6
9288 fi
9289 fi
9290
9291
9292
9293 HAVE_GTK=no
9294 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9295 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9296 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9297 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9298 { (exit 1); exit 1; }; };
9299 fi
9300 GLIB_REQUIRED=2.0.1
9301 GTK_REQUIRED=2.0.1
9302 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9303
9304 if test "X${with_pkg_config_prog}" != X; then
9305 PKG_CONFIG="${with_pkg_config_prog}"
9306 fi
9307
9308 succeeded=no
9309
9310 if test -z "$PKG_CONFIG"; then
9311 # Extract the first word of "pkg-config", so it can be a program name with args.
9312 set dummy pkg-config; ac_word=$2
9313 echo "$as_me:$LINENO: checking for $ac_word" >&5
9314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 case $PKG_CONFIG in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9321 ;;
9322 *)
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9325 do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9333 fi
9334 done
9335 done
9336
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9338 ;;
9339 esac
9340 fi
9341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9342
9343 if test -n "$PKG_CONFIG"; then
9344 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9345 echo "${ECHO_T}$PKG_CONFIG" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9349 fi
9350
9351 fi
9352
9353 if test "$PKG_CONFIG" = "no" ; then
9354 echo "*** The pkg-config script could not be found. Make sure it is"
9355 echo "*** in your path, or give the full path to pkg-config with"
9356 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9357 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9358 else
9359 PKG_CONFIG_MIN_VERSION=0.9.0
9360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9361 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9362 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9363
9364 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9365 echo "$as_me:$LINENO: result: yes" >&5
9366 echo "${ECHO_T}yes" >&6
9367 succeeded=yes
9368
9369 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9370 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9371 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9372 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9373 echo "${ECHO_T}$GTK_CFLAGS" >&6
9374
9375 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9376 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9377 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9378 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9379 echo "${ECHO_T}$GTK_LIBS" >&6
9380 else
9381 GTK_CFLAGS=""
9382 GTK_LIBS=""
9383 ## If we have a custom action on failure, don't print errors, but
9384 ## do set a variable so people can do so.
9385 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9386 echo $GTK_PKG_ERRORS
9387 fi
9388
9389
9390
9391 else
9392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9394 fi
9395 fi
9396
9397 if test $succeeded = yes; then
9398 :
9399 else
9400 { { 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
9401 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;}
9402 { (exit 1); exit 1; }; }
9403 fi
9404
9405
9406
9407 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9408 CFLAGS="$CFLAGS $GTK_CFLAGS"
9409 LIBS="$GTK_LIBS $LIBS"
9410 HAVE_GTK=yes
9411
9412 cat >>confdefs.h <<\_ACEOF
9413 #define HAVE_GTK 1
9414 _ACEOF
9415
9416 USE_X_TOOLKIT=none
9417
9418 with_toolkit_scroll_bars=yes
9419
9420 HAVE_GTK_MULTIDISPLAY=no
9421
9422 for ac_func in gdk_display_open
9423 do
9424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9425 echo "$as_me:$LINENO: checking for $ac_func" >&5
9426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9427 if eval "test \"\${$as_ac_var+set}\" = set"; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9438 #define $ac_func innocuous_$ac_func
9439
9440 /* System header to define __stub macros and hopefully few prototypes,
9441 which can conflict with char $ac_func (); below.
9442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9443 <limits.h> exists even on freestanding compilers. */
9444
9445 #ifdef __STDC__
9446 # include <limits.h>
9447 #else
9448 # include <assert.h>
9449 #endif
9450
9451 #undef $ac_func
9452
9453 /* Override any gcc2 internal prototype to avoid an error. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 {
9457 #endif
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9460 char $ac_func ();
9461 /* The GNU C library defines this for functions which it implements
9462 to always fail with ENOSYS. Some functions are actually named
9463 something starting with __ and the normal name is an alias. */
9464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9465 choke me
9466 #else
9467 char (*f) () = $ac_func;
9468 #endif
9469 #ifdef __cplusplus
9470 }
9471 #endif
9472
9473 int
9474 main ()
9475 {
9476 return f != $ac_func;
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>conftest.er1
9484 ac_status=$?
9485 grep -v '^ *+' conftest.er1 >conftest.err
9486 rm -f conftest.er1
9487 cat conftest.err >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } &&
9490 { ac_try='test -z "$ac_c_werror_flag"
9491 || test ! -s conftest.err'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 eval "$as_ac_var=yes"
9504 else
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 eval "$as_ac_var=no"
9509 fi
9510 rm -f conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 fi
9513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9515 if test `eval echo '${'$as_ac_var'}'` = yes; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9518 _ACEOF
9519 HAVE_GTK_MULTIDISPLAY=yes
9520 fi
9521 done
9522
9523 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_GTK_MULTIDISPLAY 1
9527 _ACEOF
9528
9529 fi
9530 fi
9531
9532 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9533 if test x"${HAVE_X11R5}" = xyes; then
9534 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9535 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9536 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h. */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545
9546 #include <X11/Intrinsic.h>
9547 #include <X11/Xaw/Simple.h>
9548 int
9549 main ()
9550 {
9551
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 emacs_cv_x11_version_5_with_xaw=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 emacs_cv_x11_version_5_with_xaw=no
9584 fi
9585 rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 fi
9588
9589 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9590 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9591 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9592 USE_X_TOOLKIT=LUCID
9593 else
9594 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9595 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9596 USE_X_TOOLKIT=none
9597 fi
9598 else
9599 USE_X_TOOLKIT=none
9600 fi
9601 fi
9602
9603 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9604
9605 if test "${USE_X_TOOLKIT}" != "none"; then
9606 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9607 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9608 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 #include <X11/Intrinsic.h>
9618 int
9619 main ()
9620 {
9621 #if XtSpecificationRelease < 6
9622 fail;
9623 #endif
9624
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 emacs_cv_x11_toolkit_version_6=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 emacs_cv_x11_toolkit_version_6=no
9657 fi
9658 rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 fi
9661
9662 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9663 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9664 echo "$as_me:$LINENO: result: 6 or newer" >&5
9665 echo "${ECHO_T}6 or newer" >&6
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_X11XTR6 1
9669 _ACEOF
9670
9671 else
9672 echo "$as_me:$LINENO: result: before 6" >&5
9673 echo "${ECHO_T}before 6" >&6
9674 fi
9675
9676 OLDLIBS="$LIBS"
9677 if test x$HAVE_X11XTR6 = xyes; then
9678 LIBS="-lXt -lSM -lICE $LIBS"
9679 else
9680 LIBS="-lXt $LIBS"
9681 fi
9682
9683 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9684 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9685 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-lXmu $LIBS"
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
9697 /* Override any gcc2 internal prototype to avoid an error. */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9703 char XmuConvertStandardSelection ();
9704 int
9705 main ()
9706 {
9707 XmuConvertStandardSelection ();
9708 ;
9709 return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9740 fi
9741 rm -f conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_lib_save_LIBS
9744 fi
9745 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9746 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9747 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749 #define HAVE_LIBXMU 1
9750 _ACEOF
9751
9752 LIBS="-lXmu $LIBS"
9753
9754 fi
9755
9756 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9757 fi
9758
9759 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9760 if test "${HAVE_X11}" = "yes"; then
9761 if test "${USE_X_TOOLKIT}" != "none"; then
9762
9763 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9764 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9765 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 ac_check_lib_save_LIBS=$LIBS
9769 LIBS="-lXext $LIBS"
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783 char XShapeQueryExtension ();
9784 int
9785 main ()
9786 {
9787 XShapeQueryExtension ();
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_lib_Xext_XShapeQueryExtension=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 ac_cv_lib_Xext_XShapeQueryExtension=no
9820 fi
9821 rm -f conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9826 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9827 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829 #define HAVE_LIBXEXT 1
9830 _ACEOF
9831
9832 LIBS="-lXext $LIBS"
9833
9834 fi
9835
9836 fi
9837 fi
9838
9839 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9840 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9841 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9842 if test "${emacs_cv_lesstif+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 # We put this in CFLAGS temporarily to precede other -I options
9846 # that might be in CFLAGS temporarily.
9847 # We put this in CPPFLAGS where it precedes the other -I options.
9848 OLD_CPPFLAGS=$CPPFLAGS
9849 OLD_CFLAGS=$CFLAGS
9850 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9851 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9859 int
9860 main ()
9861 {
9862 int x = 5;
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 emacs_cv_lesstif=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 emacs_cv_lesstif=no
9895 fi
9896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9899 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9900 if test $emacs_cv_lesstif = yes; then
9901 # Make sure this -I option remains in CPPFLAGS after it is set
9902 # back to REAL_CPPFLAGS.
9903 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9904 # have those other -I options anyway. Ultimately, having this
9905 # directory ultimately in CPPFLAGS will be enough.
9906 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9907 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9908 else
9909 CFLAGS=$OLD_CFLAGS
9910 CPPFLAGS=$OLD_CPPFLAGS
9911 fi
9912 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9913 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9914 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <Xm/Xm.h>
9924 int
9925 main ()
9926 {
9927 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9928 int x = 5;
9929 #else
9930 Motif version prior to 2.1.
9931 #endif
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938 (eval $ac_compile) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest.$ac_objext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 emacs_cv_motif_version_2_1=yes
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 emacs_cv_motif_version_2_1=no
9964 fi
9965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9968 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9969 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
9970 if test $emacs_cv_motif_version_2_1 = yes; then
9971 HAVE_LIBXP=no
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_MOTIF_2_1 1
9975 _ACEOF
9976
9977 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9978 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9979 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 ac_check_lib_save_LIBS=$LIBS
9983 LIBS="-lXp $LIBS"
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char XpCreateContext ();
9998 int
9999 main ()
10000 {
10001 XpCreateContext ();
10002 ;
10003 return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_lib_Xp_XpCreateContext=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ac_cv_lib_Xp_XpCreateContext=no
10034 fi
10035 rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 LIBS=$ac_check_lib_save_LIBS
10038 fi
10039 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10040 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10041 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10042 HAVE_LIBXP=yes
10043 fi
10044
10045 if test ${HAVE_LIBXP} = yes; then
10046
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_LIBXP 1
10049 _ACEOF
10050
10051 fi
10052 fi
10053 fi
10054
10055 ### Is -lXaw3d available?
10056 HAVE_XAW3D=no
10057 if test "${HAVE_X11}" = "yes"; then
10058 if test "${USE_X_TOOLKIT}" != "none"; then
10059 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10060 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10061 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 #include <X11/Xaw3d/Scrollbar.h>
10071 _ACEOF
10072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } >/dev/null; then
10080 if test -s conftest.err; then
10081 ac_cpp_err=$ac_c_preproc_warn_flag
10082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10083 else
10084 ac_cpp_err=
10085 fi
10086 else
10087 ac_cpp_err=yes
10088 fi
10089 if test -z "$ac_cpp_err"; then
10090 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10091 else
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10096 fi
10097 rm -f conftest.err conftest.$ac_ext
10098 fi
10099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10101 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10102 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10103 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10104 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lXaw3d $LIBS"
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115
10116 /* Override any gcc2 internal prototype to avoid an error. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char XawScrollbarSetThumb ();
10123 int
10124 main ()
10125 {
10126 XawScrollbarSetThumb ();
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag"
10141 || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10159 fi
10160 rm -f conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10165 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10166 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10167 HAVE_XAW3D=yes
10168 fi
10169
10170 fi
10171
10172
10173 if test "${HAVE_XAW3D}" = "yes"; then
10174
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_XAW3D 1
10177 _ACEOF
10178
10179 fi
10180 fi
10181 fi
10182
10183
10184
10185 USE_TOOLKIT_SCROLL_BARS=no
10186 if test "${with_toolkit_scroll_bars}" != "no"; then
10187 if test "${USE_X_TOOLKIT}" != "none"; then
10188 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10189 cat >>confdefs.h <<\_ACEOF
10190 #define USE_TOOLKIT_SCROLL_BARS 1
10191 _ACEOF
10192
10193 HAVE_XAW3D=no
10194 USE_TOOLKIT_SCROLL_BARS=yes
10195 elif test "${HAVE_XAW3D}" = "yes"; then
10196 cat >>confdefs.h <<\_ACEOF
10197 #define USE_TOOLKIT_SCROLL_BARS 1
10198 _ACEOF
10199
10200 USE_TOOLKIT_SCROLL_BARS=yes
10201 fi
10202 elif test "${HAVE_GTK}" = "yes"; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define USE_TOOLKIT_SCROLL_BARS 1
10205 _ACEOF
10206
10207 USE_TOOLKIT_SCROLL_BARS=yes
10208 fi
10209 fi
10210
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217
10218 #include <X11/Xlib.h>
10219 #include <X11/Xresource.h>
10220 int
10221 main ()
10222 {
10223 XIMProc callback;
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230 (eval $ac_compile) 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag"
10238 || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10250 HAVE_XIM=yes
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_XIM 1
10254 _ACEOF
10255
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 HAVE_XIM=no
10261 fi
10262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10263
10264
10265 if test "${with_xim}" != "no"; then
10266
10267 cat >>confdefs.h <<\_ACEOF
10268 #define USE_XIM 1
10269 _ACEOF
10270
10271 fi
10272
10273
10274 if test "${HAVE_XIM}" != "no"; then
10275 late_CFLAGS=$CFLAGS
10276 if test "$GCC" = yes; then
10277 CFLAGS="$CFLAGS --pedantic-errors"
10278 fi
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285
10286 #include <X11/Xlib.h>
10287 #include <X11/Xresource.h>
10288 int
10289 main ()
10290 {
10291 Display *display;
10292 XrmDatabase db;
10293 char *res_name;
10294 char *res_class;
10295 XIMProc callback;
10296 XPointer *client_data;
10297 #ifndef __GNUC__
10298 /* If we're not using GCC, it's probably not XFree86, and this is
10299 probably right, but we can't use something like --pedantic-errors. */
10300 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10301 char*, XIMProc, XPointer*);
10302 #endif
10303 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10304 client_data);
10305 ;
10306 return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 emacs_cv_arg6_star=yes
10332 else
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 fi
10337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338
10339 if test "$emacs_cv_arg6_star" = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10342 _ACEOF
10343
10344 else
10345 cat >>confdefs.h <<\_ACEOF
10346 #define XRegisterIMInstantiateCallback_arg6 XPointer
10347 _ACEOF
10348
10349 fi
10350 CFLAGS=$late_CFLAGS
10351 fi
10352
10353 ### Use -lXpm if available, unless `--with-xpm=no'.
10354 HAVE_XPM=no
10355 if test "${HAVE_X11}" = "yes"; then
10356 if test "${with_xpm}" != "no"; then
10357 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10358 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10359 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10360 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10365 else
10366 # Is the header compilable?
10367 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10368 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <X11/xpm.h>
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag"
10388 || test ! -s conftest.err'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_header_compiler=yes
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 ac_header_compiler=no
10406 fi
10407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 echo "${ECHO_T}$ac_header_compiler" >&6
10410
10411 # Is the header present?
10412 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10413 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <X11/xpm.h>
10421 _ACEOF
10422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } >/dev/null; then
10430 if test -s conftest.err; then
10431 ac_cpp_err=$ac_c_preproc_warn_flag
10432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10433 else
10434 ac_cpp_err=
10435 fi
10436 else
10437 ac_cpp_err=yes
10438 fi
10439 if test -z "$ac_cpp_err"; then
10440 ac_header_preproc=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445 ac_header_preproc=no
10446 fi
10447 rm -f conftest.err conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 echo "${ECHO_T}$ac_header_preproc" >&6
10450
10451 # So? What about this header?
10452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10453 yes:no: )
10454 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10455 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10457 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10458 ac_header_preproc=yes
10459 ;;
10460 no:yes:* )
10461 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10462 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10463 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10464 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10466 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10468 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10470 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10472 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10473 (
10474 cat <<\_ASBOX
10475 ## ------------------------------------------ ##
10476 ## Report this to the AC_PACKAGE_NAME lists. ##
10477 ## ------------------------------------------ ##
10478 _ASBOX
10479 ) |
10480 sed "s/^/$as_me: WARNING: /" >&2
10481 ;;
10482 esac
10483 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10484 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10485 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 ac_cv_header_X11_xpm_h=$ac_header_preproc
10489 fi
10490 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10491 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10492
10493 fi
10494 if test $ac_cv_header_X11_xpm_h = yes; then
10495 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10496 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10497 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 ac_check_lib_save_LIBS=$LIBS
10501 LIBS="-lXpm -lX11 $LIBS"
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508
10509 /* Override any gcc2 internal prototype to avoid an error. */
10510 #ifdef __cplusplus
10511 extern "C"
10512 #endif
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char XpmReadFileToPixmap ();
10516 int
10517 main ()
10518 {
10519 XpmReadFileToPixmap ();
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526 (eval $ac_link) 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10552 fi
10553 rm -f conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10558 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10559 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10560 HAVE_XPM=yes
10561 fi
10562
10563 fi
10564
10565
10566 if test "${HAVE_XPM}" = "yes"; then
10567 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10568 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include "X11/xpm.h"
10576 #ifndef XpmReturnAllocPixels
10577 no_return_alloc_pixels
10578 #endif
10579
10580 _ACEOF
10581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10582 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10583 HAVE_XPM=no
10584 else
10585 HAVE_XPM=yes
10586 fi
10587 rm -f conftest*
10588
10589
10590 if test "${HAVE_XPM}" = "yes"; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10593 else
10594 echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6
10596 fi
10597 fi
10598 fi
10599
10600 if test "${HAVE_XPM}" = "yes"; then
10601
10602 cat >>confdefs.h <<\_ACEOF
10603 #define HAVE_XPM 1
10604 _ACEOF
10605
10606 fi
10607 fi
10608
10609 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10610 HAVE_JPEG=no
10611 if test "${HAVE_X11}" = "yes"; then
10612 if test "${with_jpeg}" != "no"; then
10613 if test "${ac_cv_header_jerror_h+set}" = set; then
10614 echo "$as_me:$LINENO: checking for jerror.h" >&5
10615 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10616 if test "${ac_cv_header_jerror_h+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10620 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10621 else
10622 # Is the header compilable?
10623 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10624 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <jerror.h>
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_header_compiler=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_header_compiler=no
10662 fi
10663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6
10666
10667 # Is the header present?
10668 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10669 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <jerror.h>
10677 _ACEOF
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } >/dev/null; then
10686 if test -s conftest.err; then
10687 ac_cpp_err=$ac_c_preproc_warn_flag
10688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10689 else
10690 ac_cpp_err=
10691 fi
10692 else
10693 ac_cpp_err=yes
10694 fi
10695 if test -z "$ac_cpp_err"; then
10696 ac_header_preproc=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 ac_header_preproc=no
10702 fi
10703 rm -f conftest.err conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10705 echo "${ECHO_T}$ac_header_preproc" >&6
10706
10707 # So? What about this header?
10708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10709 yes:no: )
10710 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10711 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10713 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10714 ac_header_preproc=yes
10715 ;;
10716 no:yes:* )
10717 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
10722 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
10724 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10726 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
10728 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
10729 (
10730 cat <<\_ASBOX
10731 ## ------------------------------------------ ##
10732 ## Report this to the AC_PACKAGE_NAME lists. ##
10733 ## ------------------------------------------ ##
10734 _ASBOX
10735 ) |
10736 sed "s/^/$as_me: WARNING: /" >&2
10737 ;;
10738 esac
10739 echo "$as_me:$LINENO: checking for jerror.h" >&5
10740 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10741 if test "${ac_cv_header_jerror_h+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 ac_cv_header_jerror_h=$ac_header_preproc
10745 fi
10746 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10747 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10748
10749 fi
10750 if test $ac_cv_header_jerror_h = yes; then
10751 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10752 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10753 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-ljpeg $LIBS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764
10765 /* Override any gcc2 internal prototype to avoid an error. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771 char jpeg_destroy_compress ();
10772 int
10773 main ()
10774 {
10775 jpeg_destroy_compress ();
10776 ;
10777 return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag"
10790 || test ! -s conftest.err'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest$ac_exeext'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10803 else
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10808 fi
10809 rm -f conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10814 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10815 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10816 HAVE_JPEG=yes
10817 fi
10818
10819 fi
10820
10821
10822 fi
10823
10824
10825 if test "${HAVE_JPEG}" = "yes"; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define HAVE_JPEG 1
10828 _ACEOF
10829
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <jpeglib.h>
10837 version=JPEG_LIB_VERSION
10838
10839 _ACEOF
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_JPEG 1
10844 _ACEOF
10845
10846 else
10847 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10848 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10849 HAVE_JPEG=no
10850 fi
10851 rm -f conftest*
10852
10853 fi
10854 fi
10855
10856 ### Use -lpng if available, unless `--with-png=no'.
10857 HAVE_PNG=no
10858 if test "${HAVE_X11}" = "yes"; then
10859 if test "${with_png}" != "no"; then
10860 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10861 # in /usr/include/libpng.
10862
10863
10864 for ac_header in png.h libpng/png.h
10865 do
10866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 fi
10873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10875 else
10876 # Is the header compilable?
10877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <$ac_header>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_header_compiler=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ac_header_compiler=no
10916 fi
10917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10919 echo "${ECHO_T}$ac_header_compiler" >&6
10920
10921 # Is the header present?
10922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 #include <$ac_header>
10931 _ACEOF
10932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null; then
10940 if test -s conftest.err; then
10941 ac_cpp_err=$ac_c_preproc_warn_flag
10942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10943 else
10944 ac_cpp_err=
10945 fi
10946 else
10947 ac_cpp_err=yes
10948 fi
10949 if test -z "$ac_cpp_err"; then
10950 ac_header_preproc=yes
10951 else
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_header_preproc=no
10956 fi
10957 rm -f conftest.err conftest.$ac_ext
10958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10959 echo "${ECHO_T}$ac_header_preproc" >&6
10960
10961 # So? What about this header?
10962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10963 yes:no: )
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10968 ac_header_preproc=yes
10969 ;;
10970 no:yes:* )
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10983 (
10984 cat <<\_ASBOX
10985 ## ------------------------------------------ ##
10986 ## Report this to the AC_PACKAGE_NAME lists. ##
10987 ## ------------------------------------------ ##
10988 _ASBOX
10989 ) |
10990 sed "s/^/$as_me: WARNING: /" >&2
10991 ;;
10992 esac
10993 echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998 eval "$as_ac_Header=\$ac_header_preproc"
10999 fi
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11002
11003 fi
11004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11007 _ACEOF
11008
11009 fi
11010
11011 done
11012
11013 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11014 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11015 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11016 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-lpng -lz -lm $LIBS"
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027
11028 /* Override any gcc2 internal prototype to avoid an error. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 /* We use char because int might match the return type of a gcc2
11033 builtin and then its argument prototype would still apply. */
11034 char png_get_channels ();
11035 int
11036 main ()
11037 {
11038 png_get_channels ();
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag"
11053 || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_lib_png_png_get_channels=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_cv_lib_png_png_get_channels=no
11071 fi
11072 rm -f conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LIBS=$ac_check_lib_save_LIBS
11075 fi
11076 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11077 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11078 if test $ac_cv_lib_png_png_get_channels = yes; then
11079 HAVE_PNG=yes
11080 fi
11081
11082 fi
11083 fi
11084
11085 if test "${HAVE_PNG}" = "yes"; then
11086
11087 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_PNG 1
11089 _ACEOF
11090
11091 fi
11092 fi
11093
11094 ### Use -ltiff if available, unless `--with-tiff=no'.
11095 HAVE_TIFF=no
11096 if test "${HAVE_X11}" = "yes"; then
11097 if test "${with_tiff}" != "no"; then
11098 if test "${ac_cv_header_tiffio_h+set}" = set; then
11099 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11100 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11101 if test "${ac_cv_header_tiffio_h+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 fi
11104 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11105 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11106 else
11107 # Is the header compilable?
11108 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11109 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 $ac_includes_default
11117 #include <tiffio.h>
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 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_objext'
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_header_compiler=yes
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_header_compiler=no
11147 fi
11148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6
11151
11152 # Is the header present?
11153 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11154 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <tiffio.h>
11162 _ACEOF
11163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } >/dev/null; then
11171 if test -s conftest.err; then
11172 ac_cpp_err=$ac_c_preproc_warn_flag
11173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11174 else
11175 ac_cpp_err=
11176 fi
11177 else
11178 ac_cpp_err=yes
11179 fi
11180 if test -z "$ac_cpp_err"; then
11181 ac_header_preproc=yes
11182 else
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_header_preproc=no
11187 fi
11188 rm -f conftest.err conftest.$ac_ext
11189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190 echo "${ECHO_T}$ac_header_preproc" >&6
11191
11192 # So? What about this header?
11193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11194 yes:no: )
11195 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11196 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11198 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11199 ac_header_preproc=yes
11200 ;;
11201 no:yes:* )
11202 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11203 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11205 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11207 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11209 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11211 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11213 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11214 (
11215 cat <<\_ASBOX
11216 ## ------------------------------------------ ##
11217 ## Report this to the AC_PACKAGE_NAME lists. ##
11218 ## ------------------------------------------ ##
11219 _ASBOX
11220 ) |
11221 sed "s/^/$as_me: WARNING: /" >&2
11222 ;;
11223 esac
11224 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11225 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11226 if test "${ac_cv_header_tiffio_h+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 ac_cv_header_tiffio_h=$ac_header_preproc
11230 fi
11231 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11232 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11233
11234 fi
11235 if test $ac_cv_header_tiffio_h = yes; then
11236 tifflibs="-lz -lm"
11237 # At least one tiff package requires the jpeg library.
11238 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11239 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11240 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11241 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244 ac_check_lib_save_LIBS=$LIBS
11245 LIBS="-ltiff $tifflibs $LIBS"
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252
11253 /* Override any gcc2 internal prototype to avoid an error. */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11259 char TIFFGetVersion ();
11260 int
11261 main ()
11262 {
11263 TIFFGetVersion ();
11264 ;
11265 return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_lib_tiff_TIFFGetVersion=yes
11291 else
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_lib_tiff_TIFFGetVersion=no
11296 fi
11297 rm -f conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11302 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11303 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11304 HAVE_TIFF=yes
11305 fi
11306
11307 fi
11308
11309
11310 fi
11311
11312 if test "${HAVE_TIFF}" = "yes"; then
11313
11314 cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_TIFF 1
11316 _ACEOF
11317
11318 fi
11319 fi
11320
11321 ### Use -lgif if available, unless `--with-gif=no'.
11322 HAVE_GIF=no
11323 if test "${HAVE_X11}" = "yes"; then
11324 if test "${with_gif}" != "no"; then
11325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11326 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11327 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11328 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11332 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11333 else
11334 # Is the header compilable?
11335 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11336 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11344 #include <gif_lib.h>
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11348 (eval $ac_compile) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag"
11356 || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_header_compiler=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_header_compiler=no
11374 fi
11375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377 echo "${ECHO_T}$ac_header_compiler" >&6
11378
11379 # Is the header present?
11380 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11381 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #include <gif_lib.h>
11389 _ACEOF
11390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } >/dev/null; then
11398 if test -s conftest.err; then
11399 ac_cpp_err=$ac_c_preproc_warn_flag
11400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11401 else
11402 ac_cpp_err=
11403 fi
11404 else
11405 ac_cpp_err=yes
11406 fi
11407 if test -z "$ac_cpp_err"; then
11408 ac_header_preproc=yes
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 ac_header_preproc=no
11414 fi
11415 rm -f conftest.err conftest.$ac_ext
11416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6
11418
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 yes:no: )
11422 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11427 ;;
11428 no:yes:* )
11429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11441 (
11442 cat <<\_ASBOX
11443 ## ------------------------------------------ ##
11444 ## Report this to the AC_PACKAGE_NAME lists. ##
11445 ## ------------------------------------------ ##
11446 _ASBOX
11447 ) |
11448 sed "s/^/$as_me: WARNING: /" >&2
11449 ;;
11450 esac
11451 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11452 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11453 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 ac_cv_header_gif_lib_h=$ac_header_preproc
11457 fi
11458 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11459 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11460
11461 fi
11462 if test $ac_cv_header_gif_lib_h = yes; then
11463 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11464 # Earlier versions can crash Emacs.
11465 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11466 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11467 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lungif $LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478
11479 /* Override any gcc2 internal prototype to avoid an error. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char EGifPutExtensionLast ();
11486 int
11487 main ()
11488 {
11489 EGifPutExtensionLast ();
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_cv_lib_ungif_EGifPutExtensionLast=no
11522 fi
11523 rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11528 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11529 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11530 HAVE_GIF=yes
11531 fi
11532
11533 fi
11534
11535
11536 fi
11537
11538 if test "${HAVE_GIF}" = "yes"; then
11539
11540 cat >>confdefs.h <<\_ACEOF
11541 #define HAVE_GIF 1
11542 _ACEOF
11543
11544 fi
11545 fi
11546
11547 ### Use Mac OS X Carbon API to implement GUI.
11548 HAVE_CARBON=no
11549 if test "${with_carbon}" != "no"; then
11550 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11551 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11552 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11553 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 fi
11556 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11557 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11558 else
11559 # Is the header compilable?
11560 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11561 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h. */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11569 #include <Carbon/Carbon.h>
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 (eval $ac_compile) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest.$ac_objext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_header_compiler=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ac_header_compiler=no
11599 fi
11600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11602 echo "${ECHO_T}$ac_header_compiler" >&6
11603
11604 # Is the header present?
11605 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11606 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <Carbon/Carbon.h>
11614 _ACEOF
11615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } >/dev/null; then
11623 if test -s conftest.err; then
11624 ac_cpp_err=$ac_c_preproc_warn_flag
11625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11626 else
11627 ac_cpp_err=
11628 fi
11629 else
11630 ac_cpp_err=yes
11631 fi
11632 if test -z "$ac_cpp_err"; then
11633 ac_header_preproc=yes
11634 else
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ac_header_preproc=no
11639 fi
11640 rm -f conftest.err conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11642 echo "${ECHO_T}$ac_header_preproc" >&6
11643
11644 # So? What about this header?
11645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11646 yes:no: )
11647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11648 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11650 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11651 ac_header_preproc=yes
11652 ;;
11653 no:yes:* )
11654 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11655 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11657 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11659 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11661 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11663 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11665 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11666 (
11667 cat <<\_ASBOX
11668 ## ------------------------------------------ ##
11669 ## Report this to the AC_PACKAGE_NAME lists. ##
11670 ## ------------------------------------------ ##
11671 _ASBOX
11672 ) |
11673 sed "s/^/$as_me: WARNING: /" >&2
11674 ;;
11675 esac
11676 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11677 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11678 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
11682 fi
11683 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11684 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11685
11686 fi
11687 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11688 HAVE_CARBON=yes
11689 fi
11690
11691
11692 fi
11693
11694 if test "${HAVE_CARBON}" = "yes"; then
11695
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_CARBON 1
11698 _ACEOF
11699
11700 window_system=mac
11701 ## Specify the install directory
11702 carbon_appdir=
11703 if test "${carbon_appdir_x}" != ""; then
11704 case ${carbon_appdir_x} in
11705 y | ye | yes) carbon_appdir=/Applications ;;
11706 * ) carbon_appdir=${carbon_appdir_x} ;;
11707 esac
11708 fi
11709 # We also have mouse menus.
11710 HAVE_MENUS=yes
11711 fi
11712
11713 ### Use session management (-lSM -lICE) if available
11714 HAVE_X_SM=no
11715 if test "${HAVE_X11}" = "yes"; then
11716 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11717 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11718 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11719 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 fi
11722 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11723 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11724 else
11725 # Is the header compilable?
11726 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11727 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 $ac_includes_default
11735 #include <X11/SM/SMlib.h>
11736 _ACEOF
11737 rm -f conftest.$ac_objext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_c_werror_flag"
11747 || test ! -s conftest.err'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest.$ac_objext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 ac_header_compiler=yes
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 ac_header_compiler=no
11765 fi
11766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11768 echo "${ECHO_T}$ac_header_compiler" >&6
11769
11770 # Is the header present?
11771 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11772 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 #include <X11/SM/SMlib.h>
11780 _ACEOF
11781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } >/dev/null; then
11789 if test -s conftest.err; then
11790 ac_cpp_err=$ac_c_preproc_warn_flag
11791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11792 else
11793 ac_cpp_err=
11794 fi
11795 else
11796 ac_cpp_err=yes
11797 fi
11798 if test -z "$ac_cpp_err"; then
11799 ac_header_preproc=yes
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 ac_header_preproc=no
11805 fi
11806 rm -f conftest.err conftest.$ac_ext
11807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6
11809
11810 # So? What about this header?
11811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11812 yes:no: )
11813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
11816 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
11817 ac_header_preproc=yes
11818 ;;
11819 no:yes:* )
11820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11821 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11823 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
11825 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
11827 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
11831 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
11832 (
11833 cat <<\_ASBOX
11834 ## ------------------------------------------ ##
11835 ## Report this to the AC_PACKAGE_NAME lists. ##
11836 ## ------------------------------------------ ##
11837 _ASBOX
11838 ) |
11839 sed "s/^/$as_me: WARNING: /" >&2
11840 ;;
11841 esac
11842 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11843 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11844 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
11848 fi
11849 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11850 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11851
11852 fi
11853 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11854 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11855 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11856 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lSM -lICE $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867
11868 /* Override any gcc2 internal prototype to avoid an error. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char SmcOpenConnection ();
11875 int
11876 main ()
11877 {
11878 SmcOpenConnection ();
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_lib_SM_SmcOpenConnection=yes
11906 else
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_lib_SM_SmcOpenConnection=no
11911 fi
11912 rm -f conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11917 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11918 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11919 HAVE_X_SM=yes
11920 fi
11921
11922 fi
11923
11924
11925
11926 if test "${HAVE_X_SM}" = "yes"; then
11927
11928 cat >>confdefs.h <<\_ACEOF
11929 #define HAVE_X_SM 1
11930 _ACEOF
11931
11932 case "$LIBS" in
11933 *-lSM*) ;;
11934 *) LIBS="-lSM -lICE $LIBS" ;;
11935 esac
11936 fi
11937 fi
11938
11939 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11940 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11941 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11942 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <netdb.h>
11952 int
11953 main ()
11954 {
11955 return h_errno;
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 emacs_cv_netdb_declares_h_errno=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 emacs_cv_netdb_declares_h_errno=no
11988 fi
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 fi
11992 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11993 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11994 if test $emacs_cv_netdb_declares_h_errno = yes; then
11995
11996 cat >>confdefs.h <<\_ACEOF
11997 #define HAVE_H_ERRNO 1
11998 _ACEOF
11999
12000 fi
12001
12002 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12003 # for constant arguments. Useless!
12004 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12005 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12006 if test "${ac_cv_working_alloca_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <alloca.h>
12016 int
12017 main ()
12018 {
12019 char *p = (char *) alloca (2 * sizeof (int));
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag"
12034 || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_working_alloca_h=yes
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 ac_cv_working_alloca_h=no
12052 fi
12053 rm -f conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12057 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12058 if test $ac_cv_working_alloca_h = yes; then
12059
12060 cat >>confdefs.h <<\_ACEOF
12061 #define HAVE_ALLOCA_H 1
12062 _ACEOF
12063
12064 fi
12065
12066 echo "$as_me:$LINENO: checking for alloca" >&5
12067 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12068 if test "${ac_cv_func_alloca_works+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h. */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #ifdef __GNUC__
12078 # define alloca __builtin_alloca
12079 #else
12080 # ifdef _MSC_VER
12081 # include <malloc.h>
12082 # define alloca _alloca
12083 # else
12084 # if HAVE_ALLOCA_H
12085 # include <alloca.h>
12086 # else
12087 # ifdef _AIX
12088 #pragma alloca
12089 # else
12090 # ifndef alloca /* predefined by HP cc +Olibcalls */
12091 char *alloca ();
12092 # endif
12093 # endif
12094 # endif
12095 # endif
12096 #endif
12097
12098 int
12099 main ()
12100 {
12101 char *p = (char *) alloca (1);
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_alloca_works=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 ac_cv_func_alloca_works=no
12134 fi
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 fi
12138 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12139 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12140
12141 if test $ac_cv_func_alloca_works = yes; then
12142
12143 cat >>confdefs.h <<\_ACEOF
12144 #define HAVE_ALLOCA 1
12145 _ACEOF
12146
12147 else
12148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12149 # that cause trouble. Some versions do not even contain alloca or
12150 # contain a buggy version. If you still want to use their alloca,
12151 # use ar to extract alloca.o from them instead of compiling alloca.c.
12152
12153 ALLOCA=alloca.$ac_objext
12154
12155 cat >>confdefs.h <<\_ACEOF
12156 #define C_ALLOCA 1
12157 _ACEOF
12158
12159
12160 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12161 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12162 if test "${ac_cv_os_cray+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #if defined(CRAY) && ! defined(CRAY2)
12172 webecray
12173 #else
12174 wenotbecray
12175 #endif
12176
12177 _ACEOF
12178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179 $EGREP "webecray" >/dev/null 2>&1; then
12180 ac_cv_os_cray=yes
12181 else
12182 ac_cv_os_cray=no
12183 fi
12184 rm -f conftest*
12185
12186 fi
12187 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12188 echo "${ECHO_T}$ac_cv_os_cray" >&6
12189 if test $ac_cv_os_cray = yes; then
12190 for ac_func in _getb67 GETB67 getb67; do
12191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 echo "$as_me:$LINENO: checking for $ac_func" >&5
12193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_var+set}\" = set"; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12205 #define $ac_func innocuous_$ac_func
12206
12207 /* System header to define __stub macros and hopefully few prototypes,
12208 which can conflict with char $ac_func (); below.
12209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12210 <limits.h> exists even on freestanding compilers. */
12211
12212 #ifdef __STDC__
12213 # include <limits.h>
12214 #else
12215 # include <assert.h>
12216 #endif
12217
12218 #undef $ac_func
12219
12220 /* Override any gcc2 internal prototype to avoid an error. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 {
12224 #endif
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12227 char $ac_func ();
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12232 choke me
12233 #else
12234 char (*f) () = $ac_func;
12235 #endif
12236 #ifdef __cplusplus
12237 }
12238 #endif
12239
12240 int
12241 main ()
12242 {
12243 return f != $ac_func;
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "$as_ac_var=yes"
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 eval "$as_ac_var=no"
12276 fi
12277 rm -f conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 fi
12280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12282 if test `eval echo '${'$as_ac_var'}'` = yes; then
12283
12284 cat >>confdefs.h <<_ACEOF
12285 #define CRAY_STACKSEG_END $ac_func
12286 _ACEOF
12287
12288 break
12289 fi
12290
12291 done
12292 fi
12293
12294 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12295 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12296 if test "${ac_cv_c_stack_direction+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299 if test "$cross_compiling" = yes; then
12300 ac_cv_c_stack_direction=0
12301 else
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 int
12309 find_stack_direction ()
12310 {
12311 static char *addr = 0;
12312 auto char dummy;
12313 if (addr == 0)
12314 {
12315 addr = &dummy;
12316 return find_stack_direction ();
12317 }
12318 else
12319 return (&dummy > addr) ? 1 : -1;
12320 }
12321
12322 int
12323 main ()
12324 {
12325 exit (find_stack_direction () < 0);
12326 }
12327 _ACEOF
12328 rm -f conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_c_stack_direction=1
12340 else
12341 echo "$as_me: program exited with status $ac_status" >&5
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ( exit $ac_status )
12346 ac_cv_c_stack_direction=-1
12347 fi
12348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 fi
12351 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12352 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12353
12354 cat >>confdefs.h <<_ACEOF
12355 #define STACK_DIRECTION $ac_cv_c_stack_direction
12356 _ACEOF
12357
12358
12359 fi
12360
12361
12362 # fmod, logb, and frexp are found in -lm on most systems.
12363 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12364
12365 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12366 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12367 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-lm $LIBS"
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12385 char sqrt ();
12386 int
12387 main ()
12388 {
12389 sqrt ();
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_lib_m_sqrt=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_cv_lib_m_sqrt=no
12422 fi
12423 rm -f conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12428 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12429 if test $ac_cv_lib_m_sqrt = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431 #define HAVE_LIBM 1
12432 _ACEOF
12433
12434 LIBS="-lm $LIBS"
12435
12436 fi
12437
12438
12439 # Check for mail-locking functions in a "mail" library. Probably this should
12440 # have the same check as for liblockfile below.
12441
12442 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12443 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12444 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lmail $LIBS"
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455
12456 /* Override any gcc2 internal prototype to avoid an error. */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 /* We use char because int might match the return type of a gcc2
12461 builtin and then its argument prototype would still apply. */
12462 char maillock ();
12463 int
12464 main ()
12465 {
12466 maillock ();
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473 (eval $ac_link) 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_lib_mail_maillock=yes
12494 else
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 ac_cv_lib_mail_maillock=no
12499 fi
12500 rm -f conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12503 fi
12504 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12505 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12506 if test $ac_cv_lib_mail_maillock = yes; then
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_LIBMAIL 1
12509 _ACEOF
12510
12511 LIBS="-lmail $LIBS"
12512
12513 fi
12514
12515
12516 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12517 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12518 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-llockfile $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529
12530 /* Override any gcc2 internal prototype to avoid an error. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char maillock ();
12537 int
12538 main ()
12539 {
12540 maillock ();
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_lib_lockfile_maillock=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 ac_cv_lib_lockfile_maillock=no
12573 fi
12574 rm -f conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12579 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12580 if test $ac_cv_lib_lockfile_maillock = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define HAVE_LIBLOCKFILE 1
12583 _ACEOF
12584
12585 LIBS="-llockfile $LIBS"
12586
12587 fi
12588
12589 # If we have the shared liblockfile, assume we must use it for mail
12590 # locking (e.g. Debian). If we couldn't link against liblockfile
12591 # (no liblockfile.a installed), ensure that we don't need to.
12592 if test "$ac_cv_lib_lockfile_maillock" = no; then
12593 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12594 set dummy liblockfile.so; ac_word=$2
12595 echo "$as_me:$LINENO: checking for $ac_word" >&5
12596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12597 if test "${ac_cv_prog_liblockfile+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600 if test -n "$liblockfile"; then
12601 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12602 else
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12605 for as_dir in $as_dummy
12606 do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611 ac_cv_prog_liblockfile="yes"
12612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12614 fi
12615 done
12616 done
12617
12618 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12619 fi
12620 fi
12621 liblockfile=$ac_cv_prog_liblockfile
12622 if test -n "$liblockfile"; then
12623 echo "$as_me:$LINENO: result: $liblockfile" >&5
12624 echo "${ECHO_T}$liblockfile" >&6
12625 else
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12628 fi
12629
12630 if test $ac_cv_prog_liblockfile = yes; then
12631 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12632 This probably means that movemail could lose mail.
12633 There may be a \`development' package to install containing liblockfile." >&5
12634 echo "$as_me: error: Shared liblockfile found but can't link against it.
12635 This probably means that movemail could lose mail.
12636 There may be a \`development' package to install containing liblockfile." >&2;}
12637 { (exit 1); exit 1; }; }
12638 else :
12639 fi
12640 fi
12641
12642 for ac_func in touchlock
12643 do
12644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 echo "$as_me:$LINENO: checking for $ac_func" >&5
12646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_var+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12658 #define $ac_func innocuous_$ac_func
12659
12660 /* System header to define __stub macros and hopefully few prototypes,
12661 which can conflict with char $ac_func (); below.
12662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12663 <limits.h> exists even on freestanding compilers. */
12664
12665 #ifdef __STDC__
12666 # include <limits.h>
12667 #else
12668 # include <assert.h>
12669 #endif
12670
12671 #undef $ac_func
12672
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 {
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char $ac_func ();
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 choke me
12686 #else
12687 char (*f) () = $ac_func;
12688 #endif
12689 #ifdef __cplusplus
12690 }
12691 #endif
12692
12693 int
12694 main ()
12695 {
12696 return f != $ac_func;
12697 ;
12698 return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 eval "$as_ac_var=yes"
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 eval "$as_ac_var=no"
12729 fi
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12735 if test `eval echo '${'$as_ac_var'}'` = yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12738 _ACEOF
12739
12740 fi
12741 done
12742
12743
12744 for ac_header in maillock.h
12745 do
12746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 fi
12753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12755 else
12756 # Is the header compilable?
12757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12766 #include <$ac_header>
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest.$ac_objext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_header_compiler=yes
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 ac_header_compiler=no
12796 fi
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 echo "${ECHO_T}$ac_header_compiler" >&6
12800
12801 # Is the header present?
12802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <$ac_header>
12811 _ACEOF
12812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null; then
12820 if test -s conftest.err; then
12821 ac_cpp_err=$ac_c_preproc_warn_flag
12822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12823 else
12824 ac_cpp_err=
12825 fi
12826 else
12827 ac_cpp_err=yes
12828 fi
12829 if test -z "$ac_cpp_err"; then
12830 ac_header_preproc=yes
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_header_preproc=no
12836 fi
12837 rm -f conftest.err conftest.$ac_ext
12838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12839 echo "${ECHO_T}$ac_header_preproc" >&6
12840
12841 # So? What about this header?
12842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12843 yes:no: )
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12848 ac_header_preproc=yes
12849 ;;
12850 no:yes:* )
12851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12863 (
12864 cat <<\_ASBOX
12865 ## ------------------------------------------ ##
12866 ## Report this to the AC_PACKAGE_NAME lists. ##
12867 ## ------------------------------------------ ##
12868 _ASBOX
12869 ) |
12870 sed "s/^/$as_me: WARNING: /" >&2
12871 ;;
12872 esac
12873 echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878 eval "$as_ac_Header=\$ac_header_preproc"
12879 fi
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882
12883 fi
12884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12887 _ACEOF
12888
12889 fi
12890
12891 done
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961 for ac_func in gethostname getdomainname dup2 \
12962 rename closedir mkdir rmdir sysinfo \
12963 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12964 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
12965 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12966 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12967 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12968 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12969 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12970 do
12971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12972 echo "$as_me:$LINENO: checking for $ac_func" >&5
12973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12974 if eval "test \"\${$as_ac_var+set}\" = set"; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12985 #define $ac_func innocuous_$ac_func
12986
12987 /* System header to define __stub macros and hopefully few prototypes,
12988 which can conflict with char $ac_func (); below.
12989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12990 <limits.h> exists even on freestanding compilers. */
12991
12992 #ifdef __STDC__
12993 # include <limits.h>
12994 #else
12995 # include <assert.h>
12996 #endif
12997
12998 #undef $ac_func
12999
13000 /* Override any gcc2 internal prototype to avoid an error. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 {
13004 #endif
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13007 char $ac_func ();
13008 /* The GNU C library defines this for functions which it implements
13009 to always fail with ENOSYS. Some functions are actually named
13010 something starting with __ and the normal name is an alias. */
13011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13012 choke me
13013 #else
13014 char (*f) () = $ac_func;
13015 #endif
13016 #ifdef __cplusplus
13017 }
13018 #endif
13019
13020 int
13021 main ()
13022 {
13023 return f != $ac_func;
13024 ;
13025 return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030 (eval $ac_link) 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag"
13038 || test ! -s conftest.err'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 eval "$as_ac_var=yes"
13051 else
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 eval "$as_ac_var=no"
13056 fi
13057 rm -f conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13062 if test `eval echo '${'$as_ac_var'}'` = yes; then
13063 cat >>confdefs.h <<_ACEOF
13064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13065 _ACEOF
13066
13067 fi
13068 done
13069
13070
13071
13072 for ac_header in sys/un.h
13073 do
13074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13076 echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 fi
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13083 else
13084 # Is the header compilable?
13085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 $ac_includes_default
13094 #include <$ac_header>
13095 _ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_header_compiler=yes
13119 else
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_header_compiler=no
13124 fi
13125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6
13128
13129 # Is the header present?
13130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <$ac_header>
13139 _ACEOF
13140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } >/dev/null; then
13148 if test -s conftest.err; then
13149 ac_cpp_err=$ac_c_preproc_warn_flag
13150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13151 else
13152 ac_cpp_err=
13153 fi
13154 else
13155 ac_cpp_err=yes
13156 fi
13157 if test -z "$ac_cpp_err"; then
13158 ac_header_preproc=yes
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 ac_header_preproc=no
13164 fi
13165 rm -f conftest.err conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13167 echo "${ECHO_T}$ac_header_preproc" >&6
13168
13169 # So? What about this header?
13170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13171 yes:no: )
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13176 ac_header_preproc=yes
13177 ;;
13178 no:yes:* )
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13191 (
13192 cat <<\_ASBOX
13193 ## ------------------------------------------ ##
13194 ## Report this to the AC_PACKAGE_NAME lists. ##
13195 ## ------------------------------------------ ##
13196 _ASBOX
13197 ) |
13198 sed "s/^/$as_me: WARNING: /" >&2
13199 ;;
13200 esac
13201 echo "$as_me:$LINENO: checking for $ac_header" >&5
13202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 eval "$as_ac_Header=\$ac_header_preproc"
13207 fi
13208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13210
13211 fi
13212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13213 cat >>confdefs.h <<_ACEOF
13214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13215 _ACEOF
13216
13217 fi
13218
13219 done
13220
13221
13222
13223
13224
13225 for ac_header in stdlib.h sys/time.h unistd.h
13226 do
13227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13229 echo "$as_me:$LINENO: checking for $ac_header" >&5
13230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 fi
13234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13236 else
13237 # Is the header compilable?
13238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13247 #include <$ac_header>
13248 _ACEOF
13249 rm -f conftest.$ac_objext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251 (eval $ac_compile) 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag"
13259 || test ! -s conftest.err'
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); }; } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler=yes
13272 else
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 ac_header_compiler=no
13277 fi
13278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6
13281
13282 # Is the header present?
13283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <$ac_header>
13292 _ACEOF
13293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev/null; then
13301 if test -s conftest.err; then
13302 ac_cpp_err=$ac_c_preproc_warn_flag
13303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13304 else
13305 ac_cpp_err=
13306 fi
13307 else
13308 ac_cpp_err=yes
13309 fi
13310 if test -z "$ac_cpp_err"; then
13311 ac_header_preproc=yes
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_header_preproc=no
13317 fi
13318 rm -f conftest.err conftest.$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13320 echo "${ECHO_T}$ac_header_preproc" >&6
13321
13322 # So? What about this header?
13323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13324 yes:no: )
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13329 ac_header_preproc=yes
13330 ;;
13331 no:yes:* )
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13344 (
13345 cat <<\_ASBOX
13346 ## ------------------------------------------ ##
13347 ## Report this to the AC_PACKAGE_NAME lists. ##
13348 ## ------------------------------------------ ##
13349 _ASBOX
13350 ) |
13351 sed "s/^/$as_me: WARNING: /" >&2
13352 ;;
13353 esac
13354 echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359 eval "$as_ac_Header=\$ac_header_preproc"
13360 fi
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13363
13364 fi
13365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366 cat >>confdefs.h <<_ACEOF
13367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368 _ACEOF
13369
13370 fi
13371
13372 done
13373
13374
13375 for ac_func in alarm
13376 do
13377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13378 echo "$as_me:$LINENO: checking for $ac_func" >&5
13379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13380 if eval "test \"\${$as_ac_var+set}\" = set"; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13391 #define $ac_func innocuous_$ac_func
13392
13393 /* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char $ac_func (); below.
13395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13396 <limits.h> exists even on freestanding compilers. */
13397
13398 #ifdef __STDC__
13399 # include <limits.h>
13400 #else
13401 # include <assert.h>
13402 #endif
13403
13404 #undef $ac_func
13405
13406 /* Override any gcc2 internal prototype to avoid an error. */
13407 #ifdef __cplusplus
13408 extern "C"
13409 {
13410 #endif
13411 /* We use char because int might match the return type of a gcc2
13412 builtin and then its argument prototype would still apply. */
13413 char $ac_func ();
13414 /* The GNU C library defines this for functions which it implements
13415 to always fail with ENOSYS. Some functions are actually named
13416 something starting with __ and the normal name is an alias. */
13417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13418 choke me
13419 #else
13420 char (*f) () = $ac_func;
13421 #endif
13422 #ifdef __cplusplus
13423 }
13424 #endif
13425
13426 int
13427 main ()
13428 {
13429 return f != $ac_func;
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13436 (eval $ac_link) 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 eval "$as_ac_var=yes"
13457 else
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 eval "$as_ac_var=no"
13462 fi
13463 rm -f conftest.err conftest.$ac_objext \
13464 conftest$ac_exeext conftest.$ac_ext
13465 fi
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13468 if test `eval echo '${'$as_ac_var'}'` = yes; then
13469 cat >>confdefs.h <<_ACEOF
13470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13471 _ACEOF
13472
13473 fi
13474 done
13475
13476 echo "$as_me:$LINENO: checking for working mktime" >&5
13477 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13478 if test "${ac_cv_func_working_mktime+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 if test "$cross_compiling" = yes; then
13482 ac_cv_func_working_mktime=no
13483 else
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h. */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 /* Test program from Paul Eggert and Tony Leneis. */
13491 #if TIME_WITH_SYS_TIME
13492 # include <sys/time.h>
13493 # include <time.h>
13494 #else
13495 # if HAVE_SYS_TIME_H
13496 # include <sys/time.h>
13497 # else
13498 # include <time.h>
13499 # endif
13500 #endif
13501
13502 #if HAVE_STDLIB_H
13503 # include <stdlib.h>
13504 #endif
13505
13506 #if HAVE_UNISTD_H
13507 # include <unistd.h>
13508 #endif
13509
13510 #if !HAVE_ALARM
13511 # define alarm(X) /* empty */
13512 #endif
13513
13514 /* Work around redefinition to rpl_putenv by other config tests. */
13515 #undef putenv
13516
13517 static time_t time_t_max;
13518 static time_t time_t_min;
13519
13520 /* Values we'll use to set the TZ environment variable. */
13521 static char *tz_strings[] = {
13522 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13523 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13524 };
13525 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13526
13527 /* Fail if mktime fails to convert a date in the spring-forward gap.
13528 Based on a problem report from Andreas Jaeger. */
13529 static void
13530 spring_forward_gap ()
13531 {
13532 /* glibc (up to about 1998-10-07) failed this test. */
13533 struct tm tm;
13534
13535 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13536 instead of "TZ=America/Vancouver" in order to detect the bug even
13537 on systems that don't support the Olson extension, or don't have the
13538 full zoneinfo tables installed. */
13539 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13540
13541 tm.tm_year = 98;
13542 tm.tm_mon = 3;
13543 tm.tm_mday = 5;
13544 tm.tm_hour = 2;
13545 tm.tm_min = 0;
13546 tm.tm_sec = 0;
13547 tm.tm_isdst = -1;
13548 if (mktime (&tm) == (time_t)-1)
13549 exit (1);
13550 }
13551
13552 static void
13553 mktime_test1 (now)
13554 time_t now;
13555 {
13556 struct tm *lt;
13557 if ((lt = localtime (&now)) && mktime (lt) != now)
13558 exit (1);
13559 }
13560
13561 static void
13562 mktime_test (now)
13563 time_t now;
13564 {
13565 mktime_test1 (now);
13566 mktime_test1 ((time_t) (time_t_max - now));
13567 mktime_test1 ((time_t) (time_t_min + now));
13568 }
13569
13570 static void
13571 irix_6_4_bug ()
13572 {
13573 /* Based on code from Ariel Faigon. */
13574 struct tm tm;
13575 tm.tm_year = 96;
13576 tm.tm_mon = 3;
13577 tm.tm_mday = 0;
13578 tm.tm_hour = 0;
13579 tm.tm_min = 0;
13580 tm.tm_sec = 0;
13581 tm.tm_isdst = -1;
13582 mktime (&tm);
13583 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13584 exit (1);
13585 }
13586
13587 static void
13588 bigtime_test (j)
13589 int j;
13590 {
13591 struct tm tm;
13592 time_t now;
13593 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13594 now = mktime (&tm);
13595 if (now != (time_t) -1)
13596 {
13597 struct tm *lt = localtime (&now);
13598 if (! (lt
13599 && lt->tm_year == tm.tm_year
13600 && lt->tm_mon == tm.tm_mon
13601 && lt->tm_mday == tm.tm_mday
13602 && lt->tm_hour == tm.tm_hour
13603 && lt->tm_min == tm.tm_min
13604 && lt->tm_sec == tm.tm_sec
13605 && lt->tm_yday == tm.tm_yday
13606 && lt->tm_wday == tm.tm_wday
13607 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13608 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13609 exit (1);
13610 }
13611 }
13612
13613 int
13614 main ()
13615 {
13616 time_t t, delta;
13617 int i, j;
13618
13619 /* This test makes some buggy mktime implementations loop.
13620 Give up after 60 seconds; a mktime slower than that
13621 isn't worth using anyway. */
13622 alarm (60);
13623
13624 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13625 continue;
13626 time_t_max--;
13627 if ((time_t) -1 < 0)
13628 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13629 continue;
13630 delta = time_t_max / 997; /* a suitable prime number */
13631 for (i = 0; i < N_STRINGS; i++)
13632 {
13633 if (tz_strings[i])
13634 putenv (tz_strings[i]);
13635
13636 for (t = 0; t <= time_t_max - delta; t += delta)
13637 mktime_test (t);
13638 mktime_test ((time_t) 1);
13639 mktime_test ((time_t) (60 * 60));
13640 mktime_test ((time_t) (60 * 60 * 24));
13641
13642 for (j = 1; 0 < j; j *= 2)
13643 bigtime_test (j);
13644 bigtime_test (j - 1);
13645 }
13646 irix_6_4_bug ();
13647 spring_forward_gap ();
13648 exit (0);
13649 }
13650 _ACEOF
13651 rm -f conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_func_working_mktime=yes
13663 else
13664 echo "$as_me: program exited with status $ac_status" >&5
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668 ( exit $ac_status )
13669 ac_cv_func_working_mktime=no
13670 fi
13671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13672 fi
13673 fi
13674 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13675 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13676 if test $ac_cv_func_working_mktime = no; then
13677 case $LIBOBJS in
13678 "mktime.$ac_objext" | \
13679 *" mktime.$ac_objext" | \
13680 "mktime.$ac_objext "* | \
13681 *" mktime.$ac_objext "* ) ;;
13682 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13683 esac
13684
13685 fi
13686
13687 if test "$ac_cv_func_working_mktime" = no; then
13688
13689 cat >>confdefs.h <<\_ACEOF
13690 #define BROKEN_MKTIME 1
13691 _ACEOF
13692
13693 fi
13694
13695 ac_have_func=no # yes means we've found a way to get the load average.
13696
13697 # Make sure getloadavg.c is where it belongs, at configure-time.
13698 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13699 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13700 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13701 { (exit 1); exit 1; }; }
13702
13703 ac_save_LIBS=$LIBS
13704
13705 # Check for getloadavg, but be sure not to touch the cache variable.
13706 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13707 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13708 if test "${ac_cv_func_getloadavg+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13719 #define getloadavg innocuous_getloadavg
13720
13721 /* System header to define __stub macros and hopefully few prototypes,
13722 which can conflict with char getloadavg (); below.
13723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13724 <limits.h> exists even on freestanding compilers. */
13725
13726 #ifdef __STDC__
13727 # include <limits.h>
13728 #else
13729 # include <assert.h>
13730 #endif
13731
13732 #undef getloadavg
13733
13734 /* Override any gcc2 internal prototype to avoid an error. */
13735 #ifdef __cplusplus
13736 extern "C"
13737 {
13738 #endif
13739 /* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13741 char getloadavg ();
13742 /* The GNU C library defines this for functions which it implements
13743 to always fail with ENOSYS. Some functions are actually named
13744 something starting with __ and the normal name is an alias. */
13745 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13746 choke me
13747 #else
13748 char (*f) () = getloadavg;
13749 #endif
13750 #ifdef __cplusplus
13751 }
13752 #endif
13753
13754 int
13755 main ()
13756 {
13757 return f != getloadavg;
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext conftest$ac_exeext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13764 (eval $ac_link) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_func_getloadavg=yes
13785 else
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789 ac_cv_func_getloadavg=no
13790 fi
13791 rm -f conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 fi
13794 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13795 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13796 if test $ac_cv_func_getloadavg = yes; then
13797 exit 0
13798 else
13799 exit 1
13800 fi
13801 ) && ac_have_func=yes
13802
13803 # On HPUX9, an unprivileged user can get load averages through this function.
13804
13805 for ac_func in pstat_getdynamic
13806 do
13807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13808 echo "$as_me:$LINENO: checking for $ac_func" >&5
13809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_var+set}\" = set"; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13821 #define $ac_func innocuous_$ac_func
13822
13823 /* System header to define __stub macros and hopefully few prototypes,
13824 which can conflict with char $ac_func (); below.
13825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 <limits.h> exists even on freestanding compilers. */
13827
13828 #ifdef __STDC__
13829 # include <limits.h>
13830 #else
13831 # include <assert.h>
13832 #endif
13833
13834 #undef $ac_func
13835
13836 /* Override any gcc2 internal prototype to avoid an error. */
13837 #ifdef __cplusplus
13838 extern "C"
13839 {
13840 #endif
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char $ac_func ();
13844 /* The GNU C library defines this for functions which it implements
13845 to always fail with ENOSYS. Some functions are actually named
13846 something starting with __ and the normal name is an alias. */
13847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13848 choke me
13849 #else
13850 char (*f) () = $ac_func;
13851 #endif
13852 #ifdef __cplusplus
13853 }
13854 #endif
13855
13856 int
13857 main ()
13858 {
13859 return f != $ac_func;
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest$ac_exeext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 eval "$as_ac_var=yes"
13887 else
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 eval "$as_ac_var=no"
13892 fi
13893 rm -f conftest.err conftest.$ac_objext \
13894 conftest$ac_exeext conftest.$ac_ext
13895 fi
13896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13898 if test `eval echo '${'$as_ac_var'}'` = yes; then
13899 cat >>confdefs.h <<_ACEOF
13900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13901 _ACEOF
13902
13903 fi
13904 done
13905
13906
13907 # Solaris has libkstat which does not require root.
13908
13909 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13910 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13911 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914 ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lkstat $LIBS"
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922
13923 /* Override any gcc2 internal prototype to avoid an error. */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13929 char kstat_open ();
13930 int
13931 main ()
13932 {
13933 kstat_open ();
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_kstat_kstat_open=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_cv_lib_kstat_kstat_open=no
13966 fi
13967 rm -f conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13970 fi
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13972 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13973 if test $ac_cv_lib_kstat_kstat_open = yes; then
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_LIBKSTAT 1
13976 _ACEOF
13977
13978 LIBS="-lkstat $LIBS"
13979
13980 fi
13981
13982 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13983
13984 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13985 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13986 # to get the right answer into the cache.
13987 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13988 if test $ac_have_func = no; then
13989 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13990 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13991 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lelf $LIBS"
13996 cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002
14003 /* Override any gcc2 internal prototype to avoid an error. */
14004 #ifdef __cplusplus
14005 extern "C"
14006 #endif
14007 /* We use char because int might match the return type of a gcc2
14008 builtin and then its argument prototype would still apply. */
14009 char elf_begin ();
14010 int
14011 main ()
14012 {
14013 elf_begin ();
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_lib_elf_elf_begin=yes
14041 else
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_cv_lib_elf_elf_begin=no
14046 fi
14047 rm -f conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_check_lib_save_LIBS
14050 fi
14051 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14052 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14053 if test $ac_cv_lib_elf_elf_begin = yes; then
14054 LIBS="-lelf $LIBS"
14055 fi
14056
14057 fi
14058 if test $ac_have_func = no; then
14059 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14060 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14061 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 ac_check_lib_save_LIBS=$LIBS
14065 LIBS="-lkvm $LIBS"
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h. */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072
14073 /* Override any gcc2 internal prototype to avoid an error. */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079 char kvm_open ();
14080 int
14081 main ()
14082 {
14083 kvm_open ();
14084 ;
14085 return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_lib_kvm_kvm_open=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_lib_kvm_kvm_open=no
14116 fi
14117 rm -f conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14122 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14123 if test $ac_cv_lib_kvm_kvm_open = yes; then
14124 LIBS="-lkvm $LIBS"
14125 fi
14126
14127 # Check for the 4.4BSD definition of getloadavg.
14128 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14129 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14130 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-lutil $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141
14142 /* Override any gcc2 internal prototype to avoid an error. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14148 char getloadavg ();
14149 int
14150 main ()
14151 {
14152 getloadavg ();
14153 ;
14154 return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_util_getloadavg=yes
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 ac_cv_lib_util_getloadavg=no
14185 fi
14186 rm -f conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14188 LIBS=$ac_check_lib_save_LIBS
14189 fi
14190 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14191 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14192 if test $ac_cv_lib_util_getloadavg = yes; then
14193 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14194 fi
14195
14196 fi
14197
14198 if test $ac_have_func = no; then
14199 # There is a commonly available library for RS/6000 AIX.
14200 # Since it is not a standard part of AIX, it might be installed locally.
14201 ac_getloadavg_LIBS=$LIBS
14202 LIBS="-L/usr/local/lib $LIBS"
14203 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14204 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14205 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 ac_check_lib_save_LIBS=$LIBS
14209 LIBS="-lgetloadavg $LIBS"
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216
14217 /* Override any gcc2 internal prototype to avoid an error. */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 /* We use char because int might match the return type of a gcc2
14222 builtin and then its argument prototype would still apply. */
14223 char getloadavg ();
14224 int
14225 main ()
14226 {
14227 getloadavg ();
14228 ;
14229 return 0;
14230 }
14231 _ACEOF
14232 rm -f conftest.$ac_objext conftest$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234 (eval $ac_link) 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_lib_getloadavg_getloadavg=yes
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_cv_lib_getloadavg_getloadavg=no
14260 fi
14261 rm -f conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14264 fi
14265 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14266 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14267 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14268 LIBS="-lgetloadavg $LIBS"
14269 else
14270 LIBS=$ac_getloadavg_LIBS
14271 fi
14272
14273 fi
14274
14275 # Make sure it is really in the library, if we think we found it,
14276 # otherwise set up the replacement function.
14277
14278 for ac_func in getloadavg
14279 do
14280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 echo "$as_me:$LINENO: checking for $ac_func" >&5
14282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_var+set}\" = set"; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h. */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14294 #define $ac_func innocuous_$ac_func
14295
14296 /* System header to define __stub macros and hopefully few prototypes,
14297 which can conflict with char $ac_func (); below.
14298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299 <limits.h> exists even on freestanding compilers. */
14300
14301 #ifdef __STDC__
14302 # include <limits.h>
14303 #else
14304 # include <assert.h>
14305 #endif
14306
14307 #undef $ac_func
14308
14309 /* Override any gcc2 internal prototype to avoid an error. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 {
14313 #endif
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14316 char $ac_func ();
14317 /* The GNU C library defines this for functions which it implements
14318 to always fail with ENOSYS. Some functions are actually named
14319 something starting with __ and the normal name is an alias. */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14321 choke me
14322 #else
14323 char (*f) () = $ac_func;
14324 #endif
14325 #ifdef __cplusplus
14326 }
14327 #endif
14328
14329 int
14330 main ()
14331 {
14332 return f != $ac_func;
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 eval "$as_ac_var=yes"
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 eval "$as_ac_var=no"
14365 fi
14366 rm -f conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 fi
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14371 if test `eval echo '${'$as_ac_var'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14374 _ACEOF
14375
14376 else
14377 case $LIBOBJS in
14378 "getloadavg.$ac_objext" | \
14379 *" getloadavg.$ac_objext" | \
14380 "getloadavg.$ac_objext "* | \
14381 *" getloadavg.$ac_objext "* ) ;;
14382 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14383 esac
14384
14385
14386 cat >>confdefs.h <<\_ACEOF
14387 #define C_GETLOADAVG 1
14388 _ACEOF
14389
14390 # Figure out what our getloadavg.c needs.
14391 ac_have_func=no
14392 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14393 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14394 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 fi
14398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14399 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14400 else
14401 # Is the header compilable?
14402 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14403 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 #include <sys/dg_sys_info.h>
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag"
14423 || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_header_compiler=yes
14436 else
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 ac_header_compiler=no
14441 fi
14442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14444 echo "${ECHO_T}$ac_header_compiler" >&6
14445
14446 # Is the header present?
14447 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14448 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <sys/dg_sys_info.h>
14456 _ACEOF
14457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null; then
14465 if test -s conftest.err; then
14466 ac_cpp_err=$ac_c_preproc_warn_flag
14467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14468 else
14469 ac_cpp_err=
14470 fi
14471 else
14472 ac_cpp_err=yes
14473 fi
14474 if test -z "$ac_cpp_err"; then
14475 ac_header_preproc=yes
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_preproc=no
14481 fi
14482 rm -f conftest.err conftest.$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14484 echo "${ECHO_T}$ac_header_preproc" >&6
14485
14486 # So? What about this header?
14487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14488 yes:no: )
14489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14490 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14492 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14493 ac_header_preproc=yes
14494 ;;
14495 no:yes:* )
14496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14497 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14499 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14501 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14503 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14505 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14507 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14508 (
14509 cat <<\_ASBOX
14510 ## ------------------------------------------ ##
14511 ## Report this to the AC_PACKAGE_NAME lists. ##
14512 ## ------------------------------------------ ##
14513 _ASBOX
14514 ) |
14515 sed "s/^/$as_me: WARNING: /" >&2
14516 ;;
14517 esac
14518 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14519 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14524 fi
14525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14527
14528 fi
14529 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14530 ac_have_func=yes
14531
14532 cat >>confdefs.h <<\_ACEOF
14533 #define DGUX 1
14534 _ACEOF
14535
14536
14537 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14538 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14539 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-ldgc $LIBS"
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550
14551 /* Override any gcc2 internal prototype to avoid an error. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14557 char dg_sys_info ();
14558 int
14559 main ()
14560 {
14561 dg_sys_info ();
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_lib_dgc_dg_sys_info=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ac_cv_lib_dgc_dg_sys_info=no
14594 fi
14595 rm -f conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14600 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14601 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_LIBDGC 1
14604 _ACEOF
14605
14606 LIBS="-ldgc $LIBS"
14607
14608 fi
14609
14610 fi
14611
14612
14613
14614 if test "${ac_cv_header_locale_h+set}" = set; then
14615 echo "$as_me:$LINENO: checking for locale.h" >&5
14616 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14617 if test "${ac_cv_header_locale_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 fi
14620 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14621 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14622 else
14623 # Is the header compilable?
14624 echo "$as_me:$LINENO: checking locale.h usability" >&5
14625 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 $ac_includes_default
14633 #include <locale.h>
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_header_compiler=no
14663 fi
14664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14666 echo "${ECHO_T}$ac_header_compiler" >&6
14667
14668 # Is the header present?
14669 echo "$as_me:$LINENO: checking locale.h presence" >&5
14670 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <locale.h>
14678 _ACEOF
14679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } >/dev/null; then
14687 if test -s conftest.err; then
14688 ac_cpp_err=$ac_c_preproc_warn_flag
14689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14690 else
14691 ac_cpp_err=
14692 fi
14693 else
14694 ac_cpp_err=yes
14695 fi
14696 if test -z "$ac_cpp_err"; then
14697 ac_header_preproc=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702 ac_header_preproc=no
14703 fi
14704 rm -f conftest.err conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6
14707
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710 yes:no: )
14711 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14716 ;;
14717 no:yes:* )
14718 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
14730 (
14731 cat <<\_ASBOX
14732 ## ------------------------------------------ ##
14733 ## Report this to the AC_PACKAGE_NAME lists. ##
14734 ## ------------------------------------------ ##
14735 _ASBOX
14736 ) |
14737 sed "s/^/$as_me: WARNING: /" >&2
14738 ;;
14739 esac
14740 echo "$as_me:$LINENO: checking for locale.h" >&5
14741 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14742 if test "${ac_cv_header_locale_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 ac_cv_header_locale_h=$ac_header_preproc
14746 fi
14747 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14749
14750 fi
14751
14752
14753
14754 for ac_func in setlocale
14755 do
14756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14757 echo "$as_me:$LINENO: checking for $ac_func" >&5
14758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14759 if eval "test \"\${$as_ac_var+set}\" = set"; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14770 #define $ac_func innocuous_$ac_func
14771
14772 /* System header to define __stub macros and hopefully few prototypes,
14773 which can conflict with char $ac_func (); below.
14774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14775 <limits.h> exists even on freestanding compilers. */
14776
14777 #ifdef __STDC__
14778 # include <limits.h>
14779 #else
14780 # include <assert.h>
14781 #endif
14782
14783 #undef $ac_func
14784
14785 /* Override any gcc2 internal prototype to avoid an error. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 {
14789 #endif
14790 /* We use char because int might match the return type of a gcc2
14791 builtin and then its argument prototype would still apply. */
14792 char $ac_func ();
14793 /* The GNU C library defines this for functions which it implements
14794 to always fail with ENOSYS. Some functions are actually named
14795 something starting with __ and the normal name is an alias. */
14796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 choke me
14798 #else
14799 char (*f) () = $ac_func;
14800 #endif
14801 #ifdef __cplusplus
14802 }
14803 #endif
14804
14805 int
14806 main ()
14807 {
14808 return f != $ac_func;
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 eval "$as_ac_var=yes"
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 eval "$as_ac_var=no"
14841 fi
14842 rm -f conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 fi
14845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14848 cat >>confdefs.h <<_ACEOF
14849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14850 _ACEOF
14851
14852 fi
14853 done
14854
14855
14856 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14857 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14858 # Irix 4.0.5F has the header but not the library.
14859 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
14860 ac_have_func=yes
14861
14862 cat >>confdefs.h <<\_ACEOF
14863 #define SVR4 1
14864 _ACEOF
14865
14866 fi
14867
14868 if test $ac_have_func = no; then
14869 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14870 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14871 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14872 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 fi
14875 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14876 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14877 else
14878 # Is the header compilable?
14879 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14880 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14888 #include <inq_stats/cpustats.h>
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag"
14900 || test ! -s conftest.err'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14913 else
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 ac_header_compiler=no
14918 fi
14919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14922
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14925 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <inq_stats/cpustats.h>
14933 _ACEOF
14934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14935 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14942 if test -s conftest.err; then
14943 ac_cpp_err=$ac_c_preproc_warn_flag
14944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14945 else
14946 ac_cpp_err=
14947 fi
14948 else
14949 ac_cpp_err=yes
14950 fi
14951 if test -z "$ac_cpp_err"; then
14952 ac_header_preproc=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 ac_header_preproc=no
14958 fi
14959 rm -f conftest.err conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961 echo "${ECHO_T}$ac_header_preproc" >&6
14962
14963 # So? What about this header?
14964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965 yes:no: )
14966 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14967 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
14969 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
14970 ac_header_preproc=yes
14971 ;;
14972 no:yes:* )
14973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14974 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14976 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
14978 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
14980 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
14984 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
14985 (
14986 cat <<\_ASBOX
14987 ## ------------------------------------------ ##
14988 ## Report this to the AC_PACKAGE_NAME lists. ##
14989 ## ------------------------------------------ ##
14990 _ASBOX
14991 ) |
14992 sed "s/^/$as_me: WARNING: /" >&2
14993 ;;
14994 esac
14995 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14996 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14997 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15001 fi
15002 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15004
15005 fi
15006 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15007 ac_have_func=yes
15008
15009 cat >>confdefs.h <<\_ACEOF
15010 #define UMAX 1
15011 _ACEOF
15012
15013
15014 cat >>confdefs.h <<\_ACEOF
15015 #define UMAX4_3 1
15016 _ACEOF
15017
15018 fi
15019
15020
15021 fi
15022
15023 if test $ac_have_func = no; then
15024 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15025 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15026 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15032 else
15033 # Is the header compilable?
15034 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15035 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <sys/cpustats.h>
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_compiler=no
15073 fi
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6
15077
15078 # Is the header present?
15079 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15080 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h. */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <sys/cpustats.h>
15088 _ACEOF
15089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev/null; then
15097 if test -s conftest.err; then
15098 ac_cpp_err=$ac_c_preproc_warn_flag
15099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15100 else
15101 ac_cpp_err=
15102 fi
15103 else
15104 ac_cpp_err=yes
15105 fi
15106 if test -z "$ac_cpp_err"; then
15107 ac_header_preproc=yes
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_header_preproc=no
15113 fi
15114 rm -f conftest.err conftest.$ac_ext
15115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6
15117
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15126 ;;
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15140 (
15141 cat <<\_ASBOX
15142 ## ------------------------------------------ ##
15143 ## Report this to the AC_PACKAGE_NAME lists. ##
15144 ## ------------------------------------------ ##
15145 _ASBOX
15146 ) |
15147 sed "s/^/$as_me: WARNING: /" >&2
15148 ;;
15149 esac
15150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15156 fi
15157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15159
15160 fi
15161 if test $ac_cv_header_sys_cpustats_h = yes; then
15162 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15163 #define UMAX 1
15164 _ACEOF
15165
15166 fi
15167
15168
15169 fi
15170
15171 if test $ac_have_func = no; then
15172
15173 for ac_header in mach/mach.h
15174 do
15175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15177 echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 fi
15182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15184 else
15185 # Is the header compilable?
15186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 $ac_includes_default
15195 #include <$ac_header>
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_header_compiler=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_header_compiler=no
15225 fi
15226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15228 echo "${ECHO_T}$ac_header_compiler" >&6
15229
15230 # Is the header present?
15231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <$ac_header>
15240 _ACEOF
15241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } >/dev/null; then
15249 if test -s conftest.err; then
15250 ac_cpp_err=$ac_c_preproc_warn_flag
15251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15252 else
15253 ac_cpp_err=
15254 fi
15255 else
15256 ac_cpp_err=yes
15257 fi
15258 if test -z "$ac_cpp_err"; then
15259 ac_header_preproc=yes
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 ac_header_preproc=no
15265 fi
15266 rm -f conftest.err conftest.$ac_ext
15267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15268 echo "${ECHO_T}$ac_header_preproc" >&6
15269
15270 # So? What about this header?
15271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15272 yes:no: )
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15277 ac_header_preproc=yes
15278 ;;
15279 no:yes:* )
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15292 (
15293 cat <<\_ASBOX
15294 ## ------------------------------------------ ##
15295 ## Report this to the AC_PACKAGE_NAME lists. ##
15296 ## ------------------------------------------ ##
15297 _ASBOX
15298 ) |
15299 sed "s/^/$as_me: WARNING: /" >&2
15300 ;;
15301 esac
15302 echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307 eval "$as_ac_Header=\$ac_header_preproc"
15308 fi
15309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15311
15312 fi
15313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15316 _ACEOF
15317
15318 fi
15319
15320 done
15321
15322 fi
15323
15324
15325 for ac_header in nlist.h
15326 do
15327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15329 echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 fi
15334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15336 else
15337 # Is the header compilable?
15338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 $ac_includes_default
15347 #include <$ac_header>
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15351 (eval $ac_compile) 2>conftest.er1
15352 ac_status=$?
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -z "$ac_c_werror_flag"
15359 || test ! -s conftest.err'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_header_compiler=yes
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_header_compiler=no
15377 fi
15378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15380 echo "${ECHO_T}$ac_header_compiler" >&6
15381
15382 # Is the header present?
15383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h. */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <$ac_header>
15392 _ACEOF
15393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } >/dev/null; then
15401 if test -s conftest.err; then
15402 ac_cpp_err=$ac_c_preproc_warn_flag
15403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15404 else
15405 ac_cpp_err=
15406 fi
15407 else
15408 ac_cpp_err=yes
15409 fi
15410 if test -z "$ac_cpp_err"; then
15411 ac_header_preproc=yes
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 ac_header_preproc=no
15417 fi
15418 rm -f conftest.err conftest.$ac_ext
15419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15420 echo "${ECHO_T}$ac_header_preproc" >&6
15421
15422 # So? What about this header?
15423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15424 yes:no: )
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15429 ac_header_preproc=yes
15430 ;;
15431 no:yes:* )
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15444 (
15445 cat <<\_ASBOX
15446 ## ------------------------------------------ ##
15447 ## Report this to the AC_PACKAGE_NAME lists. ##
15448 ## ------------------------------------------ ##
15449 _ASBOX
15450 ) |
15451 sed "s/^/$as_me: WARNING: /" >&2
15452 ;;
15453 esac
15454 echo "$as_me:$LINENO: checking for $ac_header" >&5
15455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459 eval "$as_ac_Header=\$ac_header_preproc"
15460 fi
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15463
15464 fi
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468 _ACEOF
15469 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15470 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15471 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <nlist.h>
15481
15482 int
15483 main ()
15484 {
15485 static struct nlist ac_aggr;
15486 if (ac_aggr.n_un.n_name)
15487 return 0;
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15494 (eval $ac_compile) 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag"
15502 || test ! -s conftest.err'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_member_struct_nlist_n_un_n_name=yes
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h. */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <nlist.h>
15526
15527 int
15528 main ()
15529 {
15530 static struct nlist ac_aggr;
15531 if (sizeof ac_aggr.n_un.n_name)
15532 return 0;
15533 ;
15534 return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_member_struct_nlist_n_un_n_name=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 ac_cv_member_struct_nlist_n_un_n_name=no
15565 fi
15566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15567 fi
15568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15569 fi
15570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15571 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15572 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15573
15574 cat >>confdefs.h <<_ACEOF
15575 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15576 _ACEOF
15577
15578
15579 cat >>confdefs.h <<\_ACEOF
15580 #define NLIST_NAME_UNION 1
15581 _ACEOF
15582
15583 fi
15584
15585
15586 fi
15587
15588 done
15589
15590 fi
15591 done
15592
15593
15594 # Some definitions of getloadavg require that the program be installed setgid.
15595 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15596 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15597 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15607 #ifdef LDAV_PRIVILEGED
15608 Yowza Am I SETGID yet
15609 #endif
15610 _ACEOF
15611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15612 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15613 ac_cv_func_getloadavg_setgid=yes
15614 else
15615 ac_cv_func_getloadavg_setgid=no
15616 fi
15617 rm -f conftest*
15618
15619 fi
15620 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15621 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15622 if test $ac_cv_func_getloadavg_setgid = yes; then
15623 NEED_SETGID=true
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define GETLOADAVG_PRIVILEGED 1
15627 _ACEOF
15628
15629 else
15630 NEED_SETGID=false
15631 fi
15632
15633 if test $ac_cv_func_getloadavg_setgid = yes; then
15634 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15635 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15636 if test "${ac_cv_group_kmem+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15640 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15641 # If we got an error (system does not support symlinks), try without -L.
15642 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15643 ac_cv_group_kmem=`echo $ac_ls_output \
15644 | sed -ne 's/[ ][ ]*/ /g;
15645 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15646 / /s/.* //;p;'`
15647
15648 fi
15649 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15650 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15651 KMEM_GROUP=$ac_cv_group_kmem
15652 fi
15653 if test "x$ac_save_LIBS" = x; then
15654 GETLOADAVG_LIBS=$LIBS
15655 else
15656 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15657 fi
15658 LIBS=$ac_save_LIBS
15659
15660
15661
15662 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15663 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15664 if test "${ac_cv_sys_largefile_source+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667 while :; do
15668 ac_cv_sys_largefile_source=no
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h. */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 #include <stdio.h>
15676 int
15677 main ()
15678 {
15679 return !fseeko;
15680 ;
15681 return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15686 (eval $ac_compile) 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag"
15694 || test ! -s conftest.err'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest.$ac_objext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 break
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711 fi
15712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #define _LARGEFILE_SOURCE 1
15720 #include <stdio.h>
15721 int
15722 main ()
15723 {
15724 return !fseeko;
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_c_werror_flag"
15739 || test ! -s conftest.err'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_sys_largefile_source=1; break
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 fi
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 break
15759 done
15760 fi
15761 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15762 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15763 if test "$ac_cv_sys_largefile_source" != no; then
15764
15765 cat >>confdefs.h <<_ACEOF
15766 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15767 _ACEOF
15768
15769 fi
15770 rm -f conftest*
15771
15772 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15773 # in glibc 2.1.3, but that breaks too many other things.
15774 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15775 echo "$as_me:$LINENO: checking for fseeko" >&5
15776 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15777 if test "${ac_cv_func_fseeko+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <stdio.h>
15787 int
15788 main ()
15789 {
15790 return fseeko && fseeko (stdin, 0, 0);
15791 ;
15792 return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag"
15805 || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_cv_func_fseeko=yes
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_cv_func_fseeko=no
15823 fi
15824 rm -f conftest.err conftest.$ac_objext \
15825 conftest$ac_exeext conftest.$ac_ext
15826 fi
15827 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15828 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15829 if test $ac_cv_func_fseeko = yes; then
15830
15831 cat >>confdefs.h <<\_ACEOF
15832 #define HAVE_FSEEKO 1
15833 _ACEOF
15834
15835 fi
15836
15837
15838 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15839 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15840 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843 # Use it with a single arg.
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15851 int
15852 main ()
15853 {
15854 getpgrp (0);
15855 ;
15856 return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag"
15869 || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ac_cv_func_getpgrp_void=no
15882 else
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15885
15886 ac_cv_func_getpgrp_void=yes
15887 fi
15888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15889
15890 fi
15891 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15892 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15893 if test $ac_cv_func_getpgrp_void = yes; then
15894
15895 cat >>confdefs.h <<\_ACEOF
15896 #define GETPGRP_VOID 1
15897 _ACEOF
15898
15899 fi
15900
15901
15902
15903 for ac_func in strftime
15904 do
15905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15906 echo "$as_me:$LINENO: checking for $ac_func" >&5
15907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15908 if eval "test \"\${$as_ac_var+set}\" = set"; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15919 #define $ac_func innocuous_$ac_func
15920
15921 /* System header to define __stub macros and hopefully few prototypes,
15922 which can conflict with char $ac_func (); below.
15923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924 <limits.h> exists even on freestanding compilers. */
15925
15926 #ifdef __STDC__
15927 # include <limits.h>
15928 #else
15929 # include <assert.h>
15930 #endif
15931
15932 #undef $ac_func
15933
15934 /* Override any gcc2 internal prototype to avoid an error. */
15935 #ifdef __cplusplus
15936 extern "C"
15937 {
15938 #endif
15939 /* We use char because int might match the return type of a gcc2
15940 builtin and then its argument prototype would still apply. */
15941 char $ac_func ();
15942 /* The GNU C library defines this for functions which it implements
15943 to always fail with ENOSYS. Some functions are actually named
15944 something starting with __ and the normal name is an alias. */
15945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15946 choke me
15947 #else
15948 char (*f) () = $ac_func;
15949 #endif
15950 #ifdef __cplusplus
15951 }
15952 #endif
15953
15954 int
15955 main ()
15956 {
15957 return f != $ac_func;
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try='test -z "$ac_c_werror_flag"
15972 || test ! -s conftest.err'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 eval "$as_ac_var=yes"
15985 else
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 eval "$as_ac_var=no"
15990 fi
15991 rm -f conftest.err conftest.$ac_objext \
15992 conftest$ac_exeext conftest.$ac_ext
15993 fi
15994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15996 if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15999 _ACEOF
16000
16001 else
16002 # strftime is in -lintl on SCO UNIX.
16003 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16004 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16005 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 ac_check_lib_save_LIBS=$LIBS
16009 LIBS="-lintl $LIBS"
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016
16017 /* Override any gcc2 internal prototype to avoid an error. */
16018 #ifdef __cplusplus
16019 extern "C"
16020 #endif
16021 /* We use char because int might match the return type of a gcc2
16022 builtin and then its argument prototype would still apply. */
16023 char strftime ();
16024 int
16025 main ()
16026 {
16027 strftime ();
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16034 (eval $ac_link) 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -z "$ac_c_werror_flag"
16042 || test ! -s conftest.err'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest$ac_exeext'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_cv_lib_intl_strftime=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 ac_cv_lib_intl_strftime=no
16060 fi
16061 rm -f conftest.err conftest.$ac_objext \
16062 conftest$ac_exeext conftest.$ac_ext
16063 LIBS=$ac_check_lib_save_LIBS
16064 fi
16065 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16066 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16067 if test $ac_cv_lib_intl_strftime = yes; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_STRFTIME 1
16070 _ACEOF
16071
16072 LIBS="-lintl $LIBS"
16073 fi
16074
16075 fi
16076 done
16077
16078
16079 # UNIX98 PTYs.
16080
16081 for ac_func in grantpt
16082 do
16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16098
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16103
16104 #ifdef __STDC__
16105 # include <limits.h>
16106 #else
16107 # include <assert.h>
16108 #endif
16109
16110 #undef $ac_func
16111
16112 /* Override any gcc2 internal prototype to avoid an error. */
16113 #ifdef __cplusplus
16114 extern "C"
16115 {
16116 #endif
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16124 choke me
16125 #else
16126 char (*f) () = $ac_func;
16127 #endif
16128 #ifdef __cplusplus
16129 }
16130 #endif
16131
16132 int
16133 main ()
16134 {
16135 return f != $ac_func;
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 eval "$as_ac_var=yes"
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 eval "$as_ac_var=no"
16168 fi
16169 rm -f conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16171 fi
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 _ACEOF
16178
16179 fi
16180 done
16181
16182
16183 # PTY-related GNU extensions.
16184
16185 for ac_func in getpt
16186 do
16187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16188 echo "$as_me:$LINENO: checking for $ac_func" >&5
16189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16190 if eval "test \"\${$as_ac_var+set}\" = set"; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h. */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16201 #define $ac_func innocuous_$ac_func
16202
16203 /* System header to define __stub macros and hopefully few prototypes,
16204 which can conflict with char $ac_func (); below.
16205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206 <limits.h> exists even on freestanding compilers. */
16207
16208 #ifdef __STDC__
16209 # include <limits.h>
16210 #else
16211 # include <assert.h>
16212 #endif
16213
16214 #undef $ac_func
16215
16216 /* Override any gcc2 internal prototype to avoid an error. */
16217 #ifdef __cplusplus
16218 extern "C"
16219 {
16220 #endif
16221 /* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16223 char $ac_func ();
16224 /* The GNU C library defines this for functions which it implements
16225 to always fail with ENOSYS. Some functions are actually named
16226 something starting with __ and the normal name is an alias. */
16227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16228 choke me
16229 #else
16230 char (*f) () = $ac_func;
16231 #endif
16232 #ifdef __cplusplus
16233 }
16234 #endif
16235
16236 int
16237 main ()
16238 {
16239 return f != $ac_func;
16240 ;
16241 return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246 (eval $ac_link) 2>conftest.er1
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 eval "$as_ac_var=yes"
16267 else
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271 eval "$as_ac_var=no"
16272 fi
16273 rm -f conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
16275 fi
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278 if test `eval echo '${'$as_ac_var'}'` = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16281 _ACEOF
16282
16283 fi
16284 done
16285
16286
16287 # Check this now, so that we will NOT find the above functions in ncurses.
16288 # That is because we have not set up to link ncurses in lib-src.
16289 # It's better to believe a function is not available
16290 # than to expect to find it in ncurses.
16291
16292 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16293 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16294 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297 ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lncurses $LIBS"
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305
16306 /* Override any gcc2 internal prototype to avoid an error. */
16307 #ifdef __cplusplus
16308 extern "C"
16309 #endif
16310 /* We use char because int might match the return type of a gcc2
16311 builtin and then its argument prototype would still apply. */
16312 char tparm ();
16313 int
16314 main ()
16315 {
16316 tparm ();
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest$ac_exeext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_lib_ncurses_tparm=yes
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 ac_cv_lib_ncurses_tparm=no
16349 fi
16350 rm -f conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16355 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16356 if test $ac_cv_lib_ncurses_tparm = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_LIBNCURSES 1
16359 _ACEOF
16360
16361 LIBS="-lncurses $LIBS"
16362
16363 fi
16364
16365
16366 # Do we need the Hesiod library to provide the support routines?
16367 if test "$with_hesiod" = yes ; then
16368 # Don't set $LIBS here -- see comments above.
16369 resolv=no
16370 echo "$as_me:$LINENO: checking for res_send" >&5
16371 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16372 if test "${ac_cv_func_res_send+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h. */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16383 #define res_send innocuous_res_send
16384
16385 /* System header to define __stub macros and hopefully few prototypes,
16386 which can conflict with char res_send (); below.
16387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16388 <limits.h> exists even on freestanding compilers. */
16389
16390 #ifdef __STDC__
16391 # include <limits.h>
16392 #else
16393 # include <assert.h>
16394 #endif
16395
16396 #undef res_send
16397
16398 /* Override any gcc2 internal prototype to avoid an error. */
16399 #ifdef __cplusplus
16400 extern "C"
16401 {
16402 #endif
16403 /* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16405 char res_send ();
16406 /* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409 #if defined (__stub_res_send) || defined (__stub___res_send)
16410 choke me
16411 #else
16412 char (*f) () = res_send;
16413 #endif
16414 #ifdef __cplusplus
16415 }
16416 #endif
16417
16418 int
16419 main ()
16420 {
16421 return f != res_send;
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>conftest.er1
16429 ac_status=$?
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag"
16436 || test ! -s conftest.err'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try='test -s conftest$ac_exeext'
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; }; then
16448 ac_cv_func_res_send=yes
16449 else
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453 ac_cv_func_res_send=no
16454 fi
16455 rm -f conftest.err conftest.$ac_objext \
16456 conftest$ac_exeext conftest.$ac_ext
16457 fi
16458 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16459 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16460 if test $ac_cv_func_res_send = yes; then
16461 :
16462 else
16463 echo "$as_me:$LINENO: checking for __res_send" >&5
16464 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16465 if test "${ac_cv_func___res_send+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476 #define __res_send innocuous___res_send
16477
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char __res_send (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16482
16483 #ifdef __STDC__
16484 # include <limits.h>
16485 #else
16486 # include <assert.h>
16487 #endif
16488
16489 #undef __res_send
16490
16491 /* Override any gcc2 internal prototype to avoid an error. */
16492 #ifdef __cplusplus
16493 extern "C"
16494 {
16495 #endif
16496 /* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16498 char __res_send ();
16499 /* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
16502 #if defined (__stub___res_send) || defined (__stub_____res_send)
16503 choke me
16504 #else
16505 char (*f) () = __res_send;
16506 #endif
16507 #ifdef __cplusplus
16508 }
16509 #endif
16510
16511 int
16512 main ()
16513 {
16514 return f != __res_send;
16515 ;
16516 return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_func___res_send=yes
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_cv_func___res_send=no
16547 fi
16548 rm -f conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 fi
16551 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16552 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16553 if test $ac_cv_func___res_send = yes; then
16554 :
16555 else
16556 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16557 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16558 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561 ac_check_lib_save_LIBS=$LIBS
16562 LIBS="-lresolv $LIBS"
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569
16570 /* Override any gcc2 internal prototype to avoid an error. */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16576 char res_send ();
16577 int
16578 main ()
16579 {
16580 res_send ();
16581 ;
16582 return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16587 (eval $ac_link) 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_lib_resolv_res_send=yes
16608 else
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_cv_lib_resolv_res_send=no
16613 fi
16614 rm -f conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16617 fi
16618 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16619 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16620 if test $ac_cv_lib_resolv_res_send = yes; then
16621 resolv=yes
16622 else
16623 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16624 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16625 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lresolv $LIBS"
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636
16637 /* Override any gcc2 internal prototype to avoid an error. */
16638 #ifdef __cplusplus
16639 extern "C"
16640 #endif
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643 char __res_send ();
16644 int
16645 main ()
16646 {
16647 __res_send ();
16648 ;
16649 return 0;
16650 }
16651 _ACEOF
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16654 (eval $ac_link) 2>conftest.er1
16655 ac_status=$?
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_lib_resolv___res_send=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ac_cv_lib_resolv___res_send=no
16680 fi
16681 rm -f conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 LIBS=$ac_check_lib_save_LIBS
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16686 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16687 if test $ac_cv_lib_resolv___res_send = yes; then
16688 resolv=yes
16689 fi
16690
16691 fi
16692
16693 fi
16694
16695 fi
16696
16697 if test "$resolv" = yes ; then
16698 RESOLVLIB=-lresolv
16699
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE_LIBRESOLV 1
16702 _ACEOF
16703
16704 else
16705 RESOLVLIB=
16706 fi
16707 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16708 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16709 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define hes_getmailhost innocuous_hes_getmailhost
16721
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char hes_getmailhost (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16726
16727 #ifdef __STDC__
16728 # include <limits.h>
16729 #else
16730 # include <assert.h>
16731 #endif
16732
16733 #undef hes_getmailhost
16734
16735 /* Override any gcc2 internal prototype to avoid an error. */
16736 #ifdef __cplusplus
16737 extern "C"
16738 {
16739 #endif
16740 /* We use char because int might match the return type of a gcc2
16741 builtin and then its argument prototype would still apply. */
16742 char hes_getmailhost ();
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16747 choke me
16748 #else
16749 char (*f) () = hes_getmailhost;
16750 #endif
16751 #ifdef __cplusplus
16752 }
16753 #endif
16754
16755 int
16756 main ()
16757 {
16758 return f != hes_getmailhost;
16759 ;
16760 return 0;
16761 }
16762 _ACEOF
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_func_hes_getmailhost=yes
16786 else
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 ac_cv_func_hes_getmailhost=no
16791 fi
16792 rm -f conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 fi
16795 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16796 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16797 if test $ac_cv_func_hes_getmailhost = yes; then
16798 :
16799 else
16800 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16801 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16802 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805 ac_check_lib_save_LIBS=$LIBS
16806 LIBS="-lhesiod $RESOLVLIB $LIBS"
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813
16814 /* Override any gcc2 internal prototype to avoid an error. */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 /* We use char because int might match the return type of a gcc2
16819 builtin and then its argument prototype would still apply. */
16820 char hes_getmailhost ();
16821 int
16822 main ()
16823 {
16824 hes_getmailhost ();
16825 ;
16826 return 0;
16827 }
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_lib_hesiod_hes_getmailhost=yes
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16855
16856 ac_cv_lib_hesiod_hes_getmailhost=no
16857 fi
16858 rm -f conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860 LIBS=$ac_check_lib_save_LIBS
16861 fi
16862 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16863 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16864 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_LIBHESIOD 1
16868 _ACEOF
16869
16870 else
16871 :
16872 fi
16873
16874 fi
16875
16876 fi
16877
16878 # These tell us which Kerberos-related libraries to use.
16879 if test "${with_kerberos+set}" = set; then
16880
16881 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16882 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16883 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886 ac_check_lib_save_LIBS=$LIBS
16887 LIBS="-lcom_err $LIBS"
16888 cat >conftest.$ac_ext <<_ACEOF
16889 /* confdefs.h. */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894
16895 /* Override any gcc2 internal prototype to avoid an error. */
16896 #ifdef __cplusplus
16897 extern "C"
16898 #endif
16899 /* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901 char com_err ();
16902 int
16903 main ()
16904 {
16905 com_err ();
16906 ;
16907 return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_com_err_com_err=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_cv_lib_com_err_com_err=no
16938 fi
16939 rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16944 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16945 if test $ac_cv_lib_com_err_com_err = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947 #define HAVE_LIBCOM_ERR 1
16948 _ACEOF
16949
16950 LIBS="-lcom_err $LIBS"
16951
16952 fi
16953
16954
16955 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16956 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16957 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960 ac_check_lib_save_LIBS=$LIBS
16961 LIBS="-lk5crypto $LIBS"
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968
16969 /* Override any gcc2 internal prototype to avoid an error. */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char mit_des_cbc_encrypt ();
16976 int
16977 main ()
16978 {
16979 mit_des_cbc_encrypt ();
16980 ;
16981 return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag"
16994 || test ! -s conftest.err'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17012 fi
17013 rm -f conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17015 LIBS=$ac_check_lib_save_LIBS
17016 fi
17017 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17018 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17019 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define HAVE_LIBK5CRYPTO 1
17022 _ACEOF
17023
17024 LIBS="-lk5crypto $LIBS"
17025
17026 fi
17027
17028
17029 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17030 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17031 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034 ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-lcrypto $LIBS"
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042
17043 /* Override any gcc2 internal prototype to avoid an error. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17049 char mit_des_cbc_encrypt ();
17050 int
17051 main ()
17052 {
17053 mit_des_cbc_encrypt ();
17054 ;
17055 return 0;
17056 }
17057 _ACEOF
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060 (eval $ac_link) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest$ac_exeext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17086 fi
17087 rm -f conftest.err conftest.$ac_objext \
17088 conftest$ac_exeext conftest.$ac_ext
17089 LIBS=$ac_check_lib_save_LIBS
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17092 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17093 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095 #define HAVE_LIBCRYPTO 1
17096 _ACEOF
17097
17098 LIBS="-lcrypto $LIBS"
17099
17100 fi
17101
17102
17103 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17104 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17105 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lkrb5 $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h. */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116
17117 /* Override any gcc2 internal prototype to avoid an error. */
17118 #ifdef __cplusplus
17119 extern "C"
17120 #endif
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123 char krb5_init_context ();
17124 int
17125 main ()
17126 {
17127 krb5_init_context ();
17128 ;
17129 return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_lib_krb5_krb5_init_context=yes
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 ac_cv_lib_krb5_krb5_init_context=no
17160 fi
17161 rm -f conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 LIBS=$ac_check_lib_save_LIBS
17164 fi
17165 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17166 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17167 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17168 cat >>confdefs.h <<_ACEOF
17169 #define HAVE_LIBKRB5 1
17170 _ACEOF
17171
17172 LIBS="-lkrb5 $LIBS"
17173
17174 fi
17175
17176 if test "${with_kerberos5+set}" != set; then
17177
17178 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17179 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17180 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183 ac_check_lib_save_LIBS=$LIBS
17184 LIBS="-ldes425 $LIBS"
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191
17192 /* Override any gcc2 internal prototype to avoid an error. */
17193 #ifdef __cplusplus
17194 extern "C"
17195 #endif
17196 /* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17198 char des_cbc_encrypt ();
17199 int
17200 main ()
17201 {
17202 des_cbc_encrypt ();
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_lib_des425_des_cbc_encrypt=yes
17230 else
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 ac_cv_lib_des425_des_cbc_encrypt=no
17235 fi
17236 rm -f conftest.err conftest.$ac_objext \
17237 conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17239 fi
17240 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17241 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17242 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17243 cat >>confdefs.h <<_ACEOF
17244 #define HAVE_LIBDES425 1
17245 _ACEOF
17246
17247 LIBS="-ldes425 $LIBS"
17248
17249 else
17250
17251 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17252 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17253 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256 ac_check_lib_save_LIBS=$LIBS
17257 LIBS="-ldes $LIBS"
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h. */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264
17265 /* Override any gcc2 internal prototype to avoid an error. */
17266 #ifdef __cplusplus
17267 extern "C"
17268 #endif
17269 /* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17271 char des_cbc_encrypt ();
17272 int
17273 main ()
17274 {
17275 des_cbc_encrypt ();
17276 ;
17277 return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282 (eval $ac_link) 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_lib_des_des_cbc_encrypt=yes
17303 else
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 ac_cv_lib_des_des_cbc_encrypt=no
17308 fi
17309 rm -f conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17312 fi
17313 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17314 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17315 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_LIBDES 1
17318 _ACEOF
17319
17320 LIBS="-ldes $LIBS"
17321
17322 fi
17323
17324 fi
17325
17326
17327 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17328 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17329 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lkrb4 $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340
17341 /* Override any gcc2 internal prototype to avoid an error. */
17342 #ifdef __cplusplus
17343 extern "C"
17344 #endif
17345 /* We use char because int might match the return type of a gcc2
17346 builtin and then its argument prototype would still apply. */
17347 char krb_get_cred ();
17348 int
17349 main ()
17350 {
17351 krb_get_cred ();
17352 ;
17353 return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest$ac_exeext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_lib_krb4_krb_get_cred=yes
17379 else
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 ac_cv_lib_krb4_krb_get_cred=no
17384 fi
17385 rm -f conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17388 fi
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17390 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17391 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17392 cat >>confdefs.h <<_ACEOF
17393 #define HAVE_LIBKRB4 1
17394 _ACEOF
17395
17396 LIBS="-lkrb4 $LIBS"
17397
17398 else
17399
17400 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17401 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17402 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405 ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-lkrb $LIBS"
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h. */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413
17414 /* Override any gcc2 internal prototype to avoid an error. */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420 char krb_get_cred ();
17421 int
17422 main ()
17423 {
17424 krb_get_cred ();
17425 ;
17426 return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17432 ac_status=$?
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_krb_krb_get_cred=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 ac_cv_lib_krb_krb_get_cred=no
17457 fi
17458 rm -f conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17461 fi
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17463 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17464 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17465 cat >>confdefs.h <<_ACEOF
17466 #define HAVE_LIBKRB 1
17467 _ACEOF
17468
17469 LIBS="-lkrb $LIBS"
17470
17471 fi
17472
17473 fi
17474
17475 fi
17476
17477 if test "${with_kerberos5+set}" = set; then
17478
17479 for ac_header in krb5.h
17480 do
17481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17483 echo "$as_me:$LINENO: checking for $ac_header" >&5
17484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 fi
17488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17490 else
17491 # Is the header compilable?
17492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 $ac_includes_default
17501 #include <$ac_header>
17502 _ACEOF
17503 rm -f conftest.$ac_objext
17504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17505 (eval $ac_compile) 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag"
17513 || test ! -s conftest.err'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } &&
17519 { ac_try='test -s conftest.$ac_objext'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_header_compiler=yes
17526 else
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 ac_header_compiler=no
17531 fi
17532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6
17535
17536 # Is the header present?
17537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <$ac_header>
17546 _ACEOF
17547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } >/dev/null; then
17555 if test -s conftest.err; then
17556 ac_cpp_err=$ac_c_preproc_warn_flag
17557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17558 else
17559 ac_cpp_err=
17560 fi
17561 else
17562 ac_cpp_err=yes
17563 fi
17564 if test -z "$ac_cpp_err"; then
17565 ac_header_preproc=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_header_preproc=no
17571 fi
17572 rm -f conftest.err conftest.$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17574 echo "${ECHO_T}$ac_header_preproc" >&6
17575
17576 # So? What about this header?
17577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17578 yes:no: )
17579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17583 ac_header_preproc=yes
17584 ;;
17585 no:yes:* )
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17598 (
17599 cat <<\_ASBOX
17600 ## ------------------------------------------ ##
17601 ## Report this to the AC_PACKAGE_NAME lists. ##
17602 ## ------------------------------------------ ##
17603 _ASBOX
17604 ) |
17605 sed "s/^/$as_me: WARNING: /" >&2
17606 ;;
17607 esac
17608 echo "$as_me:$LINENO: checking for $ac_header" >&5
17609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 eval "$as_ac_Header=\$ac_header_preproc"
17614 fi
17615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17617
17618 fi
17619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17620 cat >>confdefs.h <<_ACEOF
17621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17622 _ACEOF
17623
17624 fi
17625
17626 done
17627
17628 else
17629
17630 for ac_header in des.h
17631 do
17632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17634 echo "$as_me:$LINENO: checking for $ac_header" >&5
17635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 fi
17639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17641 else
17642 # Is the header compilable?
17643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17645 cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h. */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 $ac_includes_default
17652 #include <$ac_header>
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17656 (eval $ac_compile) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_c_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest.$ac_objext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_header_compiler=yes
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_header_compiler=no
17682 fi
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17685 echo "${ECHO_T}$ac_header_compiler" >&6
17686
17687 # Is the header present?
17688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h. */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 #include <$ac_header>
17697 _ACEOF
17698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17700 ac_status=$?
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } >/dev/null; then
17706 if test -s conftest.err; then
17707 ac_cpp_err=$ac_c_preproc_warn_flag
17708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17709 else
17710 ac_cpp_err=
17711 fi
17712 else
17713 ac_cpp_err=yes
17714 fi
17715 if test -z "$ac_cpp_err"; then
17716 ac_header_preproc=yes
17717 else
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721 ac_header_preproc=no
17722 fi
17723 rm -f conftest.err conftest.$ac_ext
17724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17725 echo "${ECHO_T}$ac_header_preproc" >&6
17726
17727 # So? What about this header?
17728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17729 yes:no: )
17730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17734 ac_header_preproc=yes
17735 ;;
17736 no:yes:* )
17737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17749 (
17750 cat <<\_ASBOX
17751 ## ------------------------------------------ ##
17752 ## Report this to the AC_PACKAGE_NAME lists. ##
17753 ## ------------------------------------------ ##
17754 _ASBOX
17755 ) |
17756 sed "s/^/$as_me: WARNING: /" >&2
17757 ;;
17758 esac
17759 echo "$as_me:$LINENO: checking for $ac_header" >&5
17760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 eval "$as_ac_Header=\$ac_header_preproc"
17765 fi
17766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17768
17769 fi
17770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17771 cat >>confdefs.h <<_ACEOF
17772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17773 _ACEOF
17774
17775 else
17776
17777 for ac_header in kerberosIV/des.h
17778 do
17779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17781 echo "$as_me:$LINENO: checking for $ac_header" >&5
17782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 fi
17786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17788 else
17789 # Is the header compilable?
17790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 $ac_includes_default
17799 #include <$ac_header>
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17803 (eval $ac_compile) 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_header_compiler=yes
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_header_compiler=no
17829 fi
17830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17832 echo "${ECHO_T}$ac_header_compiler" >&6
17833
17834 # Is the header present?
17835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 #include <$ac_header>
17844 _ACEOF
17845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17847 ac_status=$?
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } >/dev/null; then
17853 if test -s conftest.err; then
17854 ac_cpp_err=$ac_c_preproc_warn_flag
17855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17856 else
17857 ac_cpp_err=
17858 fi
17859 else
17860 ac_cpp_err=yes
17861 fi
17862 if test -z "$ac_cpp_err"; then
17863 ac_header_preproc=yes
17864 else
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 ac_header_preproc=no
17869 fi
17870 rm -f conftest.err conftest.$ac_ext
17871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17872 echo "${ECHO_T}$ac_header_preproc" >&6
17873
17874 # So? What about this header?
17875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17876 yes:no: )
17877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17881 ac_header_preproc=yes
17882 ;;
17883 no:yes:* )
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17896 (
17897 cat <<\_ASBOX
17898 ## ------------------------------------------ ##
17899 ## Report this to the AC_PACKAGE_NAME lists. ##
17900 ## ------------------------------------------ ##
17901 _ASBOX
17902 ) |
17903 sed "s/^/$as_me: WARNING: /" >&2
17904 ;;
17905 esac
17906 echo "$as_me:$LINENO: checking for $ac_header" >&5
17907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911 eval "$as_ac_Header=\$ac_header_preproc"
17912 fi
17913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17915
17916 fi
17917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17920 _ACEOF
17921
17922 else
17923
17924 for ac_header in kerberos/des.h
17925 do
17926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17928 echo "$as_me:$LINENO: checking for $ac_header" >&5
17929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 fi
17933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17935 else
17936 # Is the header compilable?
17937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 $ac_includes_default
17946 #include <$ac_header>
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag"
17958 || test ! -s conftest.err'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17961 ac_status=$?
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; } &&
17964 { ac_try='test -s conftest.$ac_objext'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_header_compiler=yes
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975 ac_header_compiler=no
17976 fi
17977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17979 echo "${ECHO_T}$ac_header_compiler" >&6
17980
17981 # Is the header present?
17982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <$ac_header>
17991 _ACEOF
17992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } >/dev/null; then
18000 if test -s conftest.err; then
18001 ac_cpp_err=$ac_c_preproc_warn_flag
18002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18003 else
18004 ac_cpp_err=
18005 fi
18006 else
18007 ac_cpp_err=yes
18008 fi
18009 if test -z "$ac_cpp_err"; then
18010 ac_header_preproc=yes
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 ac_header_preproc=no
18016 fi
18017 rm -f conftest.err conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6
18020
18021 # So? What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18023 yes:no: )
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18028 ac_header_preproc=yes
18029 ;;
18030 no:yes:* )
18031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18043 (
18044 cat <<\_ASBOX
18045 ## ------------------------------------------ ##
18046 ## Report this to the AC_PACKAGE_NAME lists. ##
18047 ## ------------------------------------------ ##
18048 _ASBOX
18049 ) |
18050 sed "s/^/$as_me: WARNING: /" >&2
18051 ;;
18052 esac
18053 echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058 eval "$as_ac_Header=\$ac_header_preproc"
18059 fi
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18062
18063 fi
18064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 fi
18070
18071 done
18072
18073 fi
18074
18075 done
18076
18077 fi
18078
18079 done
18080
18081
18082 for ac_header in krb.h
18083 do
18084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18086 echo "$as_me:$LINENO: checking for $ac_header" >&5
18087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 fi
18091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18093 else
18094 # Is the header compilable?
18095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18104 #include <$ac_header>
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag"
18116 || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_header_compiler=yes
18129 else
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_header_compiler=no
18134 fi
18135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18137 echo "${ECHO_T}$ac_header_compiler" >&6
18138
18139 # Is the header present?
18140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 #include <$ac_header>
18149 _ACEOF
18150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } >/dev/null; then
18158 if test -s conftest.err; then
18159 ac_cpp_err=$ac_c_preproc_warn_flag
18160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18161 else
18162 ac_cpp_err=
18163 fi
18164 else
18165 ac_cpp_err=yes
18166 fi
18167 if test -z "$ac_cpp_err"; then
18168 ac_header_preproc=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 ac_header_preproc=no
18174 fi
18175 rm -f conftest.err conftest.$ac_ext
18176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18177 echo "${ECHO_T}$ac_header_preproc" >&6
18178
18179 # So? What about this header?
18180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18181 yes:no: )
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18186 ac_header_preproc=yes
18187 ;;
18188 no:yes:* )
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18201 (
18202 cat <<\_ASBOX
18203 ## ------------------------------------------ ##
18204 ## Report this to the AC_PACKAGE_NAME lists. ##
18205 ## ------------------------------------------ ##
18206 _ASBOX
18207 ) |
18208 sed "s/^/$as_me: WARNING: /" >&2
18209 ;;
18210 esac
18211 echo "$as_me:$LINENO: checking for $ac_header" >&5
18212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216 eval "$as_ac_Header=\$ac_header_preproc"
18217 fi
18218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18220
18221 fi
18222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18225 _ACEOF
18226
18227 else
18228
18229 for ac_header in kerberosIV/krb.h
18230 do
18231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18233 echo "$as_me:$LINENO: checking for $ac_header" >&5
18234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 fi
18238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18240 else
18241 # Is the header compilable?
18242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h. */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 $ac_includes_default
18251 #include <$ac_header>
18252 _ACEOF
18253 rm -f conftest.$ac_objext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255 (eval $ac_compile) 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } &&
18262 { ac_try='test -z "$ac_c_werror_flag"
18263 || test ! -s conftest.err'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try='test -s conftest.$ac_objext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_header_compiler=yes
18276 else
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280 ac_header_compiler=no
18281 fi
18282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18284 echo "${ECHO_T}$ac_header_compiler" >&6
18285
18286 # Is the header present?
18287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18289 cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h. */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 #include <$ac_header>
18296 _ACEOF
18297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } >/dev/null; then
18305 if test -s conftest.err; then
18306 ac_cpp_err=$ac_c_preproc_warn_flag
18307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18308 else
18309 ac_cpp_err=
18310 fi
18311 else
18312 ac_cpp_err=yes
18313 fi
18314 if test -z "$ac_cpp_err"; then
18315 ac_header_preproc=yes
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_header_preproc=no
18321 fi
18322 rm -f conftest.err conftest.$ac_ext
18323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18324 echo "${ECHO_T}$ac_header_preproc" >&6
18325
18326 # So? What about this header?
18327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18328 yes:no: )
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18333 ac_header_preproc=yes
18334 ;;
18335 no:yes:* )
18336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18348 (
18349 cat <<\_ASBOX
18350 ## ------------------------------------------ ##
18351 ## Report this to the AC_PACKAGE_NAME lists. ##
18352 ## ------------------------------------------ ##
18353 _ASBOX
18354 ) |
18355 sed "s/^/$as_me: WARNING: /" >&2
18356 ;;
18357 esac
18358 echo "$as_me:$LINENO: checking for $ac_header" >&5
18359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363 eval "$as_ac_Header=\$ac_header_preproc"
18364 fi
18365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18367
18368 fi
18369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18370 cat >>confdefs.h <<_ACEOF
18371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18372 _ACEOF
18373
18374 else
18375
18376 for ac_header in kerberos/krb.h
18377 do
18378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18380 echo "$as_me:$LINENO: checking for $ac_header" >&5
18381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 fi
18385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18387 else
18388 # Is the header compilable?
18389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 $ac_includes_default
18398 #include <$ac_header>
18399 _ACEOF
18400 rm -f conftest.$ac_objext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_header_compiler=yes
18423 else
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 ac_header_compiler=no
18428 fi
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18431 echo "${ECHO_T}$ac_header_compiler" >&6
18432
18433 # Is the header present?
18434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 #include <$ac_header>
18443 _ACEOF
18444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } >/dev/null; then
18452 if test -s conftest.err; then
18453 ac_cpp_err=$ac_c_preproc_warn_flag
18454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18455 else
18456 ac_cpp_err=
18457 fi
18458 else
18459 ac_cpp_err=yes
18460 fi
18461 if test -z "$ac_cpp_err"; then
18462 ac_header_preproc=yes
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467 ac_header_preproc=no
18468 fi
18469 rm -f conftest.err conftest.$ac_ext
18470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18471 echo "${ECHO_T}$ac_header_preproc" >&6
18472
18473 # So? What about this header?
18474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18475 yes:no: )
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18480 ac_header_preproc=yes
18481 ;;
18482 no:yes:* )
18483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18495 (
18496 cat <<\_ASBOX
18497 ## ------------------------------------------ ##
18498 ## Report this to the AC_PACKAGE_NAME lists. ##
18499 ## ------------------------------------------ ##
18500 _ASBOX
18501 ) |
18502 sed "s/^/$as_me: WARNING: /" >&2
18503 ;;
18504 esac
18505 echo "$as_me:$LINENO: checking for $ac_header" >&5
18506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510 eval "$as_ac_Header=\$ac_header_preproc"
18511 fi
18512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18514
18515 fi
18516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18517 cat >>confdefs.h <<_ACEOF
18518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18519 _ACEOF
18520
18521 fi
18522
18523 done
18524
18525 fi
18526
18527 done
18528
18529 fi
18530
18531 done
18532
18533 fi
18534
18535 for ac_header in com_err.h
18536 do
18537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18539 echo "$as_me:$LINENO: checking for $ac_header" >&5
18540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 fi
18544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18546 else
18547 # Is the header compilable?
18548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 $ac_includes_default
18557 #include <$ac_header>
18558 _ACEOF
18559 rm -f conftest.$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest.$ac_objext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_header_compiler=yes
18582 else
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_header_compiler=no
18587 fi
18588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18590 echo "${ECHO_T}$ac_header_compiler" >&6
18591
18592 # Is the header present?
18593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <$ac_header>
18602 _ACEOF
18603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } >/dev/null; then
18611 if test -s conftest.err; then
18612 ac_cpp_err=$ac_c_preproc_warn_flag
18613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18614 else
18615 ac_cpp_err=
18616 fi
18617 else
18618 ac_cpp_err=yes
18619 fi
18620 if test -z "$ac_cpp_err"; then
18621 ac_header_preproc=yes
18622 else
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 ac_header_preproc=no
18627 fi
18628 rm -f conftest.err conftest.$ac_ext
18629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18630 echo "${ECHO_T}$ac_header_preproc" >&6
18631
18632 # So? What about this header?
18633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18634 yes:no: )
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18639 ac_header_preproc=yes
18640 ;;
18641 no:yes:* )
18642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18654 (
18655 cat <<\_ASBOX
18656 ## ------------------------------------------ ##
18657 ## Report this to the AC_PACKAGE_NAME lists. ##
18658 ## ------------------------------------------ ##
18659 _ASBOX
18660 ) |
18661 sed "s/^/$as_me: WARNING: /" >&2
18662 ;;
18663 esac
18664 echo "$as_me:$LINENO: checking for $ac_header" >&5
18665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669 eval "$as_ac_Header=\$ac_header_preproc"
18670 fi
18671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18673
18674 fi
18675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18678 _ACEOF
18679
18680 fi
18681
18682 done
18683
18684 fi
18685
18686 # Solaris requires -lintl if you want strerror (which calls dgettext)
18687 # to return localized messages.
18688
18689 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18690 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18691 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694 ac_check_lib_save_LIBS=$LIBS
18695 LIBS="-lintl $LIBS"
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702
18703 /* Override any gcc2 internal prototype to avoid an error. */
18704 #ifdef __cplusplus
18705 extern "C"
18706 #endif
18707 /* We use char because int might match the return type of a gcc2
18708 builtin and then its argument prototype would still apply. */
18709 char dgettext ();
18710 int
18711 main ()
18712 {
18713 dgettext ();
18714 ;
18715 return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18720 (eval $ac_link) 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag"
18728 || test ! -s conftest.err'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try='test -s conftest$ac_exeext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_cv_lib_intl_dgettext=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 ac_cv_lib_intl_dgettext=no
18746 fi
18747 rm -f conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_check_lib_save_LIBS
18750 fi
18751 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18752 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18753 if test $ac_cv_lib_intl_dgettext = yes; then
18754 cat >>confdefs.h <<_ACEOF
18755 #define HAVE_LIBINTL 1
18756 _ACEOF
18757
18758 LIBS="-lintl $LIBS"
18759
18760 fi
18761
18762
18763 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18764 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18765 if test "${emacs_cv_localtime_cache+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768 if test x$ac_cv_func_tzset = xyes; then
18769 if test "$cross_compiling" = yes; then
18770 # If we have tzset, assume the worst when cross-compiling.
18771 emacs_cv_localtime_cache=yes
18772 else
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 #include <time.h>
18780 extern char **environ;
18781 unset_TZ ()
18782 {
18783 char **from, **to;
18784 for (to = from = environ; (*to = *from); from++)
18785 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18786 to++;
18787 }
18788 char TZ_GMT0[] = "TZ=GMT0";
18789 char TZ_PST8[] = "TZ=PST8";
18790 main()
18791 {
18792 time_t now = time ((time_t *) 0);
18793 int hour_GMT0, hour_unset;
18794 if (putenv (TZ_GMT0) != 0)
18795 exit (1);
18796 hour_GMT0 = localtime (&now)->tm_hour;
18797 unset_TZ ();
18798 hour_unset = localtime (&now)->tm_hour;
18799 if (putenv (TZ_PST8) != 0)
18800 exit (1);
18801 if (localtime (&now)->tm_hour == hour_GMT0)
18802 exit (1);
18803 unset_TZ ();
18804 if (localtime (&now)->tm_hour != hour_unset)
18805 exit (1);
18806 exit (0);
18807 }
18808 _ACEOF
18809 rm -f conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 emacs_cv_localtime_cache=no
18821 else
18822 echo "$as_me: program exited with status $ac_status" >&5
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ( exit $ac_status )
18827 emacs_cv_localtime_cache=yes
18828 fi
18829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18830 fi
18831 else
18832 # If we lack tzset, report that localtime does not cache TZ,
18833 # since we can't invalidate the cache if we don't have tzset.
18834 emacs_cv_localtime_cache=no
18835 fi
18836 fi
18837 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18838 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18839 if test $emacs_cv_localtime_cache = yes; then
18840
18841 cat >>confdefs.h <<\_ACEOF
18842 #define LOCALTIME_CACHE 1
18843 _ACEOF
18844
18845 fi
18846
18847 if test "x$HAVE_TIMEVAL" = xyes; then
18848
18849 for ac_func in gettimeofday
18850 do
18851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18852 echo "$as_me:$LINENO: checking for $ac_func" >&5
18853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18854 if eval "test \"\${$as_ac_var+set}\" = set"; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h. */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18865 #define $ac_func innocuous_$ac_func
18866
18867 /* System header to define __stub macros and hopefully few prototypes,
18868 which can conflict with char $ac_func (); below.
18869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18870 <limits.h> exists even on freestanding compilers. */
18871
18872 #ifdef __STDC__
18873 # include <limits.h>
18874 #else
18875 # include <assert.h>
18876 #endif
18877
18878 #undef $ac_func
18879
18880 /* Override any gcc2 internal prototype to avoid an error. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 {
18884 #endif
18885 /* We use char because int might match the return type of a gcc2
18886 builtin and then its argument prototype would still apply. */
18887 char $ac_func ();
18888 /* The GNU C library defines this for functions which it implements
18889 to always fail with ENOSYS. Some functions are actually named
18890 something starting with __ and the normal name is an alias. */
18891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18892 choke me
18893 #else
18894 char (*f) () = $ac_func;
18895 #endif
18896 #ifdef __cplusplus
18897 }
18898 #endif
18899
18900 int
18901 main ()
18902 {
18903 return f != $ac_func;
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 eval "$as_ac_var=yes"
18931 else
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 eval "$as_ac_var=no"
18936 fi
18937 rm -f conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939 fi
18940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18942 if test `eval echo '${'$as_ac_var'}'` = yes; then
18943 cat >>confdefs.h <<_ACEOF
18944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18945 _ACEOF
18946
18947 fi
18948 done
18949
18950 if test $ac_cv_func_gettimeofday = yes; then
18951 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18952 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18953 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962
18963 #ifdef TIME_WITH_SYS_TIME
18964 #include <sys/time.h>
18965 #include <time.h>
18966 #else
18967 #ifdef HAVE_SYS_TIME_H
18968 #include <sys/time.h>
18969 #else
18970 #include <time.h>
18971 #endif
18972 #endif
18973 int
18974 main ()
18975 {
18976 struct timeval time;
18977 gettimeofday (&time, 0);
18978 ;
18979 return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18984 (eval $ac_compile) 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag"
18992 || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest.$ac_objext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 emacs_cv_gettimeofday_two_arguments=yes
19005 else
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 emacs_cv_gettimeofday_two_arguments=no
19010 fi
19011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012 fi
19013 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19014 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19015 if test $emacs_cv_gettimeofday_two_arguments = no; then
19016
19017 cat >>confdefs.h <<\_ACEOF
19018 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19019 _ACEOF
19020
19021 fi
19022 fi
19023 fi
19024
19025 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19026 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19027 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19028 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <sys/types.h>
19038 #include <$ac_cv_struct_tm>
19039
19040
19041 int
19042 main ()
19043 {
19044 static struct tm ac_aggr;
19045 if (ac_aggr.tm_zone)
19046 return 0;
19047 ;
19048 return 0;
19049 }
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_member_struct_tm_tm_zone=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <sys/types.h>
19085 #include <$ac_cv_struct_tm>
19086
19087
19088 int
19089 main ()
19090 {
19091 static struct tm ac_aggr;
19092 if (sizeof ac_aggr.tm_zone)
19093 return 0;
19094 ;
19095 return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_member_struct_tm_tm_zone=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_cv_member_struct_tm_tm_zone=no
19126 fi
19127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19128 fi
19129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19130 fi
19131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19132 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19133 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19134
19135 cat >>confdefs.h <<_ACEOF
19136 #define HAVE_STRUCT_TM_TM_ZONE 1
19137 _ACEOF
19138
19139
19140 fi
19141
19142 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_TM_ZONE 1
19146 _ACEOF
19147
19148 else
19149 echo "$as_me:$LINENO: checking for tzname" >&5
19150 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19151 if test "${ac_cv_var_tzname+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #include <time.h>
19161 #ifndef tzname /* For SGI. */
19162 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19163 #endif
19164
19165 int
19166 main ()
19167 {
19168 atoi(*tzname);
19169 ;
19170 return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175 (eval $ac_link) 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_c_werror_flag"
19183 || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_var_tzname=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_var_tzname=no
19201 fi
19202 rm -f conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 fi
19205 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19206 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19207 if test $ac_cv_var_tzname = yes; then
19208
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_TZNAME 1
19211 _ACEOF
19212
19213 fi
19214 fi
19215
19216
19217 if test "$ac_cv_func_gettimeofday" = yes; then
19218 echo "$as_me:$LINENO: checking for struct timezone" >&5
19219 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19220 if test "${emacs_cv_struct_timezone+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 #include <sys/time.h>
19230 int
19231 main ()
19232 {
19233 struct timezone tz;
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 if test "$cross_compiling" = yes; then
19261 emacs_cv_struct_timezone=yes
19262 else
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269
19270 #ifdef TIME_WITH_SYS_TIME
19271 #include <sys/time.h>
19272 #include <time.h>
19273 #else
19274 #ifdef HAVE_SYS_TIME_H
19275 #include <sys/time.h>
19276 #else
19277 #include <time.h>
19278 #endif
19279 #endif
19280 main () {
19281 struct timeval time;
19282 struct timezone dummy;
19283 exit (gettimeofday (&time, &dummy));
19284 }
19285 _ACEOF
19286 rm -f conftest$ac_exeext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19288 (eval $ac_link) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 emacs_cv_struct_timezone=yes
19298 else
19299 echo "$as_me: program exited with status $ac_status" >&5
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ( exit $ac_status )
19304 emacs_cv_struct_timezone=no
19305 fi
19306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 emacs_cv_struct_timezone=no
19313 fi
19314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 fi
19316 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19317 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19318 fi
19319
19320 ok_so_far=yes
19321 echo "$as_me:$LINENO: checking for socket" >&5
19322 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19323 if test "${ac_cv_func_socket+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326 cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h. */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19332 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19334 #define socket innocuous_socket
19335
19336 /* System header to define __stub macros and hopefully few prototypes,
19337 which can conflict with char socket (); below.
19338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19339 <limits.h> exists even on freestanding compilers. */
19340
19341 #ifdef __STDC__
19342 # include <limits.h>
19343 #else
19344 # include <assert.h>
19345 #endif
19346
19347 #undef socket
19348
19349 /* Override any gcc2 internal prototype to avoid an error. */
19350 #ifdef __cplusplus
19351 extern "C"
19352 {
19353 #endif
19354 /* We use char because int might match the return type of a gcc2
19355 builtin and then its argument prototype would still apply. */
19356 char socket ();
19357 /* The GNU C library defines this for functions which it implements
19358 to always fail with ENOSYS. Some functions are actually named
19359 something starting with __ and the normal name is an alias. */
19360 #if defined (__stub_socket) || defined (__stub___socket)
19361 choke me
19362 #else
19363 char (*f) () = socket;
19364 #endif
19365 #ifdef __cplusplus
19366 }
19367 #endif
19368
19369 int
19370 main ()
19371 {
19372 return f != socket;
19373 ;
19374 return 0;
19375 }
19376 _ACEOF
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try='test -z "$ac_c_werror_flag"
19387 || test ! -s conftest.err'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_cv_func_socket=yes
19400 else
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19403
19404 ac_cv_func_socket=no
19405 fi
19406 rm -f conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408 fi
19409 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19410 echo "${ECHO_T}$ac_cv_func_socket" >&6
19411 if test $ac_cv_func_socket = yes; then
19412 :
19413 else
19414 ok_so_far=no
19415 fi
19416
19417 if test $ok_so_far = yes; then
19418 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19419 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19420 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19421 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 fi
19424 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19425 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19426 else
19427 # Is the header compilable?
19428 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19429 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19437 #include <netinet/in.h>
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try='test -s conftest.$ac_objext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_header_compiler=yes
19462 else
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_header_compiler=no
19467 fi
19468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19470 echo "${ECHO_T}$ac_header_compiler" >&6
19471
19472 # Is the header present?
19473 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19474 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <netinet/in.h>
19482 _ACEOF
19483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } >/dev/null; then
19491 if test -s conftest.err; then
19492 ac_cpp_err=$ac_c_preproc_warn_flag
19493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19494 else
19495 ac_cpp_err=
19496 fi
19497 else
19498 ac_cpp_err=yes
19499 fi
19500 if test -z "$ac_cpp_err"; then
19501 ac_header_preproc=yes
19502 else
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ac_header_preproc=no
19507 fi
19508 rm -f conftest.err conftest.$ac_ext
19509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19510 echo "${ECHO_T}$ac_header_preproc" >&6
19511
19512 # So? What about this header?
19513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19514 yes:no: )
19515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19516 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19518 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19519 ac_header_preproc=yes
19520 ;;
19521 no:yes:* )
19522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19523 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19525 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19527 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19529 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19531 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19533 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19534 (
19535 cat <<\_ASBOX
19536 ## ------------------------------------------ ##
19537 ## Report this to the AC_PACKAGE_NAME lists. ##
19538 ## ------------------------------------------ ##
19539 _ASBOX
19540 ) |
19541 sed "s/^/$as_me: WARNING: /" >&2
19542 ;;
19543 esac
19544 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19545 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19546 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 ac_cv_header_netinet_in_h=$ac_header_preproc
19550 fi
19551 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19552 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19553
19554 fi
19555 if test $ac_cv_header_netinet_in_h = yes; then
19556 :
19557 else
19558 ok_so_far=no
19559 fi
19560
19561
19562 fi
19563 if test $ok_so_far = yes; then
19564 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19565 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19566 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19567 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 fi
19570 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19571 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19572 else
19573 # Is the header compilable?
19574 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19575 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 $ac_includes_default
19583 #include <arpa/inet.h>
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19587 (eval $ac_compile) 2>conftest.er1
19588 ac_status=$?
19589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } &&
19594 { ac_try='test -z "$ac_c_werror_flag"
19595 || test ! -s conftest.err'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest.$ac_objext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_header_compiler=yes
19608 else
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_header_compiler=no
19613 fi
19614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19616 echo "${ECHO_T}$ac_header_compiler" >&6
19617
19618 # Is the header present?
19619 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19620 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <arpa/inet.h>
19628 _ACEOF
19629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } >/dev/null; then
19637 if test -s conftest.err; then
19638 ac_cpp_err=$ac_c_preproc_warn_flag
19639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19640 else
19641 ac_cpp_err=
19642 fi
19643 else
19644 ac_cpp_err=yes
19645 fi
19646 if test -z "$ac_cpp_err"; then
19647 ac_header_preproc=yes
19648 else
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 ac_header_preproc=no
19653 fi
19654 rm -f conftest.err conftest.$ac_ext
19655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 echo "${ECHO_T}$ac_header_preproc" >&6
19657
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19660 yes:no: )
19661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19662 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19664 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19665 ac_header_preproc=yes
19666 ;;
19667 no:yes:* )
19668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19669 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19671 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19673 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19675 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19677 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19679 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19680 (
19681 cat <<\_ASBOX
19682 ## ------------------------------------------ ##
19683 ## Report this to the AC_PACKAGE_NAME lists. ##
19684 ## ------------------------------------------ ##
19685 _ASBOX
19686 ) |
19687 sed "s/^/$as_me: WARNING: /" >&2
19688 ;;
19689 esac
19690 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19691 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695 ac_cv_header_arpa_inet_h=$ac_header_preproc
19696 fi
19697 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19698 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19699
19700 fi
19701 if test $ac_cv_header_arpa_inet_h = yes; then
19702 :
19703 else
19704 ok_so_far=no
19705 fi
19706
19707
19708 fi
19709 if test $ok_so_far = yes; then
19710
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_INET_SOCKETS 1
19713 _ACEOF
19714
19715 fi
19716
19717
19718
19719 for ac_header in sys/ioctl.h net/if.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 else
19731 # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h. */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 $ac_includes_default
19741 #include <$ac_header>
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler=yes
19766 else
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_header_compiler=no
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19775
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h. */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <$ac_header>
19786 _ACEOF
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789 ac_status=$?
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev/null; then
19795 if test -s conftest.err; then
19796 ac_cpp_err=$ac_c_preproc_warn_flag
19797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19798 else
19799 ac_cpp_err=
19800 fi
19801 else
19802 ac_cpp_err=yes
19803 fi
19804 if test -z "$ac_cpp_err"; then
19805 ac_header_preproc=yes
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ac_header_preproc=no
19811 fi
19812 rm -f conftest.err conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19815
19816 # So? What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19818 yes:no: )
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823 ac_header_preproc=yes
19824 ;;
19825 no:yes:* )
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19838 (
19839 cat <<\_ASBOX
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists. ##
19842 ## ------------------------------------------ ##
19843 _ASBOX
19844 ) |
19845 sed "s/^/$as_me: WARNING: /" >&2
19846 ;;
19847 esac
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853 eval "$as_ac_Header=\$ac_header_preproc"
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857
19858 fi
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865
19866 done
19867
19868
19869 if test -f /usr/lpp/X11/bin/smt.exp; then
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_AIX_SMT_EXP 1
19873 _ACEOF
19874
19875 fi
19876
19877 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19878 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19879 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19880 echo "$as_me:$LINENO: result: yes" >&5
19881 echo "${ECHO_T}yes" >&6
19882
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE_DEV_PTMX 1
19885 _ACEOF
19886
19887 else
19888 echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6
19890 fi
19891
19892 echo "$as_me:$LINENO: checking for pid_t" >&5
19893 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19894 if test "${ac_cv_type_pid_t+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h. */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19904 int
19905 main ()
19906 {
19907 if ((pid_t *) 0)
19908 return 0;
19909 if (sizeof (pid_t))
19910 return 0;
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_type_pid_t=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942 ac_cv_type_pid_t=no
19943 fi
19944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19945 fi
19946 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19948 if test $ac_cv_type_pid_t = yes; then
19949 :
19950 else
19951
19952 cat >>confdefs.h <<_ACEOF
19953 #define pid_t int
19954 _ACEOF
19955
19956 fi
19957
19958
19959
19960 for ac_header in unistd.h vfork.h
19961 do
19962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19964 echo "$as_me:$LINENO: checking for $ac_header" >&5
19965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 fi
19969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19971 else
19972 # Is the header compilable?
19973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19986 (eval $ac_compile) 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_header_compiler=yes
20007 else
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011 ac_header_compiler=no
20012 fi
20013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015 echo "${ECHO_T}$ac_header_compiler" >&6
20016
20017 # Is the header present?
20018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h. */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <$ac_header>
20027 _ACEOF
20028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev/null; then
20036 if test -s conftest.err; then
20037 ac_cpp_err=$ac_c_preproc_warn_flag
20038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20039 else
20040 ac_cpp_err=
20041 fi
20042 else
20043 ac_cpp_err=yes
20044 fi
20045 if test -z "$ac_cpp_err"; then
20046 ac_header_preproc=yes
20047 else
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_header_preproc=no
20052 fi
20053 rm -f conftest.err conftest.$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055 echo "${ECHO_T}$ac_header_preproc" >&6
20056
20057 # So? What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20059 yes:no: )
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20064 ac_header_preproc=yes
20065 ;;
20066 no:yes:* )
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20079 (
20080 cat <<\_ASBOX
20081 ## ------------------------------------------ ##
20082 ## Report this to the AC_PACKAGE_NAME lists. ##
20083 ## ------------------------------------------ ##
20084 _ASBOX
20085 ) |
20086 sed "s/^/$as_me: WARNING: /" >&2
20087 ;;
20088 esac
20089 echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094 eval "$as_ac_Header=\$ac_header_preproc"
20095 fi
20096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20098
20099 fi
20100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20103 _ACEOF
20104
20105 fi
20106
20107 done
20108
20109
20110
20111 for ac_func in fork vfork
20112 do
20113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20114 echo "$as_me:$LINENO: checking for $ac_func" >&5
20115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20116 if eval "test \"\${$as_ac_var+set}\" = set"; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20127 #define $ac_func innocuous_$ac_func
20128
20129 /* System header to define __stub macros and hopefully few prototypes,
20130 which can conflict with char $ac_func (); below.
20131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20132 <limits.h> exists even on freestanding compilers. */
20133
20134 #ifdef __STDC__
20135 # include <limits.h>
20136 #else
20137 # include <assert.h>
20138 #endif
20139
20140 #undef $ac_func
20141
20142 /* Override any gcc2 internal prototype to avoid an error. */
20143 #ifdef __cplusplus
20144 extern "C"
20145 {
20146 #endif
20147 /* We use char because int might match the return type of a gcc2
20148 builtin and then its argument prototype would still apply. */
20149 char $ac_func ();
20150 /* The GNU C library defines this for functions which it implements
20151 to always fail with ENOSYS. Some functions are actually named
20152 something starting with __ and the normal name is an alias. */
20153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20154 choke me
20155 #else
20156 char (*f) () = $ac_func;
20157 #endif
20158 #ifdef __cplusplus
20159 }
20160 #endif
20161
20162 int
20163 main ()
20164 {
20165 return f != $ac_func;
20166 ;
20167 return 0;
20168 }
20169 _ACEOF
20170 rm -f conftest.$ac_objext conftest$ac_exeext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172 (eval $ac_link) 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest$ac_exeext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 eval "$as_ac_var=yes"
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 eval "$as_ac_var=no"
20198 fi
20199 rm -f conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201 fi
20202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20204 if test `eval echo '${'$as_ac_var'}'` = yes; then
20205 cat >>confdefs.h <<_ACEOF
20206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20207 _ACEOF
20208
20209 fi
20210 done
20211
20212 if test "x$ac_cv_func_fork" = xyes; then
20213 echo "$as_me:$LINENO: checking for working fork" >&5
20214 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20215 if test "${ac_cv_func_fork_works+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 if test "$cross_compiling" = yes; then
20219 ac_cv_func_fork_works=cross
20220 else
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* By Ruediger Kuhlmann. */
20223 #include <sys/types.h>
20224 #if HAVE_UNISTD_H
20225 # include <unistd.h>
20226 #endif
20227 /* Some systems only have a dummy stub for fork() */
20228 int main ()
20229 {
20230 if (fork() < 0)
20231 exit (1);
20232 exit (0);
20233 }
20234 _ACEOF
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_func_fork_works=yes
20247 else
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ( exit $ac_status )
20253 ac_cv_func_fork_works=no
20254 fi
20255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 fi
20257 fi
20258 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20259 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20260
20261 else
20262 ac_cv_func_fork_works=$ac_cv_func_fork
20263 fi
20264 if test "x$ac_cv_func_fork_works" = xcross; then
20265 case $host in
20266 *-*-amigaos* | *-*-msdosdjgpp*)
20267 # Override, as these systems have only a dummy fork() stub
20268 ac_cv_func_fork_works=no
20269 ;;
20270 *)
20271 ac_cv_func_fork_works=yes
20272 ;;
20273 esac
20274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20275 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20276 fi
20277 ac_cv_func_vfork_works=$ac_cv_func_vfork
20278 if test "x$ac_cv_func_vfork" = xyes; then
20279 echo "$as_me:$LINENO: checking for working vfork" >&5
20280 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20281 if test "${ac_cv_func_vfork_works+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 if test "$cross_compiling" = yes; then
20285 ac_cv_func_vfork_works=cross
20286 else
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h. */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 /* Thanks to Paul Eggert for this test. */
20294 #include <stdio.h>
20295 #include <stdlib.h>
20296 #include <sys/types.h>
20297 #include <sys/stat.h>
20298 #include <sys/wait.h>
20299 #if HAVE_UNISTD_H
20300 # include <unistd.h>
20301 #endif
20302 #if HAVE_VFORK_H
20303 # include <vfork.h>
20304 #endif
20305 /* On some sparc systems, changes by the child to local and incoming
20306 argument registers are propagated back to the parent. The compiler
20307 is told about this with #include <vfork.h>, but some compilers
20308 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20309 static variable whose address is put into a register that is
20310 clobbered by the vfork. */
20311 static void
20312 #ifdef __cplusplus
20313 sparc_address_test (int arg)
20314 # else
20315 sparc_address_test (arg) int arg;
20316 #endif
20317 {
20318 static pid_t child;
20319 if (!child) {
20320 child = vfork ();
20321 if (child < 0) {
20322 perror ("vfork");
20323 _exit(2);
20324 }
20325 if (!child) {
20326 arg = getpid();
20327 write(-1, "", 0);
20328 _exit (arg);
20329 }
20330 }
20331 }
20332
20333 int
20334 main ()
20335 {
20336 pid_t parent = getpid ();
20337 pid_t child;
20338
20339 sparc_address_test (0);
20340
20341 child = vfork ();
20342
20343 if (child == 0) {
20344 /* Here is another test for sparc vfork register problems. This
20345 test uses lots of local variables, at least as many local
20346 variables as main has allocated so far including compiler
20347 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20348 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20349 reuse the register of parent for one of the local variables,
20350 since it will think that parent can't possibly be used any more
20351 in this routine. Assigning to the local variable will thus
20352 munge parent in the parent process. */
20353 pid_t
20354 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20355 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20356 /* Convince the compiler that p..p7 are live; otherwise, it might
20357 use the same hardware register for all 8 local variables. */
20358 if (p != p1 || p != p2 || p != p3 || p != p4
20359 || p != p5 || p != p6 || p != p7)
20360 _exit(1);
20361
20362 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20363 from child file descriptors. If the child closes a descriptor
20364 before it execs or exits, this munges the parent's descriptor
20365 as well. Test for this by closing stdout in the child. */
20366 _exit(close(fileno(stdout)) != 0);
20367 } else {
20368 int status;
20369 struct stat st;
20370
20371 while (wait(&status) != child)
20372 ;
20373 exit(
20374 /* Was there some problem with vforking? */
20375 child < 0
20376
20377 /* Did the child fail? (This shouldn't happen.) */
20378 || status
20379
20380 /* Did the vfork/compiler bug occur? */
20381 || parent != getpid()
20382
20383 /* Did the file descriptor bug occur? */
20384 || fstat(fileno(stdout), &st) != 0
20385 );
20386 }
20387 }
20388 _ACEOF
20389 rm -f conftest$ac_exeext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20391 (eval $ac_link) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_func_vfork_works=yes
20401 else
20402 echo "$as_me: program exited with status $ac_status" >&5
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 ( exit $ac_status )
20407 ac_cv_func_vfork_works=no
20408 fi
20409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20410 fi
20411 fi
20412 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20413 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20414
20415 fi;
20416 if test "x$ac_cv_func_fork_works" = xcross; then
20417 ac_cv_func_vfork_works=$ac_cv_func_vfork
20418 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20419 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20420 fi
20421
20422 if test "x$ac_cv_func_vfork_works" = xyes; then
20423
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE_WORKING_VFORK 1
20426 _ACEOF
20427
20428 else
20429
20430 cat >>confdefs.h <<\_ACEOF
20431 #define vfork fork
20432 _ACEOF
20433
20434 fi
20435 if test "x$ac_cv_func_fork_works" = xyes; then
20436
20437 cat >>confdefs.h <<\_ACEOF
20438 #define HAVE_WORKING_FORK 1
20439 _ACEOF
20440
20441 fi
20442
20443
20444 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20445 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20446 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <langinfo.h>
20456 int
20457 main ()
20458 {
20459 char* cs = nl_langinfo(CODESET);
20460 ;
20461 return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 emacs_cv_langinfo_codeset=yes
20487 else
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 emacs_cv_langinfo_codeset=no
20492 fi
20493 rm -f conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495
20496 fi
20497 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20498 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20499 if test $emacs_cv_langinfo_codeset = yes; then
20500
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_LANGINFO_CODESET 1
20503 _ACEOF
20504
20505 fi
20506
20507 echo "$as_me:$LINENO: checking for size_t" >&5
20508 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20509 if test "${ac_cv_type_size_t+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 $ac_includes_default
20519 int
20520 main ()
20521 {
20522 if ((size_t *) 0)
20523 return 0;
20524 if (sizeof (size_t))
20525 return 0;
20526 ;
20527 return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20532 (eval $ac_compile) 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest.$ac_objext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_type_size_t=yes
20553 else
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 ac_cv_type_size_t=no
20558 fi
20559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20560 fi
20561 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20562 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20563 if test $ac_cv_type_size_t = yes; then
20564
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_SIZE_T 1
20567 _ACEOF
20568
20569
20570 fi
20571
20572
20573 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20574 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20575 if test "${ac_cv_type_mbstate_t+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 $ac_includes_default
20585 # include <wchar.h>
20586 int
20587 main ()
20588 {
20589 mbstate_t x; return sizeof x;
20590 ;
20591 return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_type_mbstate_t=yes
20617 else
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 ac_cv_type_mbstate_t=no
20622 fi
20623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20624 fi
20625 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20626 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20627 if test $ac_cv_type_mbstate_t = yes; then
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_MBSTATE_T 1
20631 _ACEOF
20632
20633 else
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define mbstate_t int
20637 _ACEOF
20638
20639 fi
20640
20641 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20642 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20643 if test "${emacs_cv_c_restrict+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 void fred (int *restrict x);
20653 int
20654 main ()
20655 {
20656
20657 ;
20658 return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag"
20671 || test ! -s conftest.err'
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20674 ac_status=$?
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try='test -s conftest.$ac_objext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 emacs_cv_c_restrict=yes
20684 else
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 void fred (int *__restrict x);
20695 int
20696 main ()
20697 {
20698
20699 ;
20700 return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_c_werror_flag"
20713 || test ! -s conftest.err'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 emacs_cv_c_restrict=__restrict
20726 else
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 emacs_cv_c_restrict=no
20731 fi
20732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20733 fi
20734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20735 fi
20736 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
20737 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
20738 case "$emacs_cv_c_restrict" in
20739 yes) emacs_restrict=restrict;;
20740 no) emacs_restrict="";;
20741 *) emacs_restrict="$emacs_cv_c_restrict";;
20742 esac
20743 if test "$emacs_restrict" != __restrict; then
20744
20745 cat >>confdefs.h <<_ACEOF
20746 #define __restrict $emacs_restrict
20747 _ACEOF
20748
20749 fi
20750
20751 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
20752 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
20753 if test "${emacs_cv_c_restrict_arr+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 void fred (int x[__restrict]);
20763 int
20764 main ()
20765 {
20766
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20773 (eval $ac_compile) 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try='test -z "$ac_c_werror_flag"
20781 || test ! -s conftest.err'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try='test -s conftest.$ac_objext'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 emacs_cv_c_restrict_arr=yes
20794 else
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 emacs_cv_c_restrict_arr=no
20799 fi
20800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20801 fi
20802 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20803 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20804 if test "$emacs_cv_c_restrict_arr" = yes; then
20805
20806 cat >>confdefs.h <<\_ACEOF
20807 #define __restrict_arr __restrict
20808 _ACEOF
20809
20810 fi
20811
20812
20813
20814 # Set up the CFLAGS for real compilation, so we can substitute it.
20815 CFLAGS="$REAL_CFLAGS"
20816 CPPFLAGS="$REAL_CPPFLAGS"
20817
20818 #### Find out which version of Emacs this is.
20819 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20820 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20821 if test x"${version}" = x; then
20822 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20823 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20824 { (exit 1); exit 1; }; }
20825 fi
20826
20827 ### Specify what sort of things we'll be editing into Makefile and config.h.
20828 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864 cat >>confdefs.h <<_ACEOF
20865 #define EMACS_CONFIGURATION "${canonical}"
20866 _ACEOF
20867
20868
20869 cat >>confdefs.h <<_ACEOF
20870 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20871 _ACEOF
20872
20873
20874 cat >>confdefs.h <<_ACEOF
20875 #define config_machfile "${machfile}"
20876 _ACEOF
20877
20878
20879 cat >>confdefs.h <<_ACEOF
20880 #define config_opsysfile "${opsysfile}"
20881 _ACEOF
20882
20883
20884 cat >>confdefs.h <<_ACEOF
20885 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20886 _ACEOF
20887
20888
20889 cat >>confdefs.h <<_ACEOF
20890 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20891 _ACEOF
20892
20893
20894 cat >>confdefs.h <<_ACEOF
20895 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20896 _ACEOF
20897
20898
20899 cat >>confdefs.h <<_ACEOF
20900 #define UNEXEC_SRC ${UNEXEC_SRC}
20901 _ACEOF
20902
20903
20904 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20905
20906 cat >>confdefs.h <<\_ACEOF
20907 #define HAVE_X_WINDOWS 1
20908 _ACEOF
20909
20910 fi
20911 if test "${USE_X_TOOLKIT}" != "none" ; then
20912
20913 cat >>confdefs.h <<\_ACEOF
20914 #define USE_X_TOOLKIT 1
20915 _ACEOF
20916
20917 fi
20918 if test "${HAVE_X11}" = "yes" ; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_X11 1
20922 _ACEOF
20923
20924 fi
20925 if test "${HAVE_XFREE386}" = "yes" ; then
20926
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_XFREE386 1
20929 _ACEOF
20930
20931 fi
20932 if test "${HAVE_MENUS}" = "yes" ; then
20933
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_MENUS 1
20936 _ACEOF
20937
20938 fi
20939 if test "${GNU_MALLOC}" = "yes" ; then
20940
20941 cat >>confdefs.h <<\_ACEOF
20942 #define GNU_MALLOC 1
20943 _ACEOF
20944
20945 fi
20946 if test "${REL_ALLOC}" = "yes" ; then
20947
20948 cat >>confdefs.h <<\_ACEOF
20949 #define REL_ALLOC 1
20950 _ACEOF
20951
20952 fi
20953
20954
20955
20956
20957
20958 #### Report on what we decided to do.
20959 #### Report GTK as a toolkit, even if it doesn't use Xt.
20960 #### It makes printing result more understandable as using GTK sets
20961 #### toolkit_scroll_bars to yes by default.
20962 if test "${HAVE_GTK}" = "yes"; then
20963 USE_X_TOOLKIT=GTK
20964 fi
20965
20966 echo "
20967 Configured for \`${canonical}'.
20968
20969 Where should the build process find the source code? ${srcdir}
20970 What operating system and machine description files should Emacs use?
20971 \`${opsysfile}' and \`${machfile}'
20972 What compiler should emacs be built with? ${CC} ${CFLAGS}
20973 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20974 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20975 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20976 What window system should Emacs use? ${window_system}
20977 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20978
20979 if test -n "${x_includes}"; then
20980 echo " Where do we find X Windows header files? ${x_includes}"
20981 else
20982 echo " Where do we find X Windows header files? Standard dirs"
20983 fi
20984 if test -n "${x_libraries}"; then
20985 echo " Where do we find X Windows libraries? ${x_libraries}"
20986 else
20987 echo " Where do we find X Windows libraries? Standard dirs"
20988 fi
20989
20990 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20991 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20992 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20993 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20994 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20995 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20996 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20997 echo
20998
20999 # Remove any trailing slashes in these variables.
21000 test "${prefix}" != NONE &&
21001 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21002 test "${exec_prefix}" != NONE &&
21003 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21004
21005 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21006 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21007 ## from Makefile.c can correctly provide the arg `-traditional' to the
21008 ## C preprocessor.
21009
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h. */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 yes..yes
21017 _ACEOF
21018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21019 $EGREP "yes..yes" >/dev/null 2>&1; then
21020 CPP_NEED_TRADITIONAL=no
21021 else
21022 CPP_NEED_TRADITIONAL=yes
21023 fi
21024 rm -f conftest*
21025
21026
21027 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"
21028 ac_config_commands="$ac_config_commands default"
21029 cat >confcache <<\_ACEOF
21030 # This file is a shell script that caches the results of configure
21031 # tests run on this system so they can be shared between configure
21032 # scripts and configure runs, see configure's option --config-cache.
21033 # It is not useful on other systems. If it contains results you don't
21034 # want to keep, you may remove or edit it.
21035 #
21036 # config.status only pays attention to the cache file if you give it
21037 # the --recheck option to rerun configure.
21038 #
21039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21041 # following values.
21042
21043 _ACEOF
21044
21045 # The following way of writing the cache mishandles newlines in values,
21046 # but we know of no workaround that is simple, portable, and efficient.
21047 # So, don't put newlines in cache variables' values.
21048 # Ultrix sh set writes to stderr and can't be redirected directly,
21049 # and sets the high bit in the cache file unless we assign to the vars.
21050 {
21051 (set) 2>&1 |
21052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21053 *ac_space=\ *)
21054 # `set' does not quote correctly, so add quotes (double-quote
21055 # substitution turns \\\\ into \\, and sed turns \\ into \).
21056 sed -n \
21057 "s/'/'\\\\''/g;
21058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21059 ;;
21060 *)
21061 # `set' quotes correctly as required by POSIX, so do not add quotes.
21062 sed -n \
21063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21064 ;;
21065 esac;
21066 } |
21067 sed '
21068 t clear
21069 : clear
21070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21071 t end
21072 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21073 : end' >>confcache
21074 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21075 if test -w $cache_file; then
21076 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21077 cat confcache >$cache_file
21078 else
21079 echo "not updating unwritable cache $cache_file"
21080 fi
21081 fi
21082 rm -f confcache
21083
21084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21085 # Let make expand exec_prefix.
21086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21087
21088 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21089 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21090 # trailing colons and then remove the whole line if VPATH becomes empty
21091 # (actually we leave an empty line to preserve line numbers).
21092 if test "x$srcdir" = x.; then
21093 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21094 s/:*\$(srcdir):*/:/;
21095 s/:*\${srcdir}:*/:/;
21096 s/:*@srcdir@:*/:/;
21097 s/^\([^=]*=[ ]*\):*/\1/;
21098 s/:*$//;
21099 s/^[^=]*=[ ]*$//;
21100 }'
21101 fi
21102
21103 DEFS=-DHAVE_CONFIG_H
21104
21105 ac_libobjs=
21106 ac_ltlibobjs=
21107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21108 # 1. Remove the extension, and $U if already installed.
21109 ac_i=`echo "$ac_i" |
21110 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21111 # 2. Add them.
21112 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21113 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21114 done
21115 LIBOBJS=$ac_libobjs
21116
21117 LTLIBOBJS=$ac_ltlibobjs
21118
21119
21120
21121 : ${CONFIG_STATUS=./config.status}
21122 ac_clean_files_save=$ac_clean_files
21123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21124 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21125 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21126 cat >$CONFIG_STATUS <<_ACEOF
21127 #! $SHELL
21128 # Generated by $as_me.
21129 # Run this file to recreate the current configuration.
21130 # Compiler output produced by configure, useful for debugging
21131 # configure, is in config.log if it exists.
21132
21133 debug=false
21134 ac_cs_recheck=false
21135 ac_cs_silent=false
21136 SHELL=\${CONFIG_SHELL-$SHELL}
21137 _ACEOF
21138
21139 cat >>$CONFIG_STATUS <<\_ACEOF
21140 ## --------------------- ##
21141 ## M4sh Initialization. ##
21142 ## --------------------- ##
21143
21144 # Be Bourne compatible
21145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21146 emulate sh
21147 NULLCMD=:
21148 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21149 # is contrary to our usage. Disable this feature.
21150 alias -g '${1+"$@"}'='"$@"'
21151 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21152 set -o posix
21153 fi
21154 DUALCASE=1; export DUALCASE # for MKS sh
21155
21156 # Support unset when possible.
21157 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21158 as_unset=unset
21159 else
21160 as_unset=false
21161 fi
21162
21163
21164 # Work around bugs in pre-3.0 UWIN ksh.
21165 $as_unset ENV MAIL MAILPATH
21166 PS1='$ '
21167 PS2='> '
21168 PS4='+ '
21169
21170 # NLS nuisances.
21171 for as_var in \
21172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21174 LC_TELEPHONE LC_TIME
21175 do
21176 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21177 eval $as_var=C; export $as_var
21178 else
21179 $as_unset $as_var
21180 fi
21181 done
21182
21183 # Required to use basename.
21184 if expr a : '\(a\)' >/dev/null 2>&1; then
21185 as_expr=expr
21186 else
21187 as_expr=false
21188 fi
21189
21190 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21191 as_basename=basename
21192 else
21193 as_basename=false
21194 fi
21195
21196
21197 # Name of the executable.
21198 as_me=`$as_basename "$0" ||
21199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21200 X"$0" : 'X\(//\)$' \| \
21201 X"$0" : 'X\(/\)$' \| \
21202 . : '\(.\)' 2>/dev/null ||
21203 echo X/"$0" |
21204 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21205 /^X\/\(\/\/\)$/{ s//\1/; q; }
21206 /^X\/\(\/\).*/{ s//\1/; q; }
21207 s/.*/./; q'`
21208
21209
21210 # PATH needs CR, and LINENO needs CR and PATH.
21211 # Avoid depending upon Character Ranges.
21212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21215 as_cr_digits='0123456789'
21216 as_cr_alnum=$as_cr_Letters$as_cr_digits
21217
21218 # The user is always right.
21219 if test "${PATH_SEPARATOR+set}" != set; then
21220 echo "#! /bin/sh" >conf$$.sh
21221 echo "exit 0" >>conf$$.sh
21222 chmod +x conf$$.sh
21223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21224 PATH_SEPARATOR=';'
21225 else
21226 PATH_SEPARATOR=:
21227 fi
21228 rm -f conf$$.sh
21229 fi
21230
21231
21232 as_lineno_1=$LINENO
21233 as_lineno_2=$LINENO
21234 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21235 test "x$as_lineno_1" != "x$as_lineno_2" &&
21236 test "x$as_lineno_3" = "x$as_lineno_2" || {
21237 # Find who we are. Look in the path if we contain no path at all
21238 # relative or not.
21239 case $0 in
21240 *[\\/]* ) as_myself=$0 ;;
21241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21242 for as_dir in $PATH
21243 do
21244 IFS=$as_save_IFS
21245 test -z "$as_dir" && as_dir=.
21246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21247 done
21248
21249 ;;
21250 esac
21251 # We did not find ourselves, most probably we were run as `sh COMMAND'
21252 # in which case we are not to be found in the path.
21253 if test "x$as_myself" = x; then
21254 as_myself=$0
21255 fi
21256 if test ! -f "$as_myself"; then
21257 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21258 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21259 { (exit 1); exit 1; }; }
21260 fi
21261 case $CONFIG_SHELL in
21262 '')
21263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21265 do
21266 IFS=$as_save_IFS
21267 test -z "$as_dir" && as_dir=.
21268 for as_base in sh bash ksh sh5; do
21269 case $as_dir in
21270 /*)
21271 if ("$as_dir/$as_base" -c '
21272 as_lineno_1=$LINENO
21273 as_lineno_2=$LINENO
21274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21275 test "x$as_lineno_1" != "x$as_lineno_2" &&
21276 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21277 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21278 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21279 CONFIG_SHELL=$as_dir/$as_base
21280 export CONFIG_SHELL
21281 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21282 fi;;
21283 esac
21284 done
21285 done
21286 ;;
21287 esac
21288
21289 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21290 # uniformly replaced by the line number. The first 'sed' inserts a
21291 # line-number line before each line; the second 'sed' does the real
21292 # work. The second script uses 'N' to pair each line-number line
21293 # with the numbered line, and appends trailing '-' during
21294 # substitution so that $LINENO is not a special case at line end.
21295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21296 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21297 sed '=' <$as_myself |
21298 sed '
21299 N
21300 s,$,-,
21301 : loop
21302 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21303 t loop
21304 s,-$,,
21305 s,^['$as_cr_digits']*\n,,
21306 ' >$as_me.lineno &&
21307 chmod +x $as_me.lineno ||
21308 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21309 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21310 { (exit 1); exit 1; }; }
21311
21312 # Don't try to exec as it changes $[0], causing all sort of problems
21313 # (the dirname of $[0] is not the place where we might find the
21314 # original and so on. Autoconf is especially sensible to this).
21315 . ./$as_me.lineno
21316 # Exit status is that of the last command.
21317 exit
21318 }
21319
21320
21321 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21322 *c*,-n*) ECHO_N= ECHO_C='
21323 ' ECHO_T=' ' ;;
21324 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21325 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21326 esac
21327
21328 if expr a : '\(a\)' >/dev/null 2>&1; then
21329 as_expr=expr
21330 else
21331 as_expr=false
21332 fi
21333
21334 rm -f conf$$ conf$$.exe conf$$.file
21335 echo >conf$$.file
21336 if ln -s conf$$.file conf$$ 2>/dev/null; then
21337 # We could just check for DJGPP; but this test a) works b) is more generic
21338 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21339 if test -f conf$$.exe; then
21340 # Don't use ln at all; we don't have any links
21341 as_ln_s='cp -p'
21342 else
21343 as_ln_s='ln -s'
21344 fi
21345 elif ln conf$$.file conf$$ 2>/dev/null; then
21346 as_ln_s=ln
21347 else
21348 as_ln_s='cp -p'
21349 fi
21350 rm -f conf$$ conf$$.exe conf$$.file
21351
21352 if mkdir -p . 2>/dev/null; then
21353 as_mkdir_p=:
21354 else
21355 test -d ./-p && rmdir ./-p
21356 as_mkdir_p=false
21357 fi
21358
21359 as_executable_p="test -f"
21360
21361 # Sed expression to map a string onto a valid CPP name.
21362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21363
21364 # Sed expression to map a string onto a valid variable name.
21365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21366
21367
21368 # IFS
21369 # We need space, tab and new line, in precisely that order.
21370 as_nl='
21371 '
21372 IFS=" $as_nl"
21373
21374 # CDPATH.
21375 $as_unset CDPATH
21376
21377 exec 6>&1
21378
21379 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21380 # report actual input values of CONFIG_FILES etc. instead of their
21381 # values after options handling. Logging --version etc. is OK.
21382 exec 5>>config.log
21383 {
21384 echo
21385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21386 ## Running $as_me. ##
21387 _ASBOX
21388 } >&5
21389 cat >&5 <<_CSEOF
21390
21391 This file was extended by $as_me, which was
21392 generated by GNU Autoconf 2.59. Invocation command line was
21393
21394 CONFIG_FILES = $CONFIG_FILES
21395 CONFIG_HEADERS = $CONFIG_HEADERS
21396 CONFIG_LINKS = $CONFIG_LINKS
21397 CONFIG_COMMANDS = $CONFIG_COMMANDS
21398 $ $0 $@
21399
21400 _CSEOF
21401 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21402 echo >&5
21403 _ACEOF
21404
21405 # Files that config.status was made for.
21406 if test -n "$ac_config_files"; then
21407 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21408 fi
21409
21410 if test -n "$ac_config_headers"; then
21411 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21412 fi
21413
21414 if test -n "$ac_config_links"; then
21415 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21416 fi
21417
21418 if test -n "$ac_config_commands"; then
21419 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21420 fi
21421
21422 cat >>$CONFIG_STATUS <<\_ACEOF
21423
21424 ac_cs_usage="\
21425 \`$as_me' instantiates files from templates according to the
21426 current configuration.
21427
21428 Usage: $0 [OPTIONS] [FILE]...
21429
21430 -h, --help print this help, then exit
21431 -V, --version print version number, then exit
21432 -q, --quiet do not print progress messages
21433 -d, --debug don't remove temporary files
21434 --recheck update $as_me by reconfiguring in the same conditions
21435 --file=FILE[:TEMPLATE]
21436 instantiate the configuration file FILE
21437 --header=FILE[:TEMPLATE]
21438 instantiate the configuration header FILE
21439
21440 Configuration files:
21441 $config_files
21442
21443 Configuration headers:
21444 $config_headers
21445
21446 Configuration commands:
21447 $config_commands
21448
21449 Report bugs to <bug-autoconf@gnu.org>."
21450 _ACEOF
21451
21452 cat >>$CONFIG_STATUS <<_ACEOF
21453 ac_cs_version="\\
21454 config.status
21455 configured by $0, generated by GNU Autoconf 2.59,
21456 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21457
21458 Copyright (C) 2003 Free Software Foundation, Inc.
21459 This config.status script is free software; the Free Software Foundation
21460 gives unlimited permission to copy, distribute and modify it."
21461 srcdir=$srcdir
21462 INSTALL="$INSTALL"
21463 _ACEOF
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF
21466 # If no file are specified by the user, then we need to provide default
21467 # value. By we need to know if files were specified by the user.
21468 ac_need_defaults=:
21469 while test $# != 0
21470 do
21471 case $1 in
21472 --*=*)
21473 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21474 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21475 ac_shift=:
21476 ;;
21477 -*)
21478 ac_option=$1
21479 ac_optarg=$2
21480 ac_shift=shift
21481 ;;
21482 *) # This is not an option, so the user has probably given explicit
21483 # arguments.
21484 ac_option=$1
21485 ac_need_defaults=false;;
21486 esac
21487
21488 case $ac_option in
21489 # Handling of the options.
21490 _ACEOF
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21493 ac_cs_recheck=: ;;
21494 --version | --vers* | -V )
21495 echo "$ac_cs_version"; exit 0 ;;
21496 --he | --h)
21497 # Conflict between --help and --header
21498 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21499 Try \`$0 --help' for more information." >&5
21500 echo "$as_me: error: ambiguous option: $1
21501 Try \`$0 --help' for more information." >&2;}
21502 { (exit 1); exit 1; }; };;
21503 --help | --hel | -h )
21504 echo "$ac_cs_usage"; exit 0 ;;
21505 --debug | --d* | -d )
21506 debug=: ;;
21507 --file | --fil | --fi | --f )
21508 $ac_shift
21509 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21510 ac_need_defaults=false;;
21511 --header | --heade | --head | --hea )
21512 $ac_shift
21513 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21514 ac_need_defaults=false;;
21515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21517 ac_cs_silent=: ;;
21518
21519 # This is an error.
21520 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21521 Try \`$0 --help' for more information." >&5
21522 echo "$as_me: error: unrecognized option: $1
21523 Try \`$0 --help' for more information." >&2;}
21524 { (exit 1); exit 1; }; } ;;
21525
21526 *) ac_config_targets="$ac_config_targets $1" ;;
21527
21528 esac
21529 shift
21530 done
21531
21532 ac_configure_extra_args=
21533
21534 if $ac_cs_silent; then
21535 exec 6>/dev/null
21536 ac_configure_extra_args="$ac_configure_extra_args --silent"
21537 fi
21538
21539 _ACEOF
21540 cat >>$CONFIG_STATUS <<_ACEOF
21541 if \$ac_cs_recheck; then
21542 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21543 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21544 fi
21545
21546 _ACEOF
21547
21548 cat >>$CONFIG_STATUS <<_ACEOF
21549 #
21550 # INIT-COMMANDS section.
21551 #
21552
21553 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21554
21555 _ACEOF
21556
21557
21558
21559 cat >>$CONFIG_STATUS <<\_ACEOF
21560 for ac_config_target in $ac_config_targets
21561 do
21562 case "$ac_config_target" in
21563 # Handling of arguments.
21564 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21565 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21566 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21567 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21568 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21569 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21570 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21571 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21572 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21573 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21574 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21575 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21578 { (exit 1); exit 1; }; };;
21579 esac
21580 done
21581
21582 # If the user did not use the arguments to specify the items to instantiate,
21583 # then the envvar interface is used. Set only those that are not.
21584 # We use the long form for the default assignment because of an extremely
21585 # bizarre bug on SunOS 4.1.3.
21586 if $ac_need_defaults; then
21587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21590 fi
21591
21592 # Have a temporary directory for convenience. Make it in the build tree
21593 # simply because there is no reason to put it here, and in addition,
21594 # creating and moving files from /tmp can sometimes cause problems.
21595 # Create a temporary directory, and hook for its removal unless debugging.
21596 $debug ||
21597 {
21598 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21599 trap '{ (exit 1); exit 1; }' 1 2 13 15
21600 }
21601
21602 # Create a (secure) tmp directory for tmp files.
21603
21604 {
21605 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21606 test -n "$tmp" && test -d "$tmp"
21607 } ||
21608 {
21609 tmp=./confstat$$-$RANDOM
21610 (umask 077 && mkdir $tmp)
21611 } ||
21612 {
21613 echo "$me: cannot create a temporary directory in ." >&2
21614 { (exit 1); exit 1; }
21615 }
21616
21617 _ACEOF
21618
21619 cat >>$CONFIG_STATUS <<_ACEOF
21620
21621 #
21622 # CONFIG_FILES section.
21623 #
21624
21625 # No need to generate the scripts if there are no CONFIG_FILES.
21626 # This happens for instance when ./config.status config.h
21627 if test -n "\$CONFIG_FILES"; then
21628 # Protect against being on the right side of a sed subst in config.status.
21629 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21630 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21631 s,@SHELL@,$SHELL,;t t
21632 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21633 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21634 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21635 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21636 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21637 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21638 s,@exec_prefix@,$exec_prefix,;t t
21639 s,@prefix@,$prefix,;t t
21640 s,@program_transform_name@,$program_transform_name,;t t
21641 s,@bindir@,$bindir,;t t
21642 s,@sbindir@,$sbindir,;t t
21643 s,@libexecdir@,$libexecdir,;t t
21644 s,@datadir@,$datadir,;t t
21645 s,@sysconfdir@,$sysconfdir,;t t
21646 s,@sharedstatedir@,$sharedstatedir,;t t
21647 s,@localstatedir@,$localstatedir,;t t
21648 s,@libdir@,$libdir,;t t
21649 s,@includedir@,$includedir,;t t
21650 s,@oldincludedir@,$oldincludedir,;t t
21651 s,@infodir@,$infodir,;t t
21652 s,@mandir@,$mandir,;t t
21653 s,@build_alias@,$build_alias,;t t
21654 s,@host_alias@,$host_alias,;t t
21655 s,@target_alias@,$target_alias,;t t
21656 s,@DEFS@,$DEFS,;t t
21657 s,@ECHO_C@,$ECHO_C,;t t
21658 s,@ECHO_N@,$ECHO_N,;t t
21659 s,@ECHO_T@,$ECHO_T,;t t
21660 s,@LIBS@,$LIBS,;t t
21661 s,@MAINT@,$MAINT,;t t
21662 s,@build@,$build,;t t
21663 s,@build_cpu@,$build_cpu,;t t
21664 s,@build_vendor@,$build_vendor,;t t
21665 s,@build_os@,$build_os,;t t
21666 s,@host@,$host,;t t
21667 s,@host_cpu@,$host_cpu,;t t
21668 s,@host_vendor@,$host_vendor,;t t
21669 s,@host_os@,$host_os,;t t
21670 s,@CC@,$CC,;t t
21671 s,@CFLAGS@,$CFLAGS,;t t
21672 s,@LDFLAGS@,$LDFLAGS,;t t
21673 s,@CPPFLAGS@,$CPPFLAGS,;t t
21674 s,@ac_ct_CC@,$ac_ct_CC,;t t
21675 s,@EXEEXT@,$EXEEXT,;t t
21676 s,@OBJEXT@,$OBJEXT,;t t
21677 s,@LN_S@,$LN_S,;t t
21678 s,@CPP@,$CPP,;t t
21679 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21680 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21681 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21682 s,@RANLIB@,$RANLIB,;t t
21683 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21684 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21685 s,@EGREP@,$EGREP,;t t
21686 s,@LIBSOUND@,$LIBSOUND,;t t
21687 s,@SET_MAKE@,$SET_MAKE,;t t
21688 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21689 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21690 s,@GTK_LIBS@,$GTK_LIBS,;t t
21691 s,@ALLOCA@,$ALLOCA,;t t
21692 s,@liblockfile@,$liblockfile,;t t
21693 s,@LIBOBJS@,$LIBOBJS,;t t
21694 s,@NEED_SETGID@,$NEED_SETGID,;t t
21695 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21696 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21697 s,@version@,$version,;t t
21698 s,@configuration@,$configuration,;t t
21699 s,@canonical@,$canonical,;t t
21700 s,@srcdir@,$srcdir,;t t
21701 s,@lispdir@,$lispdir,;t t
21702 s,@locallisppath@,$locallisppath,;t t
21703 s,@lisppath@,$lisppath,;t t
21704 s,@x_default_search_path@,$x_default_search_path,;t t
21705 s,@etcdir@,$etcdir,;t t
21706 s,@archlibdir@,$archlibdir,;t t
21707 s,@docdir@,$docdir,;t t
21708 s,@bitmapdir@,$bitmapdir,;t t
21709 s,@gamedir@,$gamedir,;t t
21710 s,@gameuser@,$gameuser,;t t
21711 s,@c_switch_system@,$c_switch_system,;t t
21712 s,@c_switch_machine@,$c_switch_machine,;t t
21713 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21714 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21715 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21716 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21717 s,@machfile@,$machfile,;t t
21718 s,@opsysfile@,$opsysfile,;t t
21719 s,@carbon_appdir@,$carbon_appdir,;t t
21720 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21721 CEOF
21722
21723 _ACEOF
21724
21725 cat >>$CONFIG_STATUS <<\_ACEOF
21726 # Split the substitutions into bite-sized pieces for seds with
21727 # small command number limits, like on Digital OSF/1 and HP-UX.
21728 ac_max_sed_lines=48
21729 ac_sed_frag=1 # Number of current file.
21730 ac_beg=1 # First line for current file.
21731 ac_end=$ac_max_sed_lines # Line after last line for current file.
21732 ac_more_lines=:
21733 ac_sed_cmds=
21734 while $ac_more_lines; do
21735 if test $ac_beg -gt 1; then
21736 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21737 else
21738 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21739 fi
21740 if test ! -s $tmp/subs.frag; then
21741 ac_more_lines=false
21742 else
21743 # The purpose of the label and of the branching condition is to
21744 # speed up the sed processing (if there are no `@' at all, there
21745 # is no need to browse any of the substitutions).
21746 # These are the two extra sed commands mentioned above.
21747 (echo ':t
21748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21749 if test -z "$ac_sed_cmds"; then
21750 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21751 else
21752 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21753 fi
21754 ac_sed_frag=`expr $ac_sed_frag + 1`
21755 ac_beg=$ac_end
21756 ac_end=`expr $ac_end + $ac_max_sed_lines`
21757 fi
21758 done
21759 if test -z "$ac_sed_cmds"; then
21760 ac_sed_cmds=cat
21761 fi
21762 fi # test -n "$CONFIG_FILES"
21763
21764 _ACEOF
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21768 case $ac_file in
21769 - | *:- | *:-:* ) # input from stdin
21770 cat >$tmp/stdin
21771 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21775 * ) ac_file_in=$ac_file.in ;;
21776 esac
21777
21778 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21779 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21781 X"$ac_file" : 'X\(//\)[^/]' \| \
21782 X"$ac_file" : 'X\(//\)$' \| \
21783 X"$ac_file" : 'X\(/\)' \| \
21784 . : '\(.\)' 2>/dev/null ||
21785 echo X"$ac_file" |
21786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21788 /^X\(\/\/\)$/{ s//\1/; q; }
21789 /^X\(\/\).*/{ s//\1/; q; }
21790 s/.*/./; q'`
21791 { if $as_mkdir_p; then
21792 mkdir -p "$ac_dir"
21793 else
21794 as_dir="$ac_dir"
21795 as_dirs=
21796 while test ! -d "$as_dir"; do
21797 as_dirs="$as_dir $as_dirs"
21798 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21800 X"$as_dir" : 'X\(//\)[^/]' \| \
21801 X"$as_dir" : 'X\(//\)$' \| \
21802 X"$as_dir" : 'X\(/\)' \| \
21803 . : '\(.\)' 2>/dev/null ||
21804 echo X"$as_dir" |
21805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21807 /^X\(\/\/\)$/{ s//\1/; q; }
21808 /^X\(\/\).*/{ s//\1/; q; }
21809 s/.*/./; q'`
21810 done
21811 test ! -n "$as_dirs" || mkdir $as_dirs
21812 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21813 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21814 { (exit 1); exit 1; }; }; }
21815
21816 ac_builddir=.
21817
21818 if test "$ac_dir" != .; then
21819 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21820 # A "../" for each directory in $ac_dir_suffix.
21821 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21822 else
21823 ac_dir_suffix= ac_top_builddir=
21824 fi
21825
21826 case $srcdir in
21827 .) # No --srcdir option. We are building in place.
21828 ac_srcdir=.
21829 if test -z "$ac_top_builddir"; then
21830 ac_top_srcdir=.
21831 else
21832 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21833 fi ;;
21834 [\\/]* | ?:[\\/]* ) # Absolute path.
21835 ac_srcdir=$srcdir$ac_dir_suffix;
21836 ac_top_srcdir=$srcdir ;;
21837 *) # Relative path.
21838 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21839 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21840 esac
21841
21842 # Do not use `cd foo && pwd` to compute absolute paths, because
21843 # the directories may not exist.
21844 case `pwd` in
21845 .) ac_abs_builddir="$ac_dir";;
21846 *)
21847 case "$ac_dir" in
21848 .) ac_abs_builddir=`pwd`;;
21849 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21850 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21851 esac;;
21852 esac
21853 case $ac_abs_builddir in
21854 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21855 *)
21856 case ${ac_top_builddir}. in
21857 .) ac_abs_top_builddir=$ac_abs_builddir;;
21858 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21859 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21860 esac;;
21861 esac
21862 case $ac_abs_builddir in
21863 .) ac_abs_srcdir=$ac_srcdir;;
21864 *)
21865 case $ac_srcdir in
21866 .) ac_abs_srcdir=$ac_abs_builddir;;
21867 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21868 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21869 esac;;
21870 esac
21871 case $ac_abs_builddir in
21872 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21873 *)
21874 case $ac_top_srcdir in
21875 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21876 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21877 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21878 esac;;
21879 esac
21880
21881
21882 case $INSTALL in
21883 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21884 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21885 esac
21886
21887 if test x"$ac_file" != x-; then
21888 { echo "$as_me:$LINENO: creating $ac_file" >&5
21889 echo "$as_me: creating $ac_file" >&6;}
21890 rm -f "$ac_file"
21891 fi
21892 # Let's still pretend it is `configure' which instantiates (i.e., don't
21893 # use $as_me), people would be surprised to read:
21894 # /* config.h. Generated by config.status. */
21895 if test x"$ac_file" = x-; then
21896 configure_input=
21897 else
21898 configure_input="$ac_file. "
21899 fi
21900 configure_input=$configure_input"Generated from `echo $ac_file_in |
21901 sed 's,.*/,,'` by configure."
21902
21903 # First look for the input files in the build tree, otherwise in the
21904 # src tree.
21905 ac_file_inputs=`IFS=:
21906 for f in $ac_file_in; do
21907 case $f in
21908 -) echo $tmp/stdin ;;
21909 [\\/$]*)
21910 # Absolute (can't be DOS-style, as IFS=:)
21911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21912 echo "$as_me: error: cannot find input file: $f" >&2;}
21913 { (exit 1); exit 1; }; }
21914 echo "$f";;
21915 *) # Relative
21916 if test -f "$f"; then
21917 # Build tree
21918 echo "$f"
21919 elif test -f "$srcdir/$f"; then
21920 # Source tree
21921 echo "$srcdir/$f"
21922 else
21923 # /dev/null tree
21924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21925 echo "$as_me: error: cannot find input file: $f" >&2;}
21926 { (exit 1); exit 1; }; }
21927 fi;;
21928 esac
21929 done` || { (exit 1); exit 1; }
21930 _ACEOF
21931 cat >>$CONFIG_STATUS <<_ACEOF
21932 sed "$ac_vpsub
21933 $extrasub
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21936 :t
21937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21938 s,@configure_input@,$configure_input,;t t
21939 s,@srcdir@,$ac_srcdir,;t t
21940 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21941 s,@top_srcdir@,$ac_top_srcdir,;t t
21942 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21943 s,@builddir@,$ac_builddir,;t t
21944 s,@abs_builddir@,$ac_abs_builddir,;t t
21945 s,@top_builddir@,$ac_top_builddir,;t t
21946 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21947 s,@INSTALL@,$ac_INSTALL,;t t
21948 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21949 rm -f $tmp/stdin
21950 if test x"$ac_file" != x-; then
21951 mv $tmp/out $ac_file
21952 else
21953 cat $tmp/out
21954 rm -f $tmp/out
21955 fi
21956
21957 done
21958 _ACEOF
21959 cat >>$CONFIG_STATUS <<\_ACEOF
21960
21961 #
21962 # CONFIG_HEADER section.
21963 #
21964
21965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21967 #
21968 # ac_d sets the value in "#define NAME VALUE" lines.
21969 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21970 ac_dB='[ ].*$,\1#\2'
21971 ac_dC=' '
21972 ac_dD=',;t'
21973 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21974 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21975 ac_uB='$,\1#\2define\3'
21976 ac_uC=' '
21977 ac_uD=',;t'
21978
21979 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21981 case $ac_file in
21982 - | *:- | *:-:* ) # input from stdin
21983 cat >$tmp/stdin
21984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21988 * ) ac_file_in=$ac_file.in ;;
21989 esac
21990
21991 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21992 echo "$as_me: creating $ac_file" >&6;}
21993
21994 # First look for the input files in the build tree, otherwise in the
21995 # src tree.
21996 ac_file_inputs=`IFS=:
21997 for f in $ac_file_in; do
21998 case $f in
21999 -) echo $tmp/stdin ;;
22000 [\\/$]*)
22001 # Absolute (can't be DOS-style, as IFS=:)
22002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22003 echo "$as_me: error: cannot find input file: $f" >&2;}
22004 { (exit 1); exit 1; }; }
22005 # Do quote $f, to prevent DOS paths from being IFS'd.
22006 echo "$f";;
22007 *) # Relative
22008 if test -f "$f"; then
22009 # Build tree
22010 echo "$f"
22011 elif test -f "$srcdir/$f"; then
22012 # Source tree
22013 echo "$srcdir/$f"
22014 else
22015 # /dev/null tree
22016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22017 echo "$as_me: error: cannot find input file: $f" >&2;}
22018 { (exit 1); exit 1; }; }
22019 fi;;
22020 esac
22021 done` || { (exit 1); exit 1; }
22022 # Remove the trailing spaces.
22023 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22024
22025 _ACEOF
22026
22027 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22028 # `conftest.undefs', that substitutes the proper values into
22029 # config.h.in to produce config.h. The first handles `#define'
22030 # templates, and the second `#undef' templates.
22031 # And first: Protect against being on the right side of a sed subst in
22032 # config.status. Protect against being in an unquoted here document
22033 # in config.status.
22034 rm -f conftest.defines conftest.undefs
22035 # Using a here document instead of a string reduces the quoting nightmare.
22036 # Putting comments in sed scripts is not portable.
22037 #
22038 # `end' is used to avoid that the second main sed command (meant for
22039 # 0-ary CPP macros) applies to n-ary macro definitions.
22040 # See the Autoconf documentation for `clear'.
22041 cat >confdef2sed.sed <<\_ACEOF
22042 s/[\\&,]/\\&/g
22043 s,[\\$`],\\&,g
22044 t clear
22045 : clear
22046 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22047 t end
22048 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22049 : end
22050 _ACEOF
22051 # If some macros were called several times there might be several times
22052 # the same #defines, which is useless. Nevertheless, we may not want to
22053 # sort them, since we want the *last* AC-DEFINE to be honored.
22054 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22055 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22056 rm -f confdef2sed.sed
22057
22058 # This sed command replaces #undef with comments. This is necessary, for
22059 # example, in the case of _POSIX_SOURCE, which is predefined and required
22060 # on some systems where configure will not decide to define it.
22061 cat >>conftest.undefs <<\_ACEOF
22062 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22063 _ACEOF
22064
22065 # Break up conftest.defines because some shells have a limit on the size
22066 # of here documents, and old seds have small limits too (100 cmds).
22067 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22068 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22069 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22070 echo ' :' >>$CONFIG_STATUS
22071 rm -f conftest.tail
22072 while grep . conftest.defines >/dev/null
22073 do
22074 # Write a limited-size here document to $tmp/defines.sed.
22075 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22076 # Speed up: don't consider the non `#define' lines.
22077 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22078 # Work around the forget-to-reset-the-flag bug.
22079 echo 't clr' >>$CONFIG_STATUS
22080 echo ': clr' >>$CONFIG_STATUS
22081 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22082 echo 'CEOF
22083 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22084 rm -f $tmp/in
22085 mv $tmp/out $tmp/in
22086 ' >>$CONFIG_STATUS
22087 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22088 rm -f conftest.defines
22089 mv conftest.tail conftest.defines
22090 done
22091 rm -f conftest.defines
22092 echo ' fi # grep' >>$CONFIG_STATUS
22093 echo >>$CONFIG_STATUS
22094
22095 # Break up conftest.undefs because some shells have a limit on the size
22096 # of here documents, and old seds have small limits too (100 cmds).
22097 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22098 rm -f conftest.tail
22099 while grep . conftest.undefs >/dev/null
22100 do
22101 # Write a limited-size here document to $tmp/undefs.sed.
22102 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22103 # Speed up: don't consider the non `#undef'
22104 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22105 # Work around the forget-to-reset-the-flag bug.
22106 echo 't clr' >>$CONFIG_STATUS
22107 echo ': clr' >>$CONFIG_STATUS
22108 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22109 echo 'CEOF
22110 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22111 rm -f $tmp/in
22112 mv $tmp/out $tmp/in
22113 ' >>$CONFIG_STATUS
22114 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22115 rm -f conftest.undefs
22116 mv conftest.tail conftest.undefs
22117 done
22118 rm -f conftest.undefs
22119
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # Let's still pretend it is `configure' which instantiates (i.e., don't
22122 # use $as_me), people would be surprised to read:
22123 # /* config.h. Generated by config.status. */
22124 if test x"$ac_file" = x-; then
22125 echo "/* Generated by configure. */" >$tmp/config.h
22126 else
22127 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22128 fi
22129 cat $tmp/in >>$tmp/config.h
22130 rm -f $tmp/in
22131 if test x"$ac_file" != x-; then
22132 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22133 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22134 echo "$as_me: $ac_file is unchanged" >&6;}
22135 else
22136 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22138 X"$ac_file" : 'X\(//\)[^/]' \| \
22139 X"$ac_file" : 'X\(//\)$' \| \
22140 X"$ac_file" : 'X\(/\)' \| \
22141 . : '\(.\)' 2>/dev/null ||
22142 echo X"$ac_file" |
22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22145 /^X\(\/\/\)$/{ s//\1/; q; }
22146 /^X\(\/\).*/{ s//\1/; q; }
22147 s/.*/./; q'`
22148 { if $as_mkdir_p; then
22149 mkdir -p "$ac_dir"
22150 else
22151 as_dir="$ac_dir"
22152 as_dirs=
22153 while test ! -d "$as_dir"; do
22154 as_dirs="$as_dir $as_dirs"
22155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| \
22160 . : '\(.\)' 2>/dev/null ||
22161 echo X"$as_dir" |
22162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22164 /^X\(\/\/\)$/{ s//\1/; q; }
22165 /^X\(\/\).*/{ s//\1/; q; }
22166 s/.*/./; q'`
22167 done
22168 test ! -n "$as_dirs" || mkdir $as_dirs
22169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22171 { (exit 1); exit 1; }; }; }
22172
22173 rm -f $ac_file
22174 mv $tmp/config.h $ac_file
22175 fi
22176 else
22177 cat $tmp/config.h
22178 rm -f $tmp/config.h
22179 fi
22180 done
22181 _ACEOF
22182 cat >>$CONFIG_STATUS <<\_ACEOF
22183
22184 #
22185 # CONFIG_COMMANDS section.
22186 #
22187 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22188 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22189 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22190 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22192 X"$ac_dest" : 'X\(//\)[^/]' \| \
22193 X"$ac_dest" : 'X\(//\)$' \| \
22194 X"$ac_dest" : 'X\(/\)' \| \
22195 . : '\(.\)' 2>/dev/null ||
22196 echo X"$ac_dest" |
22197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22199 /^X\(\/\/\)$/{ s//\1/; q; }
22200 /^X\(\/\).*/{ s//\1/; q; }
22201 s/.*/./; q'`
22202 { if $as_mkdir_p; then
22203 mkdir -p "$ac_dir"
22204 else
22205 as_dir="$ac_dir"
22206 as_dirs=
22207 while test ! -d "$as_dir"; do
22208 as_dirs="$as_dir $as_dirs"
22209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211 X"$as_dir" : 'X\(//\)[^/]' \| \
22212 X"$as_dir" : 'X\(//\)$' \| \
22213 X"$as_dir" : 'X\(/\)' \| \
22214 . : '\(.\)' 2>/dev/null ||
22215 echo X"$as_dir" |
22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22218 /^X\(\/\/\)$/{ s//\1/; q; }
22219 /^X\(\/\).*/{ s//\1/; q; }
22220 s/.*/./; q'`
22221 done
22222 test ! -n "$as_dirs" || mkdir $as_dirs
22223 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22225 { (exit 1); exit 1; }; }; }
22226
22227 ac_builddir=.
22228
22229 if test "$ac_dir" != .; then
22230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22231 # A "../" for each directory in $ac_dir_suffix.
22232 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22233 else
22234 ac_dir_suffix= ac_top_builddir=
22235 fi
22236
22237 case $srcdir in
22238 .) # No --srcdir option. We are building in place.
22239 ac_srcdir=.
22240 if test -z "$ac_top_builddir"; then
22241 ac_top_srcdir=.
22242 else
22243 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22244 fi ;;
22245 [\\/]* | ?:[\\/]* ) # Absolute path.
22246 ac_srcdir=$srcdir$ac_dir_suffix;
22247 ac_top_srcdir=$srcdir ;;
22248 *) # Relative path.
22249 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22250 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22251 esac
22252
22253 # Do not use `cd foo && pwd` to compute absolute paths, because
22254 # the directories may not exist.
22255 case `pwd` in
22256 .) ac_abs_builddir="$ac_dir";;
22257 *)
22258 case "$ac_dir" in
22259 .) ac_abs_builddir=`pwd`;;
22260 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22261 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22262 esac;;
22263 esac
22264 case $ac_abs_builddir in
22265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22266 *)
22267 case ${ac_top_builddir}. in
22268 .) ac_abs_top_builddir=$ac_abs_builddir;;
22269 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22270 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22271 esac;;
22272 esac
22273 case $ac_abs_builddir in
22274 .) ac_abs_srcdir=$ac_srcdir;;
22275 *)
22276 case $ac_srcdir in
22277 .) ac_abs_srcdir=$ac_abs_builddir;;
22278 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22279 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22280 esac;;
22281 esac
22282 case $ac_abs_builddir in
22283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22284 *)
22285 case $ac_top_srcdir in
22286 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22287 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22288 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22289 esac;;
22290 esac
22291
22292
22293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22294 echo "$as_me: executing $ac_dest commands" >&6;}
22295 case $ac_dest in
22296 default )
22297
22298 ### Make the necessary directories, if they don't exist.
22299 for dir in etc lisp ; do
22300 test -d ${dir} || mkdir ${dir}
22301 done
22302
22303 # Build src/Makefile from ${srcdir}/src/Makefile.c
22304 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22305 # This must be done after src/config.h is built, since we rely on that file.
22306
22307 # Now get this: Some word that is part of the ${srcdir} directory name
22308 # or the ${configuration} value might, just might, happen to be an
22309 # identifier like `sun4' or `i386' or something, and be predefined by
22310 # the C preprocessor to some helpful value like 1, or maybe the empty
22311 # string. Needless to say consequent macro substitutions are less
22312 # than conducive to the makefile finding the correct directory.
22313 undefs="`echo $top_srcdir $configuration $canonical |
22314 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22315 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22316 `"
22317
22318 echo creating src/epaths.h
22319 ${MAKE-make} epaths-force
22320
22321 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22322 # `..' to `. .' unless invoked with -traditional
22323
22324 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22325 CPPFLAGS="$CPPFLAGS -traditional"
22326 fi
22327
22328 echo creating lib-src/Makefile
22329 ( cd lib-src
22330 rm -f junk.c junk1.c junk2.c
22331 sed -e '/start of cpp stuff/q' \
22332 < Makefile.c > junk1.c
22333 sed -e '1,/start of cpp stuff/d'\
22334 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22335 < Makefile.c > junk.c
22336 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22337 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22338 cat junk1.c junk2.c > Makefile.new
22339 rm -f junk.c junk1.c junk2.c
22340 chmod 444 Makefile.new
22341 mv -f Makefile.new Makefile
22342 )
22343
22344 echo creating src/Makefile
22345 ( cd src
22346 rm -f junk.c junk1.c junk2.c
22347 sed -e '/start of cpp stuff/q' \
22348 < Makefile.c > junk1.c
22349 sed -e '1,/start of cpp stuff/d'\
22350 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22351 < Makefile.c > junk.c
22352 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22353 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22354 cat junk1.c junk2.c > Makefile.new
22355 rm -f junk.c junk1.c junk2.c
22356 chmod 444 Makefile.new
22357 mv -f Makefile.new Makefile
22358 )
22359
22360 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22361 echo creating src/.gdbinit
22362 echo source $srcdir/src/.gdbinit > src/.gdbinit
22363 fi
22364
22365 # This is how we know whether to re-run configure in certain cases.
22366 touch src/config.stamp
22367
22368 ;;
22369 esac
22370 done
22371 _ACEOF
22372
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22374
22375 { (exit 0); exit 0; }
22376 _ACEOF
22377 chmod +x $CONFIG_STATUS
22378 ac_clean_files=$ac_clean_files_save
22379
22380
22381 # configure is writing to config.log, and then calls config.status.
22382 # config.status does its own redirection, appending to config.log.
22383 # Unfortunately, on DOS this fails, as config.log is still kept open
22384 # by configure, so config.status won't be able to write to it; its
22385 # output is simply discarded. So we exec the FD to /dev/null,
22386 # effectively closing config.log, so it can be properly (re)opened and
22387 # appended to by config.status. When coming back to configure, we
22388 # need to make the FD available again.
22389 if test "$no_create" != yes; then
22390 ac_cs_success=:
22391 ac_config_status_args=
22392 test "$silent" = yes &&
22393 ac_config_status_args="$ac_config_status_args --quiet"
22394 exec 5>/dev/null
22395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22396 exec 5>>config.log
22397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398 # would make configure fail if this is the last instruction.
22399 $ac_cs_success || { (exit 1); exit 1; }
22400 fi
22401
22402