]> code.delx.au - gnu-emacs/blob - configure
* configure.in: Check for exec-shield.
[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 SETARCH LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576 fi
1577
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1580
1581 ### Canonicalize the configuration name.
1582
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1597 fi
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 canonical=$host
1663 configuration=${host_alias-$host}
1664
1665
1666
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1670
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1679 ###
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1685 ###
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1689
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1692
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1700 ;;
1701
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1706
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1710
1711 fi
1712
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1729 ;;
1730
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1743 ;;
1744
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1748 ;;
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1753 ;;
1754
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1770 ;;
1771
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1780 ;;
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1783 ;;
1784
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1800 ;;
1801
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1804 ;;
1805
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1808 ;;
1809
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1813 ;;
1814
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1818 ;;
1819
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1823 ;;
1824
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1828 ;;
1829
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1833 ;;
1834
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1838 ;;
1839
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1843 ;;
1844
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1848 ;;
1849
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1853 ;;
1854
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1856
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1863 ;;
1864
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1872 ;;
1873
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1877 ;;
1878
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1884 ;;
1885
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1889 ;;
1890
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1894 ;;
1895
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1904 ;;
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1909 ;;
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1912 ;;
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1915 ;;
1916
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1922 ;;
1923
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1927 ;;
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1930 ;;
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1933 ;;
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1936 ;;
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1939 ;;
1940
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1949 fi
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1954 fi
1955 fi
1956 ;;
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1963 ;;
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1966 ;;
1967
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1971 ;;
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1974 ;;
1975
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1979 ;;
1980
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1984 ;;
1985
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1988
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1992 ;;
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1995 ;;
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
1998 ;;
1999
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2009 ;;
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2013 ;;
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2018 ;;
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2022 ;;
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2025 ;;
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2029 ;;
2030
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2034 ;;
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2046 ;;
2047
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2051 ;;
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2054 ;;
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2057 ;;
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2060 ;;
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2063 ;;
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2066 ;;
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2069 ;;
2070
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2086 ;;
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2089 ;;
2090
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2094 ;;
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2097 ;;
2098
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2102 ;;
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2105 ;;
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2108 ;;
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2111 ;;
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2114 ;;
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2117 ;;
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2120 ;;
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2123 ;;
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2126 ;;
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2129 ;;
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2132 ;;
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2135 ;;
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2138 ;;
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2141 ;;
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2144 ;;
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2147 ;;
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2150 ;;
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2156 ;;
2157
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2161 ;;
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2164 ;;
2165
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2169 ;;
2170
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2174 ;;
2175
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2179 ;;
2180
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2185 ;;
2186
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2192 ;;
2193
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2197 ;;
2198
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2203 ;;
2204
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2208 ;;
2209
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2215 ;;
2216
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2220 ;;
2221
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2225 ;;
2226
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2230 ;;
2231
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2235
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2246 ;;
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2251 ;;
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2256 ;;
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2259 ;;
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2262 ;;
2263
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2267 ;;
2268
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2272 ;;
2273
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2277 ;;
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2280 ;;
2281
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2285 ;;
2286
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2290 ;;
2291
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2295 ;;
2296
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2300 ;;
2301
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2307 ;;
2308
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2312 ;;
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2315 ;;
2316
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2322 ;;
2323
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2328 ;;
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2331 ;;
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2335 ;;
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2338 ;;
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2346 ;;
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2354 ;;
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2357 ;;
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2360 ;;
2361
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2365 ;;
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2368 ;;
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2371 ;;
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2374 ;;
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2377 ;;
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2380 ;;
2381
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2385 ;;
2386
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2390 ;;
2391
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2417 ;;
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2421 ;;
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2430 ;;
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2435 ;;
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2440 ;;
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2445 ;;
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2449 ;;
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2459 fi
2460 ;;
2461 *) ;;
2462 esac
2463 ;;
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2466 ;;
2467
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2471 ;;
2472
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2476 ;;
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2479 ;;
2480
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2484 ;;
2485
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2489 ;;
2490
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2494 ;;
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2499 ;;
2500
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2505 ;;
2506
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2510 ;;
2511
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2524 ;;
2525
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2531 ;;
2532
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2536 ;;
2537
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2541 ;;
2542
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2555 ;;
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2567 ;;
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2575 ;;
2576
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2580 ;;
2581
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2585 ;;
2586
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2592 ;;
2593
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2597 ;;
2598
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2609 fi
2610 ;;
2611
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2615 ;;
2616
2617 * )
2618 unported=yes
2619 ;;
2620 esac
2621
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2650 fi
2651 fi
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658 fi
2659
2660
2661
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2668 fi
2669
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2672
2673
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2676
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2679
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2683 * )
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 fi
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2762 fi
2763
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2847 fi
2848
2849 fi
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 fi
2902
2903 fi
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2907 do
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2941 fi
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985 test -n "$ac_ct_CC" && break
2986 done
2987
2988 CC=$ac_ct_CC
2989 fi
2990
2991 fi
2992
2993
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
2999
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3019
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3051
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3057 do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3061 ;;
3062 conftest.$ac_ext )
3063 # This is the source file.
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3076 * )
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3089 fi
3090
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3094
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120 fi
3121 fi
3122 fi
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3125
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3134
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 fi
3214
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_compiler_gnu=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 ac_compiler_gnu=no
3272 fi
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 CFLAGS="-g"
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_g=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 ac_cv_prog_cc_g=no
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3343 fi
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_prog_cc_stdc=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372 char **p;
3373 int i;
3374 {
3375 return p[i];
3376 }
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3378 {
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3385 }
3386
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3402 int
3403 main ()
3404 {
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc=$ac_arg
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 fi
3449 rm -f conftest.err conftest.$ac_objext
3450 done
3451 rm -f conftest.$ac_ext conftest.$ac_objext
3452 CC=$ac_save_CC
3453
3454 fi
3455
3456 case "x$ac_cv_prog_cc_stdc" in
3457 x|xno)
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3460 *)
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC="$CC $ac_cv_prog_cc_stdc" ;;
3464 esac
3465
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #ifndef __cplusplus
3472 choke me
3473 #endif
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3498 '' \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3503 'void exit (int);'
3504 do
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_declaration
3512 #include <stdlib.h>
3513 int
3514 main ()
3515 {
3516 exit (42);
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 :
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 continue
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_declaration
3558 int
3559 main ()
3560 {
3561 exit (42);
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 rm -f conftest*
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3601 fi
3602
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 fi
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618 CPP=
3619 fi
3620
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3625 then
3626 CPP="$NON_GNU_CPP"
3627 fi
3628
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3633 test x$cc_specified != xyes
3634 then
3635 CC="$NON_GNU_CC"
3636 fi
3637
3638 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3639 then
3640 CC="$CC $GCC_TEST_OPTIONS"
3641 fi
3642
3643 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3644 then
3645 CC="$CC $NON_GCC_TEST_OPTIONS"
3646 fi
3647
3648 #### Some other nice autoconf tests.
3649
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652 LN_S=$as_ln_s
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3659 fi
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670 CPP=
3671 fi
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678 do
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699 Syntax error
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715 else
3716 ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719 :
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 # Broken: fails on valid input.
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null; then
3747 if test -s conftest.err; then
3748 ac_cpp_err=$ac_c_preproc_warn_flag
3749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 else
3751 ac_cpp_err=
3752 fi
3753 else
3754 ac_cpp_err=yes
3755 fi
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773 break
3774 fi
3775
3776 done
3777 ac_cv_prog_CPP=$CPP
3778
3779 fi
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3783 fi
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3788 do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3821 fi
3822 else
3823 ac_cpp_err=yes
3824 fi
3825 if test -z "$ac_cpp_err"; then
3826 :
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 # Broken: fails on valid input.
3832 continue
3833 fi
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3859 fi
3860 else
3861 ac_cpp_err=yes
3862 fi
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3873 fi
3874 rm -f conftest.err conftest.$ac_ext
3875
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then
3880 :
3881 else
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in
3921 ./ | .// | /cC/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3924 /usr/ucb/* ) ;;
3925 *)
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3935 :
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3939 :
3940 else
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 break 3
3943 fi
3944 fi
3945 done
3946 done
3947 ;;
3948 esac
3949 done
3950
3951
3952 fi
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3955 else
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3961 fi
3962 fi
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3965
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3969
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3971
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3973
3974 if test "x$RANLIB" = x; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999
4000 fi
4001 fi
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011 fi
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4039 fi
4040 fi
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 RANLIB=$ac_ct_RANLIB
4051 else
4052 RANLIB="$ac_cv_prog_RANLIB"
4053 fi
4054
4055 fi
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $INSTALL_INFO in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4066 ;;
4067 *)
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081
4082 ;;
4083 esac
4084 fi
4085 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4086
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093 fi
4094
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 case $INSTALL_INFO in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4105 ;;
4106 *)
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in /usr/sbin
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120
4121 ;;
4122 esac
4123 fi
4124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4125
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 case $INSTALL_INFO in
4142 [\\/]* | ?:[\\/]*)
4143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4144 ;;
4145 *)
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in /sbin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4161 ;;
4162 esac
4163 fi
4164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4165
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174
4175
4176 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4177 then
4178 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4179 fi
4180
4181 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4182 then
4183 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4184 fi
4185
4186
4187 late_LDFLAGS=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4190 else
4191 LDFLAGS="$LDFLAGS -znocombreloc"
4192 fi
4193
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4196
4197 cat >conftest.$ac_ext <<_ACEOF
4198 main(){return 0;}
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 LDFLAGS=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4234
4235
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242 then ac_cv_prog_egrep='grep -E'
4243 else ac_cv_prog_egrep='egrep'
4244 fi
4245 fi
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4249
4250
4251
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef _AIX
4261 yes
4262 #endif
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev/null 2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h <<\_ACEOF
4270 #define _ALL_SOURCE 1
4271 _ACEOF
4272
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277 rm -f conftest*
4278
4279
4280
4281 echo "$as_me:$LINENO: checking for /proc/sys/kernel/exec-shield" >&5
4282 echo $ECHO_N "checking for /proc/sys/kernel/exec-shield... $ECHO_C" >&6
4283 if test "${ac_cv_file__proc_sys_kernel_exec_shield+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 test "$cross_compiling" = yes &&
4287 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4288 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4289 { (exit 1); exit 1; }; }
4290 if test -r "/proc/sys/kernel/exec-shield"; then
4291 ac_cv_file__proc_sys_kernel_exec_shield=yes
4292 else
4293 ac_cv_file__proc_sys_kernel_exec_shield=no
4294 fi
4295 fi
4296 echo "$as_me:$LINENO: result: $ac_cv_file__proc_sys_kernel_exec_shield" >&5
4297 echo "${ECHO_T}$ac_cv_file__proc_sys_kernel_exec_shield" >&6
4298 if test $ac_cv_file__proc_sys_kernel_exec_shield = yes; then
4299 emacs_cv_execshield=1
4300 else
4301 emacs_cv_execshield=0
4302 fi
4303
4304 if test "$emacs_cv_execshield" = 1; then
4305 # Extract the first word of "setarch", so it can be a program name with args.
4306 set dummy setarch; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_path_SETARCH+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 case $SETARCH in
4313 [\\/]* | ?:[\\/]*)
4314 ac_cv_path_SETARCH="$SETARCH" # Let the user override the test with a path.
4315 ;;
4316 *)
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_SETARCH="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330
4331 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH="no"
4332 ;;
4333 esac
4334 fi
4335 SETARCH=$ac_cv_path_SETARCH
4336
4337 if test -n "$SETARCH"; then
4338 echo "$as_me:$LINENO: result: $SETARCH" >&5
4339 echo "${ECHO_T}$SETARCH" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344
4345
4346 if test "$setarch" != no; then
4347
4348 cat >>confdefs.h <<\_ACEOF
4349 #define HAVE_EXECSHIELD 1
4350 _ACEOF
4351
4352 fi
4353 fi
4354
4355 #### Extract some information from the operating system and machine files.
4356
4357 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4358 - which libraries the lib-src programs will want, and
4359 - whether the GNU malloc routines are usable..." >&5
4360 echo "$as_me: checking the machine- and system-dependent files to find out
4361 - which libraries the lib-src programs will want, and
4362 - whether the GNU malloc routines are usable..." >&6;}
4363
4364 ### First figure out CFLAGS (which we use for running the compiler here)
4365 ### and REAL_CFLAGS (which we use for real compilation).
4366 ### The two are the same except on a few systems, where they are made
4367 ### different to work around various lossages. For example,
4368 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4369 ### as implying static linking.
4370
4371 ### If the CFLAGS env var is specified, we use that value
4372 ### instead of the default.
4373
4374 ### It's not important that this name contain the PID; you can't run
4375 ### two configures in the same directory and have anything work
4376 ### anyway.
4377 tempcname="conftest.c"
4378
4379 echo '
4380 #include "'${srcdir}'/src/'${opsysfile}'"
4381 #include "'${srcdir}'/src/'${machfile}'"
4382 #ifndef LIBS_MACHINE
4383 #define LIBS_MACHINE
4384 #endif
4385 #ifndef LIBS_SYSTEM
4386 #define LIBS_SYSTEM
4387 #endif
4388 #ifndef C_SWITCH_SYSTEM
4389 #define C_SWITCH_SYSTEM
4390 #endif
4391 #ifndef C_SWITCH_MACHINE
4392 #define C_SWITCH_MACHINE
4393 #endif
4394 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4395 configure___ c_switch_system=C_SWITCH_SYSTEM
4396 configure___ c_switch_machine=C_SWITCH_MACHINE
4397
4398 #ifndef LIB_X11_LIB
4399 #define LIB_X11_LIB -lX11
4400 #endif
4401
4402 #ifndef LIBX11_MACHINE
4403 #define LIBX11_MACHINE
4404 #endif
4405
4406 #ifndef LIBX11_SYSTEM
4407 #define LIBX11_SYSTEM
4408 #endif
4409 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4410
4411 #ifdef UNEXEC
4412 configure___ unexec=UNEXEC
4413 #else
4414 configure___ unexec=unexec.o
4415 #endif
4416
4417 #ifdef SYSTEM_MALLOC
4418 configure___ system_malloc=yes
4419 #else
4420 configure___ system_malloc=no
4421 #endif
4422
4423 #ifdef USE_MMAP_FOR_BUFFERS
4424 configure___ use_mmap_for_buffers=yes
4425 #else
4426 configure___ use_mmap_for_buffers=no
4427 #endif
4428
4429 #ifndef C_DEBUG_SWITCH
4430 #define C_DEBUG_SWITCH -g
4431 #endif
4432
4433 #ifndef C_OPTIMIZE_SWITCH
4434 #ifdef __GNUC__
4435 #define C_OPTIMIZE_SWITCH -O2
4436 #else
4437 #define C_OPTIMIZE_SWITCH -O
4438 #endif
4439 #endif
4440
4441 #ifndef LD_SWITCH_MACHINE
4442 #define LD_SWITCH_MACHINE
4443 #endif
4444
4445 #ifndef LD_SWITCH_SYSTEM
4446 #define LD_SWITCH_SYSTEM
4447 #endif
4448
4449 #ifndef LD_SWITCH_X_SITE_AUX
4450 #define LD_SWITCH_X_SITE_AUX
4451 #endif
4452
4453 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4454 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4455
4456 #ifdef THIS_IS_CONFIGURE
4457
4458 /* Get the CFLAGS for tests in configure. */
4459 #ifdef __GNUC__
4460 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4461 #else
4462 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4463 #endif
4464
4465 #else /* not THIS_IS_CONFIGURE */
4466
4467 /* Get the CFLAGS for real compilation. */
4468 #ifdef __GNUC__
4469 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4470 #else
4471 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4472 #endif
4473
4474 #endif /* not THIS_IS_CONFIGURE */
4475 ' > ${tempcname}
4476
4477 # The value of CPP is a quoted variable reference, so we need to do this
4478 # to get its actual value...
4479 CPP=`eval "echo $CPP"`
4480 eval `${CPP} -Isrc ${tempcname} \
4481 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4482 if test "x$SPECIFIED_CFLAGS" = x; then
4483 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4484 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4485 else
4486 REAL_CFLAGS="$CFLAGS"
4487 fi
4488 rm ${tempcname}
4489
4490 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4491
4492 ### Make sure subsequent tests use flags consistent with the build flags.
4493
4494 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4495 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4496 else
4497 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4498 fi
4499
4500
4501
4502
4503 cat >>confdefs.h <<\_ACEOF
4504 #define _GNU_SOURCE 1
4505 _ACEOF
4506
4507
4508
4509 # Check whether --enable-largefile or --disable-largefile was given.
4510 if test "${enable_largefile+set}" = set; then
4511 enableval="$enable_largefile"
4512
4513 fi;
4514 if test "$enable_largefile" != no; then
4515
4516 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4517 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4518 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 ac_cv_sys_largefile_CC=no
4522 if test "$GCC" != yes; then
4523 ac_save_CC=$CC
4524 while :; do
4525 # IRIX 6.2 and later do not support large files by default,
4526 # so use the C compiler's -n32 option if that helps.
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <sys/types.h>
4534 /* Check that off_t can represent 2**63 - 1 correctly.
4535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4536 since some C++ compilers masquerading as C compilers
4537 incorrectly reject 9223372036854775807. */
4538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4540 && LARGE_OFF_T % 2147483647 == 1)
4541 ? 1 : -1];
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest.$ac_objext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552 (eval $ac_compile) 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 break
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 fi
4578 rm -f conftest.err conftest.$ac_objext
4579 CC="$CC -n32"
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_sys_largefile_CC=' -n32'; break
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 fi
4608 rm -f conftest.err conftest.$ac_objext
4609 break
4610 done
4611 CC=$ac_save_CC
4612 rm -f conftest.$ac_ext
4613 fi
4614 fi
4615 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4616 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4617 if test "$ac_cv_sys_largefile_CC" != no; then
4618 CC=$CC$ac_cv_sys_largefile_CC
4619 fi
4620
4621 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4622 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4623 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 while :; do
4627 ac_cv_sys_file_offset_bits=no
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <sys/types.h>
4635 /* Check that off_t can represent 2**63 - 1 correctly.
4636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4637 since some C++ compilers masquerading as C compilers
4638 incorrectly reject 9223372036854775807. */
4639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4641 && LARGE_OFF_T % 2147483647 == 1)
4642 ? 1 : -1];
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4673 break
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 fi
4679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #define _FILE_OFFSET_BITS 64
4687 #include <sys/types.h>
4688 /* Check that off_t can represent 2**63 - 1 correctly.
4689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4690 since some C++ compilers masquerading as C compilers
4691 incorrectly reject 9223372036854775807. */
4692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4694 && LARGE_OFF_T % 2147483647 == 1)
4695 ? 1 : -1];
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4726 ac_cv_sys_file_offset_bits=64; break
4727 else
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 break
4734 done
4735 fi
4736 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4737 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4738 if test "$ac_cv_sys_file_offset_bits" != no; then
4739
4740 cat >>confdefs.h <<_ACEOF
4741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4742 _ACEOF
4743
4744 fi
4745 rm -f conftest*
4746 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4747 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4748 if test "${ac_cv_sys_large_files+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 while :; do
4752 ac_cv_sys_large_files=no
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <sys/types.h>
4760 /* Check that off_t can represent 2**63 - 1 correctly.
4761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4762 since some C++ compilers masquerading as C compilers
4763 incorrectly reject 9223372036854775807. */
4764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4766 && LARGE_OFF_T % 2147483647 == 1)
4767 ? 1 : -1];
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag"
4786 || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 break
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #define _LARGE_FILES 1
4812 #include <sys/types.h>
4813 /* Check that off_t can represent 2**63 - 1 correctly.
4814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4815 since some C++ compilers masquerading as C compilers
4816 incorrectly reject 9223372036854775807. */
4817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4819 && LARGE_OFF_T % 2147483647 == 1)
4820 ? 1 : -1];
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_sys_large_files=1; break
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 fi
4857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 break
4859 done
4860 fi
4861 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4862 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4863 if test "$ac_cv_sys_large_files" != no; then
4864
4865 cat >>confdefs.h <<_ACEOF
4866 #define _LARGE_FILES $ac_cv_sys_large_files
4867 _ACEOF
4868
4869 fi
4870 rm -f conftest*
4871 fi
4872
4873
4874 if test "${with_sound}" != "no"; then
4875 # Sound support for GNU/Linux and the free BSDs.
4876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4878 if test "${ac_cv_header_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888 #include <stdarg.h>
4889 #include <string.h>
4890 #include <float.h>
4891
4892 int
4893 main ()
4894 {
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_header_stdc=yes
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_cv_header_stdc=no
4928 fi
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 #include <string.h>
4940
4941 _ACEOF
4942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4943 $EGREP "memchr" >/dev/null 2>&1; then
4944 :
4945 else
4946 ac_cv_header_stdc=no
4947 fi
4948 rm -f conftest*
4949
4950 fi
4951
4952 if test $ac_cv_header_stdc = yes; then
4953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <stdlib.h>
4961
4962 _ACEOF
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 $EGREP "free" >/dev/null 2>&1; then
4965 :
4966 else
4967 ac_cv_header_stdc=no
4968 fi
4969 rm -f conftest*
4970
4971 fi
4972
4973 if test $ac_cv_header_stdc = yes; then
4974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4975 if test "$cross_compiling" = yes; then
4976 :
4977 else
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <ctype.h>
4985 #if ((' ' & 0x0FF) == 0x020)
4986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4988 #else
4989 # define ISLOWER(c) \
4990 (('a' <= (c) && (c) <= 'i') \
4991 || ('j' <= (c) && (c) <= 'r') \
4992 || ('s' <= (c) && (c) <= 'z'))
4993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4994 #endif
4995
4996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4997 int
4998 main ()
4999 {
5000 int i;
5001 for (i = 0; i < 256; i++)
5002 if (XOR (islower (i), ISLOWER (i))
5003 || toupper (i) != TOUPPER (i))
5004 exit(2);
5005 exit (0);
5006 }
5007 _ACEOF
5008 rm -f conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 :
5020 else
5021 echo "$as_me: program exited with status $ac_status" >&5
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 ( exit $ac_status )
5026 ac_cv_header_stdc=no
5027 fi
5028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5029 fi
5030 fi
5031 fi
5032 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5033 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5034 if test $ac_cv_header_stdc = yes; then
5035
5036 cat >>confdefs.h <<\_ACEOF
5037 #define STDC_HEADERS 1
5038 _ACEOF
5039
5040 fi
5041
5042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5053 inttypes.h stdint.h unistd.h
5054 do
5055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5068
5069 #include <$ac_header>
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 eval "$as_ac_Header=yes"
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 eval "$as_ac_Header=no"
5099 fi
5100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5101 fi
5102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105 cat >>confdefs.h <<_ACEOF
5106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5107 _ACEOF
5108
5109 fi
5110
5111 done
5112
5113
5114
5115
5116
5117 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5118 do
5119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 fi
5126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5128 else
5129 # Is the header compilable?
5130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 $ac_includes_default
5139 #include <$ac_header>
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_c_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_header_compiler=yes
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ac_header_compiler=no
5169 fi
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5172 echo "${ECHO_T}$ac_header_compiler" >&6
5173
5174 # Is the header present?
5175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <$ac_header>
5184 _ACEOF
5185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_c_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196 else
5197 ac_cpp_err=
5198 fi
5199 else
5200 ac_cpp_err=yes
5201 fi
5202 if test -z "$ac_cpp_err"; then
5203 ac_header_preproc=yes
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_header_preproc=no
5209 fi
5210 rm -f conftest.err conftest.$ac_ext
5211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212 echo "${ECHO_T}$ac_header_preproc" >&6
5213
5214 # So? What about this header?
5215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5216 yes:no: )
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5221 ac_header_preproc=yes
5222 ;;
5223 no:yes:* )
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5236 (
5237 cat <<\_ASBOX
5238 ## ------------------------------------------ ##
5239 ## Report this to the AC_PACKAGE_NAME lists. ##
5240 ## ------------------------------------------ ##
5241 _ASBOX
5242 ) |
5243 sed "s/^/$as_me: WARNING: /" >&2
5244 ;;
5245 esac
5246 echo "$as_me:$LINENO: checking for $ac_header" >&5
5247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 eval "$as_ac_Header=\$ac_header_preproc"
5252 fi
5253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5255
5256 fi
5257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5258 cat >>confdefs.h <<_ACEOF
5259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260 _ACEOF
5261
5262 fi
5263
5264 done
5265
5266 # Emulation library used on NetBSD.
5267 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5268 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5269 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 ac_check_lib_save_LIBS=$LIBS
5273 LIBS="-lossaudio $LIBS"
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 #ifdef __cplusplus
5283 extern "C"
5284 #endif
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5287 char _oss_ioctl ();
5288 int
5289 main ()
5290 {
5291 _oss_ioctl ();
5292 ;
5293 return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag"
5306 || test ! -s conftest.err'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; } &&
5312 { ac_try='test -s conftest$ac_exeext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_cv_lib_ossaudio__oss_ioctl=yes
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 ac_cv_lib_ossaudio__oss_ioctl=no
5324 fi
5325 rm -f conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5330 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5331 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5332 LIBSOUND=-lossaudio
5333 else
5334 LIBSOUND=
5335 fi
5336
5337
5338 fi
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5364 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5365 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5366 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5367 do
5368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 fi
5375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5377 else
5378 # Is the header compilable?
5379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5388 #include <$ac_header>
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_header_compiler=yes
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5422
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <$ac_header>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445 else
5446 ac_cpp_err=
5447 fi
5448 else
5449 ac_cpp_err=yes
5450 fi
5451 if test -z "$ac_cpp_err"; then
5452 ac_header_preproc=yes
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_preproc=no
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5462
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5465 yes:no: )
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5471 ;;
5472 no:yes:* )
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5485 (
5486 cat <<\_ASBOX
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists. ##
5489 ## ------------------------------------------ ##
5490 _ASBOX
5491 ) |
5492 sed "s/^/$as_me: WARNING: /" >&2
5493 ;;
5494 esac
5495 echo "$as_me:$LINENO: checking for $ac_header" >&5
5496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 eval "$as_ac_Header=\$ac_header_preproc"
5501 fi
5502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5504
5505 fi
5506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5507 cat >>confdefs.h <<_ACEOF
5508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5509 _ACEOF
5510
5511 fi
5512
5513 done
5514
5515
5516 for ac_header in term.h
5517 do
5518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <$ac_header>
5531 _ACEOF
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 else
5544 ac_cpp_err=
5545 fi
5546 else
5547 ac_cpp_err=yes
5548 fi
5549 if test -z "$ac_cpp_err"; then
5550 eval "$as_ac_Header=yes"
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 eval "$as_ac_Header=no"
5556 fi
5557 rm -f conftest.err conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 _ACEOF
5565
5566 fi
5567
5568 done
5569
5570 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5571 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5572 if test "${ac_cv_header_stdc+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <stdlib.h>
5582 #include <stdarg.h>
5583 #include <string.h>
5584 #include <float.h>
5585
5586 int
5587 main ()
5588 {
5589
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_header_stdc=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_header_stdc=no
5622 fi
5623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624
5625 if test $ac_cv_header_stdc = yes; then
5626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #include <string.h>
5634
5635 _ACEOF
5636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5637 $EGREP "memchr" >/dev/null 2>&1; then
5638 :
5639 else
5640 ac_cv_header_stdc=no
5641 fi
5642 rm -f conftest*
5643
5644 fi
5645
5646 if test $ac_cv_header_stdc = yes; then
5647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <stdlib.h>
5655
5656 _ACEOF
5657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5658 $EGREP "free" >/dev/null 2>&1; then
5659 :
5660 else
5661 ac_cv_header_stdc=no
5662 fi
5663 rm -f conftest*
5664
5665 fi
5666
5667 if test $ac_cv_header_stdc = yes; then
5668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5669 if test "$cross_compiling" = yes; then
5670 :
5671 else
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <ctype.h>
5679 #if ((' ' & 0x0FF) == 0x020)
5680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5682 #else
5683 # define ISLOWER(c) \
5684 (('a' <= (c) && (c) <= 'i') \
5685 || ('j' <= (c) && (c) <= 'r') \
5686 || ('s' <= (c) && (c) <= 'z'))
5687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5688 #endif
5689
5690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5691 int
5692 main ()
5693 {
5694 int i;
5695 for (i = 0; i < 256; i++)
5696 if (XOR (islower (i), ISLOWER (i))
5697 || toupper (i) != TOUPPER (i))
5698 exit(2);
5699 exit (0);
5700 }
5701 _ACEOF
5702 rm -f conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 :
5714 else
5715 echo "$as_me: program exited with status $ac_status" >&5
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ( exit $ac_status )
5720 ac_cv_header_stdc=no
5721 fi
5722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 fi
5725 fi
5726 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5727 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5728 if test $ac_cv_header_stdc = yes; then
5729
5730 cat >>confdefs.h <<\_ACEOF
5731 #define STDC_HEADERS 1
5732 _ACEOF
5733
5734 fi
5735
5736 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5737 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5738 if test "${ac_cv_header_time+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 #include <sys/time.h>
5749 #include <time.h>
5750
5751 int
5752 main ()
5753 {
5754 if ((struct tm *) 0)
5755 return 0;
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_header_time=yes
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_cv_header_time=no
5788 fi
5789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5792 echo "${ECHO_T}$ac_cv_header_time" >&6
5793 if test $ac_cv_header_time = yes; then
5794
5795 cat >>confdefs.h <<\_ACEOF
5796 #define TIME_WITH_SYS_TIME 1
5797 _ACEOF
5798
5799 fi
5800
5801 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5802 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5803 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5813 int
5814 main ()
5815 {
5816 #ifndef sys_siglist
5817 char *p = (char *) sys_siglist;
5818 #endif
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_have_decl_sys_siglist=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_cv_have_decl_sys_siglist=no
5852 fi
5853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5854 fi
5855 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5856 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5857 if test $ac_cv_have_decl_sys_siglist = yes; then
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define HAVE_DECL_SYS_SIGLIST 1
5861 _ACEOF
5862
5863
5864 else
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE_DECL_SYS_SIGLIST 0
5867 _ACEOF
5868
5869
5870 fi
5871
5872
5873 if test $ac_cv_have_decl_sys_siglist != yes; then
5874 # For Tru64, at least:
5875 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5876 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5877 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5887 int
5888 main ()
5889 {
5890 #ifndef __sys_siglist
5891 char *p = (char *) __sys_siglist;
5892 #endif
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_have_decl___sys_siglist=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ac_cv_have_decl___sys_siglist=no
5926 fi
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5930 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5931 if test $ac_cv_have_decl___sys_siglist = yes; then
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_DECL___SYS_SIGLIST 1
5935 _ACEOF
5936
5937
5938 else
5939 cat >>confdefs.h <<_ACEOF
5940 #define HAVE_DECL___SYS_SIGLIST 0
5941 _ACEOF
5942
5943
5944 fi
5945
5946
5947 if test $ac_cv_have_decl___sys_siglist = yes; then
5948
5949 cat >>confdefs.h <<\_ACEOF
5950 #define sys_siglist __sys_siglist
5951 _ACEOF
5952
5953 fi
5954 fi
5955 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5956 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5957 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <sys/types.h>
5967 #include <sys/wait.h>
5968 #ifndef WEXITSTATUS
5969 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5970 #endif
5971 #ifndef WIFEXITED
5972 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5973 #endif
5974
5975 int
5976 main ()
5977 {
5978 int s;
5979 wait (&s);
5980 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_header_sys_wait_h=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 ac_cv_header_sys_wait_h=no
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6017 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6018 if test $ac_cv_header_sys_wait_h = yes; then
6019
6020 cat >>confdefs.h <<\_ACEOF
6021 #define HAVE_SYS_WAIT_H 1
6022 _ACEOF
6023
6024 fi
6025
6026
6027 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6028 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6029 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #ifdef TIME_WITH_SYS_TIME
6039 #include <sys/time.h>
6040 #include <time.h>
6041 #else
6042 #ifdef HAVE_SYS_TIME_H
6043 #include <sys/time.h>
6044 #else
6045 #include <time.h>
6046 #endif
6047 #endif
6048 #ifdef HAVE_UTIME_H
6049 #include <utime.h>
6050 #endif
6051 int
6052 main ()
6053 {
6054 static struct utimbuf x; x.actime = x.modtime;
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 emacs_cv_struct_utimbuf=yes
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 emacs_cv_struct_utimbuf=no
6087 fi
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6091 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6092 if test $emacs_cv_struct_utimbuf = yes; then
6093
6094 cat >>confdefs.h <<\_ACEOF
6095 #define HAVE_STRUCT_UTIMBUF 1
6096 _ACEOF
6097
6098 fi
6099
6100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6102 if test "${ac_cv_type_signal+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <sys/types.h>
6112 #include <signal.h>
6113 #ifdef signal
6114 # undef signal
6115 #endif
6116 #ifdef __cplusplus
6117 extern "C" void (*signal (int, void (*)(int)))(int);
6118 #else
6119 void (*signal ()) ();
6120 #endif
6121
6122 int
6123 main ()
6124 {
6125 int i;
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_type_signal=void
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 ac_cv_type_signal=int
6158 fi
6159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6160 fi
6161 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6162 echo "${ECHO_T}$ac_cv_type_signal" >&6
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define RETSIGTYPE $ac_cv_type_signal
6166 _ACEOF
6167
6168
6169
6170 echo "$as_me:$LINENO: checking for speed_t" >&5
6171 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6172 if test "${emacs_cv_speed_t+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <termios.h>
6182 int
6183 main ()
6184 {
6185 speed_t x = 1;
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192 (eval $ac_compile) 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_c_werror_flag"
6200 || test ! -s conftest.err'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 emacs_cv_speed_t=yes
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 emacs_cv_speed_t=no
6218 fi
6219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6220 fi
6221 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6222 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6223 if test $emacs_cv_speed_t = yes; then
6224
6225 cat >>confdefs.h <<\_ACEOF
6226 #define HAVE_SPEED_T 1
6227 _ACEOF
6228
6229 fi
6230
6231 echo "$as_me:$LINENO: checking for struct timeval" >&5
6232 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6233 if test "${emacs_cv_struct_timeval+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #ifdef TIME_WITH_SYS_TIME
6243 #include <sys/time.h>
6244 #include <time.h>
6245 #else
6246 #ifdef HAVE_SYS_TIME_H
6247 #include <sys/time.h>
6248 #else
6249 #include <time.h>
6250 #endif
6251 #endif
6252 int
6253 main ()
6254 {
6255 static struct timeval x; x.tv_sec = x.tv_usec;
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6262 (eval $ac_compile) 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest.$ac_objext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 emacs_cv_struct_timeval=yes
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 emacs_cv_struct_timeval=no
6288 fi
6289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6292 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6293 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6294 if test $emacs_cv_struct_timeval = yes; then
6295
6296 cat >>confdefs.h <<\_ACEOF
6297 #define HAVE_TIMEVAL 1
6298 _ACEOF
6299
6300 fi
6301
6302 echo "$as_me:$LINENO: checking for struct exception" >&5
6303 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6304 if test "${emacs_cv_struct_exception+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <math.h>
6314 int
6315 main ()
6316 {
6317 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6318 ;
6319 return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 emacs_cv_struct_exception=yes
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 emacs_cv_struct_exception=no
6350 fi
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 fi
6353 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6354 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6355 HAVE_EXCEPTION=$emacs_cv_struct_exception
6356 if test $emacs_cv_struct_exception != yes; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define NO_MATHERR 1
6360 _ACEOF
6361
6362 fi
6363
6364
6365 for ac_header in sys/socket.h
6366 do
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 fi
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 else
6377 # Is the header compilable?
6378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_header_compiler=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_header_compiler=no
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6420 echo "${ECHO_T}$ac_header_compiler" >&6
6421
6422 # Is the header present?
6423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <$ac_header>
6432 _ACEOF
6433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null; then
6441 if test -s conftest.err; then
6442 ac_cpp_err=$ac_c_preproc_warn_flag
6443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6444 else
6445 ac_cpp_err=
6446 fi
6447 else
6448 ac_cpp_err=yes
6449 fi
6450 if test -z "$ac_cpp_err"; then
6451 ac_header_preproc=yes
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_header_preproc=no
6457 fi
6458 rm -f conftest.err conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6460 echo "${ECHO_T}$ac_header_preproc" >&6
6461
6462 # So? What about this header?
6463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6464 yes:no: )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6469 ac_header_preproc=yes
6470 ;;
6471 no:yes:* )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6484 (
6485 cat <<\_ASBOX
6486 ## ------------------------------------------ ##
6487 ## Report this to the AC_PACKAGE_NAME lists. ##
6488 ## ------------------------------------------ ##
6489 _ASBOX
6490 ) |
6491 sed "s/^/$as_me: WARNING: /" >&2
6492 ;;
6493 esac
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 eval "$as_ac_Header=\$ac_header_preproc"
6500 fi
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503
6504 fi
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6509
6510 fi
6511
6512 done
6513
6514
6515 for ac_header in net/if.h
6516 do
6517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6518 echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 #if HAVE_SYS_SOCKET_H
6531 #include <sys/socket.h>
6532 #endif
6533
6534 #include <$ac_header>
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 eval "$as_ac_Header=yes"
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563 eval "$as_ac_Header=no"
6564 fi
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6570 cat >>confdefs.h <<_ACEOF
6571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572 _ACEOF
6573
6574 fi
6575
6576 done
6577
6578
6579 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6580 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6581 if test "${ac_cv_struct_tm+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <sys/types.h>
6591 #include <time.h>
6592
6593 int
6594 main ()
6595 {
6596 struct tm *tp; tp->tm_sec;
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_struct_tm=time.h
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cv_struct_tm=sys/time.h
6629 fi
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6633 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6634 if test $ac_cv_struct_tm = sys/time.h; then
6635
6636 cat >>confdefs.h <<\_ACEOF
6637 #define TM_IN_SYS_TIME 1
6638 _ACEOF
6639
6640 fi
6641
6642 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6643 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6644 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <$ac_cv_struct_tm>
6655
6656
6657 int
6658 main ()
6659 {
6660 static struct tm ac_aggr;
6661 if (ac_aggr.tm_zone)
6662 return 0;
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_member_struct_tm_tm_zone=yes
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <$ac_cv_struct_tm>
6702
6703
6704 int
6705 main ()
6706 {
6707 static struct tm ac_aggr;
6708 if (sizeof ac_aggr.tm_zone)
6709 return 0;
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_member_struct_tm_tm_zone=yes
6737 else
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 ac_cv_member_struct_tm_tm_zone=no
6742 fi
6743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744 fi
6745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6746 fi
6747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6750
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_STRUCT_TM_TM_ZONE 1
6753 _ACEOF
6754
6755
6756 fi
6757
6758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6759
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_TM_ZONE 1
6762 _ACEOF
6763
6764 else
6765 echo "$as_me:$LINENO: checking for tzname" >&5
6766 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6767 if test "${ac_cv_var_tzname+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
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 <time.h>
6777 #ifndef tzname /* For SGI. */
6778 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6779 #endif
6780
6781 int
6782 main ()
6783 {
6784 atoi(*tzname);
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_var_tzname=yes
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816 ac_cv_var_tzname=no
6817 fi
6818 rm -f conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 fi
6821 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6822 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6823 if test $ac_cv_var_tzname = yes; then
6824
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_TZNAME 1
6827 _ACEOF
6828
6829 fi
6830 fi
6831
6832 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6833 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6834 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 #include <time.h>
6844
6845 int
6846 main ()
6847 {
6848 static struct tm ac_aggr;
6849 if (ac_aggr.tm_gmtoff)
6850 return 0;
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_member_struct_tm_tm_gmtoff=yes
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <time.h>
6889
6890 int
6891 main ()
6892 {
6893 static struct tm ac_aggr;
6894 if (sizeof ac_aggr.tm_gmtoff)
6895 return 0;
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_member_struct_tm_tm_gmtoff=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_cv_member_struct_tm_tm_gmtoff=no
6928 fi
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932 fi
6933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6934 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6935 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6936
6937 cat >>confdefs.h <<\_ACEOF
6938 #define HAVE_TM_GMTOFF 1
6939 _ACEOF
6940
6941 fi
6942
6943 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6944 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6945 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 $ac_includes_default
6955 #if HAVE_SYS_SOCKET_H
6956 #include <sys/socket.h>
6957 #endif
6958 #if HAVE_NET_IF_H
6959 #include <net/if.h>
6960 #endif
6961
6962 int
6963 main ()
6964 {
6965 static struct ifreq ac_aggr;
6966 if (ac_aggr.ifr_flags)
6967 return 0;
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_c_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_member_struct_ifreq_ifr_flags=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7006 #if HAVE_SYS_SOCKET_H
7007 #include <sys/socket.h>
7008 #endif
7009 #if HAVE_NET_IF_H
7010 #include <net/if.h>
7011 #endif
7012
7013 int
7014 main ()
7015 {
7016 static struct ifreq ac_aggr;
7017 if (sizeof ac_aggr.ifr_flags)
7018 return 0;
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_member_struct_ifreq_ifr_flags=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_cv_member_struct_ifreq_ifr_flags=no
7051 fi
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055 fi
7056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7057 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7058 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7059
7060 cat >>confdefs.h <<_ACEOF
7061 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7062 _ACEOF
7063
7064
7065 fi
7066 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7067 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7068 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 $ac_includes_default
7078 #if HAVE_SYS_SOCKET_H
7079 #include <sys/socket.h>
7080 #endif
7081 #if HAVE_NET_IF_H
7082 #include <net/if.h>
7083 #endif
7084
7085 int
7086 main ()
7087 {
7088 static struct ifreq ac_aggr;
7089 if (ac_aggr.ifr_hwaddr)
7090 return 0;
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 $ac_includes_default
7129 #if HAVE_SYS_SOCKET_H
7130 #include <sys/socket.h>
7131 #endif
7132 #if HAVE_NET_IF_H
7133 #include <net/if.h>
7134 #endif
7135
7136 int
7137 main ()
7138 {
7139 static struct ifreq ac_aggr;
7140 if (sizeof ac_aggr.ifr_hwaddr)
7141 return 0;
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -z "$ac_c_werror_flag"
7156 || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try='test -s conftest.$ac_objext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7174 fi
7175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7180 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7181 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7182
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7185 _ACEOF
7186
7187
7188 fi
7189 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7190 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7191 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 #if HAVE_SYS_SOCKET_H
7202 #include <sys/socket.h>
7203 #endif
7204 #if HAVE_NET_IF_H
7205 #include <net/if.h>
7206 #endif
7207
7208 int
7209 main ()
7210 {
7211 static struct ifreq ac_aggr;
7212 if (ac_aggr.ifr_netmask)
7213 return 0;
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try='test -z "$ac_c_werror_flag"
7228 || test ! -s conftest.err'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; } &&
7234 { ac_try='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_member_struct_ifreq_ifr_netmask=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7252 #if HAVE_SYS_SOCKET_H
7253 #include <sys/socket.h>
7254 #endif
7255 #if HAVE_NET_IF_H
7256 #include <net/if.h>
7257 #endif
7258
7259 int
7260 main ()
7261 {
7262 static struct ifreq ac_aggr;
7263 if (sizeof ac_aggr.ifr_netmask)
7264 return 0;
7265 ;
7266 return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_member_struct_ifreq_ifr_netmask=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_cv_member_struct_ifreq_ifr_netmask=no
7297 fi
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 fi
7302 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7303 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7304 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7305
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7308 _ACEOF
7309
7310
7311 fi
7312 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7313 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7314 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 #if HAVE_SYS_SOCKET_H
7325 #include <sys/socket.h>
7326 #endif
7327 #if HAVE_NET_IF_H
7328 #include <net/if.h>
7329 #endif
7330
7331 int
7332 main ()
7333 {
7334 static struct ifreq ac_aggr;
7335 if (ac_aggr.ifr_broadaddr)
7336 return 0;
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 #if HAVE_SYS_SOCKET_H
7376 #include <sys/socket.h>
7377 #endif
7378 #if HAVE_NET_IF_H
7379 #include <net/if.h>
7380 #endif
7381
7382 int
7383 main ()
7384 {
7385 static struct ifreq ac_aggr;
7386 if (sizeof ac_aggr.ifr_broadaddr)
7387 return 0;
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7395 ac_status=$?
7396 grep -v '^ *+' conftest.er1 >conftest.err
7397 rm -f conftest.er1
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7420 fi
7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 fi
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 fi
7425 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7426 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7427 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7428
7429 cat >>confdefs.h <<_ACEOF
7430 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7431 _ACEOF
7432
7433
7434 fi
7435 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7436 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7437 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7447 #if HAVE_SYS_SOCKET_H
7448 #include <sys/socket.h>
7449 #endif
7450 #if HAVE_NET_IF_H
7451 #include <net/if.h>
7452 #endif
7453
7454 int
7455 main ()
7456 {
7457 static struct ifreq ac_aggr;
7458 if (ac_aggr.ifr_addr)
7459 return 0;
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -z "$ac_c_werror_flag"
7474 || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest.$ac_objext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_member_struct_ifreq_ifr_addr=yes
7487 else
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 #if HAVE_SYS_SOCKET_H
7499 #include <sys/socket.h>
7500 #endif
7501 #if HAVE_NET_IF_H
7502 #include <net/if.h>
7503 #endif
7504
7505 int
7506 main ()
7507 {
7508 static struct ifreq ac_aggr;
7509 if (sizeof ac_aggr.ifr_addr)
7510 return 0;
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517 (eval $ac_compile) 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -z "$ac_c_werror_flag"
7525 || test ! -s conftest.err'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; } &&
7531 { ac_try='test -s conftest.$ac_objext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_member_struct_ifreq_ifr_addr=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ac_cv_member_struct_ifreq_ifr_addr=no
7543 fi
7544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7549 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7550 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7554 _ACEOF
7555
7556
7557 fi
7558
7559
7560
7561 echo "$as_me:$LINENO: checking for function prototypes" >&5
7562 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7563 if test "$ac_cv_prog_cc_stdc" != no; then
7564 echo "$as_me:$LINENO: result: yes" >&5
7565 echo "${ECHO_T}yes" >&6
7566
7567 cat >>confdefs.h <<\_ACEOF
7568 #define PROTOTYPES 1
7569 _ACEOF
7570
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define __PROTOTYPES 1
7574 _ACEOF
7575
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 fi
7580
7581 echo "$as_me:$LINENO: checking for working volatile" >&5
7582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7583 if test "${ac_cv_c_volatile+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592
7593 int
7594 main ()
7595 {
7596
7597 volatile int x;
7598 int * volatile y;
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_c_volatile=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_cv_c_volatile=no
7631 fi
7632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7636 if test $ac_cv_c_volatile = no; then
7637
7638 cat >>confdefs.h <<\_ACEOF
7639 #define volatile
7640 _ACEOF
7641
7642 fi
7643
7644 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7646 if test "${ac_cv_c_const+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655
7656 int
7657 main ()
7658 {
7659 /* FIXME: Include the comments suggested by Paul. */
7660 #ifndef __cplusplus
7661 /* Ultrix mips cc rejects this. */
7662 typedef int charset[2];
7663 const charset x;
7664 /* SunOS 4.1.1 cc rejects this. */
7665 char const *const *ccp;
7666 char **p;
7667 /* NEC SVR4.0.2 mips cc rejects this. */
7668 struct point {int x, y;};
7669 static struct point const zero = {0,0};
7670 /* AIX XL C 1.02.0.0 rejects this.
7671 It does not let you subtract one const X* pointer from another in
7672 an arm of an if-expression whose if-part is not a constant
7673 expression */
7674 const char *g = "string";
7675 ccp = &g + (g ? g-g : 0);
7676 /* HPUX 7.0 cc rejects these. */
7677 ++ccp;
7678 p = (char**) ccp;
7679 ccp = (char const *const *) p;
7680 { /* SCO 3.2v4 cc rejects this. */
7681 char *t;
7682 char const *s = 0 ? (char *) 0 : (char const *) 0;
7683
7684 *t++ = 0;
7685 }
7686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7687 int x[] = {25, 17};
7688 const int *foo = &x[0];
7689 ++foo;
7690 }
7691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7692 typedef const int *iptr;
7693 iptr p = 0;
7694 ++p;
7695 }
7696 { /* AIX XL C 1.02.0.0 rejects this saying
7697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7698 struct s { int j; const int *ap[3]; };
7699 struct s *b; b->j = 5;
7700 }
7701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7702 const int foo = 10;
7703 }
7704 #endif
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712 (eval $ac_compile) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest.$ac_objext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_c_const=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ac_cv_c_const=no
7738 fi
7739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7742 echo "${ECHO_T}$ac_cv_c_const" >&6
7743 if test $ac_cv_c_const = no; then
7744
7745 cat >>confdefs.h <<\_ACEOF
7746 #define const
7747 _ACEOF
7748
7749 fi
7750
7751 echo "$as_me:$LINENO: checking for void * support" >&5
7752 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7753 if test "${emacs_cv_void_star+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762
7763 int
7764 main ()
7765 {
7766 void * foo;
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -z "$ac_c_werror_flag"
7781 || test ! -s conftest.err'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; } &&
7787 { ac_try='test -s conftest.$ac_objext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 emacs_cv_void_star=yes
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 emacs_cv_void_star=no
7799 fi
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7803 echo "${ECHO_T}$emacs_cv_void_star" >&6
7804 if test $emacs_cv_void_star = yes; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define POINTER_TYPE void
7807 _ACEOF
7808
7809 else
7810 cat >>confdefs.h <<\_ACEOF
7811 #define POINTER_TYPE char
7812 _ACEOF
7813
7814 fi
7815
7816
7817
7818 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7821 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 cat >conftest.make <<\_ACEOF
7825 all:
7826 @echo 'ac_maketemp="$(MAKE)"'
7827 _ACEOF
7828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7829 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7830 if test -n "$ac_maketemp"; then
7831 eval ac_cv_prog_make_${ac_make}_set=yes
7832 else
7833 eval ac_cv_prog_make_${ac_make}_set=no
7834 fi
7835 rm -f conftest.make
7836 fi
7837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6
7840 SET_MAKE=
7841 else
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844 SET_MAKE="MAKE=${MAKE-make}"
7845 fi
7846
7847
7848 echo "$as_me:$LINENO: checking for long file names" >&5
7849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7850 if test "${ac_cv_sys_long_file_names+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 ac_cv_sys_long_file_names=yes
7854 # Test for long file names in all the places we know might matter:
7855 # . the current directory, where building will happen
7856 # $prefix/lib where we will be installing things
7857 # $exec_prefix/lib likewise
7858 # eval it to expand exec_prefix.
7859 # $TMPDIR if set, where it might want to write temporary files
7860 # if $TMPDIR is not set:
7861 # /tmp where it might want to write temporary files
7862 # /var/tmp likewise
7863 # /usr/tmp likewise
7864 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7865 ac_tmpdirs=$TMPDIR
7866 else
7867 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7868 fi
7869 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7870 test -d $ac_dir || continue
7871 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7872 ac_xdir=$ac_dir/cf$$
7873 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7874 ac_tf1=$ac_xdir/conftest9012345
7875 ac_tf2=$ac_xdir/conftest9012346
7876 (echo 1 >$ac_tf1) 2>/dev/null
7877 (echo 2 >$ac_tf2) 2>/dev/null
7878 ac_val=`cat $ac_tf1 2>/dev/null`
7879 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7880 ac_cv_sys_long_file_names=no
7881 rm -rf $ac_xdir 2>/dev/null
7882 break
7883 fi
7884 rm -rf $ac_xdir 2>/dev/null
7885 done
7886 fi
7887 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7889 if test $ac_cv_sys_long_file_names = yes; then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_LONG_FILE_NAMES 1
7893 _ACEOF
7894
7895 fi
7896
7897
7898 #### Choose a window system.
7899
7900 echo "$as_me:$LINENO: checking for X" >&5
7901 echo $ECHO_N "checking for X... $ECHO_C" >&6
7902
7903
7904 # Check whether --with-x or --without-x was given.
7905 if test "${with_x+set}" = set; then
7906 withval="$with_x"
7907
7908 fi;
7909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7910 if test "x$with_x" = xno; then
7911 # The user explicitly disabled X.
7912 have_x=disabled
7913 else
7914 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7915 # Both variables are already set.
7916 have_x=yes
7917 else
7918 if test "${ac_cv_have_x+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 # One or both of the vars are not set, and there is no cached value.
7922 ac_x_includes=no ac_x_libraries=no
7923 rm -fr conftest.dir
7924 if mkdir conftest.dir; then
7925 cd conftest.dir
7926 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7927 cat >Imakefile <<'_ACEOF'
7928 acfindx:
7929 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7930 _ACEOF
7931 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7933 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7934 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7935 for ac_extension in a so sl; do
7936 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7937 test -f $ac_im_libdir/libX11.$ac_extension; then
7938 ac_im_usrlibdir=$ac_im_libdir; break
7939 fi
7940 done
7941 # Screen out bogus values from the imake configuration. They are
7942 # bogus both because they are the default anyway, and because
7943 # using them would break gcc on systems where it needs fixed includes.
7944 case $ac_im_incroot in
7945 /usr/include) ;;
7946 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7947 esac
7948 case $ac_im_usrlibdir in
7949 /usr/lib | /lib) ;;
7950 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7951 esac
7952 fi
7953 cd ..
7954 rm -fr conftest.dir
7955 fi
7956
7957 # Standard set of common directories for X headers.
7958 # Check X11 before X11Rn because it is often a symlink to the current release.
7959 ac_x_header_dirs='
7960 /usr/X11/include
7961 /usr/X11R6/include
7962 /usr/X11R5/include
7963 /usr/X11R4/include
7964
7965 /usr/include/X11
7966 /usr/include/X11R6
7967 /usr/include/X11R5
7968 /usr/include/X11R4
7969
7970 /usr/local/X11/include
7971 /usr/local/X11R6/include
7972 /usr/local/X11R5/include
7973 /usr/local/X11R4/include
7974
7975 /usr/local/include/X11
7976 /usr/local/include/X11R6
7977 /usr/local/include/X11R5
7978 /usr/local/include/X11R4
7979
7980 /usr/X386/include
7981 /usr/x386/include
7982 /usr/XFree86/include/X11
7983
7984 /usr/include
7985 /usr/local/include
7986 /usr/unsupported/include
7987 /usr/athena/include
7988 /usr/local/x11r5/include
7989 /usr/lpp/Xamples/include
7990
7991 /usr/openwin/include
7992 /usr/openwin/share/include'
7993
7994 if test "$ac_x_includes" = no; then
7995 # Guess where to find include files, by looking for Intrinsic.h.
7996 # First, try using that file with no special directory specified.
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <X11/Intrinsic.h>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019 else
8020 ac_cpp_err=yes
8021 fi
8022 if test -z "$ac_cpp_err"; then
8023 # We can compile using X headers with no special include directory.
8024 ac_x_includes=
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 for ac_dir in $ac_x_header_dirs; do
8030 if test -r "$ac_dir/X11/Intrinsic.h"; then
8031 ac_x_includes=$ac_dir
8032 break
8033 fi
8034 done
8035 fi
8036 rm -f conftest.err conftest.$ac_ext
8037 fi # $ac_x_includes = no
8038
8039 if test "$ac_x_libraries" = no; then
8040 # Check for the libraries.
8041 # See if we find them without any special options.
8042 # Don't add to $LIBS permanently.
8043 ac_save_LIBS=$LIBS
8044 LIBS="-lXt $LIBS"
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <X11/Intrinsic.h>
8052 int
8053 main ()
8054 {
8055 XtMalloc (0)
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 LIBS=$ac_save_LIBS
8083 # We can link X programs with no special library path.
8084 ac_x_libraries=
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 LIBS=$ac_save_LIBS
8090 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8091 do
8092 # Don't even attempt the hair of trying to link an X program!
8093 for ac_extension in a so sl; do
8094 if test -r $ac_dir/libXt.$ac_extension; then
8095 ac_x_libraries=$ac_dir
8096 break 2
8097 fi
8098 done
8099 done
8100 fi
8101 rm -f conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi # $ac_x_libraries = no
8104
8105 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8106 # Didn't find X anywhere. Cache the known absence of X.
8107 ac_cv_have_x="have_x=no"
8108 else
8109 # Record where we found X for the cache.
8110 ac_cv_have_x="have_x=yes \
8111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8112 fi
8113 fi
8114
8115 fi
8116 eval "$ac_cv_have_x"
8117 fi # $with_x != no
8118
8119 if test "$have_x" != yes; then
8120 echo "$as_me:$LINENO: result: $have_x" >&5
8121 echo "${ECHO_T}$have_x" >&6
8122 no_x=yes
8123 else
8124 # If each of the values was on the command line, it overrides each guess.
8125 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8126 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8127 # Update the cache value to reflect the command line values.
8128 ac_cv_have_x="have_x=yes \
8129 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8130 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8131 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8132 fi
8133
8134 if test "$no_x" = yes; then
8135 window_system=none
8136 else
8137 window_system=x11
8138 fi
8139
8140 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8141 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8142 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8143 x_default_search_path=""
8144 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8145 x_search_path="\
8146 ${x_library}/X11/%L/%T/%N%C%S:\
8147 ${x_library}/X11/%l/%T/%N%C%S:\
8148 ${x_library}/X11/%T/%N%C%S:\
8149 ${x_library}/X11/%L/%T/%N%S:\
8150 ${x_library}/X11/%l/%T/%N%S:\
8151 ${x_library}/X11/%T/%N%S"
8152 if test x"${x_default_search_path}" = x; then
8153 x_default_search_path=${x_search_path}
8154 else
8155 x_default_search_path="${x_search_path}:${x_default_search_path}"
8156 fi
8157 done
8158 fi
8159 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8160 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8161 fi
8162
8163 if test x"${x_includes}" = x; then
8164 bitmapdir=/usr/include/X11/bitmaps
8165 else
8166 # accumulate include directories that have X11 bitmap subdirectories
8167 bmd_acc="dummyval"
8168 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8169 if test -d "${bmd}/X11/bitmaps"; then
8170 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8171 fi
8172 if test -d "${bmd}/bitmaps"; then
8173 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8174 fi
8175 done
8176 if test ${bmd_acc} != "dummyval"; then
8177 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8178 fi
8179 fi
8180
8181 case "${window_system}" in
8182 x11 )
8183 HAVE_X_WINDOWS=yes
8184 HAVE_X11=yes
8185 case "${with_x_toolkit}" in
8186 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8187 motif ) USE_X_TOOLKIT=MOTIF ;;
8188 gtk ) with_gtk=yes
8189 USE_X_TOOLKIT=none ;;
8190 no ) USE_X_TOOLKIT=none ;;
8191 * ) USE_X_TOOLKIT=maybe ;;
8192 esac
8193 ;;
8194 none )
8195 HAVE_X_WINDOWS=no
8196 HAVE_X11=no
8197 USE_X_TOOLKIT=none
8198 ;;
8199 esac
8200
8201 ### If we're using X11, we should use the X menu package.
8202 HAVE_MENUS=no
8203 case ${HAVE_X11} in
8204 yes ) HAVE_MENUS=yes ;;
8205 esac
8206
8207 if test "${opsys}" = "hpux9"; then
8208 case "${x_libraries}" in
8209 *X11R4* )
8210 opsysfile="s/hpux9-x11r4.h"
8211 ;;
8212 esac
8213 fi
8214
8215 if test "${opsys}" = "hpux9shr"; then
8216 case "${x_libraries}" in
8217 *X11R4* )
8218 opsysfile="s/hpux9shxr4.h"
8219 ;;
8220 esac
8221 fi
8222
8223 ### Compute the unexec source name from the object name.
8224 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8225
8226 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8227 # Assume not, until told otherwise.
8228 GNU_MALLOC=yes
8229 doug_lea_malloc=yes
8230 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8231 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8232 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8243 #define malloc_get_state innocuous_malloc_get_state
8244
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char malloc_get_state (); below.
8247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8248 <limits.h> exists even on freestanding compilers. */
8249
8250 #ifdef __STDC__
8251 # include <limits.h>
8252 #else
8253 # include <assert.h>
8254 #endif
8255
8256 #undef malloc_get_state
8257
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 #ifdef __cplusplus
8260 extern "C"
8261 {
8262 #endif
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8265 char malloc_get_state ();
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8270 choke me
8271 #else
8272 char (*f) () = malloc_get_state;
8273 #endif
8274 #ifdef __cplusplus
8275 }
8276 #endif
8277
8278 int
8279 main ()
8280 {
8281 return f != malloc_get_state;
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag"
8296 || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_func_malloc_get_state=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 ac_cv_func_malloc_get_state=no
8314 fi
8315 rm -f conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 fi
8318 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8319 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8320 if test $ac_cv_func_malloc_get_state = yes; then
8321 :
8322 else
8323 doug_lea_malloc=no
8324 fi
8325
8326 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8327 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8328 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8339 #define malloc_set_state innocuous_malloc_set_state
8340
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char malloc_set_state (); below.
8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 <limits.h> exists even on freestanding compilers. */
8345
8346 #ifdef __STDC__
8347 # include <limits.h>
8348 #else
8349 # include <assert.h>
8350 #endif
8351
8352 #undef malloc_set_state
8353
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 #ifdef __cplusplus
8356 extern "C"
8357 {
8358 #endif
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8361 char malloc_set_state ();
8362 /* The GNU C library defines this for functions which it implements
8363 to always fail with ENOSYS. Some functions are actually named
8364 something starting with __ and the normal name is an alias. */
8365 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8366 choke me
8367 #else
8368 char (*f) () = malloc_set_state;
8369 #endif
8370 #ifdef __cplusplus
8371 }
8372 #endif
8373
8374 int
8375 main ()
8376 {
8377 return f != malloc_set_state;
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_func_malloc_set_state=yes
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_func_malloc_set_state=no
8410 fi
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8415 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8416 if test $ac_cv_func_malloc_set_state = yes; then
8417 :
8418 else
8419 doug_lea_malloc=no
8420 fi
8421
8422 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8423 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8424 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 extern void (* __after_morecore_hook)();
8434 int
8435 main ()
8436 {
8437 __after_morecore_hook = 0
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 emacs_cv_var___after_morecore_hook=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 emacs_cv_var___after_morecore_hook=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 fi
8474 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8475 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8476 if test $emacs_cv_var___after_morecore_hook = no; then
8477 doug_lea_malloc=no
8478 fi
8479 if test "${system_malloc}" = "yes"; then
8480 GNU_MALLOC=no
8481 GNU_MALLOC_reason="
8482 (The GNU allocators don't work with this system configuration.)"
8483 fi
8484 if test "$doug_lea_malloc" = "yes" ; then
8485 if test "$GNU_MALLOC" = yes ; then
8486 GNU_MALLOC_reason="
8487 (Using Doug Lea's new malloc from the GNU C Library.)"
8488 fi
8489
8490 cat >>confdefs.h <<\_ACEOF
8491 #define DOUG_LEA_MALLOC 1
8492 _ACEOF
8493
8494 fi
8495
8496 if test x"${REL_ALLOC}" = x; then
8497 REL_ALLOC=${GNU_MALLOC}
8498 fi
8499
8500
8501
8502
8503 for ac_header in stdlib.h unistd.h
8504 do
8505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 fi
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 else
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 #include <$ac_header>
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_header_compiler=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558 echo "${ECHO_T}$ac_header_compiler" >&6
8559
8560 # Is the header present?
8561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <$ac_header>
8570 _ACEOF
8571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev/null; then
8579 if test -s conftest.err; then
8580 ac_cpp_err=$ac_c_preproc_warn_flag
8581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8582 else
8583 ac_cpp_err=
8584 fi
8585 else
8586 ac_cpp_err=yes
8587 fi
8588 if test -z "$ac_cpp_err"; then
8589 ac_header_preproc=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_header_preproc=no
8595 fi
8596 rm -f conftest.err conftest.$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8599
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8602 yes:no: )
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8607 ac_header_preproc=yes
8608 ;;
8609 no:yes:* )
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8622 (
8623 cat <<\_ASBOX
8624 ## ------------------------------------------ ##
8625 ## Report this to the AC_PACKAGE_NAME lists. ##
8626 ## ------------------------------------------ ##
8627 _ASBOX
8628 ) |
8629 sed "s/^/$as_me: WARNING: /" >&2
8630 ;;
8631 esac
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 eval "$as_ac_Header=\$ac_header_preproc"
8638 fi
8639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641
8642 fi
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646 _ACEOF
8647
8648 fi
8649
8650 done
8651
8652
8653 for ac_func in getpagesize
8654 do
8655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 echo "$as_me:$LINENO: checking for $ac_func" >&5
8657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658 if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8670
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8675
8676 #ifdef __STDC__
8677 # include <limits.h>
8678 #else
8679 # include <assert.h>
8680 #endif
8681
8682 #undef $ac_func
8683
8684 /* Override any gcc2 internal prototype to avoid an error. */
8685 #ifdef __cplusplus
8686 extern "C"
8687 {
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691 char $ac_func ();
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 choke me
8697 #else
8698 char (*f) () = $ac_func;
8699 #endif
8700 #ifdef __cplusplus
8701 }
8702 #endif
8703
8704 int
8705 main ()
8706 {
8707 return f != $ac_func;
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 eval "$as_ac_var=no"
8740 fi
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 fi
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752 done
8753
8754 echo "$as_me:$LINENO: checking for working mmap" >&5
8755 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8756 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 if test "$cross_compiling" = yes; then
8760 ac_cv_func_mmap_fixed_mapped=no
8761 else
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 /* malloc might have been renamed as rpl_malloc. */
8770 #undef malloc
8771
8772 /* Thanks to Mike Haertel and Jim Avera for this test.
8773 Here is a matrix of mmap possibilities:
8774 mmap private not fixed
8775 mmap private fixed at somewhere currently unmapped
8776 mmap private fixed at somewhere already mapped
8777 mmap shared not fixed
8778 mmap shared fixed at somewhere currently unmapped
8779 mmap shared fixed at somewhere already mapped
8780 For private mappings, we should verify that changes cannot be read()
8781 back from the file, nor mmap's back from the file at a different
8782 address. (There have been systems where private was not correctly
8783 implemented like the infamous i386 svr4.0, and systems where the
8784 VM page cache was not coherent with the file system buffer cache
8785 like early versions of FreeBSD and possibly contemporary NetBSD.)
8786 For shared mappings, we should conversely verify that changes get
8787 propagated back to all the places they're supposed to be.
8788
8789 Grep wants private fixed already mapped.
8790 The main things grep needs to know about mmap are:
8791 * does it exist and is it safe to write into the mmap'd area
8792 * how to use it (BSD variants) */
8793
8794 #include <fcntl.h>
8795 #include <sys/mman.h>
8796
8797 #if !STDC_HEADERS && !HAVE_STDLIB_H
8798 char *malloc ();
8799 #endif
8800
8801 /* This mess was copied from the GNU getpagesize.h. */
8802 #if !HAVE_GETPAGESIZE
8803 /* Assume that all systems that can run configure have sys/param.h. */
8804 # if !HAVE_SYS_PARAM_H
8805 # define HAVE_SYS_PARAM_H 1
8806 # endif
8807
8808 # ifdef _SC_PAGESIZE
8809 # define getpagesize() sysconf(_SC_PAGESIZE)
8810 # else /* no _SC_PAGESIZE */
8811 # if HAVE_SYS_PARAM_H
8812 # include <sys/param.h>
8813 # ifdef EXEC_PAGESIZE
8814 # define getpagesize() EXEC_PAGESIZE
8815 # else /* no EXEC_PAGESIZE */
8816 # ifdef NBPG
8817 # define getpagesize() NBPG * CLSIZE
8818 # ifndef CLSIZE
8819 # define CLSIZE 1
8820 # endif /* no CLSIZE */
8821 # else /* no NBPG */
8822 # ifdef NBPC
8823 # define getpagesize() NBPC
8824 # else /* no NBPC */
8825 # ifdef PAGESIZE
8826 # define getpagesize() PAGESIZE
8827 # endif /* PAGESIZE */
8828 # endif /* no NBPC */
8829 # endif /* no NBPG */
8830 # endif /* no EXEC_PAGESIZE */
8831 # else /* no HAVE_SYS_PARAM_H */
8832 # define getpagesize() 8192 /* punt totally */
8833 # endif /* no HAVE_SYS_PARAM_H */
8834 # endif /* no _SC_PAGESIZE */
8835
8836 #endif /* no HAVE_GETPAGESIZE */
8837
8838 int
8839 main ()
8840 {
8841 char *data, *data2, *data3;
8842 int i, pagesize;
8843 int fd;
8844
8845 pagesize = getpagesize ();
8846
8847 /* First, make a file with some known garbage in it. */
8848 data = (char *) malloc (pagesize);
8849 if (!data)
8850 exit (1);
8851 for (i = 0; i < pagesize; ++i)
8852 *(data + i) = rand ();
8853 umask (0);
8854 fd = creat ("conftest.mmap", 0600);
8855 if (fd < 0)
8856 exit (1);
8857 if (write (fd, data, pagesize) != pagesize)
8858 exit (1);
8859 close (fd);
8860
8861 /* Next, try to mmap the file at a fixed address which already has
8862 something else allocated at it. If we can, also make sure that
8863 we see the same garbage. */
8864 fd = open ("conftest.mmap", O_RDWR);
8865 if (fd < 0)
8866 exit (1);
8867 data2 = (char *) malloc (2 * pagesize);
8868 if (!data2)
8869 exit (1);
8870 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8873 exit (1);
8874 for (i = 0; i < pagesize; ++i)
8875 if (*(data + i) != *(data2 + i))
8876 exit (1);
8877
8878 /* Finally, make sure that changes to the mapped area do not
8879 percolate back to the file as seen by read(). (This is a bug on
8880 some variants of i386 svr4.0.) */
8881 for (i = 0; i < pagesize; ++i)
8882 *(data2 + i) = *(data2 + i) + 1;
8883 data3 = (char *) malloc (pagesize);
8884 if (!data3)
8885 exit (1);
8886 if (read (fd, data3, pagesize) != pagesize)
8887 exit (1);
8888 for (i = 0; i < pagesize; ++i)
8889 if (*(data + i) != *(data3 + i))
8890 exit (1);
8891 close (fd);
8892 exit (0);
8893 }
8894 _ACEOF
8895 rm -f conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_func_mmap_fixed_mapped=yes
8907 else
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ( exit $ac_status )
8913 ac_cv_func_mmap_fixed_mapped=no
8914 fi
8915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8919 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_MMAP 1
8924 _ACEOF
8925
8926 fi
8927 rm -f conftest.mmap
8928
8929 if test $use_mmap_for_buffers = yes; then
8930 REL_ALLOC=no
8931 fi
8932
8933 LIBS="$libsrc_libs $LIBS"
8934
8935
8936 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8937 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-ldnet $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char dnet_ntoa ();
8957 int
8958 main ()
8959 {
8960 dnet_ntoa ();
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dnet_dnet_ntoa=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_lib_dnet_dnet_ntoa=no
8993 fi
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define HAVE_LIBDNET 1
9003 _ACEOF
9004
9005 LIBS="-ldnet $LIBS"
9006
9007 fi
9008
9009
9010 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9011 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9012 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lXbsd $LIBS"
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023
9024
9025 int
9026 main ()
9027 {
9028 main ();
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_Xbsd_main=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_cv_lib_Xbsd_main=no
9061 fi
9062 rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9068 if test $ac_cv_lib_Xbsd_main = yes; then
9069 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9070 fi
9071
9072
9073
9074 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9075 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9076 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 ac_check_lib_save_LIBS=$LIBS
9080 LIBS="-lpthreads $LIBS"
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087
9088 /* Override any gcc2 internal prototype to avoid an error. */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9094 char cma_open ();
9095 int
9096 main ()
9097 {
9098 cma_open ();
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 ac_cv_lib_pthreads_cma_open=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_lib_pthreads_cma_open=no
9131 fi
9132 rm -f conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 LIBS=$ac_check_lib_save_LIBS
9135 fi
9136 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9137 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9138 if test $ac_cv_lib_pthreads_cma_open = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_LIBPTHREADS 1
9141 _ACEOF
9142
9143 LIBS="-lpthreads $LIBS"
9144
9145 fi
9146
9147
9148 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9149 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9150 if test -d /usr/X386/include; then
9151 HAVE_XFREE386=yes
9152 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9153 else
9154 HAVE_XFREE386=no
9155 fi
9156 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9157 echo "${ECHO_T}$HAVE_XFREE386" >&6
9158
9159
9160 case ${host_os} in
9161 aix*)
9162 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9163 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9164 if test "${gdb_cv_bigtoc+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167
9168 case $GCC in
9169 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9170 *) gdb_cv_bigtoc=-bbigtoc ;;
9171 esac
9172
9173 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180
9181 int
9182 main ()
9183 {
9184 int i;
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 :
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 gdb_cv_bigtoc=
9217 fi
9218 rm -f conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220
9221 fi
9222 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9223 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9224 ;;
9225 esac
9226
9227 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9228 # used for the tests that follow. We set them back to REAL_CFLAGS and
9229 # REAL_CPPFLAGS later on.
9230
9231 REAL_CPPFLAGS="$CPPFLAGS"
9232
9233 if test "${HAVE_X11}" = "yes"; then
9234 DEFS="$C_SWITCH_X_SITE $DEFS"
9235 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9236 LIBS="$LIBX $LIBS"
9237 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9238 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9239
9240 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9241 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9242 # but it's more convenient here to set LD_RUN_PATH
9243 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9244 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9245 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9246 export LD_RUN_PATH
9247 fi
9248
9249 if test "${opsys}" = "gnu-linux"; then
9250 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9251 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258
9259 int
9260 main ()
9261 {
9262 XOpenDisplay ("foo");
9263 ;
9264 return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag"
9277 || test ! -s conftest.err'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; } &&
9283 { ac_try='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 xlinux_first_failure=no
9290 else
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294 xlinux_first_failure=yes
9295 fi
9296 rm -f conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 if test "${xlinux_first_failure}" = "yes"; then
9299 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9300 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9301 OLD_CPPFLAGS="$CPPFLAGS"
9302 OLD_LIBS="$LIBS"
9303 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9304 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9305 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9306 LIBS="$LIBS -b i486-linuxaout"
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313
9314 int
9315 main ()
9316 {
9317 XOpenDisplay ("foo");
9318 ;
9319 return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 xlinux_second_failure=no
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 xlinux_second_failure=yes
9350 fi
9351 rm -f conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 if test "${xlinux_second_failure}" = "yes"; then
9354 # If we get the same failure with -b, there is no use adding -b.
9355 # So take it out. This plays safe.
9356 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9357 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9358 CPPFLAGS="$OLD_CPPFLAGS"
9359 LIBS="$OLD_LIBS"
9360 echo "$as_me:$LINENO: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9362 else
9363 echo "$as_me:$LINENO: result: yes" >&5
9364 echo "${ECHO_T}yes" >&6
9365 fi
9366 else
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9369 fi
9370 fi
9371
9372 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9373 # header files included from there.
9374 echo "$as_me:$LINENO: checking for Xkb" >&5
9375 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <X11/Xlib.h>
9383 #include <X11/XKBlib.h>
9384 int
9385 main ()
9386 {
9387 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 emacs_xkb=yes
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 emacs_xkb=no
9420 fi
9421 rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9424 echo "${ECHO_T}$emacs_xkb" >&6
9425 if test $emacs_xkb = yes; then
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_XKBGETKEYBOARD 1
9429 _ACEOF
9430
9431 fi
9432
9433
9434
9435
9436
9437 for ac_func in XrmSetDatabase XScreenResourceString \
9438 XScreenNumberOfScreen XSetWMProtocols
9439 do
9440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9441 echo "$as_me:$LINENO: checking for $ac_func" >&5
9442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_var+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9454 #define $ac_func innocuous_$ac_func
9455
9456 /* System header to define __stub macros and hopefully few prototypes,
9457 which can conflict with char $ac_func (); below.
9458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9459 <limits.h> exists even on freestanding compilers. */
9460
9461 #ifdef __STDC__
9462 # include <limits.h>
9463 #else
9464 # include <assert.h>
9465 #endif
9466
9467 #undef $ac_func
9468
9469 /* Override any gcc2 internal prototype to avoid an error. */
9470 #ifdef __cplusplus
9471 extern "C"
9472 {
9473 #endif
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9476 char $ac_func ();
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9481 choke me
9482 #else
9483 char (*f) () = $ac_func;
9484 #endif
9485 #ifdef __cplusplus
9486 }
9487 #endif
9488
9489 int
9490 main ()
9491 {
9492 return f != $ac_func;
9493 ;
9494 return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -z "$ac_c_werror_flag"
9507 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 eval "$as_ac_var=yes"
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524 eval "$as_ac_var=no"
9525 fi
9526 rm -f conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 fi
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9531 if test `eval echo '${'$as_ac_var'}'` = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9534 _ACEOF
9535
9536 fi
9537 done
9538
9539 fi
9540
9541 if test "${window_system}" = "x11"; then
9542 echo "$as_me:$LINENO: checking X11 version 6" >&5
9543 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9544 if test "${emacs_cv_x11_version_6+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <X11/Xlib.h>
9554 int
9555 main ()
9556 {
9557 #if XlibSpecificationRelease < 6
9558 fail;
9559 #endif
9560
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 emacs_cv_x11_version_6=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 emacs_cv_x11_version_6=no
9593 fi
9594 rm -f conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi
9597
9598 if test $emacs_cv_x11_version_6 = yes; then
9599 echo "$as_me:$LINENO: result: 6 or newer" >&5
9600 echo "${ECHO_T}6 or newer" >&6
9601
9602 cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_X11R6 1
9604 _ACEOF
9605
9606 else
9607 echo "$as_me:$LINENO: result: before 6" >&5
9608 echo "${ECHO_T}before 6" >&6
9609 fi
9610 fi
9611
9612 if test "${window_system}" = "x11"; then
9613 echo "$as_me:$LINENO: checking X11 version 5" >&5
9614 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9615 if test "${emacs_cv_x11_version_5+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <X11/Xlib.h>
9625 int
9626 main ()
9627 {
9628 #if XlibSpecificationRelease < 5
9629 fail;
9630 #endif
9631
9632 ;
9633 return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 emacs_cv_x11_version_5=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 emacs_cv_x11_version_5=no
9664 fi
9665 rm -f conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 fi
9668
9669 if test $emacs_cv_x11_version_5 = yes; then
9670 echo "$as_me:$LINENO: result: 5 or newer" >&5
9671 echo "${ECHO_T}5 or newer" >&6
9672 HAVE_X11R5=yes
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_X11R5 1
9676 _ACEOF
9677
9678 else
9679 HAVE_X11R5=no
9680 echo "$as_me:$LINENO: result: before 5" >&5
9681 echo "${ECHO_T}before 5" >&6
9682 fi
9683 fi
9684
9685
9686
9687 HAVE_GTK=no
9688 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9689 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9690 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9691 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9692 { (exit 1); exit 1; }; };
9693 fi
9694 GLIB_REQUIRED=2.0.1
9695 GTK_REQUIRED=2.0.1
9696 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9697
9698 if test "X${with_pkg_config_prog}" != X; then
9699 PKG_CONFIG="${with_pkg_config_prog}"
9700 fi
9701
9702 succeeded=no
9703
9704 if test -z "$PKG_CONFIG"; then
9705 # Extract the first word of "pkg-config", so it can be a program name with args.
9706 set dummy pkg-config; ac_word=$2
9707 echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 case $PKG_CONFIG in
9713 [\\/]* | ?:[\\/]*)
9714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9715 ;;
9716 *)
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9727 fi
9728 done
9729 done
9730
9731 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9732 ;;
9733 esac
9734 fi
9735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9736
9737 if test -n "$PKG_CONFIG"; then
9738 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9739 echo "${ECHO_T}$PKG_CONFIG" >&6
9740 else
9741 echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9743 fi
9744
9745 fi
9746
9747 if test "$PKG_CONFIG" = "no" ; then
9748 echo "*** The pkg-config script could not be found. Make sure it is"
9749 echo "*** in your path, or give the full path to pkg-config with"
9750 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9751 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9752 else
9753 PKG_CONFIG_MIN_VERSION=0.9.0
9754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9755 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9756 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9757
9758 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${ECHO_T}yes" >&6
9761 succeeded=yes
9762
9763 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9764 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9765 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9766 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9767 echo "${ECHO_T}$GTK_CFLAGS" >&6
9768
9769 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9770 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9771 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9772 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9773 echo "${ECHO_T}$GTK_LIBS" >&6
9774 else
9775 GTK_CFLAGS=""
9776 GTK_LIBS=""
9777 ## If we have a custom action on failure, don't print errors, but
9778 ## do set a variable so people can do so.
9779 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9780 echo $GTK_PKG_ERRORS
9781 fi
9782
9783
9784
9785 else
9786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9788 fi
9789 fi
9790
9791 if test $succeeded = yes; then
9792 :
9793 else
9794 { { 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
9795 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;}
9796 { (exit 1); exit 1; }; }
9797 fi
9798
9799
9800
9801 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS="$CFLAGS $GTK_CFLAGS"
9803 LIBS="$GTK_LIBS $LIBS"
9804 HAVE_GTK=yes
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_GTK 1
9808 _ACEOF
9809
9810 USE_X_TOOLKIT=none
9811
9812 with_toolkit_scroll_bars=yes
9813
9814 HAVE_GTK_MULTIDISPLAY=no
9815
9816 for ac_func in gdk_display_open
9817 do
9818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9819 echo "$as_me:$LINENO: checking for $ac_func" >&5
9820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_var+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9832 #define $ac_func innocuous_$ac_func
9833
9834 /* System header to define __stub macros and hopefully few prototypes,
9835 which can conflict with char $ac_func (); below.
9836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9837 <limits.h> exists even on freestanding compilers. */
9838
9839 #ifdef __STDC__
9840 # include <limits.h>
9841 #else
9842 # include <assert.h>
9843 #endif
9844
9845 #undef $ac_func
9846
9847 /* Override any gcc2 internal prototype to avoid an error. */
9848 #ifdef __cplusplus
9849 extern "C"
9850 {
9851 #endif
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9854 char $ac_func ();
9855 /* The GNU C library defines this for functions which it implements
9856 to always fail with ENOSYS. Some functions are actually named
9857 something starting with __ and the normal name is an alias. */
9858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9859 choke me
9860 #else
9861 char (*f) () = $ac_func;
9862 #endif
9863 #ifdef __cplusplus
9864 }
9865 #endif
9866
9867 int
9868 main ()
9869 {
9870 return f != $ac_func;
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 eval "$as_ac_var=yes"
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 eval "$as_ac_var=no"
9903 fi
9904 rm -f conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 fi
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9909 if test `eval echo '${'$as_ac_var'}'` = yes; then
9910 cat >>confdefs.h <<_ACEOF
9911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9912 _ACEOF
9913 HAVE_GTK_MULTIDISPLAY=yes
9914 fi
9915 done
9916
9917 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_GTK_MULTIDISPLAY 1
9921 _ACEOF
9922
9923 fi
9924 fi
9925
9926 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9927 if test x"${HAVE_X11R5}" = xyes; then
9928 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9929 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9930 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939
9940 #include <X11/Intrinsic.h>
9941 #include <X11/Xaw/Simple.h>
9942 int
9943 main ()
9944 {
9945
9946 ;
9947 return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 emacs_cv_x11_version_5_with_xaw=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 emacs_cv_x11_version_5_with_xaw=no
9978 fi
9979 rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 fi
9982
9983 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9984 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9985 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9986 USE_X_TOOLKIT=LUCID
9987 else
9988 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9989 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9990 USE_X_TOOLKIT=none
9991 fi
9992 else
9993 USE_X_TOOLKIT=none
9994 fi
9995 fi
9996
9997 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9998
9999 if test "${USE_X_TOOLKIT}" != "none"; then
10000 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10001 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10002 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <X11/Intrinsic.h>
10012 int
10013 main ()
10014 {
10015 #if XtSpecificationRelease < 6
10016 fail;
10017 #endif
10018
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 emacs_cv_x11_toolkit_version_6=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 emacs_cv_x11_toolkit_version_6=no
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 fi
10055
10056 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10057 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10058 echo "$as_me:$LINENO: result: 6 or newer" >&5
10059 echo "${ECHO_T}6 or newer" >&6
10060
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_X11XTR6 1
10063 _ACEOF
10064
10065 else
10066 echo "$as_me:$LINENO: result: before 6" >&5
10067 echo "${ECHO_T}before 6" >&6
10068 fi
10069
10070 OLDLIBS="$LIBS"
10071 if test x$HAVE_X11XTR6 = xyes; then
10072 LIBS="-lXt -lSM -lICE $LIBS"
10073 else
10074 LIBS="-lXt $LIBS"
10075 fi
10076
10077 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10078 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10079 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lXmu $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090
10091 /* Override any gcc2 internal prototype to avoid an error. */
10092 #ifdef __cplusplus
10093 extern "C"
10094 #endif
10095 /* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10097 char XmuConvertStandardSelection ();
10098 int
10099 main ()
10100 {
10101 XmuConvertStandardSelection ();
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag"
10116 || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10129 else
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10134 fi
10135 rm -f conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10138 fi
10139 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10140 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10141 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_LIBXMU 1
10144 _ACEOF
10145
10146 LIBS="-lXmu $LIBS"
10147
10148 fi
10149
10150 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10151 fi
10152
10153 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10154 if test "${HAVE_X11}" = "yes"; then
10155 if test "${USE_X_TOOLKIT}" != "none"; then
10156
10157 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10158 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10159 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lXext $LIBS"
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170
10171 /* Override any gcc2 internal prototype to avoid an error. */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10177 char XShapeQueryExtension ();
10178 int
10179 main ()
10180 {
10181 XShapeQueryExtension ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_Xext_XShapeQueryExtension=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_lib_Xext_XShapeQueryExtension=no
10214 fi
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10220 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10221 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_LIBXEXT 1
10224 _ACEOF
10225
10226 LIBS="-lXext $LIBS"
10227
10228 fi
10229
10230 fi
10231 fi
10232
10233 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10234 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10235 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10236 if test "${emacs_cv_lesstif+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 # We put this in CFLAGS temporarily to precede other -I options
10240 # that might be in CFLAGS temporarily.
10241 # We put this in CPPFLAGS where it precedes the other -I options.
10242 OLD_CPPFLAGS=$CPPFLAGS
10243 OLD_CFLAGS=$CFLAGS
10244 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10245 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10253 int
10254 main ()
10255 {
10256 int x = 5;
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 emacs_cv_lesstif=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288 emacs_cv_lesstif=no
10289 fi
10290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10291 fi
10292 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10293 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10294 if test $emacs_cv_lesstif = yes; then
10295 # Make sure this -I option remains in CPPFLAGS after it is set
10296 # back to REAL_CPPFLAGS.
10297 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10298 # have those other -I options anyway. Ultimately, having this
10299 # directory ultimately in CPPFLAGS will be enough.
10300 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10301 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10302 else
10303 CFLAGS=$OLD_CFLAGS
10304 CPPFLAGS=$OLD_CPPFLAGS
10305 fi
10306 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10307 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10308 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h. */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 #include <Xm/Xm.h>
10318 int
10319 main ()
10320 {
10321 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10322 int x = 5;
10323 #else
10324 Motif version prior to 2.1.
10325 #endif
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 emacs_cv_motif_version_2_1=yes
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 emacs_cv_motif_version_2_1=no
10358 fi
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10362 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10363 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10364 if test $emacs_cv_motif_version_2_1 = yes; then
10365 HAVE_LIBXP=no
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_MOTIF_2_1 1
10369 _ACEOF
10370
10371 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10372 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10373 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 ac_check_lib_save_LIBS=$LIBS
10377 LIBS="-lXp $LIBS"
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384
10385 /* Override any gcc2 internal prototype to avoid an error. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10391 char XpCreateContext ();
10392 int
10393 main ()
10394 {
10395 XpCreateContext ();
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_lib_Xp_XpCreateContext=yes
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_lib_Xp_XpCreateContext=no
10428 fi
10429 rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10434 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10435 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10436 HAVE_LIBXP=yes
10437 fi
10438
10439 if test ${HAVE_LIBXP} = yes; then
10440
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_LIBXP 1
10443 _ACEOF
10444
10445 fi
10446 fi
10447 fi
10448
10449 ### Is -lXaw3d available?
10450 HAVE_XAW3D=no
10451 if test "${HAVE_X11}" = "yes"; then
10452 if test "${USE_X_TOOLKIT}" != "none"; then
10453 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10454 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10455 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 #include <X11/Xaw3d/Scrollbar.h>
10465 _ACEOF
10466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } >/dev/null; then
10474 if test -s conftest.err; then
10475 ac_cpp_err=$ac_c_preproc_warn_flag
10476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10477 else
10478 ac_cpp_err=
10479 fi
10480 else
10481 ac_cpp_err=yes
10482 fi
10483 if test -z "$ac_cpp_err"; then
10484 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10485 else
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10490 fi
10491 rm -f conftest.err conftest.$ac_ext
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10494 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10495 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10496 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10497 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10498 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lXaw3d $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char XawScrollbarSetThumb ();
10517 int
10518 main ()
10519 {
10520 XawScrollbarSetThumb ();
10521 ;
10522 return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10553 fi
10554 rm -f conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10557 fi
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10559 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10560 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10561 HAVE_XAW3D=yes
10562 fi
10563
10564 fi
10565
10566
10567 if test "${HAVE_XAW3D}" = "yes"; then
10568
10569 cat >>confdefs.h <<\_ACEOF
10570 #define HAVE_XAW3D 1
10571 _ACEOF
10572
10573 fi
10574 fi
10575 fi
10576
10577
10578
10579 USE_TOOLKIT_SCROLL_BARS=no
10580 if test "${with_toolkit_scroll_bars}" != "no"; then
10581 if test "${USE_X_TOOLKIT}" != "none"; then
10582 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10583 cat >>confdefs.h <<\_ACEOF
10584 #define USE_TOOLKIT_SCROLL_BARS 1
10585 _ACEOF
10586
10587 HAVE_XAW3D=no
10588 USE_TOOLKIT_SCROLL_BARS=yes
10589 elif test "${HAVE_XAW3D}" = "yes"; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define USE_TOOLKIT_SCROLL_BARS 1
10592 _ACEOF
10593
10594 USE_TOOLKIT_SCROLL_BARS=yes
10595 fi
10596 elif test "${HAVE_GTK}" = "yes"; then
10597 cat >>confdefs.h <<\_ACEOF
10598 #define USE_TOOLKIT_SCROLL_BARS 1
10599 _ACEOF
10600
10601 USE_TOOLKIT_SCROLL_BARS=yes
10602 fi
10603 fi
10604
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611
10612 #include <X11/Xlib.h>
10613 #include <X11/Xresource.h>
10614 int
10615 main ()
10616 {
10617 XIMProc callback;
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>conftest.er1
10625 ac_status=$?
10626 grep -v '^ *+' conftest.er1 >conftest.err
10627 rm -f conftest.er1
10628 cat conftest.err >&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try='test -z "$ac_c_werror_flag"
10632 || test ! -s conftest.err'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try='test -s conftest.$ac_objext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 HAVE_XIM=yes
10645
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_XIM 1
10648 _ACEOF
10649
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 HAVE_XIM=no
10655 fi
10656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10657
10658
10659 if test "${with_xim}" != "no"; then
10660
10661 cat >>confdefs.h <<\_ACEOF
10662 #define USE_XIM 1
10663 _ACEOF
10664
10665 fi
10666
10667
10668 if test "${HAVE_XIM}" != "no"; then
10669 late_CFLAGS=$CFLAGS
10670 if test "$GCC" = yes; then
10671 CFLAGS="$CFLAGS --pedantic-errors"
10672 fi
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679
10680 #include <X11/Xlib.h>
10681 #include <X11/Xresource.h>
10682 int
10683 main ()
10684 {
10685 Display *display;
10686 XrmDatabase db;
10687 char *res_name;
10688 char *res_class;
10689 XIMProc callback;
10690 XPointer *client_data;
10691 #ifndef __GNUC__
10692 /* If we're not using GCC, it's probably not XFree86, and this is
10693 probably right, but we can't use something like --pedantic-errors. */
10694 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10695 char*, XIMProc, XPointer*);
10696 #endif
10697 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10698 client_data);
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 emacs_cv_arg6_star=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 fi
10731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732
10733 if test "$emacs_cv_arg6_star" = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10736 _ACEOF
10737
10738 else
10739 cat >>confdefs.h <<\_ACEOF
10740 #define XRegisterIMInstantiateCallback_arg6 XPointer
10741 _ACEOF
10742
10743 fi
10744 CFLAGS=$late_CFLAGS
10745 fi
10746
10747 ### Use -lXpm if available, unless `--with-xpm=no'.
10748 HAVE_XPM=no
10749 if test "${HAVE_X11}" = "yes"; then
10750 if test "${with_xpm}" != "no"; then
10751 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10752 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10753 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10754 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 fi
10757 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10758 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10759 else
10760 # Is the header compilable?
10761 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10762 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 #include <X11/xpm.h>
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag"
10782 || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_header_compiler=no
10800 fi
10801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 echo "${ECHO_T}$ac_header_compiler" >&6
10804
10805 # Is the header present?
10806 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10807 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/xpm.h>
10815 _ACEOF
10816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev/null; then
10824 if test -s conftest.err; then
10825 ac_cpp_err=$ac_c_preproc_warn_flag
10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827 else
10828 ac_cpp_err=
10829 fi
10830 else
10831 ac_cpp_err=yes
10832 fi
10833 if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_header_preproc=no
10840 fi
10841 rm -f conftest.err conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6
10844
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 yes:no: )
10848 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10853 ;;
10854 no:yes:* )
10855 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10867 (
10868 cat <<\_ASBOX
10869 ## ------------------------------------------ ##
10870 ## Report this to the AC_PACKAGE_NAME lists. ##
10871 ## ------------------------------------------ ##
10872 _ASBOX
10873 ) |
10874 sed "s/^/$as_me: WARNING: /" >&2
10875 ;;
10876 esac
10877 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10878 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10879 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882 ac_cv_header_X11_xpm_h=$ac_header_preproc
10883 fi
10884 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10885 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10886
10887 fi
10888 if test $ac_cv_header_X11_xpm_h = yes; then
10889 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10890 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10891 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-lXpm -lX11 $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10909 char XpmReadFileToPixmap ();
10910 int
10911 main ()
10912 {
10913 XpmReadFileToPixmap ();
10914 ;
10915 return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920 (eval $ac_link) 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10946 fi
10947 rm -f conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949 LIBS=$ac_check_lib_save_LIBS
10950 fi
10951 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10952 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10953 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10954 HAVE_XPM=yes
10955 fi
10956
10957 fi
10958
10959
10960 if test "${HAVE_XPM}" = "yes"; then
10961 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10962 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 #include "X11/xpm.h"
10970 #ifndef XpmReturnAllocPixels
10971 no_return_alloc_pixels
10972 #endif
10973
10974 _ACEOF
10975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10976 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10977 HAVE_XPM=no
10978 else
10979 HAVE_XPM=yes
10980 fi
10981 rm -f conftest*
10982
10983
10984 if test "${HAVE_XPM}" = "yes"; then
10985 echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6
10987 else
10988 echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10990 fi
10991 fi
10992 fi
10993
10994 if test "${HAVE_XPM}" = "yes"; then
10995
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_XPM 1
10998 _ACEOF
10999
11000 fi
11001 fi
11002
11003 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11004 HAVE_JPEG=no
11005 if test "${HAVE_X11}" = "yes"; then
11006 if test "${with_jpeg}" != "no"; then
11007 if test "${ac_cv_header_jerror_h+set}" = set; then
11008 echo "$as_me:$LINENO: checking for jerror.h" >&5
11009 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11010 if test "${ac_cv_header_jerror_h+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 fi
11013 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11014 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11015 else
11016 # Is the header compilable?
11017 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11018 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <jerror.h>
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_header_compiler=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_header_compiler=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6
11060
11061 # Is the header present?
11062 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11063 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <jerror.h>
11071 _ACEOF
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083 else
11084 ac_cpp_err=
11085 fi
11086 else
11087 ac_cpp_err=yes
11088 fi
11089 if test -z "$ac_cpp_err"; then
11090 ac_header_preproc=yes
11091 else
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_header_preproc=no
11096 fi
11097 rm -f conftest.err conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11099 echo "${ECHO_T}$ac_header_preproc" >&6
11100
11101 # So? What about this header?
11102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11103 yes:no: )
11104 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11105 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11107 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11108 ac_header_preproc=yes
11109 ;;
11110 no:yes:* )
11111 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11112 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11114 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11116 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11118 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11120 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11122 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11123 (
11124 cat <<\_ASBOX
11125 ## ------------------------------------------ ##
11126 ## Report this to the AC_PACKAGE_NAME lists. ##
11127 ## ------------------------------------------ ##
11128 _ASBOX
11129 ) |
11130 sed "s/^/$as_me: WARNING: /" >&2
11131 ;;
11132 esac
11133 echo "$as_me:$LINENO: checking for jerror.h" >&5
11134 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11135 if test "${ac_cv_header_jerror_h+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 ac_cv_header_jerror_h=$ac_header_preproc
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11141 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11142
11143 fi
11144 if test $ac_cv_header_jerror_h = yes; then
11145 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11146 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11147 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-ljpeg $LIBS"
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158
11159 /* Override any gcc2 internal prototype to avoid an error. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char jpeg_destroy_compress ();
11166 int
11167 main ()
11168 {
11169 jpeg_destroy_compress ();
11170 ;
11171 return 0;
11172 }
11173 _ACEOF
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11202 fi
11203 rm -f conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11206 fi
11207 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11208 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11209 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11210 HAVE_JPEG=yes
11211 fi
11212
11213 fi
11214
11215
11216 fi
11217
11218
11219 if test "${HAVE_JPEG}" = "yes"; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define HAVE_JPEG 1
11222 _ACEOF
11223
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h. */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 #include <jpeglib.h>
11231 version=JPEG_LIB_VERSION
11232
11233 _ACEOF
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_JPEG 1
11238 _ACEOF
11239
11240 else
11241 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11242 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11243 HAVE_JPEG=no
11244 fi
11245 rm -f conftest*
11246
11247 fi
11248 fi
11249
11250 ### Use -lpng if available, unless `--with-png=no'.
11251 HAVE_PNG=no
11252 if test "${HAVE_X11}" = "yes"; then
11253 if test "${with_png}" != "no"; then
11254 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11255 # in /usr/include/libpng.
11256
11257
11258 for ac_header in png.h libpng/png.h
11259 do
11260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11262 echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 fi
11267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11269 else
11270 # Is the header compilable?
11271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 #include <$ac_header>
11281 _ACEOF
11282 rm -f conftest.$ac_objext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11284 (eval $ac_compile) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_header_compiler=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 ac_header_compiler=no
11310 fi
11311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11313 echo "${ECHO_T}$ac_header_compiler" >&6
11314
11315 # Is the header present?
11316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <$ac_header>
11325 _ACEOF
11326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } >/dev/null; then
11334 if test -s conftest.err; then
11335 ac_cpp_err=$ac_c_preproc_warn_flag
11336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11337 else
11338 ac_cpp_err=
11339 fi
11340 else
11341 ac_cpp_err=yes
11342 fi
11343 if test -z "$ac_cpp_err"; then
11344 ac_header_preproc=yes
11345 else
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349 ac_header_preproc=no
11350 fi
11351 rm -f conftest.err conftest.$ac_ext
11352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11353 echo "${ECHO_T}$ac_header_preproc" >&6
11354
11355 # So? What about this header?
11356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 yes:no: )
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11362 ac_header_preproc=yes
11363 ;;
11364 no:yes:* )
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11377 (
11378 cat <<\_ASBOX
11379 ## ------------------------------------------ ##
11380 ## Report this to the AC_PACKAGE_NAME lists. ##
11381 ## ------------------------------------------ ##
11382 _ASBOX
11383 ) |
11384 sed "s/^/$as_me: WARNING: /" >&2
11385 ;;
11386 esac
11387 echo "$as_me:$LINENO: checking for $ac_header" >&5
11388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392 eval "$as_ac_Header=\$ac_header_preproc"
11393 fi
11394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11396
11397 fi
11398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11399 cat >>confdefs.h <<_ACEOF
11400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11401 _ACEOF
11402
11403 fi
11404
11405 done
11406
11407 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11408 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11409 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11410 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-lpng -lz -lm $LIBS"
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421
11422 /* Override any gcc2 internal prototype to avoid an error. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11428 char png_get_channels ();
11429 int
11430 main ()
11431 {
11432 png_get_channels ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_lib_png_png_get_channels=yes
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 ac_cv_lib_png_png_get_channels=no
11465 fi
11466 rm -f conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11471 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11472 if test $ac_cv_lib_png_png_get_channels = yes; then
11473 HAVE_PNG=yes
11474 fi
11475
11476 fi
11477 fi
11478
11479 if test "${HAVE_PNG}" = "yes"; then
11480
11481 cat >>confdefs.h <<\_ACEOF
11482 #define HAVE_PNG 1
11483 _ACEOF
11484
11485 fi
11486 fi
11487
11488 ### Use -ltiff if available, unless `--with-tiff=no'.
11489 HAVE_TIFF=no
11490 if test "${HAVE_X11}" = "yes"; then
11491 if test "${with_tiff}" != "no"; then
11492 if test "${ac_cv_header_tiffio_h+set}" = set; then
11493 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11494 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11495 if test "${ac_cv_header_tiffio_h+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 fi
11498 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11499 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11500 else
11501 # Is the header compilable?
11502 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11503 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <tiffio.h>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_header_compiler=yes
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 ac_header_compiler=no
11541 fi
11542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11544 echo "${ECHO_T}$ac_header_compiler" >&6
11545
11546 # Is the header present?
11547 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11548 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #include <tiffio.h>
11556 _ACEOF
11557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } >/dev/null; then
11565 if test -s conftest.err; then
11566 ac_cpp_err=$ac_c_preproc_warn_flag
11567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11568 else
11569 ac_cpp_err=
11570 fi
11571 else
11572 ac_cpp_err=yes
11573 fi
11574 if test -z "$ac_cpp_err"; then
11575 ac_header_preproc=yes
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 ac_header_preproc=no
11581 fi
11582 rm -f conftest.err conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6
11585
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 yes:no: )
11589 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11594 ;;
11595 no:yes:* )
11596 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11608 (
11609 cat <<\_ASBOX
11610 ## ------------------------------------------ ##
11611 ## Report this to the AC_PACKAGE_NAME lists. ##
11612 ## ------------------------------------------ ##
11613 _ASBOX
11614 ) |
11615 sed "s/^/$as_me: WARNING: /" >&2
11616 ;;
11617 esac
11618 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11619 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11620 if test "${ac_cv_header_tiffio_h+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 ac_cv_header_tiffio_h=$ac_header_preproc
11624 fi
11625 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11626 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11627
11628 fi
11629 if test $ac_cv_header_tiffio_h = yes; then
11630 tifflibs="-lz -lm"
11631 # At least one tiff package requires the jpeg library.
11632 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11633 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11634 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11635 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ltiff $tifflibs $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646
11647 /* Override any gcc2 internal prototype to avoid an error. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 /* We use char because int might match the return type of a gcc2
11652 builtin and then its argument prototype would still apply. */
11653 char TIFFGetVersion ();
11654 int
11655 main ()
11656 {
11657 TIFFGetVersion ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_cv_lib_tiff_TIFFGetVersion=yes
11685 else
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 ac_cv_lib_tiff_TIFFGetVersion=no
11690 fi
11691 rm -f conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11696 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11697 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11698 HAVE_TIFF=yes
11699 fi
11700
11701 fi
11702
11703
11704 fi
11705
11706 if test "${HAVE_TIFF}" = "yes"; then
11707
11708 cat >>confdefs.h <<\_ACEOF
11709 #define HAVE_TIFF 1
11710 _ACEOF
11711
11712 fi
11713 fi
11714
11715 ### Use -lgif if available, unless `--with-gif=no'.
11716 HAVE_GIF=no
11717 if test "${HAVE_X11}" = "yes"; then
11718 if test "${with_gif}" != "no"; then
11719 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11720 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11721 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11722 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 fi
11725 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11726 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11727 else
11728 # Is the header compilable?
11729 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11730 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 $ac_includes_default
11738 #include <gif_lib.h>
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742 (eval $ac_compile) 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag"
11750 || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest.$ac_objext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_header_compiler=yes
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 ac_header_compiler=no
11768 fi
11769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11771 echo "${ECHO_T}$ac_header_compiler" >&6
11772
11773 # Is the header present?
11774 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11775 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 #include <gif_lib.h>
11783 _ACEOF
11784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } >/dev/null; then
11792 if test -s conftest.err; then
11793 ac_cpp_err=$ac_c_preproc_warn_flag
11794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11795 else
11796 ac_cpp_err=
11797 fi
11798 else
11799 ac_cpp_err=yes
11800 fi
11801 if test -z "$ac_cpp_err"; then
11802 ac_header_preproc=yes
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_header_preproc=no
11808 fi
11809 rm -f conftest.err conftest.$ac_ext
11810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11811 echo "${ECHO_T}$ac_header_preproc" >&6
11812
11813 # So? What about this header?
11814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11815 yes:no: )
11816 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11817 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11819 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11820 ac_header_preproc=yes
11821 ;;
11822 no:yes:* )
11823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11824 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11826 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11828 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11830 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11832 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11834 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11835 (
11836 cat <<\_ASBOX
11837 ## ------------------------------------------ ##
11838 ## Report this to the AC_PACKAGE_NAME lists. ##
11839 ## ------------------------------------------ ##
11840 _ASBOX
11841 ) |
11842 sed "s/^/$as_me: WARNING: /" >&2
11843 ;;
11844 esac
11845 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11846 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11847 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 ac_cv_header_gif_lib_h=$ac_header_preproc
11851 fi
11852 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11853 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11854
11855 fi
11856 if test $ac_cv_header_gif_lib_h = yes; then
11857 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11858 # Earlier versions can crash Emacs.
11859 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11860 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11861 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lungif $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 #ifdef __cplusplus
11875 extern "C"
11876 #endif
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char EGifPutExtensionLast ();
11880 int
11881 main ()
11882 {
11883 EGifPutExtensionLast ();
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_cv_lib_ungif_EGifPutExtensionLast=no
11916 fi
11917 rm -f conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11920 fi
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11922 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11923 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11924 HAVE_GIF=yes
11925 fi
11926
11927 fi
11928
11929
11930 fi
11931
11932 if test "${HAVE_GIF}" = "yes"; then
11933
11934 cat >>confdefs.h <<\_ACEOF
11935 #define HAVE_GIF 1
11936 _ACEOF
11937
11938 fi
11939 fi
11940
11941 ### Use Mac OS X Carbon API to implement GUI.
11942 HAVE_CARBON=no
11943 if test "${with_carbon}" != "no"; then
11944 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11945 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11946 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11947 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11951 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11952 else
11953 # Is the header compilable?
11954 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11955 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11963 #include <Carbon/Carbon.h>
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_header_compiler=yes
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_header_compiler=no
11993 fi
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11996 echo "${ECHO_T}$ac_header_compiler" >&6
11997
11998 # Is the header present?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <Carbon/Carbon.h>
12008 _ACEOF
12009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 else
12021 ac_cpp_err=
12022 fi
12023 else
12024 ac_cpp_err=yes
12025 fi
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_preproc=no
12033 fi
12034 rm -f conftest.err conftest.$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12036 echo "${ECHO_T}$ac_header_preproc" >&6
12037
12038 # So? What about this header?
12039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12040 yes:no: )
12041 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12042 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12044 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12045 ac_header_preproc=yes
12046 ;;
12047 no:yes:* )
12048 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12049 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12051 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12053 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12055 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12057 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12059 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12060 (
12061 cat <<\_ASBOX
12062 ## ------------------------------------------ ##
12063 ## Report this to the AC_PACKAGE_NAME lists. ##
12064 ## ------------------------------------------ ##
12065 _ASBOX
12066 ) |
12067 sed "s/^/$as_me: WARNING: /" >&2
12068 ;;
12069 esac
12070 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12071 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12072 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12076 fi
12077 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12078 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12079
12080 fi
12081 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12082 HAVE_CARBON=yes
12083 fi
12084
12085
12086 fi
12087
12088 if test "${HAVE_CARBON}" = "yes"; then
12089
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_CARBON 1
12092 _ACEOF
12093
12094 window_system=mac
12095 ## Specify the install directory
12096 carbon_appdir=
12097 if test "${carbon_appdir_x}" != ""; then
12098 case ${carbon_appdir_x} in
12099 y | ye | yes) carbon_appdir=/Applications ;;
12100 * ) carbon_appdir=${carbon_appdir_x} ;;
12101 esac
12102 fi
12103 # We also have mouse menus.
12104 HAVE_MENUS=yes
12105 fi
12106
12107 ### Use session management (-lSM -lICE) if available
12108 HAVE_X_SM=no
12109 if test "${HAVE_X11}" = "yes"; then
12110 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12111 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12112 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 fi
12116 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12118 else
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12121 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <X11/SM/SMlib.h>
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_header_compiler=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 ac_header_compiler=no
12159 fi
12160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 echo "${ECHO_T}$ac_header_compiler" >&6
12163
12164 # Is the header present?
12165 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12166 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <X11/SM/SMlib.h>
12174 _ACEOF
12175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } >/dev/null; then
12183 if test -s conftest.err; then
12184 ac_cpp_err=$ac_c_preproc_warn_flag
12185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12186 else
12187 ac_cpp_err=
12188 fi
12189 else
12190 ac_cpp_err=yes
12191 fi
12192 if test -z "$ac_cpp_err"; then
12193 ac_header_preproc=yes
12194 else
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_header_preproc=no
12199 fi
12200 rm -f conftest.err conftest.$ac_ext
12201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6
12203
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12212 ;;
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12226 (
12227 cat <<\_ASBOX
12228 ## ------------------------------------------ ##
12229 ## Report this to the AC_PACKAGE_NAME lists. ##
12230 ## ------------------------------------------ ##
12231 _ASBOX
12232 ) |
12233 sed "s/^/$as_me: WARNING: /" >&2
12234 ;;
12235 esac
12236 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12237 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12238 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12242 fi
12243 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12244 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12245
12246 fi
12247 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12248 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12249 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12250 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lSM -lICE $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261
12262 /* Override any gcc2 internal prototype to avoid an error. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12268 char SmcOpenConnection ();
12269 int
12270 main ()
12271 {
12272 SmcOpenConnection ();
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_SM_SmcOpenConnection=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_SM_SmcOpenConnection=no
12305 fi
12306 rm -f conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12311 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12312 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12313 HAVE_X_SM=yes
12314 fi
12315
12316 fi
12317
12318
12319
12320 if test "${HAVE_X_SM}" = "yes"; then
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define HAVE_X_SM 1
12324 _ACEOF
12325
12326 case "$LIBS" in
12327 *-lSM*) ;;
12328 *) LIBS="-lSM -lICE $LIBS" ;;
12329 esac
12330 fi
12331 fi
12332
12333 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12334 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12335 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12336 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <netdb.h>
12346 int
12347 main ()
12348 {
12349 return h_errno;
12350 ;
12351 return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 emacs_cv_netdb_declares_h_errno=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 emacs_cv_netdb_declares_h_errno=no
12382 fi
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 fi
12386 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12387 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12388 if test $emacs_cv_netdb_declares_h_errno = yes; then
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_H_ERRNO 1
12392 _ACEOF
12393
12394 fi
12395
12396 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12397 # for constant arguments. Useless!
12398 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12399 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12400 if test "${ac_cv_working_alloca_h+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 #include <alloca.h>
12410 int
12411 main ()
12412 {
12413 char *p = (char *) alloca (2 * sizeof (int));
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_working_alloca_h=yes
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_cv_working_alloca_h=no
12446 fi
12447 rm -f conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 fi
12450 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12451 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12452 if test $ac_cv_working_alloca_h = yes; then
12453
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_ALLOCA_H 1
12456 _ACEOF
12457
12458 fi
12459
12460 echo "$as_me:$LINENO: checking for alloca" >&5
12461 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12462 if test "${ac_cv_func_alloca_works+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 #ifdef __GNUC__
12472 # define alloca __builtin_alloca
12473 #else
12474 # ifdef _MSC_VER
12475 # include <malloc.h>
12476 # define alloca _alloca
12477 # else
12478 # if HAVE_ALLOCA_H
12479 # include <alloca.h>
12480 # else
12481 # ifdef _AIX
12482 #pragma alloca
12483 # else
12484 # ifndef alloca /* predefined by HP cc +Olibcalls */
12485 char *alloca ();
12486 # endif
12487 # endif
12488 # endif
12489 # endif
12490 #endif
12491
12492 int
12493 main ()
12494 {
12495 char *p = (char *) alloca (1);
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_func_alloca_works=yes
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 ac_cv_func_alloca_works=no
12528 fi
12529 rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12533 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12534
12535 if test $ac_cv_func_alloca_works = yes; then
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_ALLOCA 1
12539 _ACEOF
12540
12541 else
12542 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12543 # that cause trouble. Some versions do not even contain alloca or
12544 # contain a buggy version. If you still want to use their alloca,
12545 # use ar to extract alloca.o from them instead of compiling alloca.c.
12546
12547 ALLOCA=alloca.$ac_objext
12548
12549 cat >>confdefs.h <<\_ACEOF
12550 #define C_ALLOCA 1
12551 _ACEOF
12552
12553
12554 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12555 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12556 if test "${ac_cv_os_cray+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #if defined(CRAY) && ! defined(CRAY2)
12566 webecray
12567 #else
12568 wenotbecray
12569 #endif
12570
12571 _ACEOF
12572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12573 $EGREP "webecray" >/dev/null 2>&1; then
12574 ac_cv_os_cray=yes
12575 else
12576 ac_cv_os_cray=no
12577 fi
12578 rm -f conftest*
12579
12580 fi
12581 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12582 echo "${ECHO_T}$ac_cv_os_cray" >&6
12583 if test $ac_cv_os_cray = yes; then
12584 for ac_func in _getb67 GETB67 getb67; do
12585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12586 echo "$as_me:$LINENO: checking for $ac_func" >&5
12587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12588 if eval "test \"\${$as_ac_var+set}\" = set"; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12599 #define $ac_func innocuous_$ac_func
12600
12601 /* System header to define __stub macros and hopefully few prototypes,
12602 which can conflict with char $ac_func (); below.
12603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12604 <limits.h> exists even on freestanding compilers. */
12605
12606 #ifdef __STDC__
12607 # include <limits.h>
12608 #else
12609 # include <assert.h>
12610 #endif
12611
12612 #undef $ac_func
12613
12614 /* Override any gcc2 internal prototype to avoid an error. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 {
12618 #endif
12619 /* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12621 char $ac_func ();
12622 /* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626 choke me
12627 #else
12628 char (*f) () = $ac_func;
12629 #endif
12630 #ifdef __cplusplus
12631 }
12632 #endif
12633
12634 int
12635 main ()
12636 {
12637 return f != $ac_func;
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 (eval $ac_link) 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest$ac_exeext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 eval "$as_ac_var=yes"
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669 eval "$as_ac_var=no"
12670 fi
12671 rm -f conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 fi
12674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677
12678 cat >>confdefs.h <<_ACEOF
12679 #define CRAY_STACKSEG_END $ac_func
12680 _ACEOF
12681
12682 break
12683 fi
12684
12685 done
12686 fi
12687
12688 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12689 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12690 if test "${ac_cv_c_stack_direction+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693 if test "$cross_compiling" = yes; then
12694 ac_cv_c_stack_direction=0
12695 else
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 int
12703 find_stack_direction ()
12704 {
12705 static char *addr = 0;
12706 auto char dummy;
12707 if (addr == 0)
12708 {
12709 addr = &dummy;
12710 return find_stack_direction ();
12711 }
12712 else
12713 return (&dummy > addr) ? 1 : -1;
12714 }
12715
12716 int
12717 main ()
12718 {
12719 exit (find_stack_direction () < 0);
12720 }
12721 _ACEOF
12722 rm -f conftest$ac_exeext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_c_stack_direction=1
12734 else
12735 echo "$as_me: program exited with status $ac_status" >&5
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ( exit $ac_status )
12740 ac_cv_c_stack_direction=-1
12741 fi
12742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12743 fi
12744 fi
12745 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12746 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12747
12748 cat >>confdefs.h <<_ACEOF
12749 #define STACK_DIRECTION $ac_cv_c_stack_direction
12750 _ACEOF
12751
12752
12753 fi
12754
12755
12756 # fmod, logb, and frexp are found in -lm on most systems.
12757 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12758
12759 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12760 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12761 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764 ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-lm $LIBS"
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772
12773 /* Override any gcc2 internal prototype to avoid an error. */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 /* We use char because int might match the return type of a gcc2
12778 builtin and then its argument prototype would still apply. */
12779 char sqrt ();
12780 int
12781 main ()
12782 {
12783 sqrt ();
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -z "$ac_c_werror_flag"
12798 || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_lib_m_sqrt=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 ac_cv_lib_m_sqrt=no
12816 fi
12817 rm -f conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LIBS=$ac_check_lib_save_LIBS
12820 fi
12821 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12822 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12823 if test $ac_cv_lib_m_sqrt = yes; then
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_LIBM 1
12826 _ACEOF
12827
12828 LIBS="-lm $LIBS"
12829
12830 fi
12831
12832
12833 # Check for mail-locking functions in a "mail" library. Probably this should
12834 # have the same check as for liblockfile below.
12835
12836 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12837 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12838 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lmail $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char maillock ();
12857 int
12858 main ()
12859 {
12860 maillock ();
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867 (eval $ac_link) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_lib_mail_maillock=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ac_cv_lib_mail_maillock=no
12893 fi
12894 rm -f conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 LIBS=$ac_check_lib_save_LIBS
12897 fi
12898 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12899 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12900 if test $ac_cv_lib_mail_maillock = yes; then
12901 cat >>confdefs.h <<_ACEOF
12902 #define HAVE_LIBMAIL 1
12903 _ACEOF
12904
12905 LIBS="-lmail $LIBS"
12906
12907 fi
12908
12909
12910 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12911 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12912 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-llockfile $LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h. */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923
12924 /* Override any gcc2 internal prototype to avoid an error. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12930 char maillock ();
12931 int
12932 main ()
12933 {
12934 maillock ();
12935 ;
12936 return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_lockfile_maillock=yes
12962 else
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 ac_cv_lib_lockfile_maillock=no
12967 fi
12968 rm -f conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_check_lib_save_LIBS
12971 fi
12972 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12973 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12974 if test $ac_cv_lib_lockfile_maillock = yes; then
12975 cat >>confdefs.h <<_ACEOF
12976 #define HAVE_LIBLOCKFILE 1
12977 _ACEOF
12978
12979 LIBS="-llockfile $LIBS"
12980
12981 fi
12982
12983 # If we have the shared liblockfile, assume we must use it for mail
12984 # locking (e.g. Debian). If we couldn't link against liblockfile
12985 # (no liblockfile.a installed), ensure that we don't need to.
12986 if test "$ac_cv_lib_lockfile_maillock" = no; then
12987 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12988 set dummy liblockfile.so; ac_word=$2
12989 echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12991 if test "${ac_cv_prog_liblockfile+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994 if test -n "$liblockfile"; then
12995 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12999 for as_dir in $as_dummy
13000 do
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_prog_liblockfile="yes"
13006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13008 fi
13009 done
13010 done
13011
13012 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13013 fi
13014 fi
13015 liblockfile=$ac_cv_prog_liblockfile
13016 if test -n "$liblockfile"; then
13017 echo "$as_me:$LINENO: result: $liblockfile" >&5
13018 echo "${ECHO_T}$liblockfile" >&6
13019 else
13020 echo "$as_me:$LINENO: result: no" >&5
13021 echo "${ECHO_T}no" >&6
13022 fi
13023
13024 if test $ac_cv_prog_liblockfile = yes; then
13025 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13026 This probably means that movemail could lose mail.
13027 There may be a \`development' package to install containing liblockfile." >&5
13028 echo "$as_me: error: Shared liblockfile found but can't link against it.
13029 This probably means that movemail could lose mail.
13030 There may be a \`development' package to install containing liblockfile." >&2;}
13031 { (exit 1); exit 1; }; }
13032 else :
13033 fi
13034 fi
13035
13036 for ac_func in touchlock
13037 do
13038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13039 echo "$as_me:$LINENO: checking for $ac_func" >&5
13040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_var+set}\" = set"; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13052 #define $ac_func innocuous_$ac_func
13053
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func (); below.
13056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057 <limits.h> exists even on freestanding compilers. */
13058
13059 #ifdef __STDC__
13060 # include <limits.h>
13061 #else
13062 # include <assert.h>
13063 #endif
13064
13065 #undef $ac_func
13066
13067 /* Override any gcc2 internal prototype to avoid an error. */
13068 #ifdef __cplusplus
13069 extern "C"
13070 {
13071 #endif
13072 /* We use char because int might match the return type of a gcc2
13073 builtin and then its argument prototype would still apply. */
13074 char $ac_func ();
13075 /* The GNU C library defines this for functions which it implements
13076 to always fail with ENOSYS. Some functions are actually named
13077 something starting with __ and the normal name is an alias. */
13078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13079 choke me
13080 #else
13081 char (*f) () = $ac_func;
13082 #endif
13083 #ifdef __cplusplus
13084 }
13085 #endif
13086
13087 int
13088 main ()
13089 {
13090 return f != $ac_func;
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097 (eval $ac_link) 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 eval "$as_ac_var=yes"
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 eval "$as_ac_var=no"
13123 fi
13124 rm -f conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 fi
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 _ACEOF
13133
13134 fi
13135 done
13136
13137
13138 for ac_header in maillock.h
13139 do
13140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13142 echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 fi
13147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13149 else
13150 # Is the header compilable?
13151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 #include <$ac_header>
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag"
13172 || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler=yes
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_header_compiler=no
13190 fi
13191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6
13194
13195 # Is the header present?
13196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #include <$ac_header>
13205 _ACEOF
13206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev/null; then
13214 if test -s conftest.err; then
13215 ac_cpp_err=$ac_c_preproc_warn_flag
13216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13217 else
13218 ac_cpp_err=
13219 fi
13220 else
13221 ac_cpp_err=yes
13222 fi
13223 if test -z "$ac_cpp_err"; then
13224 ac_header_preproc=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_header_preproc=no
13230 fi
13231 rm -f conftest.err conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6
13234
13235 # So? What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13237 yes:no: )
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13242 ac_header_preproc=yes
13243 ;;
13244 no:yes:* )
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13257 (
13258 cat <<\_ASBOX
13259 ## ------------------------------------------ ##
13260 ## Report this to the AC_PACKAGE_NAME lists. ##
13261 ## ------------------------------------------ ##
13262 _ASBOX
13263 ) |
13264 sed "s/^/$as_me: WARNING: /" >&2
13265 ;;
13266 esac
13267 echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272 eval "$as_ac_Header=\$ac_header_preproc"
13273 fi
13274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13276
13277 fi
13278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13281 _ACEOF
13282
13283 fi
13284
13285 done
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 for ac_func in gethostname getdomainname dup2 \
13355 rename closedir mkdir rmdir sysinfo \
13356 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13357 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13358 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13359 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13360 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13361 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13362 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13363 do
13364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13365 echo "$as_me:$LINENO: checking for $ac_func" >&5
13366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_var+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13378 #define $ac_func innocuous_$ac_func
13379
13380 /* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char $ac_func (); below.
13382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 <limits.h> exists even on freestanding compilers. */
13384
13385 #ifdef __STDC__
13386 # include <limits.h>
13387 #else
13388 # include <assert.h>
13389 #endif
13390
13391 #undef $ac_func
13392
13393 /* Override any gcc2 internal prototype to avoid an error. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 {
13397 #endif
13398 /* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400 char $ac_func ();
13401 /* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13405 choke me
13406 #else
13407 char (*f) () = $ac_func;
13408 #endif
13409 #ifdef __cplusplus
13410 }
13411 #endif
13412
13413 int
13414 main ()
13415 {
13416 return f != $ac_func;
13417 ;
13418 return 0;
13419 }
13420 _ACEOF
13421 rm -f conftest.$ac_objext conftest$ac_exeext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13423 (eval $ac_link) 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 eval "$as_ac_var=yes"
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 eval "$as_ac_var=no"
13449 fi
13450 rm -f conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 fi
13453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13455 if test `eval echo '${'$as_ac_var'}'` = yes; then
13456 cat >>confdefs.h <<_ACEOF
13457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458 _ACEOF
13459
13460 fi
13461 done
13462
13463
13464
13465 for ac_header in sys/un.h
13466 do
13467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13469 echo "$as_me:$LINENO: checking for $ac_header" >&5
13470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 fi
13474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13476 else
13477 # Is the header compilable?
13478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <$ac_header>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
13498 { ac_try='test -z "$ac_c_werror_flag"
13499 || test ! -s conftest.err'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; } &&
13505 { ac_try='test -s conftest.$ac_objext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_header_compiler=yes
13512 else
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_header_compiler=no
13517 fi
13518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13520 echo "${ECHO_T}$ac_header_compiler" >&6
13521
13522 # Is the header present?
13523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 #include <$ac_header>
13532 _ACEOF
13533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } >/dev/null; then
13541 if test -s conftest.err; then
13542 ac_cpp_err=$ac_c_preproc_warn_flag
13543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13544 else
13545 ac_cpp_err=
13546 fi
13547 else
13548 ac_cpp_err=yes
13549 fi
13550 if test -z "$ac_cpp_err"; then
13551 ac_header_preproc=yes
13552 else
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_header_preproc=no
13557 fi
13558 rm -f conftest.err conftest.$ac_ext
13559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560 echo "${ECHO_T}$ac_header_preproc" >&6
13561
13562 # So? What about this header?
13563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13564 yes:no: )
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13569 ac_header_preproc=yes
13570 ;;
13571 no:yes:* )
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13584 (
13585 cat <<\_ASBOX
13586 ## ------------------------------------------ ##
13587 ## Report this to the AC_PACKAGE_NAME lists. ##
13588 ## ------------------------------------------ ##
13589 _ASBOX
13590 ) |
13591 sed "s/^/$as_me: WARNING: /" >&2
13592 ;;
13593 esac
13594 echo "$as_me:$LINENO: checking for $ac_header" >&5
13595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599 eval "$as_ac_Header=\$ac_header_preproc"
13600 fi
13601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13603
13604 fi
13605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13606 cat >>confdefs.h <<_ACEOF
13607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13608 _ACEOF
13609
13610 fi
13611
13612 done
13613
13614
13615
13616
13617
13618 for ac_header in stdlib.h sys/time.h unistd.h
13619 do
13620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13622 echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 fi
13627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13629 else
13630 # Is the header compilable?
13631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h. */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 #include <$ac_header>
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_header_compiler=yes
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_header_compiler=no
13670 fi
13671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13673 echo "${ECHO_T}$ac_header_compiler" >&6
13674
13675 # Is the header present?
13676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 #include <$ac_header>
13685 _ACEOF
13686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } >/dev/null; then
13694 if test -s conftest.err; then
13695 ac_cpp_err=$ac_c_preproc_warn_flag
13696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13697 else
13698 ac_cpp_err=
13699 fi
13700 else
13701 ac_cpp_err=yes
13702 fi
13703 if test -z "$ac_cpp_err"; then
13704 ac_header_preproc=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_header_preproc=no
13710 fi
13711 rm -f conftest.err conftest.$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13713 echo "${ECHO_T}$ac_header_preproc" >&6
13714
13715 # So? What about this header?
13716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13717 yes:no: )
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13722 ac_header_preproc=yes
13723 ;;
13724 no:yes:* )
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13737 (
13738 cat <<\_ASBOX
13739 ## ------------------------------------------ ##
13740 ## Report this to the AC_PACKAGE_NAME lists. ##
13741 ## ------------------------------------------ ##
13742 _ASBOX
13743 ) |
13744 sed "s/^/$as_me: WARNING: /" >&2
13745 ;;
13746 esac
13747 echo "$as_me:$LINENO: checking for $ac_header" >&5
13748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 eval "$as_ac_Header=\$ac_header_preproc"
13753 fi
13754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13756
13757 fi
13758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13759 cat >>confdefs.h <<_ACEOF
13760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13761 _ACEOF
13762
13763 fi
13764
13765 done
13766
13767
13768 for ac_func in alarm
13769 do
13770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_var+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13784 #define $ac_func innocuous_$ac_func
13785
13786 /* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func (); below.
13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13789 <limits.h> exists even on freestanding compilers. */
13790
13791 #ifdef __STDC__
13792 # include <limits.h>
13793 #else
13794 # include <assert.h>
13795 #endif
13796
13797 #undef $ac_func
13798
13799 /* Override any gcc2 internal prototype to avoid an error. */
13800 #ifdef __cplusplus
13801 extern "C"
13802 {
13803 #endif
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13806 char $ac_func ();
13807 /* The GNU C library defines this for functions which it implements
13808 to always fail with ENOSYS. Some functions are actually named
13809 something starting with __ and the normal name is an alias. */
13810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13811 choke me
13812 #else
13813 char (*f) () = $ac_func;
13814 #endif
13815 #ifdef __cplusplus
13816 }
13817 #endif
13818
13819 int
13820 main ()
13821 {
13822 return f != $ac_func;
13823 ;
13824 return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest.$ac_objext conftest$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 eval "$as_ac_var=yes"
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 eval "$as_ac_var=no"
13855 fi
13856 rm -f conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13858 fi
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13861 if test `eval echo '${'$as_ac_var'}'` = yes; then
13862 cat >>confdefs.h <<_ACEOF
13863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13864 _ACEOF
13865
13866 fi
13867 done
13868
13869 echo "$as_me:$LINENO: checking for working mktime" >&5
13870 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13871 if test "${ac_cv_func_working_mktime+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 if test "$cross_compiling" = yes; then
13875 ac_cv_func_working_mktime=no
13876 else
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 /* Test program from Paul Eggert and Tony Leneis. */
13884 #if TIME_WITH_SYS_TIME
13885 # include <sys/time.h>
13886 # include <time.h>
13887 #else
13888 # if HAVE_SYS_TIME_H
13889 # include <sys/time.h>
13890 # else
13891 # include <time.h>
13892 # endif
13893 #endif
13894
13895 #if HAVE_STDLIB_H
13896 # include <stdlib.h>
13897 #endif
13898
13899 #if HAVE_UNISTD_H
13900 # include <unistd.h>
13901 #endif
13902
13903 #if !HAVE_ALARM
13904 # define alarm(X) /* empty */
13905 #endif
13906
13907 /* Work around redefinition to rpl_putenv by other config tests. */
13908 #undef putenv
13909
13910 static time_t time_t_max;
13911 static time_t time_t_min;
13912
13913 /* Values we'll use to set the TZ environment variable. */
13914 static char *tz_strings[] = {
13915 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13916 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13917 };
13918 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13919
13920 /* Fail if mktime fails to convert a date in the spring-forward gap.
13921 Based on a problem report from Andreas Jaeger. */
13922 static void
13923 spring_forward_gap ()
13924 {
13925 /* glibc (up to about 1998-10-07) failed this test. */
13926 struct tm tm;
13927
13928 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13929 instead of "TZ=America/Vancouver" in order to detect the bug even
13930 on systems that don't support the Olson extension, or don't have the
13931 full zoneinfo tables installed. */
13932 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13933
13934 tm.tm_year = 98;
13935 tm.tm_mon = 3;
13936 tm.tm_mday = 5;
13937 tm.tm_hour = 2;
13938 tm.tm_min = 0;
13939 tm.tm_sec = 0;
13940 tm.tm_isdst = -1;
13941 if (mktime (&tm) == (time_t)-1)
13942 exit (1);
13943 }
13944
13945 static void
13946 mktime_test1 (now)
13947 time_t now;
13948 {
13949 struct tm *lt;
13950 if ((lt = localtime (&now)) && mktime (lt) != now)
13951 exit (1);
13952 }
13953
13954 static void
13955 mktime_test (now)
13956 time_t now;
13957 {
13958 mktime_test1 (now);
13959 mktime_test1 ((time_t) (time_t_max - now));
13960 mktime_test1 ((time_t) (time_t_min + now));
13961 }
13962
13963 static void
13964 irix_6_4_bug ()
13965 {
13966 /* Based on code from Ariel Faigon. */
13967 struct tm tm;
13968 tm.tm_year = 96;
13969 tm.tm_mon = 3;
13970 tm.tm_mday = 0;
13971 tm.tm_hour = 0;
13972 tm.tm_min = 0;
13973 tm.tm_sec = 0;
13974 tm.tm_isdst = -1;
13975 mktime (&tm);
13976 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13977 exit (1);
13978 }
13979
13980 static void
13981 bigtime_test (j)
13982 int j;
13983 {
13984 struct tm tm;
13985 time_t now;
13986 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13987 now = mktime (&tm);
13988 if (now != (time_t) -1)
13989 {
13990 struct tm *lt = localtime (&now);
13991 if (! (lt
13992 && lt->tm_year == tm.tm_year
13993 && lt->tm_mon == tm.tm_mon
13994 && lt->tm_mday == tm.tm_mday
13995 && lt->tm_hour == tm.tm_hour
13996 && lt->tm_min == tm.tm_min
13997 && lt->tm_sec == tm.tm_sec
13998 && lt->tm_yday == tm.tm_yday
13999 && lt->tm_wday == tm.tm_wday
14000 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14001 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14002 exit (1);
14003 }
14004 }
14005
14006 int
14007 main ()
14008 {
14009 time_t t, delta;
14010 int i, j;
14011
14012 /* This test makes some buggy mktime implementations loop.
14013 Give up after 60 seconds; a mktime slower than that
14014 isn't worth using anyway. */
14015 alarm (60);
14016
14017 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14018 continue;
14019 time_t_max--;
14020 if ((time_t) -1 < 0)
14021 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14022 continue;
14023 delta = time_t_max / 997; /* a suitable prime number */
14024 for (i = 0; i < N_STRINGS; i++)
14025 {
14026 if (tz_strings[i])
14027 putenv (tz_strings[i]);
14028
14029 for (t = 0; t <= time_t_max - delta; t += delta)
14030 mktime_test (t);
14031 mktime_test ((time_t) 1);
14032 mktime_test ((time_t) (60 * 60));
14033 mktime_test ((time_t) (60 * 60 * 24));
14034
14035 for (j = 1; 0 < j; j *= 2)
14036 bigtime_test (j);
14037 bigtime_test (j - 1);
14038 }
14039 irix_6_4_bug ();
14040 spring_forward_gap ();
14041 exit (0);
14042 }
14043 _ACEOF
14044 rm -f conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_func_working_mktime=yes
14056 else
14057 echo "$as_me: program exited with status $ac_status" >&5
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ( exit $ac_status )
14062 ac_cv_func_working_mktime=no
14063 fi
14064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14065 fi
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14068 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14069 if test $ac_cv_func_working_mktime = no; then
14070 case $LIBOBJS in
14071 "mktime.$ac_objext" | \
14072 *" mktime.$ac_objext" | \
14073 "mktime.$ac_objext "* | \
14074 *" mktime.$ac_objext "* ) ;;
14075 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14076 esac
14077
14078 fi
14079
14080 if test "$ac_cv_func_working_mktime" = no; then
14081
14082 cat >>confdefs.h <<\_ACEOF
14083 #define BROKEN_MKTIME 1
14084 _ACEOF
14085
14086 fi
14087
14088 ac_have_func=no # yes means we've found a way to get the load average.
14089
14090 # Make sure getloadavg.c is where it belongs, at configure-time.
14091 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14092 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14093 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14094 { (exit 1); exit 1; }; }
14095
14096 ac_save_LIBS=$LIBS
14097
14098 # Check for getloadavg, but be sure not to touch the cache variable.
14099 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14100 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14101 if test "${ac_cv_func_getloadavg+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14112 #define getloadavg innocuous_getloadavg
14113
14114 /* System header to define __stub macros and hopefully few prototypes,
14115 which can conflict with char getloadavg (); below.
14116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14117 <limits.h> exists even on freestanding compilers. */
14118
14119 #ifdef __STDC__
14120 # include <limits.h>
14121 #else
14122 # include <assert.h>
14123 #endif
14124
14125 #undef getloadavg
14126
14127 /* Override any gcc2 internal prototype to avoid an error. */
14128 #ifdef __cplusplus
14129 extern "C"
14130 {
14131 #endif
14132 /* We use char because int might match the return type of a gcc2
14133 builtin and then its argument prototype would still apply. */
14134 char getloadavg ();
14135 /* The GNU C library defines this for functions which it implements
14136 to always fail with ENOSYS. Some functions are actually named
14137 something starting with __ and the normal name is an alias. */
14138 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14139 choke me
14140 #else
14141 char (*f) () = getloadavg;
14142 #endif
14143 #ifdef __cplusplus
14144 }
14145 #endif
14146
14147 int
14148 main ()
14149 {
14150 return f != getloadavg;
14151 ;
14152 return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_func_getloadavg=yes
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_cv_func_getloadavg=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 fi
14187 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14188 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14189 if test $ac_cv_func_getloadavg = yes; then
14190 exit 0
14191 else
14192 exit 1
14193 fi
14194 ) && ac_have_func=yes
14195
14196 # On HPUX9, an unprivileged user can get load averages through this function.
14197
14198 for ac_func in pstat_getdynamic
14199 do
14200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14201 echo "$as_me:$LINENO: checking for $ac_func" >&5
14202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14203 if eval "test \"\${$as_ac_var+set}\" = set"; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14214 #define $ac_func innocuous_$ac_func
14215
14216 /* System header to define __stub macros and hopefully few prototypes,
14217 which can conflict with char $ac_func (); below.
14218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14219 <limits.h> exists even on freestanding compilers. */
14220
14221 #ifdef __STDC__
14222 # include <limits.h>
14223 #else
14224 # include <assert.h>
14225 #endif
14226
14227 #undef $ac_func
14228
14229 /* Override any gcc2 internal prototype to avoid an error. */
14230 #ifdef __cplusplus
14231 extern "C"
14232 {
14233 #endif
14234 /* We use char because int might match the return type of a gcc2
14235 builtin and then its argument prototype would still apply. */
14236 char $ac_func ();
14237 /* The GNU C library defines this for functions which it implements
14238 to always fail with ENOSYS. Some functions are actually named
14239 something starting with __ and the normal name is an alias. */
14240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14241 choke me
14242 #else
14243 char (*f) () = $ac_func;
14244 #endif
14245 #ifdef __cplusplus
14246 }
14247 #endif
14248
14249 int
14250 main ()
14251 {
14252 return f != $ac_func;
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 eval "$as_ac_var=yes"
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 eval "$as_ac_var=no"
14285 fi
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 fi
14289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14291 if test `eval echo '${'$as_ac_var'}'` = yes; then
14292 cat >>confdefs.h <<_ACEOF
14293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14294 _ACEOF
14295
14296 fi
14297 done
14298
14299
14300 # Solaris has libkstat which does not require root.
14301
14302 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14303 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14304 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307 ac_check_lib_save_LIBS=$LIBS
14308 LIBS="-lkstat $LIBS"
14309 cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h. */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315
14316 /* Override any gcc2 internal prototype to avoid an error. */
14317 #ifdef __cplusplus
14318 extern "C"
14319 #endif
14320 /* We use char because int might match the return type of a gcc2
14321 builtin and then its argument prototype would still apply. */
14322 char kstat_open ();
14323 int
14324 main ()
14325 {
14326 kstat_open ();
14327 ;
14328 return 0;
14329 }
14330 _ACEOF
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14353 ac_cv_lib_kstat_kstat_open=yes
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ac_cv_lib_kstat_kstat_open=no
14359 fi
14360 rm -f conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS
14363 fi
14364 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14365 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14366 if test $ac_cv_lib_kstat_kstat_open = yes; then
14367 cat >>confdefs.h <<_ACEOF
14368 #define HAVE_LIBKSTAT 1
14369 _ACEOF
14370
14371 LIBS="-lkstat $LIBS"
14372
14373 fi
14374
14375 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14376
14377 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14378 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14379 # to get the right answer into the cache.
14380 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14381 if test $ac_have_func = no; then
14382 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14383 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14384 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 ac_check_lib_save_LIBS=$LIBS
14388 LIBS="-lelf $LIBS"
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395
14396 /* Override any gcc2 internal prototype to avoid an error. */
14397 #ifdef __cplusplus
14398 extern "C"
14399 #endif
14400 /* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14402 char elf_begin ();
14403 int
14404 main ()
14405 {
14406 elf_begin ();
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_lib_elf_elf_begin=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_cv_lib_elf_elf_begin=no
14439 fi
14440 rm -f conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 LIBS=$ac_check_lib_save_LIBS
14443 fi
14444 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14445 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14446 if test $ac_cv_lib_elf_elf_begin = yes; then
14447 LIBS="-lelf $LIBS"
14448 fi
14449
14450 fi
14451 if test $ac_have_func = no; then
14452 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14453 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14454 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 ac_check_lib_save_LIBS=$LIBS
14458 LIBS="-lkvm $LIBS"
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465
14466 /* Override any gcc2 internal prototype to avoid an error. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14472 char kvm_open ();
14473 int
14474 main ()
14475 {
14476 kvm_open ();
14477 ;
14478 return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest.$ac_objext conftest$ac_exeext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 (eval $ac_link) 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_lib_kvm_kvm_open=yes
14504 else
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508 ac_cv_lib_kvm_kvm_open=no
14509 fi
14510 rm -f conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 LIBS=$ac_check_lib_save_LIBS
14513 fi
14514 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14515 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14516 if test $ac_cv_lib_kvm_kvm_open = yes; then
14517 LIBS="-lkvm $LIBS"
14518 fi
14519
14520 # Check for the 4.4BSD definition of getloadavg.
14521 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14522 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14523 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 ac_check_lib_save_LIBS=$LIBS
14527 LIBS="-lutil $LIBS"
14528 cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h. */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534
14535 /* Override any gcc2 internal prototype to avoid an error. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char getloadavg ();
14542 int
14543 main ()
14544 {
14545 getloadavg ();
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest$ac_exeext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_lib_util_getloadavg=yes
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_cv_lib_util_getloadavg=no
14578 fi
14579 rm -f conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14582 fi
14583 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14584 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14585 if test $ac_cv_lib_util_getloadavg = yes; then
14586 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14587 fi
14588
14589 fi
14590
14591 if test $ac_have_func = no; then
14592 # There is a commonly available library for RS/6000 AIX.
14593 # Since it is not a standard part of AIX, it might be installed locally.
14594 ac_getloadavg_LIBS=$LIBS
14595 LIBS="-L/usr/local/lib $LIBS"
14596 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14597 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14598 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lgetloadavg $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609
14610 /* Override any gcc2 internal prototype to avoid an error. */
14611 #ifdef __cplusplus
14612 extern "C"
14613 #endif
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14616 char getloadavg ();
14617 int
14618 main ()
14619 {
14620 getloadavg ();
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_cv_lib_getloadavg_getloadavg=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_cv_lib_getloadavg_getloadavg=no
14653 fi
14654 rm -f conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14657 fi
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14659 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14660 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14661 LIBS="-lgetloadavg $LIBS"
14662 else
14663 LIBS=$ac_getloadavg_LIBS
14664 fi
14665
14666 fi
14667
14668 # Make sure it is really in the library, if we think we found it,
14669 # otherwise set up the replacement function.
14670
14671 for ac_func in getloadavg
14672 do
14673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14674 echo "$as_me:$LINENO: checking for $ac_func" >&5
14675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14676 if eval "test \"\${$as_ac_var+set}\" = set"; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14687 #define $ac_func innocuous_$ac_func
14688
14689 /* System header to define __stub macros and hopefully few prototypes,
14690 which can conflict with char $ac_func (); below.
14691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692 <limits.h> exists even on freestanding compilers. */
14693
14694 #ifdef __STDC__
14695 # include <limits.h>
14696 #else
14697 # include <assert.h>
14698 #endif
14699
14700 #undef $ac_func
14701
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 #ifdef __cplusplus
14704 extern "C"
14705 {
14706 #endif
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14709 char $ac_func ();
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14714 choke me
14715 #else
14716 char (*f) () = $ac_func;
14717 #endif
14718 #ifdef __cplusplus
14719 }
14720 #endif
14721
14722 int
14723 main ()
14724 {
14725 return f != $ac_func;
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 eval "$as_ac_var=yes"
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 eval "$as_ac_var=no"
14758 fi
14759 rm -f conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 fi
14762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14764 if test `eval echo '${'$as_ac_var'}'` = yes; then
14765 cat >>confdefs.h <<_ACEOF
14766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14767 _ACEOF
14768
14769 else
14770 case $LIBOBJS in
14771 "getloadavg.$ac_objext" | \
14772 *" getloadavg.$ac_objext" | \
14773 "getloadavg.$ac_objext "* | \
14774 *" getloadavg.$ac_objext "* ) ;;
14775 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14776 esac
14777
14778
14779 cat >>confdefs.h <<\_ACEOF
14780 #define C_GETLOADAVG 1
14781 _ACEOF
14782
14783 # Figure out what our getloadavg.c needs.
14784 ac_have_func=no
14785 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14786 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14787 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14788 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 fi
14791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14792 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14793 else
14794 # Is the header compilable?
14795 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14796 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 $ac_includes_default
14804 #include <sys/dg_sys_info.h>
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_header_compiler=yes
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_header_compiler=no
14834 fi
14835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 echo "${ECHO_T}$ac_header_compiler" >&6
14838
14839 # Is the header present?
14840 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14841 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <sys/dg_sys_info.h>
14849 _ACEOF
14850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } >/dev/null; then
14858 if test -s conftest.err; then
14859 ac_cpp_err=$ac_c_preproc_warn_flag
14860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14861 else
14862 ac_cpp_err=
14863 fi
14864 else
14865 ac_cpp_err=yes
14866 fi
14867 if test -z "$ac_cpp_err"; then
14868 ac_header_preproc=yes
14869 else
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873 ac_header_preproc=no
14874 fi
14875 rm -f conftest.err conftest.$ac_ext
14876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6
14878
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881 yes:no: )
14882 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14887 ;;
14888 no:yes:* )
14889 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14901 (
14902 cat <<\_ASBOX
14903 ## ------------------------------------------ ##
14904 ## Report this to the AC_PACKAGE_NAME lists. ##
14905 ## ------------------------------------------ ##
14906 _ASBOX
14907 ) |
14908 sed "s/^/$as_me: WARNING: /" >&2
14909 ;;
14910 esac
14911 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14912 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14913 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14917 fi
14918 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14920
14921 fi
14922 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14923 ac_have_func=yes
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define DGUX 1
14927 _ACEOF
14928
14929
14930 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14931 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14932 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 ac_check_lib_save_LIBS=$LIBS
14936 LIBS="-ldgc $LIBS"
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943
14944 /* Override any gcc2 internal prototype to avoid an error. */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 /* We use char because int might match the return type of a gcc2
14949 builtin and then its argument prototype would still apply. */
14950 char dg_sys_info ();
14951 int
14952 main ()
14953 {
14954 dg_sys_info ();
14955 ;
14956 return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -z "$ac_c_werror_flag"
14969 || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_lib_dgc_dg_sys_info=yes
14982 else
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986 ac_cv_lib_dgc_dg_sys_info=no
14987 fi
14988 rm -f conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14990 LIBS=$ac_check_lib_save_LIBS
14991 fi
14992 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14993 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14994 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14995 cat >>confdefs.h <<_ACEOF
14996 #define HAVE_LIBDGC 1
14997 _ACEOF
14998
14999 LIBS="-ldgc $LIBS"
15000
15001 fi
15002
15003 fi
15004
15005
15006
15007 if test "${ac_cv_header_locale_h+set}" = set; then
15008 echo "$as_me:$LINENO: checking for locale.h" >&5
15009 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15010 if test "${ac_cv_header_locale_h+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 fi
15013 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15014 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15015 else
15016 # Is the header compilable?
15017 echo "$as_me:$LINENO: checking locale.h usability" >&5
15018 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 $ac_includes_default
15026 #include <locale.h>
15027 _ACEOF
15028 rm -f conftest.$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -z "$ac_c_werror_flag"
15038 || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest.$ac_objext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler=yes
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 ac_header_compiler=no
15056 fi
15057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6
15060
15061 # Is the header present?
15062 echo "$as_me:$LINENO: checking locale.h presence" >&5
15063 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <locale.h>
15071 _ACEOF
15072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } >/dev/null; then
15080 if test -s conftest.err; then
15081 ac_cpp_err=$ac_c_preproc_warn_flag
15082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15083 else
15084 ac_cpp_err=
15085 fi
15086 else
15087 ac_cpp_err=yes
15088 fi
15089 if test -z "$ac_cpp_err"; then
15090 ac_header_preproc=yes
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 ac_header_preproc=no
15096 fi
15097 rm -f conftest.err conftest.$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15100
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15103 yes:no: )
15104 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15107 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15108 ac_header_preproc=yes
15109 ;;
15110 no:yes:* )
15111 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15112 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15114 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15116 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15118 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15120 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15122 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15123 (
15124 cat <<\_ASBOX
15125 ## ------------------------------------------ ##
15126 ## Report this to the AC_PACKAGE_NAME lists. ##
15127 ## ------------------------------------------ ##
15128 _ASBOX
15129 ) |
15130 sed "s/^/$as_me: WARNING: /" >&2
15131 ;;
15132 esac
15133 echo "$as_me:$LINENO: checking for locale.h" >&5
15134 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15135 if test "${ac_cv_header_locale_h+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138 ac_cv_header_locale_h=$ac_header_preproc
15139 fi
15140 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15141 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15142
15143 fi
15144
15145
15146
15147 for ac_func in setlocale
15148 do
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15152 if eval "test \"\${$as_ac_var+set}\" = set"; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15164
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15169
15170 #ifdef __STDC__
15171 # include <limits.h>
15172 #else
15173 # include <assert.h>
15174 #endif
15175
15176 #undef $ac_func
15177
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 #ifdef __cplusplus
15180 extern "C"
15181 {
15182 #endif
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185 char $ac_func ();
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15190 choke me
15191 #else
15192 char (*f) () = $ac_func;
15193 #endif
15194 #ifdef __cplusplus
15195 }
15196 #endif
15197
15198 int
15199 main ()
15200 {
15201 return f != $ac_func;
15202 ;
15203 return 0;
15204 }
15205 _ACEOF
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest$ac_exeext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 eval "$as_ac_var=yes"
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233 eval "$as_ac_var=no"
15234 fi
15235 rm -f conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15241 cat >>confdefs.h <<_ACEOF
15242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15243 _ACEOF
15244
15245 fi
15246 done
15247
15248
15249 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15250 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15251 # Irix 4.0.5F has the header but not the library.
15252 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15253 ac_have_func=yes
15254
15255 cat >>confdefs.h <<\_ACEOF
15256 #define SVR4 1
15257 _ACEOF
15258
15259 fi
15260
15261 if test $ac_have_func = no; then
15262 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15263 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15264 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15265 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 fi
15268 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15269 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15270 else
15271 # Is the header compilable?
15272 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15273 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 $ac_includes_default
15281 #include <inq_stats/cpustats.h>
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285 (eval $ac_compile) 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag"
15293 || test ! -s conftest.err'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try='test -s conftest.$ac_objext'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }; then
15305 ac_header_compiler=yes
15306 else
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15309
15310 ac_header_compiler=no
15311 fi
15312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15314 echo "${ECHO_T}$ac_header_compiler" >&6
15315
15316 # Is the header present?
15317 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15318 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 #include <inq_stats/cpustats.h>
15326 _ACEOF
15327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } >/dev/null; then
15335 if test -s conftest.err; then
15336 ac_cpp_err=$ac_c_preproc_warn_flag
15337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15338 else
15339 ac_cpp_err=
15340 fi
15341 else
15342 ac_cpp_err=yes
15343 fi
15344 if test -z "$ac_cpp_err"; then
15345 ac_header_preproc=yes
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 ac_header_preproc=no
15351 fi
15352 rm -f conftest.err conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15354 echo "${ECHO_T}$ac_header_preproc" >&6
15355
15356 # So? What about this header?
15357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15358 yes:no: )
15359 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15360 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15362 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15363 ac_header_preproc=yes
15364 ;;
15365 no:yes:* )
15366 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15367 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15369 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15371 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15373 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15375 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15377 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15378 (
15379 cat <<\_ASBOX
15380 ## ------------------------------------------ ##
15381 ## Report this to the AC_PACKAGE_NAME lists. ##
15382 ## ------------------------------------------ ##
15383 _ASBOX
15384 ) |
15385 sed "s/^/$as_me: WARNING: /" >&2
15386 ;;
15387 esac
15388 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15389 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15390 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15394 fi
15395 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15396 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15397
15398 fi
15399 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15400 ac_have_func=yes
15401
15402 cat >>confdefs.h <<\_ACEOF
15403 #define UMAX 1
15404 _ACEOF
15405
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define UMAX4_3 1
15409 _ACEOF
15410
15411 fi
15412
15413
15414 fi
15415
15416 if test $ac_have_func = no; then
15417 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15418 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15419 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15420 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 fi
15423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15424 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15425 else
15426 # Is the header compilable?
15427 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15428 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 $ac_includes_default
15436 #include <sys/cpustats.h>
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_header_compiler=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_header_compiler=no
15466 fi
15467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469 echo "${ECHO_T}$ac_header_compiler" >&6
15470
15471 # Is the header present?
15472 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15473 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
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 <sys/cpustats.h>
15481 _ACEOF
15482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null; then
15490 if test -s conftest.err; then
15491 ac_cpp_err=$ac_c_preproc_warn_flag
15492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 else
15494 ac_cpp_err=
15495 fi
15496 else
15497 ac_cpp_err=yes
15498 fi
15499 if test -z "$ac_cpp_err"; then
15500 ac_header_preproc=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_header_preproc=no
15506 fi
15507 rm -f conftest.err conftest.$ac_ext
15508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6
15510
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15515 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15517 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15519 ;;
15520 no:yes:* )
15521 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15522 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15524 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15526 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15528 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15530 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15532 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15533 (
15534 cat <<\_ASBOX
15535 ## ------------------------------------------ ##
15536 ## Report this to the AC_PACKAGE_NAME lists. ##
15537 ## ------------------------------------------ ##
15538 _ASBOX
15539 ) |
15540 sed "s/^/$as_me: WARNING: /" >&2
15541 ;;
15542 esac
15543 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15544 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15545 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15549 fi
15550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15551 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15552
15553 fi
15554 if test $ac_cv_header_sys_cpustats_h = yes; then
15555 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15556 #define UMAX 1
15557 _ACEOF
15558
15559 fi
15560
15561
15562 fi
15563
15564 if test $ac_have_func = no; then
15565
15566 for ac_header in mach/mach.h
15567 do
15568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 fi
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15577 else
15578 # Is the header compilable?
15579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag"
15600 || test ! -s conftest.err'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; } &&
15606 { ac_try='test -s conftest.$ac_objext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_header_compiler=yes
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617 ac_header_compiler=no
15618 fi
15619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15621 echo "${ECHO_T}$ac_header_compiler" >&6
15622
15623 # Is the header present?
15624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <$ac_header>
15633 _ACEOF
15634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } >/dev/null; then
15642 if test -s conftest.err; then
15643 ac_cpp_err=$ac_c_preproc_warn_flag
15644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15645 else
15646 ac_cpp_err=
15647 fi
15648 else
15649 ac_cpp_err=yes
15650 fi
15651 if test -z "$ac_cpp_err"; then
15652 ac_header_preproc=yes
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 ac_header_preproc=no
15658 fi
15659 rm -f conftest.err conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15661 echo "${ECHO_T}$ac_header_preproc" >&6
15662
15663 # So? What about this header?
15664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15665 yes:no: )
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15670 ac_header_preproc=yes
15671 ;;
15672 no:yes:* )
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15685 (
15686 cat <<\_ASBOX
15687 ## ------------------------------------------ ##
15688 ## Report this to the AC_PACKAGE_NAME lists. ##
15689 ## ------------------------------------------ ##
15690 _ASBOX
15691 ) |
15692 sed "s/^/$as_me: WARNING: /" >&2
15693 ;;
15694 esac
15695 echo "$as_me:$LINENO: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700 eval "$as_ac_Header=\$ac_header_preproc"
15701 fi
15702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15704
15705 fi
15706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15709 _ACEOF
15710
15711 fi
15712
15713 done
15714
15715 fi
15716
15717
15718 for ac_header in nlist.h
15719 do
15720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 fi
15727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729 else
15730 # Is the header compilable?
15731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_header_compiler=no
15770 fi
15771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773 echo "${ECHO_T}$ac_header_compiler" >&6
15774
15775 # Is the header present?
15776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <$ac_header>
15785 _ACEOF
15786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } >/dev/null; then
15794 if test -s conftest.err; then
15795 ac_cpp_err=$ac_c_preproc_warn_flag
15796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15797 else
15798 ac_cpp_err=
15799 fi
15800 else
15801 ac_cpp_err=yes
15802 fi
15803 if test -z "$ac_cpp_err"; then
15804 ac_header_preproc=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_header_preproc=no
15810 fi
15811 rm -f conftest.err conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6
15814
15815 # So? What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817 yes:no: )
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15823 ;;
15824 no:yes:* )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837 (
15838 cat <<\_ASBOX
15839 ## ------------------------------------------ ##
15840 ## Report this to the AC_PACKAGE_NAME lists. ##
15841 ## ------------------------------------------ ##
15842 _ASBOX
15843 ) |
15844 sed "s/^/$as_me: WARNING: /" >&2
15845 ;;
15846 esac
15847 echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852 eval "$as_ac_Header=\$ac_header_preproc"
15853 fi
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15856
15857 fi
15858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15859 cat >>confdefs.h <<_ACEOF
15860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15861 _ACEOF
15862 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15863 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15864 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <nlist.h>
15874
15875 int
15876 main ()
15877 {
15878 static struct nlist ac_aggr;
15879 if (ac_aggr.n_un.n_name)
15880 return 0;
15881 ;
15882 return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_cv_member_struct_nlist_n_un_n_name=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <nlist.h>
15919
15920 int
15921 main ()
15922 {
15923 static struct nlist ac_aggr;
15924 if (sizeof ac_aggr.n_un.n_name)
15925 return 0;
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 rm -f conftest.$ac_objext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag"
15940 || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_member_struct_nlist_n_un_n_name=yes
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ac_cv_member_struct_nlist_n_un_n_name=no
15958 fi
15959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15960 fi
15961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15964 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15965 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15966
15967 cat >>confdefs.h <<_ACEOF
15968 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15969 _ACEOF
15970
15971
15972 cat >>confdefs.h <<\_ACEOF
15973 #define NLIST_NAME_UNION 1
15974 _ACEOF
15975
15976 fi
15977
15978
15979 fi
15980
15981 done
15982
15983 fi
15984 done
15985
15986
15987 # Some definitions of getloadavg require that the program be installed setgid.
15988 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15989 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15990 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16000 #ifdef LDAV_PRIVILEGED
16001 Yowza Am I SETGID yet
16002 #endif
16003 _ACEOF
16004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16005 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16006 ac_cv_func_getloadavg_setgid=yes
16007 else
16008 ac_cv_func_getloadavg_setgid=no
16009 fi
16010 rm -f conftest*
16011
16012 fi
16013 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16014 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16015 if test $ac_cv_func_getloadavg_setgid = yes; then
16016 NEED_SETGID=true
16017
16018 cat >>confdefs.h <<\_ACEOF
16019 #define GETLOADAVG_PRIVILEGED 1
16020 _ACEOF
16021
16022 else
16023 NEED_SETGID=false
16024 fi
16025
16026 if test $ac_cv_func_getloadavg_setgid = yes; then
16027 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16028 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16029 if test "${ac_cv_group_kmem+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16033 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16034 # If we got an error (system does not support symlinks), try without -L.
16035 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16036 ac_cv_group_kmem=`echo $ac_ls_output \
16037 | sed -ne 's/[ ][ ]*/ /g;
16038 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16039 / /s/.* //;p;'`
16040
16041 fi
16042 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16043 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16044 KMEM_GROUP=$ac_cv_group_kmem
16045 fi
16046 if test "x$ac_save_LIBS" = x; then
16047 GETLOADAVG_LIBS=$LIBS
16048 else
16049 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16050 fi
16051 LIBS=$ac_save_LIBS
16052
16053
16054
16055 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16056 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16057 if test "${ac_cv_sys_largefile_source+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060 while :; do
16061 ac_cv_sys_largefile_source=no
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #include <stdio.h>
16069 int
16070 main ()
16071 {
16072 return !fseeko;
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 break
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 fi
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #define _LARGEFILE_SOURCE 1
16113 #include <stdio.h>
16114 int
16115 main ()
16116 {
16117 return !fseeko;
16118 ;
16119 return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_sys_largefile_source=1; break
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 fi
16150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 break
16152 done
16153 fi
16154 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16155 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16156 if test "$ac_cv_sys_largefile_source" != no; then
16157
16158 cat >>confdefs.h <<_ACEOF
16159 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16160 _ACEOF
16161
16162 fi
16163 rm -f conftest*
16164
16165 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16166 # in glibc 2.1.3, but that breaks too many other things.
16167 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16168 echo "$as_me:$LINENO: checking for fseeko" >&5
16169 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16170 if test "${ac_cv_func_fseeko+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <stdio.h>
16180 int
16181 main ()
16182 {
16183 return fseeko && fseeko (stdin, 0, 0);
16184 ;
16185 return 0;
16186 }
16187 _ACEOF
16188 rm -f conftest.$ac_objext conftest$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_func_fseeko=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_cv_func_fseeko=no
16216 fi
16217 rm -f conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 fi
16220 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16221 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16222 if test $ac_cv_func_fseeko = yes; then
16223
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_FSEEKO 1
16226 _ACEOF
16227
16228 fi
16229
16230
16231 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16232 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16233 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236 # Use it with a single arg.
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 int
16245 main ()
16246 {
16247 getpgrp (0);
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag"
16262 || test ! -s conftest.err'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_func_getpgrp_void=no
16275 else
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 ac_cv_func_getpgrp_void=yes
16280 fi
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282
16283 fi
16284 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16285 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16286 if test $ac_cv_func_getpgrp_void = yes; then
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define GETPGRP_VOID 1
16290 _ACEOF
16291
16292 fi
16293
16294
16295
16296 for ac_func in strftime
16297 do
16298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16299 echo "$as_me:$LINENO: checking for $ac_func" >&5
16300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16301 if eval "test \"\${$as_ac_var+set}\" = set"; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16312 #define $ac_func innocuous_$ac_func
16313
16314 /* System header to define __stub macros and hopefully few prototypes,
16315 which can conflict with char $ac_func (); below.
16316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16317 <limits.h> exists even on freestanding compilers. */
16318
16319 #ifdef __STDC__
16320 # include <limits.h>
16321 #else
16322 # include <assert.h>
16323 #endif
16324
16325 #undef $ac_func
16326
16327 /* Override any gcc2 internal prototype to avoid an error. */
16328 #ifdef __cplusplus
16329 extern "C"
16330 {
16331 #endif
16332 /* We use char because int might match the return type of a gcc2
16333 builtin and then its argument prototype would still apply. */
16334 char $ac_func ();
16335 /* The GNU C library defines this for functions which it implements
16336 to always fail with ENOSYS. Some functions are actually named
16337 something starting with __ and the normal name is an alias. */
16338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16339 choke me
16340 #else
16341 char (*f) () = $ac_func;
16342 #endif
16343 #ifdef __cplusplus
16344 }
16345 #endif
16346
16347 int
16348 main ()
16349 {
16350 return f != $ac_func;
16351 ;
16352 return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357 (eval $ac_link) 2>conftest.er1
16358 ac_status=$?
16359 grep -v '^ *+' conftest.er1 >conftest.err
16360 rm -f conftest.er1
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try='test -z "$ac_c_werror_flag"
16365 || test ! -s conftest.err'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest$ac_exeext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 eval "$as_ac_var=yes"
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 eval "$as_ac_var=no"
16383 fi
16384 rm -f conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 fi
16387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16389 if test `eval echo '${'$as_ac_var'}'` = yes; then
16390 cat >>confdefs.h <<_ACEOF
16391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16392 _ACEOF
16393
16394 else
16395 # strftime is in -lintl on SCO UNIX.
16396 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16397 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16398 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 ac_check_lib_save_LIBS=$LIBS
16402 LIBS="-lintl $LIBS"
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409
16410 /* Override any gcc2 internal prototype to avoid an error. */
16411 #ifdef __cplusplus
16412 extern "C"
16413 #endif
16414 /* We use char because int might match the return type of a gcc2
16415 builtin and then its argument prototype would still apply. */
16416 char strftime ();
16417 int
16418 main ()
16419 {
16420 strftime ();
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427 (eval $ac_link) 2>conftest.er1
16428 ac_status=$?
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag"
16435 || test ! -s conftest.err'
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest$ac_exeext'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_lib_intl_strftime=yes
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 ac_cv_lib_intl_strftime=no
16453 fi
16454 rm -f conftest.err conftest.$ac_objext \
16455 conftest$ac_exeext conftest.$ac_ext
16456 LIBS=$ac_check_lib_save_LIBS
16457 fi
16458 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16459 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16460 if test $ac_cv_lib_intl_strftime = yes; then
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_STRFTIME 1
16463 _ACEOF
16464
16465 LIBS="-lintl $LIBS"
16466 fi
16467
16468 fi
16469 done
16470
16471
16472 # UNIX98 PTYs.
16473
16474 for ac_func in grantpt
16475 do
16476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16477 echo "$as_me:$LINENO: checking for $ac_func" >&5
16478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16479 if eval "test \"\${$as_ac_var+set}\" = set"; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define $ac_func innocuous_$ac_func
16491
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16496
16497 #ifdef __STDC__
16498 # include <limits.h>
16499 #else
16500 # include <assert.h>
16501 #endif
16502
16503 #undef $ac_func
16504
16505 /* Override any gcc2 internal prototype to avoid an error. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 {
16509 #endif
16510 /* We use char because int might match the return type of a gcc2
16511 builtin and then its argument prototype would still apply. */
16512 char $ac_func ();
16513 /* The GNU C library defines this for functions which it implements
16514 to always fail with ENOSYS. Some functions are actually named
16515 something starting with __ and the normal name is an alias. */
16516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16517 choke me
16518 #else
16519 char (*f) () = $ac_func;
16520 #endif
16521 #ifdef __cplusplus
16522 }
16523 #endif
16524
16525 int
16526 main ()
16527 {
16528 return f != $ac_func;
16529 ;
16530 return 0;
16531 }
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>conftest.er1
16536 ac_status=$?
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -z "$ac_c_werror_flag"
16543 || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest$ac_exeext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 eval "$as_ac_var=yes"
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 eval "$as_ac_var=no"
16561 fi
16562 rm -f conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 fi
16565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16567 if test `eval echo '${'$as_ac_var'}'` = yes; then
16568 cat >>confdefs.h <<_ACEOF
16569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16570 _ACEOF
16571
16572 fi
16573 done
16574
16575
16576 # PTY-related GNU extensions.
16577
16578 for ac_func in getpt
16579 do
16580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16581 echo "$as_me:$LINENO: checking for $ac_func" >&5
16582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16583 if eval "test \"\${$as_ac_var+set}\" = set"; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h. */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16594 #define $ac_func innocuous_$ac_func
16595
16596 /* System header to define __stub macros and hopefully few prototypes,
16597 which can conflict with char $ac_func (); below.
16598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16599 <limits.h> exists even on freestanding compilers. */
16600
16601 #ifdef __STDC__
16602 # include <limits.h>
16603 #else
16604 # include <assert.h>
16605 #endif
16606
16607 #undef $ac_func
16608
16609 /* Override any gcc2 internal prototype to avoid an error. */
16610 #ifdef __cplusplus
16611 extern "C"
16612 {
16613 #endif
16614 /* We use char because int might match the return type of a gcc2
16615 builtin and then its argument prototype would still apply. */
16616 char $ac_func ();
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16621 choke me
16622 #else
16623 char (*f) () = $ac_func;
16624 #endif
16625 #ifdef __cplusplus
16626 }
16627 #endif
16628
16629 int
16630 main ()
16631 {
16632 return f != $ac_func;
16633 ;
16634 return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639 (eval $ac_link) 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest$ac_exeext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 eval "$as_ac_var=yes"
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 eval "$as_ac_var=no"
16665 fi
16666 rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 fi
16669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676 fi
16677 done
16678
16679
16680 # Check this now, so that we will NOT find the above functions in ncurses.
16681 # That is because we have not set up to link ncurses in lib-src.
16682 # It's better to believe a function is not available
16683 # than to expect to find it in ncurses.
16684
16685 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16686 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16687 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690 ac_check_lib_save_LIBS=$LIBS
16691 LIBS="-lncurses $LIBS"
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698
16699 /* Override any gcc2 internal prototype to avoid an error. */
16700 #ifdef __cplusplus
16701 extern "C"
16702 #endif
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16705 char tparm ();
16706 int
16707 main ()
16708 {
16709 tparm ();
16710 ;
16711 return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext conftest$ac_exeext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716 (eval $ac_link) 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_ncurses_tparm=yes
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_cv_lib_ncurses_tparm=no
16742 fi
16743 rm -f conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16746 fi
16747 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16748 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16749 if test $ac_cv_lib_ncurses_tparm = yes; then
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_LIBNCURSES 1
16752 _ACEOF
16753
16754 LIBS="-lncurses $LIBS"
16755
16756 fi
16757
16758
16759 # Do we need the Hesiod library to provide the support routines?
16760 if test "$with_hesiod" = yes ; then
16761 # Don't set $LIBS here -- see comments above.
16762 resolv=no
16763 echo "$as_me:$LINENO: checking for res_send" >&5
16764 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16765 if test "${ac_cv_func_res_send+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16776 #define res_send innocuous_res_send
16777
16778 /* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char res_send (); below.
16780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781 <limits.h> exists even on freestanding compilers. */
16782
16783 #ifdef __STDC__
16784 # include <limits.h>
16785 #else
16786 # include <assert.h>
16787 #endif
16788
16789 #undef res_send
16790
16791 /* Override any gcc2 internal prototype to avoid an error. */
16792 #ifdef __cplusplus
16793 extern "C"
16794 {
16795 #endif
16796 /* We use char because int might match the return type of a gcc2
16797 builtin and then its argument prototype would still apply. */
16798 char res_send ();
16799 /* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
16802 #if defined (__stub_res_send) || defined (__stub___res_send)
16803 choke me
16804 #else
16805 char (*f) () = res_send;
16806 #endif
16807 #ifdef __cplusplus
16808 }
16809 #endif
16810
16811 int
16812 main ()
16813 {
16814 return f != res_send;
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_func_res_send=yes
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_cv_func_res_send=no
16847 fi
16848 rm -f conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850 fi
16851 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16852 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16853 if test $ac_cv_func_res_send = yes; then
16854 :
16855 else
16856 echo "$as_me:$LINENO: checking for __res_send" >&5
16857 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16858 if test "${ac_cv_func___res_send+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16869 #define __res_send innocuous___res_send
16870
16871 /* System header to define __stub macros and hopefully few prototypes,
16872 which can conflict with char __res_send (); below.
16873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16874 <limits.h> exists even on freestanding compilers. */
16875
16876 #ifdef __STDC__
16877 # include <limits.h>
16878 #else
16879 # include <assert.h>
16880 #endif
16881
16882 #undef __res_send
16883
16884 /* Override any gcc2 internal prototype to avoid an error. */
16885 #ifdef __cplusplus
16886 extern "C"
16887 {
16888 #endif
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16891 char __res_send ();
16892 /* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895 #if defined (__stub___res_send) || defined (__stub_____res_send)
16896 choke me
16897 #else
16898 char (*f) () = __res_send;
16899 #endif
16900 #ifdef __cplusplus
16901 }
16902 #endif
16903
16904 int
16905 main ()
16906 {
16907 return f != __res_send;
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914 (eval $ac_link) 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag"
16922 || test ! -s conftest.err'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_func___res_send=yes
16935 else
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_func___res_send=no
16940 fi
16941 rm -f conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943 fi
16944 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16945 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16946 if test $ac_cv_func___res_send = yes; then
16947 :
16948 else
16949 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16950 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16951 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 ac_check_lib_save_LIBS=$LIBS
16955 LIBS="-lresolv $LIBS"
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h. */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962
16963 /* Override any gcc2 internal prototype to avoid an error. */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16969 char res_send ();
16970 int
16971 main ()
16972 {
16973 res_send ();
16974 ;
16975 return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17000 ac_cv_lib_resolv_res_send=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_cv_lib_resolv_res_send=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17010 fi
17011 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17012 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17013 if test $ac_cv_lib_resolv_res_send = yes; then
17014 resolv=yes
17015 else
17016 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17017 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17018 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021 ac_check_lib_save_LIBS=$LIBS
17022 LIBS="-lresolv $LIBS"
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029
17030 /* Override any gcc2 internal prototype to avoid an error. */
17031 #ifdef __cplusplus
17032 extern "C"
17033 #endif
17034 /* We use char because int might match the return type of a gcc2
17035 builtin and then its argument prototype would still apply. */
17036 char __res_send ();
17037 int
17038 main ()
17039 {
17040 __res_send ();
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext conftest$ac_exeext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17047 (eval $ac_link) 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_lib_resolv___res_send=yes
17068 else
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 ac_cv_lib_resolv___res_send=no
17073 fi
17074 rm -f conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17077 fi
17078 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17079 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17080 if test $ac_cv_lib_resolv___res_send = yes; then
17081 resolv=yes
17082 fi
17083
17084 fi
17085
17086 fi
17087
17088 fi
17089
17090 if test "$resolv" = yes ; then
17091 RESOLVLIB=-lresolv
17092
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_LIBRESOLV 1
17095 _ACEOF
17096
17097 else
17098 RESOLVLIB=
17099 fi
17100 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17101 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17102 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17113 #define hes_getmailhost innocuous_hes_getmailhost
17114
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char hes_getmailhost (); below.
17117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 <limits.h> exists even on freestanding compilers. */
17119
17120 #ifdef __STDC__
17121 # include <limits.h>
17122 #else
17123 # include <assert.h>
17124 #endif
17125
17126 #undef hes_getmailhost
17127
17128 /* Override any gcc2 internal prototype to avoid an error. */
17129 #ifdef __cplusplus
17130 extern "C"
17131 {
17132 #endif
17133 /* We use char because int might match the return type of a gcc2
17134 builtin and then its argument prototype would still apply. */
17135 char hes_getmailhost ();
17136 /* The GNU C library defines this for functions which it implements
17137 to always fail with ENOSYS. Some functions are actually named
17138 something starting with __ and the normal name is an alias. */
17139 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17140 choke me
17141 #else
17142 char (*f) () = hes_getmailhost;
17143 #endif
17144 #ifdef __cplusplus
17145 }
17146 #endif
17147
17148 int
17149 main ()
17150 {
17151 return f != hes_getmailhost;
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_hes_getmailhost=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_func_hes_getmailhost=no
17184 fi
17185 rm -f conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17189 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17190 if test $ac_cv_func_hes_getmailhost = yes; then
17191 :
17192 else
17193 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17194 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17195 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lhesiod $RESOLVLIB $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206
17207 /* Override any gcc2 internal prototype to avoid an error. */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 /* We use char because int might match the return type of a gcc2
17212 builtin and then its argument prototype would still apply. */
17213 char hes_getmailhost ();
17214 int
17215 main ()
17216 {
17217 hes_getmailhost ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -z "$ac_c_werror_flag"
17232 || test ! -s conftest.err'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try='test -s conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_cv_lib_hesiod_hes_getmailhost=yes
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ac_cv_lib_hesiod_hes_getmailhost=no
17250 fi
17251 rm -f conftest.err conftest.$ac_objext \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17256 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17257 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17258
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_LIBHESIOD 1
17261 _ACEOF
17262
17263 else
17264 :
17265 fi
17266
17267 fi
17268
17269 fi
17270
17271 # These tell us which Kerberos-related libraries to use.
17272 if test "${with_kerberos+set}" = set; then
17273
17274 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17275 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17276 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279 ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-lcom_err $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287
17288 /* Override any gcc2 internal prototype to avoid an error. */
17289 #ifdef __cplusplus
17290 extern "C"
17291 #endif
17292 /* We use char because int might match the return type of a gcc2
17293 builtin and then its argument prototype would still apply. */
17294 char com_err ();
17295 int
17296 main ()
17297 {
17298 com_err ();
17299 ;
17300 return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305 (eval $ac_link) 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag"
17313 || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_lib_com_err_com_err=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 ac_cv_lib_com_err_com_err=no
17331 fi
17332 rm -f conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17335 fi
17336 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17337 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17338 if test $ac_cv_lib_com_err_com_err = yes; then
17339 cat >>confdefs.h <<_ACEOF
17340 #define HAVE_LIBCOM_ERR 1
17341 _ACEOF
17342
17343 LIBS="-lcom_err $LIBS"
17344
17345 fi
17346
17347
17348 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17349 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17350 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-lk5crypto $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h. */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361
17362 /* Override any gcc2 internal prototype to avoid an error. */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 /* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368 char mit_des_cbc_encrypt ();
17369 int
17370 main ()
17371 {
17372 mit_des_cbc_encrypt ();
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17405 fi
17406 rm -f conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17409 fi
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17411 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17412 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_LIBK5CRYPTO 1
17415 _ACEOF
17416
17417 LIBS="-lk5crypto $LIBS"
17418
17419 fi
17420
17421
17422 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17423 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17424 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427 ac_check_lib_save_LIBS=$LIBS
17428 LIBS="-lcrypto $LIBS"
17429 cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h. */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435
17436 /* Override any gcc2 internal prototype to avoid an error. */
17437 #ifdef __cplusplus
17438 extern "C"
17439 #endif
17440 /* We use char because int might match the return type of a gcc2
17441 builtin and then its argument prototype would still apply. */
17442 char mit_des_cbc_encrypt ();
17443 int
17444 main ()
17445 {
17446 mit_des_cbc_encrypt ();
17447 ;
17448 return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17453 (eval $ac_link) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest$ac_exeext'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17474 else
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17479 fi
17480 rm -f conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17483 fi
17484 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17485 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17486 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define HAVE_LIBCRYPTO 1
17489 _ACEOF
17490
17491 LIBS="-lcrypto $LIBS"
17492
17493 fi
17494
17495
17496 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17497 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17498 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501 ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-lkrb5 $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h. */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509
17510 /* Override any gcc2 internal prototype to avoid an error. */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 /* We use char because int might match the return type of a gcc2
17515 builtin and then its argument prototype would still apply. */
17516 char krb5_init_context ();
17517 int
17518 main ()
17519 {
17520 krb5_init_context ();
17521 ;
17522 return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_lib_krb5_krb5_init_context=yes
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_cv_lib_krb5_krb5_init_context=no
17553 fi
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17559 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17560 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17561 cat >>confdefs.h <<_ACEOF
17562 #define HAVE_LIBKRB5 1
17563 _ACEOF
17564
17565 LIBS="-lkrb5 $LIBS"
17566
17567 fi
17568
17569 if test "${with_kerberos5+set}" != set; then
17570
17571 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17572 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17573 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-ldes425 $LIBS"
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584
17585 /* Override any gcc2 internal prototype to avoid an error. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 /* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591 char des_cbc_encrypt ();
17592 int
17593 main ()
17594 {
17595 des_cbc_encrypt ();
17596 ;
17597 return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_des425_des_cbc_encrypt=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 ac_cv_lib_des425_des_cbc_encrypt=no
17628 fi
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17632 fi
17633 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17634 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17635 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define HAVE_LIBDES425 1
17638 _ACEOF
17639
17640 LIBS="-ldes425 $LIBS"
17641
17642 else
17643
17644 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17645 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17646 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 ac_check_lib_save_LIBS=$LIBS
17650 LIBS="-ldes $LIBS"
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657
17658 /* Override any gcc2 internal prototype to avoid an error. */
17659 #ifdef __cplusplus
17660 extern "C"
17661 #endif
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17664 char des_cbc_encrypt ();
17665 int
17666 main ()
17667 {
17668 des_cbc_encrypt ();
17669 ;
17670 return 0;
17671 }
17672 _ACEOF
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest$ac_exeext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_lib_des_des_cbc_encrypt=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700 ac_cv_lib_des_des_cbc_encrypt=no
17701 fi
17702 rm -f conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
17704 LIBS=$ac_check_lib_save_LIBS
17705 fi
17706 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17707 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17708 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17709 cat >>confdefs.h <<_ACEOF
17710 #define HAVE_LIBDES 1
17711 _ACEOF
17712
17713 LIBS="-ldes $LIBS"
17714
17715 fi
17716
17717 fi
17718
17719
17720 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17721 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17722 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 ac_check_lib_save_LIBS=$LIBS
17726 LIBS="-lkrb4 $LIBS"
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733
17734 /* Override any gcc2 internal prototype to avoid an error. */
17735 #ifdef __cplusplus
17736 extern "C"
17737 #endif
17738 /* We use char because int might match the return type of a gcc2
17739 builtin and then its argument prototype would still apply. */
17740 char krb_get_cred ();
17741 int
17742 main ()
17743 {
17744 krb_get_cred ();
17745 ;
17746 return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_krb4_krb_get_cred=yes
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776 ac_cv_lib_krb4_krb_get_cred=no
17777 fi
17778 rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17781 fi
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17783 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17784 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17785 cat >>confdefs.h <<_ACEOF
17786 #define HAVE_LIBKRB4 1
17787 _ACEOF
17788
17789 LIBS="-lkrb4 $LIBS"
17790
17791 else
17792
17793 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17794 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17795 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 ac_check_lib_save_LIBS=$LIBS
17799 LIBS="-lkrb $LIBS"
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806
17807 /* Override any gcc2 internal prototype to avoid an error. */
17808 #ifdef __cplusplus
17809 extern "C"
17810 #endif
17811 /* We use char because int might match the return type of a gcc2
17812 builtin and then its argument prototype would still apply. */
17813 char krb_get_cred ();
17814 int
17815 main ()
17816 {
17817 krb_get_cred ();
17818 ;
17819 return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_krb_krb_get_cred=yes
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_lib_krb_krb_get_cred=no
17850 fi
17851 rm -f conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853 LIBS=$ac_check_lib_save_LIBS
17854 fi
17855 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17856 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17857 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define HAVE_LIBKRB 1
17860 _ACEOF
17861
17862 LIBS="-lkrb $LIBS"
17863
17864 fi
17865
17866 fi
17867
17868 fi
17869
17870 if test "${with_kerberos5+set}" = set; then
17871
17872 for ac_header in krb5.h
17873 do
17874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17876 echo "$as_me:$LINENO: checking for $ac_header" >&5
17877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 fi
17881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17883 else
17884 # Is the header compilable?
17885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17894 #include <$ac_header>
17895 _ACEOF
17896 rm -f conftest.$ac_objext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_header_compiler=yes
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923 ac_header_compiler=no
17924 fi
17925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6
17928
17929 # Is the header present?
17930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <$ac_header>
17939 _ACEOF
17940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } >/dev/null; then
17948 if test -s conftest.err; then
17949 ac_cpp_err=$ac_c_preproc_warn_flag
17950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17951 else
17952 ac_cpp_err=
17953 fi
17954 else
17955 ac_cpp_err=yes
17956 fi
17957 if test -z "$ac_cpp_err"; then
17958 ac_header_preproc=yes
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ac_header_preproc=no
17964 fi
17965 rm -f conftest.err conftest.$ac_ext
17966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17967 echo "${ECHO_T}$ac_header_preproc" >&6
17968
17969 # So? What about this header?
17970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17971 yes:no: )
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17976 ac_header_preproc=yes
17977 ;;
17978 no:yes:* )
17979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17991 (
17992 cat <<\_ASBOX
17993 ## ------------------------------------------ ##
17994 ## Report this to the AC_PACKAGE_NAME lists. ##
17995 ## ------------------------------------------ ##
17996 _ASBOX
17997 ) |
17998 sed "s/^/$as_me: WARNING: /" >&2
17999 ;;
18000 esac
18001 echo "$as_me:$LINENO: checking for $ac_header" >&5
18002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006 eval "$as_ac_Header=\$ac_header_preproc"
18007 fi
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18010
18011 fi
18012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18013 cat >>confdefs.h <<_ACEOF
18014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18015 _ACEOF
18016
18017 fi
18018
18019 done
18020
18021 else
18022
18023 for ac_header in des.h
18024 do
18025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo "$as_me:$LINENO: checking for $ac_header" >&5
18028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 fi
18032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18034 else
18035 # Is the header compilable?
18036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 $ac_includes_default
18045 #include <$ac_header>
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_header_compiler=yes
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_header_compiler=no
18075 fi
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18079
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <$ac_header>
18090 _ACEOF
18091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } >/dev/null; then
18099 if test -s conftest.err; then
18100 ac_cpp_err=$ac_c_preproc_warn_flag
18101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18102 else
18103 ac_cpp_err=
18104 fi
18105 else
18106 ac_cpp_err=yes
18107 fi
18108 if test -z "$ac_cpp_err"; then
18109 ac_header_preproc=yes
18110 else
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114 ac_header_preproc=no
18115 fi
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18119
18120 # So? What about this header?
18121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18122 yes:no: )
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127 ac_header_preproc=yes
18128 ;;
18129 no:yes:* )
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18142 (
18143 cat <<\_ASBOX
18144 ## ------------------------------------------ ##
18145 ## Report this to the AC_PACKAGE_NAME lists. ##
18146 ## ------------------------------------------ ##
18147 _ASBOX
18148 ) |
18149 sed "s/^/$as_me: WARNING: /" >&2
18150 ;;
18151 esac
18152 echo "$as_me:$LINENO: checking for $ac_header" >&5
18153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18156 else
18157 eval "$as_ac_Header=\$ac_header_preproc"
18158 fi
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18161
18162 fi
18163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18166 _ACEOF
18167
18168 else
18169
18170 for ac_header in kerberosIV/des.h
18171 do
18172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174 echo "$as_me:$LINENO: checking for $ac_header" >&5
18175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 fi
18179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18181 else
18182 # Is the header compilable?
18183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 $ac_includes_default
18192 #include <$ac_header>
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_header_compiler=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_header_compiler=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18225 echo "${ECHO_T}$ac_header_compiler" >&6
18226
18227 # Is the header present?
18228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h. */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 #include <$ac_header>
18237 _ACEOF
18238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18240 ac_status=$?
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } >/dev/null; then
18246 if test -s conftest.err; then
18247 ac_cpp_err=$ac_c_preproc_warn_flag
18248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18249 else
18250 ac_cpp_err=
18251 fi
18252 else
18253 ac_cpp_err=yes
18254 fi
18255 if test -z "$ac_cpp_err"; then
18256 ac_header_preproc=yes
18257 else
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_header_preproc=no
18262 fi
18263 rm -f conftest.err conftest.$ac_ext
18264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18265 echo "${ECHO_T}$ac_header_preproc" >&6
18266
18267 # So? What about this header?
18268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18269 yes:no: )
18270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18274 ac_header_preproc=yes
18275 ;;
18276 no:yes:* )
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18289 (
18290 cat <<\_ASBOX
18291 ## ------------------------------------------ ##
18292 ## Report this to the AC_PACKAGE_NAME lists. ##
18293 ## ------------------------------------------ ##
18294 _ASBOX
18295 ) |
18296 sed "s/^/$as_me: WARNING: /" >&2
18297 ;;
18298 esac
18299 echo "$as_me:$LINENO: checking for $ac_header" >&5
18300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 eval "$as_ac_Header=\$ac_header_preproc"
18305 fi
18306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18308
18309 fi
18310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18311 cat >>confdefs.h <<_ACEOF
18312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18313 _ACEOF
18314
18315 else
18316
18317 for ac_header in kerberos/des.h
18318 do
18319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo "$as_me:$LINENO: checking for $ac_header" >&5
18322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 fi
18326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18328 else
18329 # Is the header compilable?
18330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h. */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 $ac_includes_default
18339 #include <$ac_header>
18340 _ACEOF
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18344 ac_status=$?
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_header_compiler=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_header_compiler=no
18369 fi
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372 echo "${ECHO_T}$ac_header_compiler" >&6
18373
18374 # Is the header present?
18375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #include <$ac_header>
18384 _ACEOF
18385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } >/dev/null; then
18393 if test -s conftest.err; then
18394 ac_cpp_err=$ac_c_preproc_warn_flag
18395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18396 else
18397 ac_cpp_err=
18398 fi
18399 else
18400 ac_cpp_err=yes
18401 fi
18402 if test -z "$ac_cpp_err"; then
18403 ac_header_preproc=yes
18404 else
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 ac_header_preproc=no
18409 fi
18410 rm -f conftest.err conftest.$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6
18413
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18416 yes:no: )
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18422 ;;
18423 no:yes:* )
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18436 (
18437 cat <<\_ASBOX
18438 ## ------------------------------------------ ##
18439 ## Report this to the AC_PACKAGE_NAME lists. ##
18440 ## ------------------------------------------ ##
18441 _ASBOX
18442 ) |
18443 sed "s/^/$as_me: WARNING: /" >&2
18444 ;;
18445 esac
18446 echo "$as_me:$LINENO: checking for $ac_header" >&5
18447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451 eval "$as_ac_Header=\$ac_header_preproc"
18452 fi
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18455
18456 fi
18457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18460 _ACEOF
18461
18462 fi
18463
18464 done
18465
18466 fi
18467
18468 done
18469
18470 fi
18471
18472 done
18473
18474
18475 for ac_header in krb.h
18476 do
18477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18479 echo "$as_me:$LINENO: checking for $ac_header" >&5
18480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 fi
18484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18486 else
18487 # Is the header compilable?
18488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 $ac_includes_default
18497 #include <$ac_header>
18498 _ACEOF
18499 rm -f conftest.$ac_objext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18501 (eval $ac_compile) 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag"
18509 || test ! -s conftest.err'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest.$ac_objext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 ac_header_compiler=yes
18522 else
18523 echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18525
18526 ac_header_compiler=no
18527 fi
18528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18530 echo "${ECHO_T}$ac_header_compiler" >&6
18531
18532 # Is the header present?
18533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 #include <$ac_header>
18542 _ACEOF
18543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } >/dev/null; then
18551 if test -s conftest.err; then
18552 ac_cpp_err=$ac_c_preproc_warn_flag
18553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18554 else
18555 ac_cpp_err=
18556 fi
18557 else
18558 ac_cpp_err=yes
18559 fi
18560 if test -z "$ac_cpp_err"; then
18561 ac_header_preproc=yes
18562 else
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_header_preproc=no
18567 fi
18568 rm -f conftest.err conftest.$ac_ext
18569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18570 echo "${ECHO_T}$ac_header_preproc" >&6
18571
18572 # So? What about this header?
18573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18574 yes:no: )
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18579 ac_header_preproc=yes
18580 ;;
18581 no:yes:* )
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18594 (
18595 cat <<\_ASBOX
18596 ## ------------------------------------------ ##
18597 ## Report this to the AC_PACKAGE_NAME lists. ##
18598 ## ------------------------------------------ ##
18599 _ASBOX
18600 ) |
18601 sed "s/^/$as_me: WARNING: /" >&2
18602 ;;
18603 esac
18604 echo "$as_me:$LINENO: checking for $ac_header" >&5
18605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 eval "$as_ac_Header=\$ac_header_preproc"
18610 fi
18611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18613
18614 fi
18615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18616 cat >>confdefs.h <<_ACEOF
18617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18618 _ACEOF
18619
18620 else
18621
18622 for ac_header in kerberosIV/krb.h
18623 do
18624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18626 echo "$as_me:$LINENO: checking for $ac_header" >&5
18627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 fi
18631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18633 else
18634 # Is the header compilable?
18635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 $ac_includes_default
18644 #include <$ac_header>
18645 _ACEOF
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_header_compiler=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_header_compiler=no
18674 fi
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18677 echo "${ECHO_T}$ac_header_compiler" >&6
18678
18679 # Is the header present?
18680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include <$ac_header>
18689 _ACEOF
18690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } >/dev/null; then
18698 if test -s conftest.err; then
18699 ac_cpp_err=$ac_c_preproc_warn_flag
18700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18701 else
18702 ac_cpp_err=
18703 fi
18704 else
18705 ac_cpp_err=yes
18706 fi
18707 if test -z "$ac_cpp_err"; then
18708 ac_header_preproc=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 ac_header_preproc=no
18714 fi
18715 rm -f conftest.err conftest.$ac_ext
18716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18717 echo "${ECHO_T}$ac_header_preproc" >&6
18718
18719 # So? What about this header?
18720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18721 yes:no: )
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18726 ac_header_preproc=yes
18727 ;;
18728 no:yes:* )
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18741 (
18742 cat <<\_ASBOX
18743 ## ------------------------------------------ ##
18744 ## Report this to the AC_PACKAGE_NAME lists. ##
18745 ## ------------------------------------------ ##
18746 _ASBOX
18747 ) |
18748 sed "s/^/$as_me: WARNING: /" >&2
18749 ;;
18750 esac
18751 echo "$as_me:$LINENO: checking for $ac_header" >&5
18752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 eval "$as_ac_Header=\$ac_header_preproc"
18757 fi
18758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18760
18761 fi
18762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18763 cat >>confdefs.h <<_ACEOF
18764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18765 _ACEOF
18766
18767 else
18768
18769 for ac_header in kerberos/krb.h
18770 do
18771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18773 echo "$as_me:$LINENO: checking for $ac_header" >&5
18774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 fi
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18780 else
18781 # Is the header compilable?
18782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_header_compiler=yes
18816 else
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 ac_header_compiler=no
18821 fi
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6
18825
18826 # Is the header present?
18827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #include <$ac_header>
18836 _ACEOF
18837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev/null; then
18845 if test -s conftest.err; then
18846 ac_cpp_err=$ac_c_preproc_warn_flag
18847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18848 else
18849 ac_cpp_err=
18850 fi
18851 else
18852 ac_cpp_err=yes
18853 fi
18854 if test -z "$ac_cpp_err"; then
18855 ac_header_preproc=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_header_preproc=no
18861 fi
18862 rm -f conftest.err conftest.$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6
18865
18866 # So? What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18868 yes:no: )
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18873 ac_header_preproc=yes
18874 ;;
18875 no:yes:* )
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18888 (
18889 cat <<\_ASBOX
18890 ## ------------------------------------------ ##
18891 ## Report this to the AC_PACKAGE_NAME lists. ##
18892 ## ------------------------------------------ ##
18893 _ASBOX
18894 ) |
18895 sed "s/^/$as_me: WARNING: /" >&2
18896 ;;
18897 esac
18898 echo "$as_me:$LINENO: checking for $ac_header" >&5
18899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 eval "$as_ac_Header=\$ac_header_preproc"
18904 fi
18905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18907
18908 fi
18909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18910 cat >>confdefs.h <<_ACEOF
18911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18912 _ACEOF
18913
18914 fi
18915
18916 done
18917
18918 fi
18919
18920 done
18921
18922 fi
18923
18924 done
18925
18926 fi
18927
18928 for ac_header in com_err.h
18929 do
18930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo "$as_me:$LINENO: checking for $ac_header" >&5
18933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 fi
18937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18939 else
18940 # Is the header compilable?
18941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 $ac_includes_default
18950 #include <$ac_header>
18951 _ACEOF
18952 rm -f conftest.$ac_objext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest.$ac_objext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_header_compiler=yes
18975 else
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_header_compiler=no
18980 fi
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18983 echo "${ECHO_T}$ac_header_compiler" >&6
18984
18985 # Is the header present?
18986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 #include <$ac_header>
18995 _ACEOF
18996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } >/dev/null; then
19004 if test -s conftest.err; then
19005 ac_cpp_err=$ac_c_preproc_warn_flag
19006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19007 else
19008 ac_cpp_err=
19009 fi
19010 else
19011 ac_cpp_err=yes
19012 fi
19013 if test -z "$ac_cpp_err"; then
19014 ac_header_preproc=yes
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 ac_header_preproc=no
19020 fi
19021 rm -f conftest.err conftest.$ac_ext
19022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19023 echo "${ECHO_T}$ac_header_preproc" >&6
19024
19025 # So? What about this header?
19026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19027 yes:no: )
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19032 ac_header_preproc=yes
19033 ;;
19034 no:yes:* )
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19047 (
19048 cat <<\_ASBOX
19049 ## ------------------------------------------ ##
19050 ## Report this to the AC_PACKAGE_NAME lists. ##
19051 ## ------------------------------------------ ##
19052 _ASBOX
19053 ) |
19054 sed "s/^/$as_me: WARNING: /" >&2
19055 ;;
19056 esac
19057 echo "$as_me:$LINENO: checking for $ac_header" >&5
19058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062 eval "$as_ac_Header=\$ac_header_preproc"
19063 fi
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19066
19067 fi
19068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19069 cat >>confdefs.h <<_ACEOF
19070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19071 _ACEOF
19072
19073 fi
19074
19075 done
19076
19077 fi
19078
19079 # Solaris requires -lintl if you want strerror (which calls dgettext)
19080 # to return localized messages.
19081
19082 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19083 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19084 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087 ac_check_lib_save_LIBS=$LIBS
19088 LIBS="-lintl $LIBS"
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095
19096 /* Override any gcc2 internal prototype to avoid an error. */
19097 #ifdef __cplusplus
19098 extern "C"
19099 #endif
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19102 char dgettext ();
19103 int
19104 main ()
19105 {
19106 dgettext ();
19107 ;
19108 return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext conftest$ac_exeext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19113 (eval $ac_link) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest$ac_exeext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_lib_intl_dgettext=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 ac_cv_lib_intl_dgettext=no
19139 fi
19140 rm -f conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19143 fi
19144 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19145 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19146 if test $ac_cv_lib_intl_dgettext = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148 #define HAVE_LIBINTL 1
19149 _ACEOF
19150
19151 LIBS="-lintl $LIBS"
19152
19153 fi
19154
19155
19156 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19157 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19158 if test "${emacs_cv_localtime_cache+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161 if test x$ac_cv_func_tzset = xyes; then
19162 if test "$cross_compiling" = yes; then
19163 # If we have tzset, assume the worst when cross-compiling.
19164 emacs_cv_localtime_cache=yes
19165 else
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <time.h>
19173 extern char **environ;
19174 unset_TZ ()
19175 {
19176 char **from, **to;
19177 for (to = from = environ; (*to = *from); from++)
19178 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19179 to++;
19180 }
19181 char TZ_GMT0[] = "TZ=GMT0";
19182 char TZ_PST8[] = "TZ=PST8";
19183 main()
19184 {
19185 time_t now = time ((time_t *) 0);
19186 int hour_GMT0, hour_unset;
19187 if (putenv (TZ_GMT0) != 0)
19188 exit (1);
19189 hour_GMT0 = localtime (&now)->tm_hour;
19190 unset_TZ ();
19191 hour_unset = localtime (&now)->tm_hour;
19192 if (putenv (TZ_PST8) != 0)
19193 exit (1);
19194 if (localtime (&now)->tm_hour == hour_GMT0)
19195 exit (1);
19196 unset_TZ ();
19197 if (localtime (&now)->tm_hour != hour_unset)
19198 exit (1);
19199 exit (0);
19200 }
19201 _ACEOF
19202 rm -f conftest$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 emacs_cv_localtime_cache=no
19214 else
19215 echo "$as_me: program exited with status $ac_status" >&5
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ( exit $ac_status )
19220 emacs_cv_localtime_cache=yes
19221 fi
19222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19223 fi
19224 else
19225 # If we lack tzset, report that localtime does not cache TZ,
19226 # since we can't invalidate the cache if we don't have tzset.
19227 emacs_cv_localtime_cache=no
19228 fi
19229 fi
19230 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19231 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19232 if test $emacs_cv_localtime_cache = yes; then
19233
19234 cat >>confdefs.h <<\_ACEOF
19235 #define LOCALTIME_CACHE 1
19236 _ACEOF
19237
19238 fi
19239
19240 if test "x$HAVE_TIMEVAL" = xyes; then
19241
19242 for ac_func in gettimeofday
19243 do
19244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19245 echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19247 if eval "test \"\${$as_ac_var+set}\" = set"; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define $ac_func innocuous_$ac_func
19259
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char $ac_func (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19264
19265 #ifdef __STDC__
19266 # include <limits.h>
19267 #else
19268 # include <assert.h>
19269 #endif
19270
19271 #undef $ac_func
19272
19273 /* Override any gcc2 internal prototype to avoid an error. */
19274 #ifdef __cplusplus
19275 extern "C"
19276 {
19277 #endif
19278 /* We use char because int might match the return type of a gcc2
19279 builtin and then its argument prototype would still apply. */
19280 char $ac_func ();
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19285 choke me
19286 #else
19287 char (*f) () = $ac_func;
19288 #endif
19289 #ifdef __cplusplus
19290 }
19291 #endif
19292
19293 int
19294 main ()
19295 {
19296 return f != $ac_func;
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 eval "$as_ac_var=yes"
19324 else
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 eval "$as_ac_var=no"
19329 fi
19330 rm -f conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 fi
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19335 if test `eval echo '${'$as_ac_var'}'` = yes; then
19336 cat >>confdefs.h <<_ACEOF
19337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19338 _ACEOF
19339
19340 fi
19341 done
19342
19343 if test $ac_cv_func_gettimeofday = yes; then
19344 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19345 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19346 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355
19356 #ifdef TIME_WITH_SYS_TIME
19357 #include <sys/time.h>
19358 #include <time.h>
19359 #else
19360 #ifdef HAVE_SYS_TIME_H
19361 #include <sys/time.h>
19362 #else
19363 #include <time.h>
19364 #endif
19365 #endif
19366 int
19367 main ()
19368 {
19369 struct timeval time;
19370 gettimeofday (&time, 0);
19371 ;
19372 return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag"
19385 || test ! -s conftest.err'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest.$ac_objext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 emacs_cv_gettimeofday_two_arguments=yes
19398 else
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 emacs_cv_gettimeofday_two_arguments=no
19403 fi
19404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19405 fi
19406 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19407 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19408 if test $emacs_cv_gettimeofday_two_arguments = no; then
19409
19410 cat >>confdefs.h <<\_ACEOF
19411 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19412 _ACEOF
19413
19414 fi
19415 fi
19416 fi
19417
19418 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19419 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19420 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19421 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424 cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h. */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19430 #include <sys/types.h>
19431 #include <$ac_cv_struct_tm>
19432
19433
19434 int
19435 main ()
19436 {
19437 static struct tm ac_aggr;
19438 if (ac_aggr.tm_zone)
19439 return 0;
19440 ;
19441 return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_member_struct_tm_tm_zone=yes
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <sys/types.h>
19478 #include <$ac_cv_struct_tm>
19479
19480
19481 int
19482 main ()
19483 {
19484 static struct tm ac_aggr;
19485 if (sizeof ac_aggr.tm_zone)
19486 return 0;
19487 ;
19488 return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag"
19501 || test ! -s conftest.err'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 ac_cv_member_struct_tm_tm_zone=yes
19514 else
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_cv_member_struct_tm_tm_zone=no
19519 fi
19520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19521 fi
19522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19523 fi
19524 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19527
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_STRUCT_TM_TM_ZONE 1
19530 _ACEOF
19531
19532
19533 fi
19534
19535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_TM_ZONE 1
19539 _ACEOF
19540
19541 else
19542 echo "$as_me:$LINENO: checking for tzname" >&5
19543 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19544 if test "${ac_cv_var_tzname+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <time.h>
19554 #ifndef tzname /* For SGI. */
19555 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19556 #endif
19557
19558 int
19559 main ()
19560 {
19561 atoi(*tzname);
19562 ;
19563 return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568 (eval $ac_link) 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_c_werror_flag"
19576 || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest$ac_exeext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_var_tzname=yes
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 ac_cv_var_tzname=no
19594 fi
19595 rm -f conftest.err conftest.$ac_objext \
19596 conftest$ac_exeext conftest.$ac_ext
19597 fi
19598 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19599 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19600 if test $ac_cv_var_tzname = yes; then
19601
19602 cat >>confdefs.h <<\_ACEOF
19603 #define HAVE_TZNAME 1
19604 _ACEOF
19605
19606 fi
19607 fi
19608
19609
19610 if test "$ac_cv_func_gettimeofday" = yes; then
19611 echo "$as_me:$LINENO: checking for struct timezone" >&5
19612 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19613 if test "${emacs_cv_struct_timezone+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <sys/time.h>
19623 int
19624 main ()
19625 {
19626 struct timezone tz;
19627 ;
19628 return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633 (eval $ac_compile) 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag"
19641 || test ! -s conftest.err'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; } &&
19647 { ac_try='test -s conftest.$ac_objext'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 if test "$cross_compiling" = yes; then
19654 emacs_cv_struct_timezone=yes
19655 else
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662
19663 #ifdef TIME_WITH_SYS_TIME
19664 #include <sys/time.h>
19665 #include <time.h>
19666 #else
19667 #ifdef HAVE_SYS_TIME_H
19668 #include <sys/time.h>
19669 #else
19670 #include <time.h>
19671 #endif
19672 #endif
19673 main () {
19674 struct timeval time;
19675 struct timezone dummy;
19676 exit (gettimeofday (&time, &dummy));
19677 }
19678 _ACEOF
19679 rm -f conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 emacs_cv_struct_timezone=yes
19691 else
19692 echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 ( exit $ac_status )
19697 emacs_cv_struct_timezone=no
19698 fi
19699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19700 fi
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705 emacs_cv_struct_timezone=no
19706 fi
19707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708 fi
19709 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19710 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19711 fi
19712
19713 ok_so_far=yes
19714 echo "$as_me:$LINENO: checking for socket" >&5
19715 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19716 if test "${ac_cv_func_socket+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19727 #define socket innocuous_socket
19728
19729 /* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char socket (); below.
19731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19732 <limits.h> exists even on freestanding compilers. */
19733
19734 #ifdef __STDC__
19735 # include <limits.h>
19736 #else
19737 # include <assert.h>
19738 #endif
19739
19740 #undef socket
19741
19742 /* Override any gcc2 internal prototype to avoid an error. */
19743 #ifdef __cplusplus
19744 extern "C"
19745 {
19746 #endif
19747 /* We use char because int might match the return type of a gcc2
19748 builtin and then its argument prototype would still apply. */
19749 char socket ();
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined (__stub_socket) || defined (__stub___socket)
19754 choke me
19755 #else
19756 char (*f) () = socket;
19757 #endif
19758 #ifdef __cplusplus
19759 }
19760 #endif
19761
19762 int
19763 main ()
19764 {
19765 return f != socket;
19766 ;
19767 return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext conftest$ac_exeext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772 (eval $ac_link) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest$ac_exeext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_func_socket=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ac_cv_func_socket=no
19798 fi
19799 rm -f conftest.err conftest.$ac_objext \
19800 conftest$ac_exeext conftest.$ac_ext
19801 fi
19802 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19803 echo "${ECHO_T}$ac_cv_func_socket" >&6
19804 if test $ac_cv_func_socket = yes; then
19805 :
19806 else
19807 ok_so_far=no
19808 fi
19809
19810 if test $ok_so_far = yes; then
19811 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19812 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19813 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19814 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 fi
19817 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19818 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19819 else
19820 # Is the header compilable?
19821 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19822 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <netinet/in.h>
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_header_compiler=yes
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 ac_header_compiler=no
19860 fi
19861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19863 echo "${ECHO_T}$ac_header_compiler" >&6
19864
19865 # Is the header present?
19866 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19867 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h. */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 #include <netinet/in.h>
19875 _ACEOF
19876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } >/dev/null; then
19884 if test -s conftest.err; then
19885 ac_cpp_err=$ac_c_preproc_warn_flag
19886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19887 else
19888 ac_cpp_err=
19889 fi
19890 else
19891 ac_cpp_err=yes
19892 fi
19893 if test -z "$ac_cpp_err"; then
19894 ac_header_preproc=yes
19895 else
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899 ac_header_preproc=no
19900 fi
19901 rm -f conftest.err conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19903 echo "${ECHO_T}$ac_header_preproc" >&6
19904
19905 # So? What about this header?
19906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19907 yes:no: )
19908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19909 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19911 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19912 ac_header_preproc=yes
19913 ;;
19914 no:yes:* )
19915 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19916 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19918 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19920 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19922 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19924 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19926 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19927 (
19928 cat <<\_ASBOX
19929 ## ------------------------------------------ ##
19930 ## Report this to the AC_PACKAGE_NAME lists. ##
19931 ## ------------------------------------------ ##
19932 _ASBOX
19933 ) |
19934 sed "s/^/$as_me: WARNING: /" >&2
19935 ;;
19936 esac
19937 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19938 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19939 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942 ac_cv_header_netinet_in_h=$ac_header_preproc
19943 fi
19944 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19945 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19946
19947 fi
19948 if test $ac_cv_header_netinet_in_h = yes; then
19949 :
19950 else
19951 ok_so_far=no
19952 fi
19953
19954
19955 fi
19956 if test $ok_so_far = yes; then
19957 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19958 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19959 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19960 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 fi
19963 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19964 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19965 else
19966 # Is the header compilable?
19967 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19968 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <arpa/inet.h>
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20000 ac_header_compiler=yes
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_header_compiler=no
20006 fi
20007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20009 echo "${ECHO_T}$ac_header_compiler" >&6
20010
20011 # Is the header present?
20012 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20013 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <arpa/inet.h>
20021 _ACEOF
20022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20024 ac_status=$?
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } >/dev/null; then
20030 if test -s conftest.err; then
20031 ac_cpp_err=$ac_c_preproc_warn_flag
20032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20033 else
20034 ac_cpp_err=
20035 fi
20036 else
20037 ac_cpp_err=yes
20038 fi
20039 if test -z "$ac_cpp_err"; then
20040 ac_header_preproc=yes
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_header_preproc=no
20046 fi
20047 rm -f conftest.err conftest.$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20049 echo "${ECHO_T}$ac_header_preproc" >&6
20050
20051 # So? What about this header?
20052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20053 yes:no: )
20054 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20055 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20057 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20058 ac_header_preproc=yes
20059 ;;
20060 no:yes:* )
20061 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20062 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20064 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20066 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20068 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20070 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20072 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20073 (
20074 cat <<\_ASBOX
20075 ## ------------------------------------------ ##
20076 ## Report this to the AC_PACKAGE_NAME lists. ##
20077 ## ------------------------------------------ ##
20078 _ASBOX
20079 ) |
20080 sed "s/^/$as_me: WARNING: /" >&2
20081 ;;
20082 esac
20083 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20084 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20085 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088 ac_cv_header_arpa_inet_h=$ac_header_preproc
20089 fi
20090 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20091 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20092
20093 fi
20094 if test $ac_cv_header_arpa_inet_h = yes; then
20095 :
20096 else
20097 ok_so_far=no
20098 fi
20099
20100
20101 fi
20102 if test $ok_so_far = yes; then
20103
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_INET_SOCKETS 1
20106 _ACEOF
20107
20108 fi
20109
20110
20111 for ac_header in sys/ioctl.h
20112 do
20113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20115 echo "$as_me:$LINENO: checking for $ac_header" >&5
20116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 fi
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20122 else
20123 # Is the header compilable?
20124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h. */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 #include <$ac_header>
20134 _ACEOF
20135 rm -f conftest.$ac_objext
20136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20137 (eval $ac_compile) 2>conftest.er1
20138 ac_status=$?
20139 grep -v '^ *+' conftest.er1 >conftest.err
20140 rm -f conftest.er1
20141 cat conftest.err >&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } &&
20144 { ac_try='test -z "$ac_c_werror_flag"
20145 || test ! -s conftest.err'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest.$ac_objext'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_header_compiler=yes
20158 else
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162 ac_header_compiler=no
20163 fi
20164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6
20167
20168 # Is the header present?
20169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <$ac_header>
20178 _ACEOF
20179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } >/dev/null; then
20187 if test -s conftest.err; then
20188 ac_cpp_err=$ac_c_preproc_warn_flag
20189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20190 else
20191 ac_cpp_err=
20192 fi
20193 else
20194 ac_cpp_err=yes
20195 fi
20196 if test -z "$ac_cpp_err"; then
20197 ac_header_preproc=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_header_preproc=no
20203 fi
20204 rm -f conftest.err conftest.$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20206 echo "${ECHO_T}$ac_header_preproc" >&6
20207
20208 # So? What about this header?
20209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20210 yes:no: )
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20215 ac_header_preproc=yes
20216 ;;
20217 no:yes:* )
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20230 (
20231 cat <<\_ASBOX
20232 ## ------------------------------------------ ##
20233 ## Report this to the AC_PACKAGE_NAME lists. ##
20234 ## ------------------------------------------ ##
20235 _ASBOX
20236 ) |
20237 sed "s/^/$as_me: WARNING: /" >&2
20238 ;;
20239 esac
20240 echo "$as_me:$LINENO: checking for $ac_header" >&5
20241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245 eval "$as_ac_Header=\$ac_header_preproc"
20246 fi
20247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20249
20250 fi
20251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20252 cat >>confdefs.h <<_ACEOF
20253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 _ACEOF
20255
20256 fi
20257
20258 done
20259
20260
20261 if test -f /usr/lpp/X11/bin/smt.exp; then
20262
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_AIX_SMT_EXP 1
20265 _ACEOF
20266
20267 fi
20268
20269 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20270 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20271 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20272 echo "$as_me:$LINENO: result: yes" >&5
20273 echo "${ECHO_T}yes" >&6
20274
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_DEV_PTMX 1
20277 _ACEOF
20278
20279 else
20280 echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6
20282 fi
20283
20284 echo "$as_me:$LINENO: checking for pid_t" >&5
20285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20286 if test "${ac_cv_type_pid_t+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 $ac_includes_default
20296 int
20297 main ()
20298 {
20299 if ((pid_t *) 0)
20300 return 0;
20301 if (sizeof (pid_t))
20302 return 0;
20303 ;
20304 return 0;
20305 }
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_type_pid_t=yes
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_cv_type_pid_t=no
20335 fi
20336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20337 fi
20338 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20339 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20340 if test $ac_cv_type_pid_t = yes; then
20341 :
20342 else
20343
20344 cat >>confdefs.h <<_ACEOF
20345 #define pid_t int
20346 _ACEOF
20347
20348 fi
20349
20350
20351
20352 for ac_header in unistd.h vfork.h
20353 do
20354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 fi
20361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20363 else
20364 # Is the header compilable?
20365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 #include <$ac_header>
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_header_compiler=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_header_compiler=no
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20407 echo "${ECHO_T}$ac_header_compiler" >&6
20408
20409 # Is the header present?
20410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 #include <$ac_header>
20419 _ACEOF
20420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } >/dev/null; then
20428 if test -s conftest.err; then
20429 ac_cpp_err=$ac_c_preproc_warn_flag
20430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20431 else
20432 ac_cpp_err=
20433 fi
20434 else
20435 ac_cpp_err=yes
20436 fi
20437 if test -z "$ac_cpp_err"; then
20438 ac_header_preproc=yes
20439 else
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 ac_header_preproc=no
20444 fi
20445 rm -f conftest.err conftest.$ac_ext
20446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20447 echo "${ECHO_T}$ac_header_preproc" >&6
20448
20449 # So? What about this header?
20450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451 yes:no: )
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20456 ac_header_preproc=yes
20457 ;;
20458 no:yes:* )
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20471 (
20472 cat <<\_ASBOX
20473 ## ------------------------------------------ ##
20474 ## Report this to the AC_PACKAGE_NAME lists. ##
20475 ## ------------------------------------------ ##
20476 _ASBOX
20477 ) |
20478 sed "s/^/$as_me: WARNING: /" >&2
20479 ;;
20480 esac
20481 echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486 eval "$as_ac_Header=\$ac_header_preproc"
20487 fi
20488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20490
20491 fi
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20495 _ACEOF
20496
20497 fi
20498
20499 done
20500
20501
20502
20503 for ac_func in fork vfork
20504 do
20505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20506 echo "$as_me:$LINENO: checking for $ac_func" >&5
20507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20508 if eval "test \"\${$as_ac_var+set}\" = set"; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h. */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20519 #define $ac_func innocuous_$ac_func
20520
20521 /* System header to define __stub macros and hopefully few prototypes,
20522 which can conflict with char $ac_func (); below.
20523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20524 <limits.h> exists even on freestanding compilers. */
20525
20526 #ifdef __STDC__
20527 # include <limits.h>
20528 #else
20529 # include <assert.h>
20530 #endif
20531
20532 #undef $ac_func
20533
20534 /* Override any gcc2 internal prototype to avoid an error. */
20535 #ifdef __cplusplus
20536 extern "C"
20537 {
20538 #endif
20539 /* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541 char $ac_func ();
20542 /* The GNU C library defines this for functions which it implements
20543 to always fail with ENOSYS. Some functions are actually named
20544 something starting with __ and the normal name is an alias. */
20545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20546 choke me
20547 #else
20548 char (*f) () = $ac_func;
20549 #endif
20550 #ifdef __cplusplus
20551 }
20552 #endif
20553
20554 int
20555 main ()
20556 {
20557 return f != $ac_func;
20558 ;
20559 return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20564 (eval $ac_link) 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 eval "$as_ac_var=yes"
20585 else
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 eval "$as_ac_var=no"
20590 fi
20591 rm -f conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20593 fi
20594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20596 if test `eval echo '${'$as_ac_var'}'` = yes; then
20597 cat >>confdefs.h <<_ACEOF
20598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20599 _ACEOF
20600
20601 fi
20602 done
20603
20604 if test "x$ac_cv_func_fork" = xyes; then
20605 echo "$as_me:$LINENO: checking for working fork" >&5
20606 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20607 if test "${ac_cv_func_fork_works+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610 if test "$cross_compiling" = yes; then
20611 ac_cv_func_fork_works=cross
20612 else
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* By Ruediger Kuhlmann. */
20615 #include <sys/types.h>
20616 #if HAVE_UNISTD_H
20617 # include <unistd.h>
20618 #endif
20619 /* Some systems only have a dummy stub for fork() */
20620 int main ()
20621 {
20622 if (fork() < 0)
20623 exit (1);
20624 exit (0);
20625 }
20626 _ACEOF
20627 rm -f conftest$ac_exeext
20628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20629 (eval $ac_link) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_func_fork_works=yes
20639 else
20640 echo "$as_me: program exited with status $ac_status" >&5
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ( exit $ac_status )
20645 ac_cv_func_fork_works=no
20646 fi
20647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20648 fi
20649 fi
20650 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20651 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20652
20653 else
20654 ac_cv_func_fork_works=$ac_cv_func_fork
20655 fi
20656 if test "x$ac_cv_func_fork_works" = xcross; then
20657 case $host in
20658 *-*-amigaos* | *-*-msdosdjgpp*)
20659 # Override, as these systems have only a dummy fork() stub
20660 ac_cv_func_fork_works=no
20661 ;;
20662 *)
20663 ac_cv_func_fork_works=yes
20664 ;;
20665 esac
20666 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20667 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20668 fi
20669 ac_cv_func_vfork_works=$ac_cv_func_vfork
20670 if test "x$ac_cv_func_vfork" = xyes; then
20671 echo "$as_me:$LINENO: checking for working vfork" >&5
20672 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20673 if test "${ac_cv_func_vfork_works+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 if test "$cross_compiling" = yes; then
20677 ac_cv_func_vfork_works=cross
20678 else
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 /* Thanks to Paul Eggert for this test. */
20686 #include <stdio.h>
20687 #include <stdlib.h>
20688 #include <sys/types.h>
20689 #include <sys/stat.h>
20690 #include <sys/wait.h>
20691 #if HAVE_UNISTD_H
20692 # include <unistd.h>
20693 #endif
20694 #if HAVE_VFORK_H
20695 # include <vfork.h>
20696 #endif
20697 /* On some sparc systems, changes by the child to local and incoming
20698 argument registers are propagated back to the parent. The compiler
20699 is told about this with #include <vfork.h>, but some compilers
20700 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20701 static variable whose address is put into a register that is
20702 clobbered by the vfork. */
20703 static void
20704 #ifdef __cplusplus
20705 sparc_address_test (int arg)
20706 # else
20707 sparc_address_test (arg) int arg;
20708 #endif
20709 {
20710 static pid_t child;
20711 if (!child) {
20712 child = vfork ();
20713 if (child < 0) {
20714 perror ("vfork");
20715 _exit(2);
20716 }
20717 if (!child) {
20718 arg = getpid();
20719 write(-1, "", 0);
20720 _exit (arg);
20721 }
20722 }
20723 }
20724
20725 int
20726 main ()
20727 {
20728 pid_t parent = getpid ();
20729 pid_t child;
20730
20731 sparc_address_test (0);
20732
20733 child = vfork ();
20734
20735 if (child == 0) {
20736 /* Here is another test for sparc vfork register problems. This
20737 test uses lots of local variables, at least as many local
20738 variables as main has allocated so far including compiler
20739 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20740 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20741 reuse the register of parent for one of the local variables,
20742 since it will think that parent can't possibly be used any more
20743 in this routine. Assigning to the local variable will thus
20744 munge parent in the parent process. */
20745 pid_t
20746 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20747 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20748 /* Convince the compiler that p..p7 are live; otherwise, it might
20749 use the same hardware register for all 8 local variables. */
20750 if (p != p1 || p != p2 || p != p3 || p != p4
20751 || p != p5 || p != p6 || p != p7)
20752 _exit(1);
20753
20754 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20755 from child file descriptors. If the child closes a descriptor
20756 before it execs or exits, this munges the parent's descriptor
20757 as well. Test for this by closing stdout in the child. */
20758 _exit(close(fileno(stdout)) != 0);
20759 } else {
20760 int status;
20761 struct stat st;
20762
20763 while (wait(&status) != child)
20764 ;
20765 exit(
20766 /* Was there some problem with vforking? */
20767 child < 0
20768
20769 /* Did the child fail? (This shouldn't happen.) */
20770 || status
20771
20772 /* Did the vfork/compiler bug occur? */
20773 || parent != getpid()
20774
20775 /* Did the file descriptor bug occur? */
20776 || fstat(fileno(stdout), &st) != 0
20777 );
20778 }
20779 }
20780 _ACEOF
20781 rm -f conftest$ac_exeext
20782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20783 (eval $ac_link) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_func_vfork_works=yes
20793 else
20794 echo "$as_me: program exited with status $ac_status" >&5
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 ( exit $ac_status )
20799 ac_cv_func_vfork_works=no
20800 fi
20801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20802 fi
20803 fi
20804 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20805 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20806
20807 fi;
20808 if test "x$ac_cv_func_fork_works" = xcross; then
20809 ac_cv_func_vfork_works=$ac_cv_func_vfork
20810 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20811 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20812 fi
20813
20814 if test "x$ac_cv_func_vfork_works" = xyes; then
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define HAVE_WORKING_VFORK 1
20818 _ACEOF
20819
20820 else
20821
20822 cat >>confdefs.h <<\_ACEOF
20823 #define vfork fork
20824 _ACEOF
20825
20826 fi
20827 if test "x$ac_cv_func_fork_works" = xyes; then
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_WORKING_FORK 1
20831 _ACEOF
20832
20833 fi
20834
20835
20836 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20837 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20838 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 #include <langinfo.h>
20848 int
20849 main ()
20850 {
20851 char* cs = nl_langinfo(CODESET);
20852 ;
20853 return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>conftest.er1
20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 emacs_cv_langinfo_codeset=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 emacs_cv_langinfo_codeset=no
20884 fi
20885 rm -f conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20887
20888 fi
20889 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20890 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20891 if test $emacs_cv_langinfo_codeset = yes; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_LANGINFO_CODESET 1
20895 _ACEOF
20896
20897 fi
20898
20899 echo "$as_me:$LINENO: checking for size_t" >&5
20900 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20901 if test "${ac_cv_type_size_t+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904 cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h. */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20911 int
20912 main ()
20913 {
20914 if ((size_t *) 0)
20915 return 0;
20916 if (sizeof (size_t))
20917 return 0;
20918 ;
20919 return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag"
20932 || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_type_size_t=yes
20945 else
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ac_cv_type_size_t=no
20950 fi
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20952 fi
20953 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20954 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20955 if test $ac_cv_type_size_t = yes; then
20956
20957 cat >>confdefs.h <<_ACEOF
20958 #define HAVE_SIZE_T 1
20959 _ACEOF
20960
20961
20962 fi
20963
20964
20965 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20966 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20967 if test "${ac_cv_type_mbstate_t+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 else
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 $ac_includes_default
20977 # include <wchar.h>
20978 int
20979 main ()
20980 {
20981 mbstate_t x; return sizeof x;
20982 ;
20983 return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988 (eval $ac_compile) 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_c_werror_flag"
20996 || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_type_mbstate_t=yes
21009 else
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 ac_cv_type_mbstate_t=no
21014 fi
21015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21018 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21019 if test $ac_cv_type_mbstate_t = yes; then
21020
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_MBSTATE_T 1
21023 _ACEOF
21024
21025 else
21026
21027 cat >>confdefs.h <<\_ACEOF
21028 #define mbstate_t int
21029 _ACEOF
21030
21031 fi
21032
21033 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21034 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21035 if test "${emacs_cv_c_restrict+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 void fred (int *restrict x);
21045 int
21046 main ()
21047 {
21048
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055 (eval $ac_compile) 2>conftest.er1
21056 ac_status=$?
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -z "$ac_c_werror_flag"
21063 || test ! -s conftest.err'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 emacs_cv_c_restrict=yes
21076 else
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 void fred (int *__restrict x);
21087 int
21088 main ()
21089 {
21090
21091 ;
21092 return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag"
21105 || test ! -s conftest.err'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; } &&
21111 { ac_try='test -s conftest.$ac_objext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 emacs_cv_c_restrict=__restrict
21118 else
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122 emacs_cv_c_restrict=no
21123 fi
21124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21125 fi
21126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21127 fi
21128 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21129 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21130 case "$emacs_cv_c_restrict" in
21131 yes) emacs_restrict=restrict;;
21132 no) emacs_restrict="";;
21133 *) emacs_restrict="$emacs_cv_c_restrict";;
21134 esac
21135 if test "$emacs_restrict" != __restrict; then
21136
21137 cat >>confdefs.h <<_ACEOF
21138 #define __restrict $emacs_restrict
21139 _ACEOF
21140
21141 fi
21142
21143 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21144 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21145 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h. */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 void fred (int x[__restrict]);
21155 int
21156 main ()
21157 {
21158
21159 ;
21160 return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165 (eval $ac_compile) 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 emacs_cv_c_restrict_arr=yes
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 emacs_cv_c_restrict_arr=no
21191 fi
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21195 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21196 if test "$emacs_cv_c_restrict_arr" = yes; then
21197
21198 cat >>confdefs.h <<\_ACEOF
21199 #define __restrict_arr __restrict
21200 _ACEOF
21201
21202 fi
21203
21204
21205
21206 # Set up the CFLAGS for real compilation, so we can substitute it.
21207 CFLAGS="$REAL_CFLAGS"
21208 CPPFLAGS="$REAL_CPPFLAGS"
21209
21210 #### Find out which version of Emacs this is.
21211 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21212 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21213 if test x"${version}" = x; then
21214 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21215 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21216 { (exit 1); exit 1; }; }
21217 fi
21218
21219 ### Specify what sort of things we'll be editing into Makefile and config.h.
21220 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256 cat >>confdefs.h <<_ACEOF
21257 #define EMACS_CONFIGURATION "${canonical}"
21258 _ACEOF
21259
21260
21261 cat >>confdefs.h <<_ACEOF
21262 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21263 _ACEOF
21264
21265
21266 cat >>confdefs.h <<_ACEOF
21267 #define config_machfile "${machfile}"
21268 _ACEOF
21269
21270
21271 cat >>confdefs.h <<_ACEOF
21272 #define config_opsysfile "${opsysfile}"
21273 _ACEOF
21274
21275
21276 cat >>confdefs.h <<_ACEOF
21277 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21278 _ACEOF
21279
21280
21281 cat >>confdefs.h <<_ACEOF
21282 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21283 _ACEOF
21284
21285
21286 cat >>confdefs.h <<_ACEOF
21287 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21288 _ACEOF
21289
21290
21291 cat >>confdefs.h <<_ACEOF
21292 #define UNEXEC_SRC ${UNEXEC_SRC}
21293 _ACEOF
21294
21295
21296 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_X_WINDOWS 1
21300 _ACEOF
21301
21302 fi
21303 if test "${USE_X_TOOLKIT}" != "none" ; then
21304
21305 cat >>confdefs.h <<\_ACEOF
21306 #define USE_X_TOOLKIT 1
21307 _ACEOF
21308
21309 fi
21310 if test "${HAVE_X11}" = "yes" ; then
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_X11 1
21314 _ACEOF
21315
21316 fi
21317 if test "${HAVE_XFREE386}" = "yes" ; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_XFREE386 1
21321 _ACEOF
21322
21323 fi
21324 if test "${HAVE_MENUS}" = "yes" ; then
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_MENUS 1
21328 _ACEOF
21329
21330 fi
21331 if test "${GNU_MALLOC}" = "yes" ; then
21332
21333 cat >>confdefs.h <<\_ACEOF
21334 #define GNU_MALLOC 1
21335 _ACEOF
21336
21337 fi
21338 if test "${REL_ALLOC}" = "yes" ; then
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define REL_ALLOC 1
21342 _ACEOF
21343
21344 fi
21345
21346
21347
21348
21349
21350 #### Report on what we decided to do.
21351 #### Report GTK as a toolkit, even if it doesn't use Xt.
21352 #### It makes printing result more understandable as using GTK sets
21353 #### toolkit_scroll_bars to yes by default.
21354 if test "${HAVE_GTK}" = "yes"; then
21355 USE_X_TOOLKIT=GTK
21356 fi
21357
21358 echo "
21359 Configured for \`${canonical}'.
21360
21361 Where should the build process find the source code? ${srcdir}
21362 What operating system and machine description files should Emacs use?
21363 \`${opsysfile}' and \`${machfile}'
21364 What compiler should emacs be built with? ${CC} ${CFLAGS}
21365 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21366 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21367 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21368 What window system should Emacs use? ${window_system}
21369 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21370
21371 if test -n "${x_includes}"; then
21372 echo " Where do we find X Windows header files? ${x_includes}"
21373 else
21374 echo " Where do we find X Windows header files? Standard dirs"
21375 fi
21376 if test -n "${x_libraries}"; then
21377 echo " Where do we find X Windows libraries? ${x_libraries}"
21378 else
21379 echo " Where do we find X Windows libraries? Standard dirs"
21380 fi
21381
21382 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21383 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21384 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21385 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21386 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21387 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21388 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21389 echo
21390
21391 # Remove any trailing slashes in these variables.
21392 test "${prefix}" != NONE &&
21393 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21394 test "${exec_prefix}" != NONE &&
21395 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21396
21397 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21398 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21399 ## from Makefile.c can correctly provide the arg `-traditional' to the
21400 ## C preprocessor.
21401
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 yes..yes
21409 _ACEOF
21410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21411 $EGREP "yes..yes" >/dev/null 2>&1; then
21412 CPP_NEED_TRADITIONAL=no
21413 else
21414 CPP_NEED_TRADITIONAL=yes
21415 fi
21416 rm -f conftest*
21417
21418
21419 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"
21420 ac_config_commands="$ac_config_commands default"
21421 cat >confcache <<\_ACEOF
21422 # This file is a shell script that caches the results of configure
21423 # tests run on this system so they can be shared between configure
21424 # scripts and configure runs, see configure's option --config-cache.
21425 # It is not useful on other systems. If it contains results you don't
21426 # want to keep, you may remove or edit it.
21427 #
21428 # config.status only pays attention to the cache file if you give it
21429 # the --recheck option to rerun configure.
21430 #
21431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21433 # following values.
21434
21435 _ACEOF
21436
21437 # The following way of writing the cache mishandles newlines in values,
21438 # but we know of no workaround that is simple, portable, and efficient.
21439 # So, don't put newlines in cache variables' values.
21440 # Ultrix sh set writes to stderr and can't be redirected directly,
21441 # and sets the high bit in the cache file unless we assign to the vars.
21442 {
21443 (set) 2>&1 |
21444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21445 *ac_space=\ *)
21446 # `set' does not quote correctly, so add quotes (double-quote
21447 # substitution turns \\\\ into \\, and sed turns \\ into \).
21448 sed -n \
21449 "s/'/'\\\\''/g;
21450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21451 ;;
21452 *)
21453 # `set' quotes correctly as required by POSIX, so do not add quotes.
21454 sed -n \
21455 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21456 ;;
21457 esac;
21458 } |
21459 sed '
21460 t clear
21461 : clear
21462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21463 t end
21464 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21465 : end' >>confcache
21466 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21467 if test -w $cache_file; then
21468 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21469 cat confcache >$cache_file
21470 else
21471 echo "not updating unwritable cache $cache_file"
21472 fi
21473 fi
21474 rm -f confcache
21475
21476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21477 # Let make expand exec_prefix.
21478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21479
21480 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21481 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21482 # trailing colons and then remove the whole line if VPATH becomes empty
21483 # (actually we leave an empty line to preserve line numbers).
21484 if test "x$srcdir" = x.; then
21485 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21486 s/:*\$(srcdir):*/:/;
21487 s/:*\${srcdir}:*/:/;
21488 s/:*@srcdir@:*/:/;
21489 s/^\([^=]*=[ ]*\):*/\1/;
21490 s/:*$//;
21491 s/^[^=]*=[ ]*$//;
21492 }'
21493 fi
21494
21495 DEFS=-DHAVE_CONFIG_H
21496
21497 ac_libobjs=
21498 ac_ltlibobjs=
21499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21500 # 1. Remove the extension, and $U if already installed.
21501 ac_i=`echo "$ac_i" |
21502 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21503 # 2. Add them.
21504 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21505 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21506 done
21507 LIBOBJS=$ac_libobjs
21508
21509 LTLIBOBJS=$ac_ltlibobjs
21510
21511
21512
21513 : ${CONFIG_STATUS=./config.status}
21514 ac_clean_files_save=$ac_clean_files
21515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21516 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21517 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21518 cat >$CONFIG_STATUS <<_ACEOF
21519 #! $SHELL
21520 # Generated by $as_me.
21521 # Run this file to recreate the current configuration.
21522 # Compiler output produced by configure, useful for debugging
21523 # configure, is in config.log if it exists.
21524
21525 debug=false
21526 ac_cs_recheck=false
21527 ac_cs_silent=false
21528 SHELL=\${CONFIG_SHELL-$SHELL}
21529 _ACEOF
21530
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21532 ## --------------------- ##
21533 ## M4sh Initialization. ##
21534 ## --------------------- ##
21535
21536 # Be Bourne compatible
21537 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21538 emulate sh
21539 NULLCMD=:
21540 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21541 # is contrary to our usage. Disable this feature.
21542 alias -g '${1+"$@"}'='"$@"'
21543 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21544 set -o posix
21545 fi
21546 DUALCASE=1; export DUALCASE # for MKS sh
21547
21548 # Support unset when possible.
21549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21550 as_unset=unset
21551 else
21552 as_unset=false
21553 fi
21554
21555
21556 # Work around bugs in pre-3.0 UWIN ksh.
21557 $as_unset ENV MAIL MAILPATH
21558 PS1='$ '
21559 PS2='> '
21560 PS4='+ '
21561
21562 # NLS nuisances.
21563 for as_var in \
21564 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21565 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21566 LC_TELEPHONE LC_TIME
21567 do
21568 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21569 eval $as_var=C; export $as_var
21570 else
21571 $as_unset $as_var
21572 fi
21573 done
21574
21575 # Required to use basename.
21576 if expr a : '\(a\)' >/dev/null 2>&1; then
21577 as_expr=expr
21578 else
21579 as_expr=false
21580 fi
21581
21582 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21583 as_basename=basename
21584 else
21585 as_basename=false
21586 fi
21587
21588
21589 # Name of the executable.
21590 as_me=`$as_basename "$0" ||
21591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21592 X"$0" : 'X\(//\)$' \| \
21593 X"$0" : 'X\(/\)$' \| \
21594 . : '\(.\)' 2>/dev/null ||
21595 echo X/"$0" |
21596 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21597 /^X\/\(\/\/\)$/{ s//\1/; q; }
21598 /^X\/\(\/\).*/{ s//\1/; q; }
21599 s/.*/./; q'`
21600
21601
21602 # PATH needs CR, and LINENO needs CR and PATH.
21603 # Avoid depending upon Character Ranges.
21604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21607 as_cr_digits='0123456789'
21608 as_cr_alnum=$as_cr_Letters$as_cr_digits
21609
21610 # The user is always right.
21611 if test "${PATH_SEPARATOR+set}" != set; then
21612 echo "#! /bin/sh" >conf$$.sh
21613 echo "exit 0" >>conf$$.sh
21614 chmod +x conf$$.sh
21615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21616 PATH_SEPARATOR=';'
21617 else
21618 PATH_SEPARATOR=:
21619 fi
21620 rm -f conf$$.sh
21621 fi
21622
21623
21624 as_lineno_1=$LINENO
21625 as_lineno_2=$LINENO
21626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21627 test "x$as_lineno_1" != "x$as_lineno_2" &&
21628 test "x$as_lineno_3" = "x$as_lineno_2" || {
21629 # Find who we are. Look in the path if we contain no path at all
21630 # relative or not.
21631 case $0 in
21632 *[\\/]* ) as_myself=$0 ;;
21633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21634 for as_dir in $PATH
21635 do
21636 IFS=$as_save_IFS
21637 test -z "$as_dir" && as_dir=.
21638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21639 done
21640
21641 ;;
21642 esac
21643 # We did not find ourselves, most probably we were run as `sh COMMAND'
21644 # in which case we are not to be found in the path.
21645 if test "x$as_myself" = x; then
21646 as_myself=$0
21647 fi
21648 if test ! -f "$as_myself"; then
21649 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21650 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21651 { (exit 1); exit 1; }; }
21652 fi
21653 case $CONFIG_SHELL in
21654 '')
21655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21657 do
21658 IFS=$as_save_IFS
21659 test -z "$as_dir" && as_dir=.
21660 for as_base in sh bash ksh sh5; do
21661 case $as_dir in
21662 /*)
21663 if ("$as_dir/$as_base" -c '
21664 as_lineno_1=$LINENO
21665 as_lineno_2=$LINENO
21666 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21667 test "x$as_lineno_1" != "x$as_lineno_2" &&
21668 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21669 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21670 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21671 CONFIG_SHELL=$as_dir/$as_base
21672 export CONFIG_SHELL
21673 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21674 fi;;
21675 esac
21676 done
21677 done
21678 ;;
21679 esac
21680
21681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21682 # uniformly replaced by the line number. The first 'sed' inserts a
21683 # line-number line before each line; the second 'sed' does the real
21684 # work. The second script uses 'N' to pair each line-number line
21685 # with the numbered line, and appends trailing '-' during
21686 # substitution so that $LINENO is not a special case at line end.
21687 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21688 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21689 sed '=' <$as_myself |
21690 sed '
21691 N
21692 s,$,-,
21693 : loop
21694 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21695 t loop
21696 s,-$,,
21697 s,^['$as_cr_digits']*\n,,
21698 ' >$as_me.lineno &&
21699 chmod +x $as_me.lineno ||
21700 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21701 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21702 { (exit 1); exit 1; }; }
21703
21704 # Don't try to exec as it changes $[0], causing all sort of problems
21705 # (the dirname of $[0] is not the place where we might find the
21706 # original and so on. Autoconf is especially sensible to this).
21707 . ./$as_me.lineno
21708 # Exit status is that of the last command.
21709 exit
21710 }
21711
21712
21713 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21714 *c*,-n*) ECHO_N= ECHO_C='
21715 ' ECHO_T=' ' ;;
21716 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21717 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21718 esac
21719
21720 if expr a : '\(a\)' >/dev/null 2>&1; then
21721 as_expr=expr
21722 else
21723 as_expr=false
21724 fi
21725
21726 rm -f conf$$ conf$$.exe conf$$.file
21727 echo >conf$$.file
21728 if ln -s conf$$.file conf$$ 2>/dev/null; then
21729 # We could just check for DJGPP; but this test a) works b) is more generic
21730 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21731 if test -f conf$$.exe; then
21732 # Don't use ln at all; we don't have any links
21733 as_ln_s='cp -p'
21734 else
21735 as_ln_s='ln -s'
21736 fi
21737 elif ln conf$$.file conf$$ 2>/dev/null; then
21738 as_ln_s=ln
21739 else
21740 as_ln_s='cp -p'
21741 fi
21742 rm -f conf$$ conf$$.exe conf$$.file
21743
21744 if mkdir -p . 2>/dev/null; then
21745 as_mkdir_p=:
21746 else
21747 test -d ./-p && rmdir ./-p
21748 as_mkdir_p=false
21749 fi
21750
21751 as_executable_p="test -f"
21752
21753 # Sed expression to map a string onto a valid CPP name.
21754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21755
21756 # Sed expression to map a string onto a valid variable name.
21757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21758
21759
21760 # IFS
21761 # We need space, tab and new line, in precisely that order.
21762 as_nl='
21763 '
21764 IFS=" $as_nl"
21765
21766 # CDPATH.
21767 $as_unset CDPATH
21768
21769 exec 6>&1
21770
21771 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21772 # report actual input values of CONFIG_FILES etc. instead of their
21773 # values after options handling. Logging --version etc. is OK.
21774 exec 5>>config.log
21775 {
21776 echo
21777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21778 ## Running $as_me. ##
21779 _ASBOX
21780 } >&5
21781 cat >&5 <<_CSEOF
21782
21783 This file was extended by $as_me, which was
21784 generated by GNU Autoconf 2.59. Invocation command line was
21785
21786 CONFIG_FILES = $CONFIG_FILES
21787 CONFIG_HEADERS = $CONFIG_HEADERS
21788 CONFIG_LINKS = $CONFIG_LINKS
21789 CONFIG_COMMANDS = $CONFIG_COMMANDS
21790 $ $0 $@
21791
21792 _CSEOF
21793 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21794 echo >&5
21795 _ACEOF
21796
21797 # Files that config.status was made for.
21798 if test -n "$ac_config_files"; then
21799 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21800 fi
21801
21802 if test -n "$ac_config_headers"; then
21803 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21804 fi
21805
21806 if test -n "$ac_config_links"; then
21807 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21808 fi
21809
21810 if test -n "$ac_config_commands"; then
21811 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21812 fi
21813
21814 cat >>$CONFIG_STATUS <<\_ACEOF
21815
21816 ac_cs_usage="\
21817 \`$as_me' instantiates files from templates according to the
21818 current configuration.
21819
21820 Usage: $0 [OPTIONS] [FILE]...
21821
21822 -h, --help print this help, then exit
21823 -V, --version print version number, then exit
21824 -q, --quiet do not print progress messages
21825 -d, --debug don't remove temporary files
21826 --recheck update $as_me by reconfiguring in the same conditions
21827 --file=FILE[:TEMPLATE]
21828 instantiate the configuration file FILE
21829 --header=FILE[:TEMPLATE]
21830 instantiate the configuration header FILE
21831
21832 Configuration files:
21833 $config_files
21834
21835 Configuration headers:
21836 $config_headers
21837
21838 Configuration commands:
21839 $config_commands
21840
21841 Report bugs to <bug-autoconf@gnu.org>."
21842 _ACEOF
21843
21844 cat >>$CONFIG_STATUS <<_ACEOF
21845 ac_cs_version="\\
21846 config.status
21847 configured by $0, generated by GNU Autoconf 2.59,
21848 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21849
21850 Copyright (C) 2003 Free Software Foundation, Inc.
21851 This config.status script is free software; the Free Software Foundation
21852 gives unlimited permission to copy, distribute and modify it."
21853 srcdir=$srcdir
21854 INSTALL="$INSTALL"
21855 _ACEOF
21856
21857 cat >>$CONFIG_STATUS <<\_ACEOF
21858 # If no file are specified by the user, then we need to provide default
21859 # value. By we need to know if files were specified by the user.
21860 ac_need_defaults=:
21861 while test $# != 0
21862 do
21863 case $1 in
21864 --*=*)
21865 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21866 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21867 ac_shift=:
21868 ;;
21869 -*)
21870 ac_option=$1
21871 ac_optarg=$2
21872 ac_shift=shift
21873 ;;
21874 *) # This is not an option, so the user has probably given explicit
21875 # arguments.
21876 ac_option=$1
21877 ac_need_defaults=false;;
21878 esac
21879
21880 case $ac_option in
21881 # Handling of the options.
21882 _ACEOF
21883 cat >>$CONFIG_STATUS <<\_ACEOF
21884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21885 ac_cs_recheck=: ;;
21886 --version | --vers* | -V )
21887 echo "$ac_cs_version"; exit 0 ;;
21888 --he | --h)
21889 # Conflict between --help and --header
21890 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21891 Try \`$0 --help' for more information." >&5
21892 echo "$as_me: error: ambiguous option: $1
21893 Try \`$0 --help' for more information." >&2;}
21894 { (exit 1); exit 1; }; };;
21895 --help | --hel | -h )
21896 echo "$ac_cs_usage"; exit 0 ;;
21897 --debug | --d* | -d )
21898 debug=: ;;
21899 --file | --fil | --fi | --f )
21900 $ac_shift
21901 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21902 ac_need_defaults=false;;
21903 --header | --heade | --head | --hea )
21904 $ac_shift
21905 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21906 ac_need_defaults=false;;
21907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21909 ac_cs_silent=: ;;
21910
21911 # This is an error.
21912 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21913 Try \`$0 --help' for more information." >&5
21914 echo "$as_me: error: unrecognized option: $1
21915 Try \`$0 --help' for more information." >&2;}
21916 { (exit 1); exit 1; }; } ;;
21917
21918 *) ac_config_targets="$ac_config_targets $1" ;;
21919
21920 esac
21921 shift
21922 done
21923
21924 ac_configure_extra_args=
21925
21926 if $ac_cs_silent; then
21927 exec 6>/dev/null
21928 ac_configure_extra_args="$ac_configure_extra_args --silent"
21929 fi
21930
21931 _ACEOF
21932 cat >>$CONFIG_STATUS <<_ACEOF
21933 if \$ac_cs_recheck; then
21934 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21935 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21936 fi
21937
21938 _ACEOF
21939
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 #
21942 # INIT-COMMANDS section.
21943 #
21944
21945 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21946
21947 _ACEOF
21948
21949
21950
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 for ac_config_target in $ac_config_targets
21953 do
21954 case "$ac_config_target" in
21955 # Handling of arguments.
21956 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21957 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21958 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21959 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21960 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21961 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21962 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21963 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21964 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21965 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21966 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21967 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21970 { (exit 1); exit 1; }; };;
21971 esac
21972 done
21973
21974 # If the user did not use the arguments to specify the items to instantiate,
21975 # then the envvar interface is used. Set only those that are not.
21976 # We use the long form for the default assignment because of an extremely
21977 # bizarre bug on SunOS 4.1.3.
21978 if $ac_need_defaults; then
21979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21982 fi
21983
21984 # Have a temporary directory for convenience. Make it in the build tree
21985 # simply because there is no reason to put it here, and in addition,
21986 # creating and moving files from /tmp can sometimes cause problems.
21987 # Create a temporary directory, and hook for its removal unless debugging.
21988 $debug ||
21989 {
21990 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21991 trap '{ (exit 1); exit 1; }' 1 2 13 15
21992 }
21993
21994 # Create a (secure) tmp directory for tmp files.
21995
21996 {
21997 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21998 test -n "$tmp" && test -d "$tmp"
21999 } ||
22000 {
22001 tmp=./confstat$$-$RANDOM
22002 (umask 077 && mkdir $tmp)
22003 } ||
22004 {
22005 echo "$me: cannot create a temporary directory in ." >&2
22006 { (exit 1); exit 1; }
22007 }
22008
22009 _ACEOF
22010
22011 cat >>$CONFIG_STATUS <<_ACEOF
22012
22013 #
22014 # CONFIG_FILES section.
22015 #
22016
22017 # No need to generate the scripts if there are no CONFIG_FILES.
22018 # This happens for instance when ./config.status config.h
22019 if test -n "\$CONFIG_FILES"; then
22020 # Protect against being on the right side of a sed subst in config.status.
22021 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22022 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22023 s,@SHELL@,$SHELL,;t t
22024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22030 s,@exec_prefix@,$exec_prefix,;t t
22031 s,@prefix@,$prefix,;t t
22032 s,@program_transform_name@,$program_transform_name,;t t
22033 s,@bindir@,$bindir,;t t
22034 s,@sbindir@,$sbindir,;t t
22035 s,@libexecdir@,$libexecdir,;t t
22036 s,@datadir@,$datadir,;t t
22037 s,@sysconfdir@,$sysconfdir,;t t
22038 s,@sharedstatedir@,$sharedstatedir,;t t
22039 s,@localstatedir@,$localstatedir,;t t
22040 s,@libdir@,$libdir,;t t
22041 s,@includedir@,$includedir,;t t
22042 s,@oldincludedir@,$oldincludedir,;t t
22043 s,@infodir@,$infodir,;t t
22044 s,@mandir@,$mandir,;t t
22045 s,@build_alias@,$build_alias,;t t
22046 s,@host_alias@,$host_alias,;t t
22047 s,@target_alias@,$target_alias,;t t
22048 s,@DEFS@,$DEFS,;t t
22049 s,@ECHO_C@,$ECHO_C,;t t
22050 s,@ECHO_N@,$ECHO_N,;t t
22051 s,@ECHO_T@,$ECHO_T,;t t
22052 s,@LIBS@,$LIBS,;t t
22053 s,@MAINT@,$MAINT,;t t
22054 s,@build@,$build,;t t
22055 s,@build_cpu@,$build_cpu,;t t
22056 s,@build_vendor@,$build_vendor,;t t
22057 s,@build_os@,$build_os,;t t
22058 s,@host@,$host,;t t
22059 s,@host_cpu@,$host_cpu,;t t
22060 s,@host_vendor@,$host_vendor,;t t
22061 s,@host_os@,$host_os,;t t
22062 s,@CC@,$CC,;t t
22063 s,@CFLAGS@,$CFLAGS,;t t
22064 s,@LDFLAGS@,$LDFLAGS,;t t
22065 s,@CPPFLAGS@,$CPPFLAGS,;t t
22066 s,@ac_ct_CC@,$ac_ct_CC,;t t
22067 s,@EXEEXT@,$EXEEXT,;t t
22068 s,@OBJEXT@,$OBJEXT,;t t
22069 s,@LN_S@,$LN_S,;t t
22070 s,@CPP@,$CPP,;t t
22071 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22072 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22073 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22074 s,@RANLIB@,$RANLIB,;t t
22075 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22076 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22077 s,@EGREP@,$EGREP,;t t
22078 s,@SETARCH@,$SETARCH,;t t
22079 s,@LIBSOUND@,$LIBSOUND,;t t
22080 s,@SET_MAKE@,$SET_MAKE,;t t
22081 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22082 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22083 s,@GTK_LIBS@,$GTK_LIBS,;t t
22084 s,@ALLOCA@,$ALLOCA,;t t
22085 s,@liblockfile@,$liblockfile,;t t
22086 s,@LIBOBJS@,$LIBOBJS,;t t
22087 s,@NEED_SETGID@,$NEED_SETGID,;t t
22088 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22089 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22090 s,@version@,$version,;t t
22091 s,@configuration@,$configuration,;t t
22092 s,@canonical@,$canonical,;t t
22093 s,@srcdir@,$srcdir,;t t
22094 s,@lispdir@,$lispdir,;t t
22095 s,@locallisppath@,$locallisppath,;t t
22096 s,@lisppath@,$lisppath,;t t
22097 s,@x_default_search_path@,$x_default_search_path,;t t
22098 s,@etcdir@,$etcdir,;t t
22099 s,@archlibdir@,$archlibdir,;t t
22100 s,@docdir@,$docdir,;t t
22101 s,@bitmapdir@,$bitmapdir,;t t
22102 s,@gamedir@,$gamedir,;t t
22103 s,@gameuser@,$gameuser,;t t
22104 s,@c_switch_system@,$c_switch_system,;t t
22105 s,@c_switch_machine@,$c_switch_machine,;t t
22106 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22107 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22108 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22109 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22110 s,@machfile@,$machfile,;t t
22111 s,@opsysfile@,$opsysfile,;t t
22112 s,@carbon_appdir@,$carbon_appdir,;t t
22113 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22114 CEOF
22115
22116 _ACEOF
22117
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 # Split the substitutions into bite-sized pieces for seds with
22120 # small command number limits, like on Digital OSF/1 and HP-UX.
22121 ac_max_sed_lines=48
22122 ac_sed_frag=1 # Number of current file.
22123 ac_beg=1 # First line for current file.
22124 ac_end=$ac_max_sed_lines # Line after last line for current file.
22125 ac_more_lines=:
22126 ac_sed_cmds=
22127 while $ac_more_lines; do
22128 if test $ac_beg -gt 1; then
22129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22130 else
22131 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22132 fi
22133 if test ! -s $tmp/subs.frag; then
22134 ac_more_lines=false
22135 else
22136 # The purpose of the label and of the branching condition is to
22137 # speed up the sed processing (if there are no `@' at all, there
22138 # is no need to browse any of the substitutions).
22139 # These are the two extra sed commands mentioned above.
22140 (echo ':t
22141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22142 if test -z "$ac_sed_cmds"; then
22143 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22144 else
22145 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22146 fi
22147 ac_sed_frag=`expr $ac_sed_frag + 1`
22148 ac_beg=$ac_end
22149 ac_end=`expr $ac_end + $ac_max_sed_lines`
22150 fi
22151 done
22152 if test -z "$ac_sed_cmds"; then
22153 ac_sed_cmds=cat
22154 fi
22155 fi # test -n "$CONFIG_FILES"
22156
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22159 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22161 case $ac_file in
22162 - | *:- | *:-:* ) # input from stdin
22163 cat >$tmp/stdin
22164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22168 * ) ac_file_in=$ac_file.in ;;
22169 esac
22170
22171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174 X"$ac_file" : 'X\(//\)[^/]' \| \
22175 X"$ac_file" : 'X\(//\)$' \| \
22176 X"$ac_file" : 'X\(/\)' \| \
22177 . : '\(.\)' 2>/dev/null ||
22178 echo X"$ac_file" |
22179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22181 /^X\(\/\/\)$/{ s//\1/; q; }
22182 /^X\(\/\).*/{ s//\1/; q; }
22183 s/.*/./; q'`
22184 { if $as_mkdir_p; then
22185 mkdir -p "$ac_dir"
22186 else
22187 as_dir="$ac_dir"
22188 as_dirs=
22189 while test ! -d "$as_dir"; do
22190 as_dirs="$as_dir $as_dirs"
22191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22193 X"$as_dir" : 'X\(//\)[^/]' \| \
22194 X"$as_dir" : 'X\(//\)$' \| \
22195 X"$as_dir" : 'X\(/\)' \| \
22196 . : '\(.\)' 2>/dev/null ||
22197 echo X"$as_dir" |
22198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22200 /^X\(\/\/\)$/{ s//\1/; q; }
22201 /^X\(\/\).*/{ s//\1/; q; }
22202 s/.*/./; q'`
22203 done
22204 test ! -n "$as_dirs" || mkdir $as_dirs
22205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22207 { (exit 1); exit 1; }; }; }
22208
22209 ac_builddir=.
22210
22211 if test "$ac_dir" != .; then
22212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22213 # A "../" for each directory in $ac_dir_suffix.
22214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22215 else
22216 ac_dir_suffix= ac_top_builddir=
22217 fi
22218
22219 case $srcdir in
22220 .) # No --srcdir option. We are building in place.
22221 ac_srcdir=.
22222 if test -z "$ac_top_builddir"; then
22223 ac_top_srcdir=.
22224 else
22225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22226 fi ;;
22227 [\\/]* | ?:[\\/]* ) # Absolute path.
22228 ac_srcdir=$srcdir$ac_dir_suffix;
22229 ac_top_srcdir=$srcdir ;;
22230 *) # Relative path.
22231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22233 esac
22234
22235 # Do not use `cd foo && pwd` to compute absolute paths, because
22236 # the directories may not exist.
22237 case `pwd` in
22238 .) ac_abs_builddir="$ac_dir";;
22239 *)
22240 case "$ac_dir" in
22241 .) ac_abs_builddir=`pwd`;;
22242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22244 esac;;
22245 esac
22246 case $ac_abs_builddir in
22247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22248 *)
22249 case ${ac_top_builddir}. in
22250 .) ac_abs_top_builddir=$ac_abs_builddir;;
22251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22253 esac;;
22254 esac
22255 case $ac_abs_builddir in
22256 .) ac_abs_srcdir=$ac_srcdir;;
22257 *)
22258 case $ac_srcdir in
22259 .) ac_abs_srcdir=$ac_abs_builddir;;
22260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22262 esac;;
22263 esac
22264 case $ac_abs_builddir in
22265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22266 *)
22267 case $ac_top_srcdir in
22268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22271 esac;;
22272 esac
22273
22274
22275 case $INSTALL in
22276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22277 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22278 esac
22279
22280 if test x"$ac_file" != x-; then
22281 { echo "$as_me:$LINENO: creating $ac_file" >&5
22282 echo "$as_me: creating $ac_file" >&6;}
22283 rm -f "$ac_file"
22284 fi
22285 # Let's still pretend it is `configure' which instantiates (i.e., don't
22286 # use $as_me), people would be surprised to read:
22287 # /* config.h. Generated by config.status. */
22288 if test x"$ac_file" = x-; then
22289 configure_input=
22290 else
22291 configure_input="$ac_file. "
22292 fi
22293 configure_input=$configure_input"Generated from `echo $ac_file_in |
22294 sed 's,.*/,,'` by configure."
22295
22296 # First look for the input files in the build tree, otherwise in the
22297 # src tree.
22298 ac_file_inputs=`IFS=:
22299 for f in $ac_file_in; do
22300 case $f in
22301 -) echo $tmp/stdin ;;
22302 [\\/$]*)
22303 # Absolute (can't be DOS-style, as IFS=:)
22304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22305 echo "$as_me: error: cannot find input file: $f" >&2;}
22306 { (exit 1); exit 1; }; }
22307 echo "$f";;
22308 *) # Relative
22309 if test -f "$f"; then
22310 # Build tree
22311 echo "$f"
22312 elif test -f "$srcdir/$f"; then
22313 # Source tree
22314 echo "$srcdir/$f"
22315 else
22316 # /dev/null tree
22317 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22318 echo "$as_me: error: cannot find input file: $f" >&2;}
22319 { (exit 1); exit 1; }; }
22320 fi;;
22321 esac
22322 done` || { (exit 1); exit 1; }
22323 _ACEOF
22324 cat >>$CONFIG_STATUS <<_ACEOF
22325 sed "$ac_vpsub
22326 $extrasub
22327 _ACEOF
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22329 :t
22330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22331 s,@configure_input@,$configure_input,;t t
22332 s,@srcdir@,$ac_srcdir,;t t
22333 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22334 s,@top_srcdir@,$ac_top_srcdir,;t t
22335 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22336 s,@builddir@,$ac_builddir,;t t
22337 s,@abs_builddir@,$ac_abs_builddir,;t t
22338 s,@top_builddir@,$ac_top_builddir,;t t
22339 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22340 s,@INSTALL@,$ac_INSTALL,;t t
22341 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22342 rm -f $tmp/stdin
22343 if test x"$ac_file" != x-; then
22344 mv $tmp/out $ac_file
22345 else
22346 cat $tmp/out
22347 rm -f $tmp/out
22348 fi
22349
22350 done
22351 _ACEOF
22352 cat >>$CONFIG_STATUS <<\_ACEOF
22353
22354 #
22355 # CONFIG_HEADER section.
22356 #
22357
22358 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22359 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22360 #
22361 # ac_d sets the value in "#define NAME VALUE" lines.
22362 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22363 ac_dB='[ ].*$,\1#\2'
22364 ac_dC=' '
22365 ac_dD=',;t'
22366 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22367 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22368 ac_uB='$,\1#\2define\3'
22369 ac_uC=' '
22370 ac_uD=',;t'
22371
22372 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22374 case $ac_file in
22375 - | *:- | *:-:* ) # input from stdin
22376 cat >$tmp/stdin
22377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22381 * ) ac_file_in=$ac_file.in ;;
22382 esac
22383
22384 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22385 echo "$as_me: creating $ac_file" >&6;}
22386
22387 # First look for the input files in the build tree, otherwise in the
22388 # src tree.
22389 ac_file_inputs=`IFS=:
22390 for f in $ac_file_in; do
22391 case $f in
22392 -) echo $tmp/stdin ;;
22393 [\\/$]*)
22394 # Absolute (can't be DOS-style, as IFS=:)
22395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22396 echo "$as_me: error: cannot find input file: $f" >&2;}
22397 { (exit 1); exit 1; }; }
22398 # Do quote $f, to prevent DOS paths from being IFS'd.
22399 echo "$f";;
22400 *) # Relative
22401 if test -f "$f"; then
22402 # Build tree
22403 echo "$f"
22404 elif test -f "$srcdir/$f"; then
22405 # Source tree
22406 echo "$srcdir/$f"
22407 else
22408 # /dev/null tree
22409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22410 echo "$as_me: error: cannot find input file: $f" >&2;}
22411 { (exit 1); exit 1; }; }
22412 fi;;
22413 esac
22414 done` || { (exit 1); exit 1; }
22415 # Remove the trailing spaces.
22416 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22417
22418 _ACEOF
22419
22420 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22421 # `conftest.undefs', that substitutes the proper values into
22422 # config.h.in to produce config.h. The first handles `#define'
22423 # templates, and the second `#undef' templates.
22424 # And first: Protect against being on the right side of a sed subst in
22425 # config.status. Protect against being in an unquoted here document
22426 # in config.status.
22427 rm -f conftest.defines conftest.undefs
22428 # Using a here document instead of a string reduces the quoting nightmare.
22429 # Putting comments in sed scripts is not portable.
22430 #
22431 # `end' is used to avoid that the second main sed command (meant for
22432 # 0-ary CPP macros) applies to n-ary macro definitions.
22433 # See the Autoconf documentation for `clear'.
22434 cat >confdef2sed.sed <<\_ACEOF
22435 s/[\\&,]/\\&/g
22436 s,[\\$`],\\&,g
22437 t clear
22438 : clear
22439 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22440 t end
22441 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22442 : end
22443 _ACEOF
22444 # If some macros were called several times there might be several times
22445 # the same #defines, which is useless. Nevertheless, we may not want to
22446 # sort them, since we want the *last* AC-DEFINE to be honored.
22447 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22448 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22449 rm -f confdef2sed.sed
22450
22451 # This sed command replaces #undef with comments. This is necessary, for
22452 # example, in the case of _POSIX_SOURCE, which is predefined and required
22453 # on some systems where configure will not decide to define it.
22454 cat >>conftest.undefs <<\_ACEOF
22455 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22456 _ACEOF
22457
22458 # Break up conftest.defines because some shells have a limit on the size
22459 # of here documents, and old seds have small limits too (100 cmds).
22460 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22461 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22462 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22463 echo ' :' >>$CONFIG_STATUS
22464 rm -f conftest.tail
22465 while grep . conftest.defines >/dev/null
22466 do
22467 # Write a limited-size here document to $tmp/defines.sed.
22468 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22469 # Speed up: don't consider the non `#define' lines.
22470 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22471 # Work around the forget-to-reset-the-flag bug.
22472 echo 't clr' >>$CONFIG_STATUS
22473 echo ': clr' >>$CONFIG_STATUS
22474 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22475 echo 'CEOF
22476 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22477 rm -f $tmp/in
22478 mv $tmp/out $tmp/in
22479 ' >>$CONFIG_STATUS
22480 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22481 rm -f conftest.defines
22482 mv conftest.tail conftest.defines
22483 done
22484 rm -f conftest.defines
22485 echo ' fi # grep' >>$CONFIG_STATUS
22486 echo >>$CONFIG_STATUS
22487
22488 # Break up conftest.undefs because some shells have a limit on the size
22489 # of here documents, and old seds have small limits too (100 cmds).
22490 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22491 rm -f conftest.tail
22492 while grep . conftest.undefs >/dev/null
22493 do
22494 # Write a limited-size here document to $tmp/undefs.sed.
22495 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22496 # Speed up: don't consider the non `#undef'
22497 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22498 # Work around the forget-to-reset-the-flag bug.
22499 echo 't clr' >>$CONFIG_STATUS
22500 echo ': clr' >>$CONFIG_STATUS
22501 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22502 echo 'CEOF
22503 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22504 rm -f $tmp/in
22505 mv $tmp/out $tmp/in
22506 ' >>$CONFIG_STATUS
22507 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22508 rm -f conftest.undefs
22509 mv conftest.tail conftest.undefs
22510 done
22511 rm -f conftest.undefs
22512
22513 cat >>$CONFIG_STATUS <<\_ACEOF
22514 # Let's still pretend it is `configure' which instantiates (i.e., don't
22515 # use $as_me), people would be surprised to read:
22516 # /* config.h. Generated by config.status. */
22517 if test x"$ac_file" = x-; then
22518 echo "/* Generated by configure. */" >$tmp/config.h
22519 else
22520 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22521 fi
22522 cat $tmp/in >>$tmp/config.h
22523 rm -f $tmp/in
22524 if test x"$ac_file" != x-; then
22525 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22526 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22527 echo "$as_me: $ac_file is unchanged" >&6;}
22528 else
22529 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22531 X"$ac_file" : 'X\(//\)[^/]' \| \
22532 X"$ac_file" : 'X\(//\)$' \| \
22533 X"$ac_file" : 'X\(/\)' \| \
22534 . : '\(.\)' 2>/dev/null ||
22535 echo X"$ac_file" |
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22538 /^X\(\/\/\)$/{ s//\1/; q; }
22539 /^X\(\/\).*/{ s//\1/; q; }
22540 s/.*/./; q'`
22541 { if $as_mkdir_p; then
22542 mkdir -p "$ac_dir"
22543 else
22544 as_dir="$ac_dir"
22545 as_dirs=
22546 while test ! -d "$as_dir"; do
22547 as_dirs="$as_dir $as_dirs"
22548 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22550 X"$as_dir" : 'X\(//\)[^/]' \| \
22551 X"$as_dir" : 'X\(//\)$' \| \
22552 X"$as_dir" : 'X\(/\)' \| \
22553 . : '\(.\)' 2>/dev/null ||
22554 echo X"$as_dir" |
22555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22557 /^X\(\/\/\)$/{ s//\1/; q; }
22558 /^X\(\/\).*/{ s//\1/; q; }
22559 s/.*/./; q'`
22560 done
22561 test ! -n "$as_dirs" || mkdir $as_dirs
22562 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22563 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22564 { (exit 1); exit 1; }; }; }
22565
22566 rm -f $ac_file
22567 mv $tmp/config.h $ac_file
22568 fi
22569 else
22570 cat $tmp/config.h
22571 rm -f $tmp/config.h
22572 fi
22573 done
22574 _ACEOF
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576
22577 #
22578 # CONFIG_COMMANDS section.
22579 #
22580 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22581 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22582 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22583 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22584 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$ac_dest" : 'X\(//\)[^/]' \| \
22586 X"$ac_dest" : 'X\(//\)$' \| \
22587 X"$ac_dest" : 'X\(/\)' \| \
22588 . : '\(.\)' 2>/dev/null ||
22589 echo X"$ac_dest" |
22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592 /^X\(\/\/\)$/{ s//\1/; q; }
22593 /^X\(\/\).*/{ s//\1/; q; }
22594 s/.*/./; q'`
22595 { if $as_mkdir_p; then
22596 mkdir -p "$ac_dir"
22597 else
22598 as_dir="$ac_dir"
22599 as_dirs=
22600 while test ! -d "$as_dir"; do
22601 as_dirs="$as_dir $as_dirs"
22602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22604 X"$as_dir" : 'X\(//\)[^/]' \| \
22605 X"$as_dir" : 'X\(//\)$' \| \
22606 X"$as_dir" : 'X\(/\)' \| \
22607 . : '\(.\)' 2>/dev/null ||
22608 echo X"$as_dir" |
22609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22611 /^X\(\/\/\)$/{ s//\1/; q; }
22612 /^X\(\/\).*/{ s//\1/; q; }
22613 s/.*/./; q'`
22614 done
22615 test ! -n "$as_dirs" || mkdir $as_dirs
22616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22618 { (exit 1); exit 1; }; }; }
22619
22620 ac_builddir=.
22621
22622 if test "$ac_dir" != .; then
22623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22624 # A "../" for each directory in $ac_dir_suffix.
22625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22626 else
22627 ac_dir_suffix= ac_top_builddir=
22628 fi
22629
22630 case $srcdir in
22631 .) # No --srcdir option. We are building in place.
22632 ac_srcdir=.
22633 if test -z "$ac_top_builddir"; then
22634 ac_top_srcdir=.
22635 else
22636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22637 fi ;;
22638 [\\/]* | ?:[\\/]* ) # Absolute path.
22639 ac_srcdir=$srcdir$ac_dir_suffix;
22640 ac_top_srcdir=$srcdir ;;
22641 *) # Relative path.
22642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22644 esac
22645
22646 # Do not use `cd foo && pwd` to compute absolute paths, because
22647 # the directories may not exist.
22648 case `pwd` in
22649 .) ac_abs_builddir="$ac_dir";;
22650 *)
22651 case "$ac_dir" in
22652 .) ac_abs_builddir=`pwd`;;
22653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22654 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22655 esac;;
22656 esac
22657 case $ac_abs_builddir in
22658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22659 *)
22660 case ${ac_top_builddir}. in
22661 .) ac_abs_top_builddir=$ac_abs_builddir;;
22662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22664 esac;;
22665 esac
22666 case $ac_abs_builddir in
22667 .) ac_abs_srcdir=$ac_srcdir;;
22668 *)
22669 case $ac_srcdir in
22670 .) ac_abs_srcdir=$ac_abs_builddir;;
22671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22673 esac;;
22674 esac
22675 case $ac_abs_builddir in
22676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22677 *)
22678 case $ac_top_srcdir in
22679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22682 esac;;
22683 esac
22684
22685
22686 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22687 echo "$as_me: executing $ac_dest commands" >&6;}
22688 case $ac_dest in
22689 default )
22690
22691 ### Make the necessary directories, if they don't exist.
22692 for dir in etc lisp ; do
22693 test -d ${dir} || mkdir ${dir}
22694 done
22695
22696 # Build src/Makefile from ${srcdir}/src/Makefile.c
22697 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22698 # This must be done after src/config.h is built, since we rely on that file.
22699
22700 # Now get this: Some word that is part of the ${srcdir} directory name
22701 # or the ${configuration} value might, just might, happen to be an
22702 # identifier like `sun4' or `i386' or something, and be predefined by
22703 # the C preprocessor to some helpful value like 1, or maybe the empty
22704 # string. Needless to say consequent macro substitutions are less
22705 # than conducive to the makefile finding the correct directory.
22706 undefs="`echo $top_srcdir $configuration $canonical |
22707 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22708 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22709 `"
22710
22711 echo creating src/epaths.h
22712 ${MAKE-make} epaths-force
22713
22714 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22715 # `..' to `. .' unless invoked with -traditional
22716
22717 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22718 CPPFLAGS="$CPPFLAGS -traditional"
22719 fi
22720
22721 echo creating lib-src/Makefile
22722 ( cd lib-src
22723 rm -f junk.c junk1.c junk2.c
22724 sed -e '/start of cpp stuff/q' \
22725 < Makefile.c > junk1.c
22726 sed -e '1,/start of cpp stuff/d'\
22727 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22728 < Makefile.c > junk.c
22729 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22730 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22731 cat junk1.c junk2.c > Makefile.new
22732 rm -f junk.c junk1.c junk2.c
22733 chmod 444 Makefile.new
22734 mv -f Makefile.new Makefile
22735 )
22736
22737 echo creating src/Makefile
22738 ( cd src
22739 rm -f junk.c junk1.c junk2.c
22740 sed -e '/start of cpp stuff/q' \
22741 < Makefile.c > junk1.c
22742 sed -e '1,/start of cpp stuff/d'\
22743 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22744 < Makefile.c > junk.c
22745 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22746 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22747 cat junk1.c junk2.c > Makefile.new
22748 rm -f junk.c junk1.c junk2.c
22749 chmod 444 Makefile.new
22750 mv -f Makefile.new Makefile
22751 )
22752
22753 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22754 echo creating src/.gdbinit
22755 echo source $srcdir/src/.gdbinit > src/.gdbinit
22756 fi
22757
22758 # This is how we know whether to re-run configure in certain cases.
22759 touch src/config.stamp
22760
22761 ;;
22762 esac
22763 done
22764 _ACEOF
22765
22766 cat >>$CONFIG_STATUS <<\_ACEOF
22767
22768 { (exit 0); exit 0; }
22769 _ACEOF
22770 chmod +x $CONFIG_STATUS
22771 ac_clean_files=$ac_clean_files_save
22772
22773
22774 # configure is writing to config.log, and then calls config.status.
22775 # config.status does its own redirection, appending to config.log.
22776 # Unfortunately, on DOS this fails, as config.log is still kept open
22777 # by configure, so config.status won't be able to write to it; its
22778 # output is simply discarded. So we exec the FD to /dev/null,
22779 # effectively closing config.log, so it can be properly (re)opened and
22780 # appended to by config.status. When coming back to configure, we
22781 # need to make the FD available again.
22782 if test "$no_create" != yes; then
22783 ac_cs_success=:
22784 ac_config_status_args=
22785 test "$silent" = yes &&
22786 ac_config_status_args="$ac_config_status_args --quiet"
22787 exec 5>/dev/null
22788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22789 exec 5>>config.log
22790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22791 # would make configure fail if this is the last instruction.
22792 $ac_cs_success || { (exit 1); exit 1; }
22793 fi
22794
22795