]> code.delx.au - gnu-emacs/blob - configure
* configure.in (HAVE_EXECSHIELD): Only define on x86.
[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 && test "$machine" = "intel386"; then
4347
4348 cat >>confdefs.h <<\_ACEOF
4349 #define HAVE_EXECSHIELD 1
4350 _ACEOF
4351
4352 else
4353 case "`cat /proc/sys/kernel/exec-shield`" in
4354 0) ;;
4355 *)
4356 { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
4357 Emacs can not dump itself if exec-shield is turned on.
4358 See \`etc/PROBLEMS' for further information." >&5
4359 echo "$as_me: error: Exec-shield is turned on.
4360 Emacs can not dump itself if exec-shield is turned on.
4361 See \`etc/PROBLEMS' for further information." >&2;}
4362 { (exit 1); exit 1; }; }
4363 esac
4364 fi
4365 fi
4366
4367 #### Extract some information from the operating system and machine files.
4368
4369 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4370 - which libraries the lib-src programs will want, and
4371 - whether the GNU malloc routines are usable..." >&5
4372 echo "$as_me: checking the machine- and system-dependent files to find out
4373 - which libraries the lib-src programs will want, and
4374 - whether the GNU malloc routines are usable..." >&6;}
4375
4376 ### First figure out CFLAGS (which we use for running the compiler here)
4377 ### and REAL_CFLAGS (which we use for real compilation).
4378 ### The two are the same except on a few systems, where they are made
4379 ### different to work around various lossages. For example,
4380 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4381 ### as implying static linking.
4382
4383 ### If the CFLAGS env var is specified, we use that value
4384 ### instead of the default.
4385
4386 ### It's not important that this name contain the PID; you can't run
4387 ### two configures in the same directory and have anything work
4388 ### anyway.
4389 tempcname="conftest.c"
4390
4391 echo '
4392 #include "'${srcdir}'/src/'${opsysfile}'"
4393 #include "'${srcdir}'/src/'${machfile}'"
4394 #ifndef LIBS_MACHINE
4395 #define LIBS_MACHINE
4396 #endif
4397 #ifndef LIBS_SYSTEM
4398 #define LIBS_SYSTEM
4399 #endif
4400 #ifndef C_SWITCH_SYSTEM
4401 #define C_SWITCH_SYSTEM
4402 #endif
4403 #ifndef C_SWITCH_MACHINE
4404 #define C_SWITCH_MACHINE
4405 #endif
4406 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4407 configure___ c_switch_system=C_SWITCH_SYSTEM
4408 configure___ c_switch_machine=C_SWITCH_MACHINE
4409
4410 #ifndef LIB_X11_LIB
4411 #define LIB_X11_LIB -lX11
4412 #endif
4413
4414 #ifndef LIBX11_MACHINE
4415 #define LIBX11_MACHINE
4416 #endif
4417
4418 #ifndef LIBX11_SYSTEM
4419 #define LIBX11_SYSTEM
4420 #endif
4421 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4422
4423 #ifdef UNEXEC
4424 configure___ unexec=UNEXEC
4425 #else
4426 configure___ unexec=unexec.o
4427 #endif
4428
4429 #ifdef SYSTEM_MALLOC
4430 configure___ system_malloc=yes
4431 #else
4432 configure___ system_malloc=no
4433 #endif
4434
4435 #ifdef USE_MMAP_FOR_BUFFERS
4436 configure___ use_mmap_for_buffers=yes
4437 #else
4438 configure___ use_mmap_for_buffers=no
4439 #endif
4440
4441 #ifndef C_DEBUG_SWITCH
4442 #define C_DEBUG_SWITCH -g
4443 #endif
4444
4445 #ifndef C_OPTIMIZE_SWITCH
4446 #ifdef __GNUC__
4447 #define C_OPTIMIZE_SWITCH -O2
4448 #else
4449 #define C_OPTIMIZE_SWITCH -O
4450 #endif
4451 #endif
4452
4453 #ifndef LD_SWITCH_MACHINE
4454 #define LD_SWITCH_MACHINE
4455 #endif
4456
4457 #ifndef LD_SWITCH_SYSTEM
4458 #define LD_SWITCH_SYSTEM
4459 #endif
4460
4461 #ifndef LD_SWITCH_X_SITE_AUX
4462 #define LD_SWITCH_X_SITE_AUX
4463 #endif
4464
4465 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4466 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4467
4468 #ifdef THIS_IS_CONFIGURE
4469
4470 /* Get the CFLAGS for tests in configure. */
4471 #ifdef __GNUC__
4472 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4473 #else
4474 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4475 #endif
4476
4477 #else /* not THIS_IS_CONFIGURE */
4478
4479 /* Get the CFLAGS for real compilation. */
4480 #ifdef __GNUC__
4481 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4482 #else
4483 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4484 #endif
4485
4486 #endif /* not THIS_IS_CONFIGURE */
4487 ' > ${tempcname}
4488
4489 # The value of CPP is a quoted variable reference, so we need to do this
4490 # to get its actual value...
4491 CPP=`eval "echo $CPP"`
4492 eval `${CPP} -Isrc ${tempcname} \
4493 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4494 if test "x$SPECIFIED_CFLAGS" = x; then
4495 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4496 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4497 else
4498 REAL_CFLAGS="$CFLAGS"
4499 fi
4500 rm ${tempcname}
4501
4502 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4503
4504 ### Make sure subsequent tests use flags consistent with the build flags.
4505
4506 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4507 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4508 else
4509 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4510 fi
4511
4512
4513
4514
4515 cat >>confdefs.h <<\_ACEOF
4516 #define _GNU_SOURCE 1
4517 _ACEOF
4518
4519
4520
4521 # Check whether --enable-largefile or --disable-largefile was given.
4522 if test "${enable_largefile+set}" = set; then
4523 enableval="$enable_largefile"
4524
4525 fi;
4526 if test "$enable_largefile" != no; then
4527
4528 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4529 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4530 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 ac_cv_sys_largefile_CC=no
4534 if test "$GCC" != yes; then
4535 ac_save_CC=$CC
4536 while :; do
4537 # IRIX 6.2 and later do not support large files by default,
4538 # so use the C compiler's -n32 option if that helps.
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 /* Check that off_t can represent 2**63 - 1 correctly.
4547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4548 since some C++ compilers masquerading as C compilers
4549 incorrectly reject 9223372036854775807. */
4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4552 && LARGE_OFF_T % 2147483647 == 1)
4553 ? 1 : -1];
4554 int
4555 main ()
4556 {
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_c_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 break
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 fi
4590 rm -f conftest.err conftest.$ac_objext
4591 CC="$CC -n32"
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_sys_largefile_CC=' -n32'; break
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 fi
4620 rm -f conftest.err conftest.$ac_objext
4621 break
4622 done
4623 CC=$ac_save_CC
4624 rm -f conftest.$ac_ext
4625 fi
4626 fi
4627 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4628 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4629 if test "$ac_cv_sys_largefile_CC" != no; then
4630 CC=$CC$ac_cv_sys_largefile_CC
4631 fi
4632
4633 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4634 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4635 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 while :; do
4639 ac_cv_sys_file_offset_bits=no
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4654 ? 1 : -1];
4655 int
4656 main ()
4657 {
4658
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 break
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #define _FILE_OFFSET_BITS 64
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4707 ? 1 : -1];
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_sys_file_offset_bits=64; break
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 fi
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 break
4746 done
4747 fi
4748 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4749 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4750 if test "$ac_cv_sys_file_offset_bits" != no; then
4751
4752 cat >>confdefs.h <<_ACEOF
4753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4754 _ACEOF
4755
4756 fi
4757 rm -f conftest*
4758 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4759 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4760 if test "${ac_cv_sys_large_files+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 while :; do
4764 ac_cv_sys_large_files=no
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <sys/types.h>
4772 /* Check that off_t can represent 2**63 - 1 correctly.
4773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4774 since some C++ compilers masquerading as C compilers
4775 incorrectly reject 9223372036854775807. */
4776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4778 && LARGE_OFF_T % 2147483647 == 1)
4779 ? 1 : -1];
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 break
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 fi
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #define _LARGE_FILES 1
4824 #include <sys/types.h>
4825 /* Check that off_t can represent 2**63 - 1 correctly.
4826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4827 since some C++ compilers masquerading as C compilers
4828 incorrectly reject 9223372036854775807. */
4829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4831 && LARGE_OFF_T % 2147483647 == 1)
4832 ? 1 : -1];
4833 int
4834 main ()
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_sys_large_files=1; break
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 fi
4869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 break
4871 done
4872 fi
4873 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4874 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4875 if test "$ac_cv_sys_large_files" != no; then
4876
4877 cat >>confdefs.h <<_ACEOF
4878 #define _LARGE_FILES $ac_cv_sys_large_files
4879 _ACEOF
4880
4881 fi
4882 rm -f conftest*
4883 fi
4884
4885
4886 if test "${with_sound}" != "no"; then
4887 # Sound support for GNU/Linux and the free BSDs.
4888 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4889 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4890 if test "${ac_cv_header_stdc+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <stdlib.h>
4900 #include <stdarg.h>
4901 #include <string.h>
4902 #include <float.h>
4903
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_header_stdc=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_cv_header_stdc=no
4940 fi
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942
4943 if test $ac_cv_header_stdc = yes; then
4944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <string.h>
4952
4953 _ACEOF
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "memchr" >/dev/null 2>&1; then
4956 :
4957 else
4958 ac_cv_header_stdc=no
4959 fi
4960 rm -f conftest*
4961
4962 fi
4963
4964 if test $ac_cv_header_stdc = yes; then
4965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <stdlib.h>
4973
4974 _ACEOF
4975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4976 $EGREP "free" >/dev/null 2>&1; then
4977 :
4978 else
4979 ac_cv_header_stdc=no
4980 fi
4981 rm -f conftest*
4982
4983 fi
4984
4985 if test $ac_cv_header_stdc = yes; then
4986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4987 if test "$cross_compiling" = yes; then
4988 :
4989 else
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <ctype.h>
4997 #if ((' ' & 0x0FF) == 0x020)
4998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5000 #else
5001 # define ISLOWER(c) \
5002 (('a' <= (c) && (c) <= 'i') \
5003 || ('j' <= (c) && (c) <= 'r') \
5004 || ('s' <= (c) && (c) <= 'z'))
5005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5006 #endif
5007
5008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5009 int
5010 main ()
5011 {
5012 int i;
5013 for (i = 0; i < 256; i++)
5014 if (XOR (islower (i), ISLOWER (i))
5015 || toupper (i) != TOUPPER (i))
5016 exit(2);
5017 exit (0);
5018 }
5019 _ACEOF
5020 rm -f conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 :
5032 else
5033 echo "$as_me: program exited with status $ac_status" >&5
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037 ( exit $ac_status )
5038 ac_cv_header_stdc=no
5039 fi
5040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 fi
5043 fi
5044 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5045 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5046 if test $ac_cv_header_stdc = yes; then
5047
5048 cat >>confdefs.h <<\_ACEOF
5049 #define STDC_HEADERS 1
5050 _ACEOF
5051
5052 fi
5053
5054 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5065 inttypes.h stdint.h unistd.h
5066 do
5067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080
5081 #include <$ac_header>
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 eval "$as_ac_Header=yes"
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 eval "$as_ac_Header=no"
5111 fi
5112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5113 fi
5114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119 _ACEOF
5120
5121 fi
5122
5123 done
5124
5125
5126
5127
5128
5129 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5130 do
5131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 fi
5138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5140 else
5141 # Is the header compilable?
5142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 #include <$ac_header>
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -z "$ac_c_werror_flag"
5163 || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_header_compiler=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 ac_header_compiler=no
5181 fi
5182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5184 echo "${ECHO_T}$ac_header_compiler" >&6
5185
5186 # Is the header present?
5187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <$ac_header>
5196 _ACEOF
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null; then
5205 if test -s conftest.err; then
5206 ac_cpp_err=$ac_c_preproc_warn_flag
5207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5208 else
5209 ac_cpp_err=
5210 fi
5211 else
5212 ac_cpp_err=yes
5213 fi
5214 if test -z "$ac_cpp_err"; then
5215 ac_header_preproc=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_header_preproc=no
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224 echo "${ECHO_T}$ac_header_preproc" >&6
5225
5226 # So? What about this header?
5227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5228 yes:no: )
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5233 ac_header_preproc=yes
5234 ;;
5235 no:yes:* )
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5248 (
5249 cat <<\_ASBOX
5250 ## ------------------------------------------ ##
5251 ## Report this to the AC_PACKAGE_NAME lists. ##
5252 ## ------------------------------------------ ##
5253 _ASBOX
5254 ) |
5255 sed "s/^/$as_me: WARNING: /" >&2
5256 ;;
5257 esac
5258 echo "$as_me:$LINENO: checking for $ac_header" >&5
5259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 eval "$as_ac_Header=\$ac_header_preproc"
5264 fi
5265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267
5268 fi
5269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272 _ACEOF
5273
5274 fi
5275
5276 done
5277
5278 # Emulation library used on NetBSD.
5279 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5280 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5281 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 ac_check_lib_save_LIBS=$LIBS
5285 LIBS="-lossaudio $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299 char _oss_ioctl ();
5300 int
5301 main ()
5302 {
5303 _oss_ioctl ();
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_lib_ossaudio__oss_ioctl=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_cv_lib_ossaudio__oss_ioctl=no
5336 fi
5337 rm -f conftest.err conftest.$ac_objext \
5338 conftest$ac_exeext conftest.$ac_ext
5339 LIBS=$ac_check_lib_save_LIBS
5340 fi
5341 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5342 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5343 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5344 LIBSOUND=-lossaudio
5345 else
5346 LIBSOUND=
5347 fi
5348
5349
5350 fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5376 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5377 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5378 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5379 do
5380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 fi
5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5389 else
5390 # Is the header compilable?
5391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5400 #include <$ac_header>
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_header_compiler=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 ac_header_compiler=no
5430 fi
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433 echo "${ECHO_T}$ac_header_compiler" >&6
5434
5435 # Is the header present?
5436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <$ac_header>
5445 _ACEOF
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_c_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5457 else
5458 ac_cpp_err=
5459 fi
5460 else
5461 ac_cpp_err=yes
5462 fi
5463 if test -z "$ac_cpp_err"; then
5464 ac_header_preproc=yes
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_header_preproc=no
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6
5474
5475 # So? What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477 yes:no: )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc=yes
5483 ;;
5484 no:yes:* )
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497 (
5498 cat <<\_ASBOX
5499 ## ------------------------------------------ ##
5500 ## Report this to the AC_PACKAGE_NAME lists. ##
5501 ## ------------------------------------------ ##
5502 _ASBOX
5503 ) |
5504 sed "s/^/$as_me: WARNING: /" >&2
5505 ;;
5506 esac
5507 echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 eval "$as_ac_Header=\$ac_header_preproc"
5513 fi
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516
5517 fi
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521 _ACEOF
5522
5523 fi
5524
5525 done
5526
5527
5528 for ac_header in term.h
5529 do
5530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531 echo "$as_me:$LINENO: checking for $ac_header" >&5
5532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <$ac_header>
5543 _ACEOF
5544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } >/dev/null; then
5552 if test -s conftest.err; then
5553 ac_cpp_err=$ac_c_preproc_warn_flag
5554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5555 else
5556 ac_cpp_err=
5557 fi
5558 else
5559 ac_cpp_err=yes
5560 fi
5561 if test -z "$ac_cpp_err"; then
5562 eval "$as_ac_Header=yes"
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 eval "$as_ac_Header=no"
5568 fi
5569 rm -f conftest.err conftest.$ac_ext
5570 fi
5571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579
5580 done
5581
5582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5584 if test "${ac_cv_header_stdc+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <stdlib.h>
5594 #include <stdarg.h>
5595 #include <string.h>
5596 #include <float.h>
5597
5598 int
5599 main ()
5600 {
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_stdc=yes
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636
5637 if test $ac_cv_header_stdc = yes; then
5638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <string.h>
5646
5647 _ACEOF
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then
5650 :
5651 else
5652 ac_cv_header_stdc=no
5653 fi
5654 rm -f conftest*
5655
5656 fi
5657
5658 if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <stdlib.h>
5667
5668 _ACEOF
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "free" >/dev/null 2>&1; then
5671 :
5672 else
5673 ac_cv_header_stdc=no
5674 fi
5675 rm -f conftest*
5676
5677 fi
5678
5679 if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then
5682 :
5683 else
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <ctype.h>
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 #else
5695 # define ISLOWER(c) \
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700 #endif
5701
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5703 int
5704 main ()
5705 {
5706 int i;
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
5709 || toupper (i) != TOUPPER (i))
5710 exit(2);
5711 exit (0);
5712 }
5713 _ACEOF
5714 rm -f conftest$ac_exeext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 :
5726 else
5727 echo "$as_me: program exited with status $ac_status" >&5
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ( exit $ac_status )
5732 ac_cv_header_stdc=no
5733 fi
5734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 fi
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5740 if test $ac_cv_header_stdc = yes; then
5741
5742 cat >>confdefs.h <<\_ACEOF
5743 #define STDC_HEADERS 1
5744 _ACEOF
5745
5746 fi
5747
5748 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5750 if test "${ac_cv_header_time+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 #include <sys/time.h>
5761 #include <time.h>
5762
5763 int
5764 main ()
5765 {
5766 if ((struct tm *) 0)
5767 return 0;
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest.$ac_objext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_header_time=yes
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 ac_cv_header_time=no
5800 fi
5801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5804 echo "${ECHO_T}$ac_cv_header_time" >&6
5805 if test $ac_cv_header_time = yes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define TIME_WITH_SYS_TIME 1
5809 _ACEOF
5810
5811 fi
5812
5813 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5814 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5815 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 #ifndef sys_siglist
5829 char *p = (char *) sys_siglist;
5830 #endif
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_have_decl_sys_siglist=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_cv_have_decl_sys_siglist=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5868 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5869 if test $ac_cv_have_decl_sys_siglist = yes; then
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define HAVE_DECL_SYS_SIGLIST 1
5873 _ACEOF
5874
5875
5876 else
5877 cat >>confdefs.h <<_ACEOF
5878 #define HAVE_DECL_SYS_SIGLIST 0
5879 _ACEOF
5880
5881
5882 fi
5883
5884
5885 if test $ac_cv_have_decl_sys_siglist != yes; then
5886 # For Tru64, at least:
5887 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5888 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5889 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 int
5900 main ()
5901 {
5902 #ifndef __sys_siglist
5903 char *p = (char *) __sys_siglist;
5904 #endif
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_have_decl___sys_siglist=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_have_decl___sys_siglist=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5942 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5943 if test $ac_cv_have_decl___sys_siglist = yes; then
5944
5945 cat >>confdefs.h <<_ACEOF
5946 #define HAVE_DECL___SYS_SIGLIST 1
5947 _ACEOF
5948
5949
5950 else
5951 cat >>confdefs.h <<_ACEOF
5952 #define HAVE_DECL___SYS_SIGLIST 0
5953 _ACEOF
5954
5955
5956 fi
5957
5958
5959 if test $ac_cv_have_decl___sys_siglist = yes; then
5960
5961 cat >>confdefs.h <<\_ACEOF
5962 #define sys_siglist __sys_siglist
5963 _ACEOF
5964
5965 fi
5966 fi
5967 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5968 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5969 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 #include <sys/wait.h>
5980 #ifndef WEXITSTATUS
5981 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5982 #endif
5983 #ifndef WIFEXITED
5984 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5985 #endif
5986
5987 int
5988 main ()
5989 {
5990 int s;
5991 wait (&s);
5992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_header_sys_wait_h=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 ac_cv_header_sys_wait_h=no
6025 fi
6026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6029 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6030 if test $ac_cv_header_sys_wait_h = yes; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define HAVE_SYS_WAIT_H 1
6034 _ACEOF
6035
6036 fi
6037
6038
6039 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6040 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6041 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #ifdef TIME_WITH_SYS_TIME
6051 #include <sys/time.h>
6052 #include <time.h>
6053 #else
6054 #ifdef HAVE_SYS_TIME_H
6055 #include <sys/time.h>
6056 #else
6057 #include <time.h>
6058 #endif
6059 #endif
6060 #ifdef HAVE_UTIME_H
6061 #include <utime.h>
6062 #endif
6063 int
6064 main ()
6065 {
6066 static struct utimbuf x; x.actime = x.modtime;
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_struct_utimbuf=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 emacs_cv_struct_utimbuf=no
6099 fi
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6103 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6104 if test $emacs_cv_struct_utimbuf = yes; then
6105
6106 cat >>confdefs.h <<\_ACEOF
6107 #define HAVE_STRUCT_UTIMBUF 1
6108 _ACEOF
6109
6110 fi
6111
6112 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6113 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6114 if test "${ac_cv_type_signal+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <sys/types.h>
6124 #include <signal.h>
6125 #ifdef signal
6126 # undef signal
6127 #endif
6128 #ifdef __cplusplus
6129 extern "C" void (*signal (int, void (*)(int)))(int);
6130 #else
6131 void (*signal ()) ();
6132 #endif
6133
6134 int
6135 main ()
6136 {
6137 int i;
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_signal=void
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ac_cv_type_signal=int
6170 fi
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6174 echo "${ECHO_T}$ac_cv_type_signal" >&6
6175
6176 cat >>confdefs.h <<_ACEOF
6177 #define RETSIGTYPE $ac_cv_type_signal
6178 _ACEOF
6179
6180
6181
6182 echo "$as_me:$LINENO: checking for speed_t" >&5
6183 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6184 if test "${emacs_cv_speed_t+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <termios.h>
6194 int
6195 main ()
6196 {
6197 speed_t x = 1;
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 emacs_cv_speed_t=yes
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 emacs_cv_speed_t=no
6230 fi
6231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6234 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6235 if test $emacs_cv_speed_t = yes; then
6236
6237 cat >>confdefs.h <<\_ACEOF
6238 #define HAVE_SPEED_T 1
6239 _ACEOF
6240
6241 fi
6242
6243 echo "$as_me:$LINENO: checking for struct timeval" >&5
6244 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6245 if test "${emacs_cv_struct_timeval+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #ifdef TIME_WITH_SYS_TIME
6255 #include <sys/time.h>
6256 #include <time.h>
6257 #else
6258 #ifdef HAVE_SYS_TIME_H
6259 #include <sys/time.h>
6260 #else
6261 #include <time.h>
6262 #endif
6263 #endif
6264 int
6265 main ()
6266 {
6267 static struct timeval x; x.tv_sec = x.tv_usec;
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 emacs_cv_struct_timeval=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 emacs_cv_struct_timeval=no
6300 fi
6301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302 fi
6303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6304 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6305 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6306 if test $emacs_cv_struct_timeval = yes; then
6307
6308 cat >>confdefs.h <<\_ACEOF
6309 #define HAVE_TIMEVAL 1
6310 _ACEOF
6311
6312 fi
6313
6314 echo "$as_me:$LINENO: checking for struct exception" >&5
6315 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6316 if test "${emacs_cv_struct_exception+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <math.h>
6326 int
6327 main ()
6328 {
6329 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 emacs_cv_struct_exception=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 emacs_cv_struct_exception=no
6362 fi
6363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6366 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6367 HAVE_EXCEPTION=$emacs_cv_struct_exception
6368 if test $emacs_cv_struct_exception != yes; then
6369
6370 cat >>confdefs.h <<\_ACEOF
6371 #define NO_MATHERR 1
6372 _ACEOF
6373
6374 fi
6375
6376
6377 for ac_header in sys/socket.h
6378 do
6379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 fi
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 else
6389 # Is the header compilable?
6390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6399 #include <$ac_header>
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_header_compiler=yes
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 ac_header_compiler=no
6429 fi
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6
6433
6434 # Is the header present?
6435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <$ac_header>
6444 _ACEOF
6445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev/null; then
6453 if test -s conftest.err; then
6454 ac_cpp_err=$ac_c_preproc_warn_flag
6455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6456 else
6457 ac_cpp_err=
6458 fi
6459 else
6460 ac_cpp_err=yes
6461 fi
6462 if test -z "$ac_cpp_err"; then
6463 ac_header_preproc=yes
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_header_preproc=no
6469 fi
6470 rm -f conftest.err conftest.$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6
6473
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6476 yes:no: )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6481 ac_header_preproc=yes
6482 ;;
6483 no:yes:* )
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6496 (
6497 cat <<\_ASBOX
6498 ## ------------------------------------------ ##
6499 ## Report this to the AC_PACKAGE_NAME lists. ##
6500 ## ------------------------------------------ ##
6501 _ASBOX
6502 ) |
6503 sed "s/^/$as_me: WARNING: /" >&2
6504 ;;
6505 esac
6506 echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 eval "$as_ac_Header=\$ac_header_preproc"
6512 fi
6513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515
6516 fi
6517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6520 _ACEOF
6521
6522 fi
6523
6524 done
6525
6526
6527 for ac_header in net/if.h
6528 do
6529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 #if HAVE_SYS_SOCKET_H
6543 #include <sys/socket.h>
6544 #endif
6545
6546 #include <$ac_header>
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 eval "$as_ac_Header=yes"
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 eval "$as_ac_Header=no"
6576 fi
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 fi
6579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 _ACEOF
6585
6586 fi
6587
6588 done
6589
6590
6591 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6592 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6593 if test "${ac_cv_struct_tm+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <sys/types.h>
6603 #include <time.h>
6604
6605 int
6606 main ()
6607 {
6608 struct tm *tp; tp->tm_sec;
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_struct_tm=time.h
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_cv_struct_tm=sys/time.h
6641 fi
6642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6645 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6646 if test $ac_cv_struct_tm = sys/time.h; then
6647
6648 cat >>confdefs.h <<\_ACEOF
6649 #define TM_IN_SYS_TIME 1
6650 _ACEOF
6651
6652 fi
6653
6654 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6655 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6656 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <sys/types.h>
6666 #include <$ac_cv_struct_tm>
6667
6668
6669 int
6670 main ()
6671 {
6672 static struct tm ac_aggr;
6673 if (ac_aggr.tm_zone)
6674 return 0;
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_member_struct_tm_tm_zone=yes
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <$ac_cv_struct_tm>
6714
6715
6716 int
6717 main ()
6718 {
6719 static struct tm ac_aggr;
6720 if (sizeof ac_aggr.tm_zone)
6721 return 0;
6722 ;
6723 return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -z "$ac_c_werror_flag"
6736 || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_member_struct_tm_tm_zone=yes
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_cv_member_struct_tm_tm_zone=no
6754 fi
6755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6756 fi
6757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6760 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6761 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6762
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_STRUCT_TM_TM_ZONE 1
6765 _ACEOF
6766
6767
6768 fi
6769
6770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_TM_ZONE 1
6774 _ACEOF
6775
6776 else
6777 echo "$as_me:$LINENO: checking for tzname" >&5
6778 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6779 if test "${ac_cv_var_tzname+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <time.h>
6789 #ifndef tzname /* For SGI. */
6790 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6791 #endif
6792
6793 int
6794 main ()
6795 {
6796 atoi(*tzname);
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest$ac_exeext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_cv_var_tzname=yes
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 ac_cv_var_tzname=no
6829 fi
6830 rm -f conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6832 fi
6833 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6834 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6835 if test $ac_cv_var_tzname = yes; then
6836
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_TZNAME 1
6839 _ACEOF
6840
6841 fi
6842 fi
6843
6844 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6845 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6846 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <time.h>
6856
6857 int
6858 main ()
6859 {
6860 static struct tm ac_aggr;
6861 if (ac_aggr.tm_gmtoff)
6862 return 0;
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -z "$ac_c_werror_flag"
6877 || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try='test -s conftest.$ac_objext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 ac_cv_member_struct_tm_tm_gmtoff=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 #include <time.h>
6901
6902 int
6903 main ()
6904 {
6905 static struct tm ac_aggr;
6906 if (sizeof ac_aggr.tm_gmtoff)
6907 return 0;
6908 ;
6909 return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_cv_member_struct_tm_tm_gmtoff=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ac_cv_member_struct_tm_tm_gmtoff=no
6940 fi
6941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 fi
6943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944 fi
6945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6947 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6948
6949 cat >>confdefs.h <<\_ACEOF
6950 #define HAVE_TM_GMTOFF 1
6951 _ACEOF
6952
6953 fi
6954
6955 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6956 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6957 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6967 #if HAVE_SYS_SOCKET_H
6968 #include <sys/socket.h>
6969 #endif
6970 #if HAVE_NET_IF_H
6971 #include <net/if.h>
6972 #endif
6973
6974 int
6975 main ()
6976 {
6977 static struct ifreq ac_aggr;
6978 if (ac_aggr.ifr_flags)
6979 return 0;
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_cv_member_struct_ifreq_ifr_flags=yes
7007 else
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018 #if HAVE_SYS_SOCKET_H
7019 #include <sys/socket.h>
7020 #endif
7021 #if HAVE_NET_IF_H
7022 #include <net/if.h>
7023 #endif
7024
7025 int
7026 main ()
7027 {
7028 static struct ifreq ac_aggr;
7029 if (sizeof ac_aggr.ifr_flags)
7030 return 0;
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_c_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_member_struct_ifreq_ifr_flags=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_member_struct_ifreq_ifr_flags=no
7063 fi
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7065 fi
7066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7069 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7070 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7074 _ACEOF
7075
7076
7077 fi
7078 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7079 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7080 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 #if HAVE_SYS_SOCKET_H
7091 #include <sys/socket.h>
7092 #endif
7093 #if HAVE_NET_IF_H
7094 #include <net/if.h>
7095 #endif
7096
7097 int
7098 main ()
7099 {
7100 static struct ifreq ac_aggr;
7101 if (ac_aggr.ifr_hwaddr)
7102 return 0;
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7141 #if HAVE_SYS_SOCKET_H
7142 #include <sys/socket.h>
7143 #endif
7144 #if HAVE_NET_IF_H
7145 #include <net/if.h>
7146 #endif
7147
7148 int
7149 main ()
7150 {
7151 static struct ifreq ac_aggr;
7152 if (sizeof ac_aggr.ifr_hwaddr)
7153 return 0;
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7186 fi
7187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7188 fi
7189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7192 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7193 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7194
7195 cat >>confdefs.h <<_ACEOF
7196 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7197 _ACEOF
7198
7199
7200 fi
7201 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7202 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7203 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 $ac_includes_default
7213 #if HAVE_SYS_SOCKET_H
7214 #include <sys/socket.h>
7215 #endif
7216 #if HAVE_NET_IF_H
7217 #include <net/if.h>
7218 #endif
7219
7220 int
7221 main ()
7222 {
7223 static struct ifreq ac_aggr;
7224 if (ac_aggr.ifr_netmask)
7225 return 0;
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_member_struct_ifreq_ifr_netmask=yes
7253 else
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7264 #if HAVE_SYS_SOCKET_H
7265 #include <sys/socket.h>
7266 #endif
7267 #if HAVE_NET_IF_H
7268 #include <net/if.h>
7269 #endif
7270
7271 int
7272 main ()
7273 {
7274 static struct ifreq ac_aggr;
7275 if (sizeof ac_aggr.ifr_netmask)
7276 return 0;
7277 ;
7278 return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_cv_member_struct_ifreq_ifr_netmask=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_cv_member_struct_ifreq_ifr_netmask=no
7309 fi
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7315 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7316 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7317
7318 cat >>confdefs.h <<_ACEOF
7319 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7320 _ACEOF
7321
7322
7323 fi
7324 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7325 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7326 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 #if HAVE_SYS_SOCKET_H
7337 #include <sys/socket.h>
7338 #endif
7339 #if HAVE_NET_IF_H
7340 #include <net/if.h>
7341 #endif
7342
7343 int
7344 main ()
7345 {
7346 static struct ifreq ac_aggr;
7347 if (ac_aggr.ifr_broadaddr)
7348 return 0;
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -z "$ac_c_werror_flag"
7363 || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 #if HAVE_SYS_SOCKET_H
7388 #include <sys/socket.h>
7389 #endif
7390 #if HAVE_NET_IF_H
7391 #include <net/if.h>
7392 #endif
7393
7394 int
7395 main ()
7396 {
7397 static struct ifreq ac_aggr;
7398 if (sizeof ac_aggr.ifr_broadaddr)
7399 return 0;
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag"
7414 || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7432 fi
7433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7436 fi
7437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7438 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7439 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7443 _ACEOF
7444
7445
7446 fi
7447 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7448 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7449 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 #if HAVE_SYS_SOCKET_H
7460 #include <sys/socket.h>
7461 #endif
7462 #if HAVE_NET_IF_H
7463 #include <net/if.h>
7464 #endif
7465
7466 int
7467 main ()
7468 {
7469 static struct ifreq ac_aggr;
7470 if (ac_aggr.ifr_addr)
7471 return 0;
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 ac_cv_member_struct_ifreq_ifr_addr=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #if HAVE_SYS_SOCKET_H
7511 #include <sys/socket.h>
7512 #endif
7513 #if HAVE_NET_IF_H
7514 #include <net/if.h>
7515 #endif
7516
7517 int
7518 main ()
7519 {
7520 static struct ifreq ac_aggr;
7521 if (sizeof ac_aggr.ifr_addr)
7522 return 0;
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_member_struct_ifreq_ifr_addr=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ac_cv_member_struct_ifreq_ifr_addr=no
7555 fi
7556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7557 fi
7558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7561 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7562 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7566 _ACEOF
7567
7568
7569 fi
7570
7571
7572
7573 echo "$as_me:$LINENO: checking for function prototypes" >&5
7574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7575 if test "$ac_cv_prog_cc_stdc" != no; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577 echo "${ECHO_T}yes" >&6
7578
7579 cat >>confdefs.h <<\_ACEOF
7580 #define PROTOTYPES 1
7581 _ACEOF
7582
7583
7584 cat >>confdefs.h <<\_ACEOF
7585 #define __PROTOTYPES 1
7586 _ACEOF
7587
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7591 fi
7592
7593 echo "$as_me:$LINENO: checking for working volatile" >&5
7594 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7595 if test "${ac_cv_c_volatile+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604
7605 int
7606 main ()
7607 {
7608
7609 volatile int x;
7610 int * volatile y;
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_c_volatile=yes
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ac_cv_c_volatile=no
7643 fi
7644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7647 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7648 if test $ac_cv_c_volatile = no; then
7649
7650 cat >>confdefs.h <<\_ACEOF
7651 #define volatile
7652 _ACEOF
7653
7654 fi
7655
7656 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7657 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7658 if test "${ac_cv_c_const+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h. */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667
7668 int
7669 main ()
7670 {
7671 /* FIXME: Include the comments suggested by Paul. */
7672 #ifndef __cplusplus
7673 /* Ultrix mips cc rejects this. */
7674 typedef int charset[2];
7675 const charset x;
7676 /* SunOS 4.1.1 cc rejects this. */
7677 char const *const *ccp;
7678 char **p;
7679 /* NEC SVR4.0.2 mips cc rejects this. */
7680 struct point {int x, y;};
7681 static struct point const zero = {0,0};
7682 /* AIX XL C 1.02.0.0 rejects this.
7683 It does not let you subtract one const X* pointer from another in
7684 an arm of an if-expression whose if-part is not a constant
7685 expression */
7686 const char *g = "string";
7687 ccp = &g + (g ? g-g : 0);
7688 /* HPUX 7.0 cc rejects these. */
7689 ++ccp;
7690 p = (char**) ccp;
7691 ccp = (char const *const *) p;
7692 { /* SCO 3.2v4 cc rejects this. */
7693 char *t;
7694 char const *s = 0 ? (char *) 0 : (char const *) 0;
7695
7696 *t++ = 0;
7697 }
7698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7699 int x[] = {25, 17};
7700 const int *foo = &x[0];
7701 ++foo;
7702 }
7703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7704 typedef const int *iptr;
7705 iptr p = 0;
7706 ++p;
7707 }
7708 { /* AIX XL C 1.02.0.0 rejects this saying
7709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7710 struct s { int j; const int *ap[3]; };
7711 struct s *b; b->j = 5;
7712 }
7713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7714 const int foo = 10;
7715 }
7716 #endif
7717
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_cv_c_const=yes
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 ac_cv_c_const=no
7750 fi
7751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7754 echo "${ECHO_T}$ac_cv_c_const" >&6
7755 if test $ac_cv_c_const = no; then
7756
7757 cat >>confdefs.h <<\_ACEOF
7758 #define const
7759 _ACEOF
7760
7761 fi
7762
7763 echo "$as_me:$LINENO: checking for void * support" >&5
7764 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7765 if test "${emacs_cv_void_star+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774
7775 int
7776 main ()
7777 {
7778 void * foo;
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 emacs_cv_void_star=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 emacs_cv_void_star=no
7811 fi
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7815 echo "${ECHO_T}$emacs_cv_void_star" >&6
7816 if test $emacs_cv_void_star = yes; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define POINTER_TYPE void
7819 _ACEOF
7820
7821 else
7822 cat >>confdefs.h <<\_ACEOF
7823 #define POINTER_TYPE char
7824 _ACEOF
7825
7826 fi
7827
7828
7829
7830 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7831 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7832 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7833 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 cat >conftest.make <<\_ACEOF
7837 all:
7838 @echo 'ac_maketemp="$(MAKE)"'
7839 _ACEOF
7840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7841 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7842 if test -n "$ac_maketemp"; then
7843 eval ac_cv_prog_make_${ac_make}_set=yes
7844 else
7845 eval ac_cv_prog_make_${ac_make}_set=no
7846 fi
7847 rm -f conftest.make
7848 fi
7849 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7850 echo "$as_me:$LINENO: result: yes" >&5
7851 echo "${ECHO_T}yes" >&6
7852 SET_MAKE=
7853 else
7854 echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856 SET_MAKE="MAKE=${MAKE-make}"
7857 fi
7858
7859
7860 echo "$as_me:$LINENO: checking for long file names" >&5
7861 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7862 if test "${ac_cv_sys_long_file_names+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 ac_cv_sys_long_file_names=yes
7866 # Test for long file names in all the places we know might matter:
7867 # . the current directory, where building will happen
7868 # $prefix/lib where we will be installing things
7869 # $exec_prefix/lib likewise
7870 # eval it to expand exec_prefix.
7871 # $TMPDIR if set, where it might want to write temporary files
7872 # if $TMPDIR is not set:
7873 # /tmp where it might want to write temporary files
7874 # /var/tmp likewise
7875 # /usr/tmp likewise
7876 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7877 ac_tmpdirs=$TMPDIR
7878 else
7879 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7880 fi
7881 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7882 test -d $ac_dir || continue
7883 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7884 ac_xdir=$ac_dir/cf$$
7885 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7886 ac_tf1=$ac_xdir/conftest9012345
7887 ac_tf2=$ac_xdir/conftest9012346
7888 (echo 1 >$ac_tf1) 2>/dev/null
7889 (echo 2 >$ac_tf2) 2>/dev/null
7890 ac_val=`cat $ac_tf1 2>/dev/null`
7891 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7892 ac_cv_sys_long_file_names=no
7893 rm -rf $ac_xdir 2>/dev/null
7894 break
7895 fi
7896 rm -rf $ac_xdir 2>/dev/null
7897 done
7898 fi
7899 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7900 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7901 if test $ac_cv_sys_long_file_names = yes; then
7902
7903 cat >>confdefs.h <<\_ACEOF
7904 #define HAVE_LONG_FILE_NAMES 1
7905 _ACEOF
7906
7907 fi
7908
7909
7910 #### Choose a window system.
7911
7912 echo "$as_me:$LINENO: checking for X" >&5
7913 echo $ECHO_N "checking for X... $ECHO_C" >&6
7914
7915
7916 # Check whether --with-x or --without-x was given.
7917 if test "${with_x+set}" = set; then
7918 withval="$with_x"
7919
7920 fi;
7921 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7922 if test "x$with_x" = xno; then
7923 # The user explicitly disabled X.
7924 have_x=disabled
7925 else
7926 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7927 # Both variables are already set.
7928 have_x=yes
7929 else
7930 if test "${ac_cv_have_x+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 # One or both of the vars are not set, and there is no cached value.
7934 ac_x_includes=no ac_x_libraries=no
7935 rm -fr conftest.dir
7936 if mkdir conftest.dir; then
7937 cd conftest.dir
7938 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7939 cat >Imakefile <<'_ACEOF'
7940 acfindx:
7941 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7942 _ACEOF
7943 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7945 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7946 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7947 for ac_extension in a so sl; do
7948 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7949 test -f $ac_im_libdir/libX11.$ac_extension; then
7950 ac_im_usrlibdir=$ac_im_libdir; break
7951 fi
7952 done
7953 # Screen out bogus values from the imake configuration. They are
7954 # bogus both because they are the default anyway, and because
7955 # using them would break gcc on systems where it needs fixed includes.
7956 case $ac_im_incroot in
7957 /usr/include) ;;
7958 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7959 esac
7960 case $ac_im_usrlibdir in
7961 /usr/lib | /lib) ;;
7962 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7963 esac
7964 fi
7965 cd ..
7966 rm -fr conftest.dir
7967 fi
7968
7969 # Standard set of common directories for X headers.
7970 # Check X11 before X11Rn because it is often a symlink to the current release.
7971 ac_x_header_dirs='
7972 /usr/X11/include
7973 /usr/X11R6/include
7974 /usr/X11R5/include
7975 /usr/X11R4/include
7976
7977 /usr/include/X11
7978 /usr/include/X11R6
7979 /usr/include/X11R5
7980 /usr/include/X11R4
7981
7982 /usr/local/X11/include
7983 /usr/local/X11R6/include
7984 /usr/local/X11R5/include
7985 /usr/local/X11R4/include
7986
7987 /usr/local/include/X11
7988 /usr/local/include/X11R6
7989 /usr/local/include/X11R5
7990 /usr/local/include/X11R4
7991
7992 /usr/X386/include
7993 /usr/x386/include
7994 /usr/XFree86/include/X11
7995
7996 /usr/include
7997 /usr/local/include
7998 /usr/unsupported/include
7999 /usr/athena/include
8000 /usr/local/x11r5/include
8001 /usr/lpp/Xamples/include
8002
8003 /usr/openwin/include
8004 /usr/openwin/share/include'
8005
8006 if test "$ac_x_includes" = no; then
8007 # Guess where to find include files, by looking for Intrinsic.h.
8008 # First, try using that file with no special directory specified.
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <X11/Intrinsic.h>
8016 _ACEOF
8017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } >/dev/null; then
8025 if test -s conftest.err; then
8026 ac_cpp_err=$ac_c_preproc_warn_flag
8027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8028 else
8029 ac_cpp_err=
8030 fi
8031 else
8032 ac_cpp_err=yes
8033 fi
8034 if test -z "$ac_cpp_err"; then
8035 # We can compile using X headers with no special include directory.
8036 ac_x_includes=
8037 else
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 for ac_dir in $ac_x_header_dirs; do
8042 if test -r "$ac_dir/X11/Intrinsic.h"; then
8043 ac_x_includes=$ac_dir
8044 break
8045 fi
8046 done
8047 fi
8048 rm -f conftest.err conftest.$ac_ext
8049 fi # $ac_x_includes = no
8050
8051 if test "$ac_x_libraries" = no; then
8052 # Check for the libraries.
8053 # See if we find them without any special options.
8054 # Don't add to $LIBS permanently.
8055 ac_save_LIBS=$LIBS
8056 LIBS="-lXt $LIBS"
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <X11/Intrinsic.h>
8064 int
8065 main ()
8066 {
8067 XtMalloc (0)
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074 (eval $ac_link) 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -z "$ac_c_werror_flag"
8082 || test ! -s conftest.err'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 LIBS=$ac_save_LIBS
8095 # We can link X programs with no special library path.
8096 ac_x_libraries=
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 LIBS=$ac_save_LIBS
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8103 do
8104 # Don't even attempt the hair of trying to link an X program!
8105 for ac_extension in a so sl; do
8106 if test -r $ac_dir/libXt.$ac_extension; then
8107 ac_x_libraries=$ac_dir
8108 break 2
8109 fi
8110 done
8111 done
8112 fi
8113 rm -f conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 fi # $ac_x_libraries = no
8116
8117 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8118 # Didn't find X anywhere. Cache the known absence of X.
8119 ac_cv_have_x="have_x=no"
8120 else
8121 # Record where we found X for the cache.
8122 ac_cv_have_x="have_x=yes \
8123 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8124 fi
8125 fi
8126
8127 fi
8128 eval "$ac_cv_have_x"
8129 fi # $with_x != no
8130
8131 if test "$have_x" != yes; then
8132 echo "$as_me:$LINENO: result: $have_x" >&5
8133 echo "${ECHO_T}$have_x" >&6
8134 no_x=yes
8135 else
8136 # If each of the values was on the command line, it overrides each guess.
8137 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8138 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8139 # Update the cache value to reflect the command line values.
8140 ac_cv_have_x="have_x=yes \
8141 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8143 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8144 fi
8145
8146 if test "$no_x" = yes; then
8147 window_system=none
8148 else
8149 window_system=x11
8150 fi
8151
8152 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8153 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8154 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8155 x_default_search_path=""
8156 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8157 x_search_path="\
8158 ${x_library}/X11/%L/%T/%N%C%S:\
8159 ${x_library}/X11/%l/%T/%N%C%S:\
8160 ${x_library}/X11/%T/%N%C%S:\
8161 ${x_library}/X11/%L/%T/%N%S:\
8162 ${x_library}/X11/%l/%T/%N%S:\
8163 ${x_library}/X11/%T/%N%S"
8164 if test x"${x_default_search_path}" = x; then
8165 x_default_search_path=${x_search_path}
8166 else
8167 x_default_search_path="${x_search_path}:${x_default_search_path}"
8168 fi
8169 done
8170 fi
8171 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8172 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8173 fi
8174
8175 if test x"${x_includes}" = x; then
8176 bitmapdir=/usr/include/X11/bitmaps
8177 else
8178 # accumulate include directories that have X11 bitmap subdirectories
8179 bmd_acc="dummyval"
8180 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8181 if test -d "${bmd}/X11/bitmaps"; then
8182 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8183 fi
8184 if test -d "${bmd}/bitmaps"; then
8185 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8186 fi
8187 done
8188 if test ${bmd_acc} != "dummyval"; then
8189 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8190 fi
8191 fi
8192
8193 case "${window_system}" in
8194 x11 )
8195 HAVE_X_WINDOWS=yes
8196 HAVE_X11=yes
8197 case "${with_x_toolkit}" in
8198 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8199 motif ) USE_X_TOOLKIT=MOTIF ;;
8200 gtk ) with_gtk=yes
8201 USE_X_TOOLKIT=none ;;
8202 no ) USE_X_TOOLKIT=none ;;
8203 * ) USE_X_TOOLKIT=maybe ;;
8204 esac
8205 ;;
8206 none )
8207 HAVE_X_WINDOWS=no
8208 HAVE_X11=no
8209 USE_X_TOOLKIT=none
8210 ;;
8211 esac
8212
8213 ### If we're using X11, we should use the X menu package.
8214 HAVE_MENUS=no
8215 case ${HAVE_X11} in
8216 yes ) HAVE_MENUS=yes ;;
8217 esac
8218
8219 if test "${opsys}" = "hpux9"; then
8220 case "${x_libraries}" in
8221 *X11R4* )
8222 opsysfile="s/hpux9-x11r4.h"
8223 ;;
8224 esac
8225 fi
8226
8227 if test "${opsys}" = "hpux9shr"; then
8228 case "${x_libraries}" in
8229 *X11R4* )
8230 opsysfile="s/hpux9shxr4.h"
8231 ;;
8232 esac
8233 fi
8234
8235 ### Compute the unexec source name from the object name.
8236 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8237
8238 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8239 # Assume not, until told otherwise.
8240 GNU_MALLOC=yes
8241 doug_lea_malloc=yes
8242 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8243 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8244 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8255 #define malloc_get_state innocuous_malloc_get_state
8256
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char malloc_get_state (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8261
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8267
8268 #undef malloc_get_state
8269
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 #ifdef __cplusplus
8272 extern "C"
8273 {
8274 #endif
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char malloc_get_state ();
8278 /* The GNU C library defines this for functions which it implements
8279 to always fail with ENOSYS. Some functions are actually named
8280 something starting with __ and the normal name is an alias. */
8281 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8282 choke me
8283 #else
8284 char (*f) () = malloc_get_state;
8285 #endif
8286 #ifdef __cplusplus
8287 }
8288 #endif
8289
8290 int
8291 main ()
8292 {
8293 return f != malloc_get_state;
8294 ;
8295 return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_cv_func_malloc_get_state=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_cv_func_malloc_get_state=no
8326 fi
8327 rm -f conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8331 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8332 if test $ac_cv_func_malloc_get_state = yes; then
8333 :
8334 else
8335 doug_lea_malloc=no
8336 fi
8337
8338 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8339 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8340 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8351 #define malloc_set_state innocuous_malloc_set_state
8352
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char malloc_set_state (); below.
8355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8356 <limits.h> exists even on freestanding compilers. */
8357
8358 #ifdef __STDC__
8359 # include <limits.h>
8360 #else
8361 # include <assert.h>
8362 #endif
8363
8364 #undef malloc_set_state
8365
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 {
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char malloc_set_state ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8378 choke me
8379 #else
8380 char (*f) () = malloc_set_state;
8381 #endif
8382 #ifdef __cplusplus
8383 }
8384 #endif
8385
8386 int
8387 main ()
8388 {
8389 return f != malloc_set_state;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_malloc_set_state=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_func_malloc_set_state=no
8422 fi
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 fi
8426 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8427 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8428 if test $ac_cv_func_malloc_set_state = yes; then
8429 :
8430 else
8431 doug_lea_malloc=no
8432 fi
8433
8434 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8435 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8436 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 extern void (* __after_morecore_hook)();
8446 int
8447 main ()
8448 {
8449 __after_morecore_hook = 0
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 emacs_cv_var___after_morecore_hook=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 emacs_cv_var___after_morecore_hook=no
8482 fi
8483 rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 fi
8486 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8487 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8488 if test $emacs_cv_var___after_morecore_hook = no; then
8489 doug_lea_malloc=no
8490 fi
8491 if test "${system_malloc}" = "yes"; then
8492 GNU_MALLOC=no
8493 GNU_MALLOC_reason="
8494 (The GNU allocators don't work with this system configuration.)"
8495 fi
8496 if test "$doug_lea_malloc" = "yes" ; then
8497 if test "$GNU_MALLOC" = yes ; then
8498 GNU_MALLOC_reason="
8499 (Using Doug Lea's new malloc from the GNU C Library.)"
8500 fi
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define DOUG_LEA_MALLOC 1
8504 _ACEOF
8505
8506 fi
8507
8508 if test x"${REL_ALLOC}" = x; then
8509 REL_ALLOC=${GNU_MALLOC}
8510 fi
8511
8512
8513
8514
8515 for ac_header in stdlib.h unistd.h
8516 do
8517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 fi
8524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8526 else
8527 # Is the header compilable?
8528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #include <$ac_header>
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>conftest.er1
8542 ac_status=$?
8543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest.$ac_objext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_header_compiler=yes
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_header_compiler=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8570 echo "${ECHO_T}$ac_header_compiler" >&6
8571
8572 # Is the header present?
8573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <$ac_header>
8582 _ACEOF
8583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } >/dev/null; then
8591 if test -s conftest.err; then
8592 ac_cpp_err=$ac_c_preproc_warn_flag
8593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8594 else
8595 ac_cpp_err=
8596 fi
8597 else
8598 ac_cpp_err=yes
8599 fi
8600 if test -z "$ac_cpp_err"; then
8601 ac_header_preproc=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_header_preproc=no
8607 fi
8608 rm -f conftest.err conftest.$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8610 echo "${ECHO_T}$ac_header_preproc" >&6
8611
8612 # So? What about this header?
8613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8614 yes:no: )
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8619 ac_header_preproc=yes
8620 ;;
8621 no:yes:* )
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8634 (
8635 cat <<\_ASBOX
8636 ## ------------------------------------------ ##
8637 ## Report this to the AC_PACKAGE_NAME lists. ##
8638 ## ------------------------------------------ ##
8639 _ASBOX
8640 ) |
8641 sed "s/^/$as_me: WARNING: /" >&2
8642 ;;
8643 esac
8644 echo "$as_me:$LINENO: checking for $ac_header" >&5
8645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 eval "$as_ac_Header=\$ac_header_preproc"
8650 fi
8651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8653
8654 fi
8655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8656 cat >>confdefs.h <<_ACEOF
8657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8658 _ACEOF
8659
8660 fi
8661
8662 done
8663
8664
8665 for ac_func in getpagesize
8666 do
8667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8668 echo "$as_me:$LINENO: checking for $ac_func" >&5
8669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8670 if eval "test \"\${$as_ac_var+set}\" = set"; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8681 #define $ac_func innocuous_$ac_func
8682
8683 /* System header to define __stub macros and hopefully few prototypes,
8684 which can conflict with char $ac_func (); below.
8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686 <limits.h> exists even on freestanding compilers. */
8687
8688 #ifdef __STDC__
8689 # include <limits.h>
8690 #else
8691 # include <assert.h>
8692 #endif
8693
8694 #undef $ac_func
8695
8696 /* Override any gcc2 internal prototype to avoid an error. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 {
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char $ac_func ();
8704 /* The GNU C library defines this for functions which it implements
8705 to always fail with ENOSYS. Some functions are actually named
8706 something starting with __ and the normal name is an alias. */
8707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8708 choke me
8709 #else
8710 char (*f) () = $ac_func;
8711 #endif
8712 #ifdef __cplusplus
8713 }
8714 #endif
8715
8716 int
8717 main ()
8718 {
8719 return f != $ac_func;
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 eval "$as_ac_var=yes"
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 eval "$as_ac_var=no"
8752 fi
8753 rm -f conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 fi
8756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8758 if test `eval echo '${'$as_ac_var'}'` = yes; then
8759 cat >>confdefs.h <<_ACEOF
8760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8761 _ACEOF
8762
8763 fi
8764 done
8765
8766 echo "$as_me:$LINENO: checking for working mmap" >&5
8767 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8768 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 if test "$cross_compiling" = yes; then
8772 ac_cv_func_mmap_fixed_mapped=no
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 /* malloc might have been renamed as rpl_malloc. */
8782 #undef malloc
8783
8784 /* Thanks to Mike Haertel and Jim Avera for this test.
8785 Here is a matrix of mmap possibilities:
8786 mmap private not fixed
8787 mmap private fixed at somewhere currently unmapped
8788 mmap private fixed at somewhere already mapped
8789 mmap shared not fixed
8790 mmap shared fixed at somewhere currently unmapped
8791 mmap shared fixed at somewhere already mapped
8792 For private mappings, we should verify that changes cannot be read()
8793 back from the file, nor mmap's back from the file at a different
8794 address. (There have been systems where private was not correctly
8795 implemented like the infamous i386 svr4.0, and systems where the
8796 VM page cache was not coherent with the file system buffer cache
8797 like early versions of FreeBSD and possibly contemporary NetBSD.)
8798 For shared mappings, we should conversely verify that changes get
8799 propagated back to all the places they're supposed to be.
8800
8801 Grep wants private fixed already mapped.
8802 The main things grep needs to know about mmap are:
8803 * does it exist and is it safe to write into the mmap'd area
8804 * how to use it (BSD variants) */
8805
8806 #include <fcntl.h>
8807 #include <sys/mman.h>
8808
8809 #if !STDC_HEADERS && !HAVE_STDLIB_H
8810 char *malloc ();
8811 #endif
8812
8813 /* This mess was copied from the GNU getpagesize.h. */
8814 #if !HAVE_GETPAGESIZE
8815 /* Assume that all systems that can run configure have sys/param.h. */
8816 # if !HAVE_SYS_PARAM_H
8817 # define HAVE_SYS_PARAM_H 1
8818 # endif
8819
8820 # ifdef _SC_PAGESIZE
8821 # define getpagesize() sysconf(_SC_PAGESIZE)
8822 # else /* no _SC_PAGESIZE */
8823 # if HAVE_SYS_PARAM_H
8824 # include <sys/param.h>
8825 # ifdef EXEC_PAGESIZE
8826 # define getpagesize() EXEC_PAGESIZE
8827 # else /* no EXEC_PAGESIZE */
8828 # ifdef NBPG
8829 # define getpagesize() NBPG * CLSIZE
8830 # ifndef CLSIZE
8831 # define CLSIZE 1
8832 # endif /* no CLSIZE */
8833 # else /* no NBPG */
8834 # ifdef NBPC
8835 # define getpagesize() NBPC
8836 # else /* no NBPC */
8837 # ifdef PAGESIZE
8838 # define getpagesize() PAGESIZE
8839 # endif /* PAGESIZE */
8840 # endif /* no NBPC */
8841 # endif /* no NBPG */
8842 # endif /* no EXEC_PAGESIZE */
8843 # else /* no HAVE_SYS_PARAM_H */
8844 # define getpagesize() 8192 /* punt totally */
8845 # endif /* no HAVE_SYS_PARAM_H */
8846 # endif /* no _SC_PAGESIZE */
8847
8848 #endif /* no HAVE_GETPAGESIZE */
8849
8850 int
8851 main ()
8852 {
8853 char *data, *data2, *data3;
8854 int i, pagesize;
8855 int fd;
8856
8857 pagesize = getpagesize ();
8858
8859 /* First, make a file with some known garbage in it. */
8860 data = (char *) malloc (pagesize);
8861 if (!data)
8862 exit (1);
8863 for (i = 0; i < pagesize; ++i)
8864 *(data + i) = rand ();
8865 umask (0);
8866 fd = creat ("conftest.mmap", 0600);
8867 if (fd < 0)
8868 exit (1);
8869 if (write (fd, data, pagesize) != pagesize)
8870 exit (1);
8871 close (fd);
8872
8873 /* Next, try to mmap the file at a fixed address which already has
8874 something else allocated at it. If we can, also make sure that
8875 we see the same garbage. */
8876 fd = open ("conftest.mmap", O_RDWR);
8877 if (fd < 0)
8878 exit (1);
8879 data2 = (char *) malloc (2 * pagesize);
8880 if (!data2)
8881 exit (1);
8882 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8883 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8884 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8885 exit (1);
8886 for (i = 0; i < pagesize; ++i)
8887 if (*(data + i) != *(data2 + i))
8888 exit (1);
8889
8890 /* Finally, make sure that changes to the mapped area do not
8891 percolate back to the file as seen by read(). (This is a bug on
8892 some variants of i386 svr4.0.) */
8893 for (i = 0; i < pagesize; ++i)
8894 *(data2 + i) = *(data2 + i) + 1;
8895 data3 = (char *) malloc (pagesize);
8896 if (!data3)
8897 exit (1);
8898 if (read (fd, data3, pagesize) != pagesize)
8899 exit (1);
8900 for (i = 0; i < pagesize; ++i)
8901 if (*(data + i) != *(data3 + i))
8902 exit (1);
8903 close (fd);
8904 exit (0);
8905 }
8906 _ACEOF
8907 rm -f conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_func_mmap_fixed_mapped=yes
8919 else
8920 echo "$as_me: program exited with status $ac_status" >&5
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 ( exit $ac_status )
8925 ac_cv_func_mmap_fixed_mapped=no
8926 fi
8927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8931 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8932 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8933
8934 cat >>confdefs.h <<\_ACEOF
8935 #define HAVE_MMAP 1
8936 _ACEOF
8937
8938 fi
8939 rm -f conftest.mmap
8940
8941 if test $use_mmap_for_buffers = yes; then
8942 REL_ALLOC=no
8943 fi
8944
8945 LIBS="$libsrc_libs $LIBS"
8946
8947
8948 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8949 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8950 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 ac_check_lib_save_LIBS=$LIBS
8954 LIBS="-ldnet $LIBS"
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961
8962 /* Override any gcc2 internal prototype to avoid an error. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char dnet_ntoa ();
8969 int
8970 main ()
8971 {
8972 dnet_ntoa ();
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_lib_dnet_dnet_ntoa=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_cv_lib_dnet_dnet_ntoa=no
9005 fi
9006 rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9009 fi
9010 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9011 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9012 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9013 cat >>confdefs.h <<_ACEOF
9014 #define HAVE_LIBDNET 1
9015 _ACEOF
9016
9017 LIBS="-ldnet $LIBS"
9018
9019 fi
9020
9021
9022 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9023 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9024 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027 ac_check_lib_save_LIBS=$LIBS
9028 LIBS="-lXbsd $LIBS"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035
9036
9037 int
9038 main ()
9039 {
9040 main ();
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_lib_Xbsd_main=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 ac_cv_lib_Xbsd_main=no
9073 fi
9074 rm -f conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9077 fi
9078 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9079 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9080 if test $ac_cv_lib_Xbsd_main = yes; then
9081 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9082 fi
9083
9084
9085
9086 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9087 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9088 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lpthreads $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9106 char cma_open ();
9107 int
9108 main ()
9109 {
9110 cma_open ();
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_lib_pthreads_cma_open=yes
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_lib_pthreads_cma_open=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9149 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9150 if test $ac_cv_lib_pthreads_cma_open = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152 #define HAVE_LIBPTHREADS 1
9153 _ACEOF
9154
9155 LIBS="-lpthreads $LIBS"
9156
9157 fi
9158
9159
9160 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9161 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9162 if test -d /usr/X386/include; then
9163 HAVE_XFREE386=yes
9164 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9165 else
9166 HAVE_XFREE386=no
9167 fi
9168 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9169 echo "${ECHO_T}$HAVE_XFREE386" >&6
9170
9171
9172 case ${host_os} in
9173 aix*)
9174 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9175 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9176 if test "${gdb_cv_bigtoc+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179
9180 case $GCC in
9181 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9182 *) gdb_cv_bigtoc=-bbigtoc ;;
9183 esac
9184
9185 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192
9193 int
9194 main ()
9195 {
9196 int i;
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest$ac_exeext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 :
9224 else
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 gdb_cv_bigtoc=
9229 fi
9230 rm -f conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232
9233 fi
9234 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9235 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9236 ;;
9237 esac
9238
9239 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9240 # used for the tests that follow. We set them back to REAL_CFLAGS and
9241 # REAL_CPPFLAGS later on.
9242
9243 REAL_CPPFLAGS="$CPPFLAGS"
9244
9245 if test "${HAVE_X11}" = "yes"; then
9246 DEFS="$C_SWITCH_X_SITE $DEFS"
9247 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9248 LIBS="$LIBX $LIBS"
9249 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9250 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9251
9252 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9253 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9254 # but it's more convenient here to set LD_RUN_PATH
9255 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9256 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9257 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9258 export LD_RUN_PATH
9259 fi
9260
9261 if test "${opsys}" = "gnu-linux"; then
9262 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9263 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270
9271 int
9272 main ()
9273 {
9274 XOpenDisplay ("foo");
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 xlinux_first_failure=no
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 xlinux_first_failure=yes
9307 fi
9308 rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 if test "${xlinux_first_failure}" = "yes"; then
9311 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9312 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9313 OLD_CPPFLAGS="$CPPFLAGS"
9314 OLD_LIBS="$LIBS"
9315 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9316 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9317 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9318 LIBS="$LIBS -b i486-linuxaout"
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325
9326 int
9327 main ()
9328 {
9329 XOpenDisplay ("foo");
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 xlinux_second_failure=no
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 xlinux_second_failure=yes
9362 fi
9363 rm -f conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 if test "${xlinux_second_failure}" = "yes"; then
9366 # If we get the same failure with -b, there is no use adding -b.
9367 # So take it out. This plays safe.
9368 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9369 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9370 CPPFLAGS="$OLD_CPPFLAGS"
9371 LIBS="$OLD_LIBS"
9372 echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6
9374 else
9375 echo "$as_me:$LINENO: result: yes" >&5
9376 echo "${ECHO_T}yes" >&6
9377 fi
9378 else
9379 echo "$as_me:$LINENO: result: no" >&5
9380 echo "${ECHO_T}no" >&6
9381 fi
9382 fi
9383
9384 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9385 # header files included from there.
9386 echo "$as_me:$LINENO: checking for Xkb" >&5
9387 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <X11/Xlib.h>
9395 #include <X11/XKBlib.h>
9396 int
9397 main ()
9398 {
9399 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 rm -f conftest.$ac_objext conftest$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 emacs_xkb=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 emacs_xkb=no
9432 fi
9433 rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9436 echo "${ECHO_T}$emacs_xkb" >&6
9437 if test $emacs_xkb = yes; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_XKBGETKEYBOARD 1
9441 _ACEOF
9442
9443 fi
9444
9445
9446
9447
9448
9449 for ac_func in XrmSetDatabase XScreenResourceString \
9450 XScreenNumberOfScreen XSetWMProtocols
9451 do
9452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9453 echo "$as_me:$LINENO: checking for $ac_func" >&5
9454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9455 if eval "test \"\${$as_ac_var+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466 #define $ac_func innocuous_$ac_func
9467
9468 /* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char $ac_func (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9472
9473 #ifdef __STDC__
9474 # include <limits.h>
9475 #else
9476 # include <assert.h>
9477 #endif
9478
9479 #undef $ac_func
9480
9481 /* Override any gcc2 internal prototype to avoid an error. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 {
9485 #endif
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9488 char $ac_func ();
9489 /* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9493 choke me
9494 #else
9495 char (*f) () = $ac_func;
9496 #endif
9497 #ifdef __cplusplus
9498 }
9499 #endif
9500
9501 int
9502 main ()
9503 {
9504 return f != $ac_func;
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 eval "$as_ac_var=yes"
9532 else
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536 eval "$as_ac_var=no"
9537 fi
9538 rm -f conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 fi
9541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9543 if test `eval echo '${'$as_ac_var'}'` = yes; then
9544 cat >>confdefs.h <<_ACEOF
9545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9546 _ACEOF
9547
9548 fi
9549 done
9550
9551 fi
9552
9553 if test "${window_system}" = "x11"; then
9554 echo "$as_me:$LINENO: checking X11 version 6" >&5
9555 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9556 if test "${emacs_cv_x11_version_6+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <X11/Xlib.h>
9566 int
9567 main ()
9568 {
9569 #if XlibSpecificationRelease < 6
9570 fail;
9571 #endif
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 emacs_cv_x11_version_6=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 emacs_cv_x11_version_6=no
9605 fi
9606 rm -f conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 fi
9609
9610 if test $emacs_cv_x11_version_6 = yes; then
9611 echo "$as_me:$LINENO: result: 6 or newer" >&5
9612 echo "${ECHO_T}6 or newer" >&6
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_X11R6 1
9616 _ACEOF
9617
9618 else
9619 echo "$as_me:$LINENO: result: before 6" >&5
9620 echo "${ECHO_T}before 6" >&6
9621 fi
9622 fi
9623
9624 if test "${window_system}" = "x11"; then
9625 echo "$as_me:$LINENO: checking X11 version 5" >&5
9626 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9627 if test "${emacs_cv_x11_version_5+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <X11/Xlib.h>
9637 int
9638 main ()
9639 {
9640 #if XlibSpecificationRelease < 5
9641 fail;
9642 #endif
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 emacs_cv_x11_version_5=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 emacs_cv_x11_version_5=no
9676 fi
9677 rm -f conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 fi
9680
9681 if test $emacs_cv_x11_version_5 = yes; then
9682 echo "$as_me:$LINENO: result: 5 or newer" >&5
9683 echo "${ECHO_T}5 or newer" >&6
9684 HAVE_X11R5=yes
9685
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_X11R5 1
9688 _ACEOF
9689
9690 else
9691 HAVE_X11R5=no
9692 echo "$as_me:$LINENO: result: before 5" >&5
9693 echo "${ECHO_T}before 5" >&6
9694 fi
9695 fi
9696
9697
9698
9699 HAVE_GTK=no
9700 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9701 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9702 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9703 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9704 { (exit 1); exit 1; }; };
9705 fi
9706 GLIB_REQUIRED=2.0.1
9707 GTK_REQUIRED=2.0.1
9708 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9709
9710 if test "X${with_pkg_config_prog}" != X; then
9711 PKG_CONFIG="${with_pkg_config_prog}"
9712 fi
9713
9714 succeeded=no
9715
9716 if test -z "$PKG_CONFIG"; then
9717 # Extract the first word of "pkg-config", so it can be a program name with args.
9718 set dummy pkg-config; ac_word=$2
9719 echo "$as_me:$LINENO: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9721 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 case $PKG_CONFIG in
9725 [\\/]* | ?:[\\/]*)
9726 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9727 ;;
9728 *)
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9731 do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740 done
9741 done
9742
9743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9744 ;;
9745 esac
9746 fi
9747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9748
9749 if test -n "$PKG_CONFIG"; then
9750 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9751 echo "${ECHO_T}$PKG_CONFIG" >&6
9752 else
9753 echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6
9755 fi
9756
9757 fi
9758
9759 if test "$PKG_CONFIG" = "no" ; then
9760 echo "*** The pkg-config script could not be found. Make sure it is"
9761 echo "*** in your path, or give the full path to pkg-config with"
9762 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9763 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9764 else
9765 PKG_CONFIG_MIN_VERSION=0.9.0
9766 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9767 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9768 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9769
9770 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9771 echo "$as_me:$LINENO: result: yes" >&5
9772 echo "${ECHO_T}yes" >&6
9773 succeeded=yes
9774
9775 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9776 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9777 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9778 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9779 echo "${ECHO_T}$GTK_CFLAGS" >&6
9780
9781 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9782 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9783 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9784 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9785 echo "${ECHO_T}$GTK_LIBS" >&6
9786 else
9787 GTK_CFLAGS=""
9788 GTK_LIBS=""
9789 ## If we have a custom action on failure, don't print errors, but
9790 ## do set a variable so people can do so.
9791 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9792 echo $GTK_PKG_ERRORS
9793 fi
9794
9795
9796
9797 else
9798 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9799 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9800 fi
9801 fi
9802
9803 if test $succeeded = yes; then
9804 :
9805 else
9806 { { 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
9807 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;}
9808 { (exit 1); exit 1; }; }
9809 fi
9810
9811
9812
9813 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9814 CFLAGS="$CFLAGS $GTK_CFLAGS"
9815 LIBS="$GTK_LIBS $LIBS"
9816 HAVE_GTK=yes
9817
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_GTK 1
9820 _ACEOF
9821
9822 USE_X_TOOLKIT=none
9823
9824 with_toolkit_scroll_bars=yes
9825
9826 HAVE_GTK_MULTIDISPLAY=no
9827
9828 for ac_func in gdk_display_open
9829 do
9830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_func" >&5
9832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_var+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9844 #define $ac_func innocuous_$ac_func
9845
9846 /* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char $ac_func (); below.
9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9849 <limits.h> exists even on freestanding compilers. */
9850
9851 #ifdef __STDC__
9852 # include <limits.h>
9853 #else
9854 # include <assert.h>
9855 #endif
9856
9857 #undef $ac_func
9858
9859 /* Override any gcc2 internal prototype to avoid an error. */
9860 #ifdef __cplusplus
9861 extern "C"
9862 {
9863 #endif
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866 char $ac_func ();
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9871 choke me
9872 #else
9873 char (*f) () = $ac_func;
9874 #endif
9875 #ifdef __cplusplus
9876 }
9877 #endif
9878
9879 int
9880 main ()
9881 {
9882 return f != $ac_func;
9883 ;
9884 return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 eval "$as_ac_var=yes"
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 eval "$as_ac_var=no"
9915 fi
9916 rm -f conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 fi
9919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9921 if test `eval echo '${'$as_ac_var'}'` = yes; then
9922 cat >>confdefs.h <<_ACEOF
9923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9924 _ACEOF
9925 HAVE_GTK_MULTIDISPLAY=yes
9926 fi
9927 done
9928
9929 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9930
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_GTK_MULTIDISPLAY 1
9933 _ACEOF
9934
9935 fi
9936 fi
9937
9938 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9939 if test x"${HAVE_X11R5}" = xyes; then
9940 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9941 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9942 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951
9952 #include <X11/Intrinsic.h>
9953 #include <X11/Xaw/Simple.h>
9954 int
9955 main ()
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 emacs_cv_x11_version_5_with_xaw=yes
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 emacs_cv_x11_version_5_with_xaw=no
9990 fi
9991 rm -f conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 fi
9994
9995 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9996 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9997 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9998 USE_X_TOOLKIT=LUCID
9999 else
10000 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10001 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10002 USE_X_TOOLKIT=none
10003 fi
10004 else
10005 USE_X_TOOLKIT=none
10006 fi
10007 fi
10008
10009 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10010
10011 if test "${USE_X_TOOLKIT}" != "none"; then
10012 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10013 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10014 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <X11/Intrinsic.h>
10024 int
10025 main ()
10026 {
10027 #if XtSpecificationRelease < 6
10028 fail;
10029 #endif
10030
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -z "$ac_c_werror_flag"
10045 || test ! -s conftest.err'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 emacs_cv_x11_toolkit_version_6=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 emacs_cv_x11_toolkit_version_6=no
10063 fi
10064 rm -f conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 fi
10067
10068 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10070 echo "$as_me:$LINENO: result: 6 or newer" >&5
10071 echo "${ECHO_T}6 or newer" >&6
10072
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_X11XTR6 1
10075 _ACEOF
10076
10077 else
10078 echo "$as_me:$LINENO: result: before 6" >&5
10079 echo "${ECHO_T}before 6" >&6
10080 fi
10081
10082 OLDLIBS="$LIBS"
10083 if test x$HAVE_X11XTR6 = xyes; then
10084 LIBS="-lXt -lSM -lICE $LIBS"
10085 else
10086 LIBS="-lXt $LIBS"
10087 fi
10088
10089 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-lXmu $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102
10103 /* Override any gcc2 internal prototype to avoid an error. */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10109 char XmuConvertStandardSelection ();
10110 int
10111 main ()
10112 {
10113 XmuConvertStandardSelection ();
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag"
10128 || test ! -s conftest.err'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10146 fi
10147 rm -f conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10152 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10153 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10154 cat >>confdefs.h <<_ACEOF
10155 #define HAVE_LIBXMU 1
10156 _ACEOF
10157
10158 LIBS="-lXmu $LIBS"
10159
10160 fi
10161
10162 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10163 fi
10164
10165 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10166 if test "${HAVE_X11}" = "yes"; then
10167 if test "${USE_X_TOOLKIT}" != "none"; then
10168
10169 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10170 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10171 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lXext $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182
10183 /* Override any gcc2 internal prototype to avoid an error. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char XShapeQueryExtension ();
10190 int
10191 main ()
10192 {
10193 XShapeQueryExtension ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_Xext_XShapeQueryExtension=yes
10221 else
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 ac_cv_lib_Xext_XShapeQueryExtension=no
10226 fi
10227 rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10232 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10233 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10234 cat >>confdefs.h <<_ACEOF
10235 #define HAVE_LIBXEXT 1
10236 _ACEOF
10237
10238 LIBS="-lXext $LIBS"
10239
10240 fi
10241
10242 fi
10243 fi
10244
10245 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10246 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10247 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10248 if test "${emacs_cv_lesstif+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 # We put this in CFLAGS temporarily to precede other -I options
10252 # that might be in CFLAGS temporarily.
10253 # We put this in CPPFLAGS where it precedes the other -I options.
10254 OLD_CPPFLAGS=$CPPFLAGS
10255 OLD_CFLAGS=$CFLAGS
10256 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10257 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10265 int
10266 main ()
10267 {
10268 int x = 5;
10269 ;
10270 return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag"
10283 || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 emacs_cv_lesstif=yes
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 emacs_cv_lesstif=no
10301 fi
10302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303 fi
10304 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10305 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10306 if test $emacs_cv_lesstif = yes; then
10307 # Make sure this -I option remains in CPPFLAGS after it is set
10308 # back to REAL_CPPFLAGS.
10309 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10310 # have those other -I options anyway. Ultimately, having this
10311 # directory ultimately in CPPFLAGS will be enough.
10312 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10313 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10314 else
10315 CFLAGS=$OLD_CFLAGS
10316 CPPFLAGS=$OLD_CPPFLAGS
10317 fi
10318 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10319 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10320 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <Xm/Xm.h>
10330 int
10331 main ()
10332 {
10333 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10334 int x = 5;
10335 #else
10336 Motif version prior to 2.1.
10337 #endif
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 emacs_cv_motif_version_2_1=yes
10365 else
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 emacs_cv_motif_version_2_1=no
10370 fi
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10374 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10375 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10376 if test $emacs_cv_motif_version_2_1 = yes; then
10377 HAVE_LIBXP=no
10378
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_MOTIF_2_1 1
10381 _ACEOF
10382
10383 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10384 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10385 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 ac_check_lib_save_LIBS=$LIBS
10389 LIBS="-lXp $LIBS"
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396
10397 /* Override any gcc2 internal prototype to avoid an error. */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403 char XpCreateContext ();
10404 int
10405 main ()
10406 {
10407 XpCreateContext ();
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_lib_Xp_XpCreateContext=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 ac_cv_lib_Xp_XpCreateContext=no
10440 fi
10441 rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10446 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10447 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10448 HAVE_LIBXP=yes
10449 fi
10450
10451 if test ${HAVE_LIBXP} = yes; then
10452
10453 cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_LIBXP 1
10455 _ACEOF
10456
10457 fi
10458 fi
10459 fi
10460
10461 ### Is -lXaw3d available?
10462 HAVE_XAW3D=no
10463 if test "${HAVE_X11}" = "yes"; then
10464 if test "${USE_X_TOOLKIT}" != "none"; then
10465 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10466 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10467 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <X11/Xaw3d/Scrollbar.h>
10477 _ACEOF
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev/null; then
10486 if test -s conftest.err; then
10487 ac_cpp_err=$ac_c_preproc_warn_flag
10488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10489 else
10490 ac_cpp_err=
10491 fi
10492 else
10493 ac_cpp_err=yes
10494 fi
10495 if test -z "$ac_cpp_err"; then
10496 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10502 fi
10503 rm -f conftest.err conftest.$ac_ext
10504 fi
10505 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10506 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10507 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10508 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10509 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10510 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lXaw3d $LIBS"
10515 cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h. */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521
10522 /* Override any gcc2 internal prototype to avoid an error. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 /* We use char because int might match the return type of a gcc2
10527 builtin and then its argument prototype would still apply. */
10528 char XawScrollbarSetThumb ();
10529 int
10530 main ()
10531 {
10532 XawScrollbarSetThumb ();
10533 ;
10534 return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10565 fi
10566 rm -f conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10569 fi
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10571 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10572 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10573 HAVE_XAW3D=yes
10574 fi
10575
10576 fi
10577
10578
10579 if test "${HAVE_XAW3D}" = "yes"; then
10580
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_XAW3D 1
10583 _ACEOF
10584
10585 fi
10586 fi
10587 fi
10588
10589
10590
10591 USE_TOOLKIT_SCROLL_BARS=no
10592 if test "${with_toolkit_scroll_bars}" != "no"; then
10593 if test "${USE_X_TOOLKIT}" != "none"; then
10594 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define USE_TOOLKIT_SCROLL_BARS 1
10597 _ACEOF
10598
10599 HAVE_XAW3D=no
10600 USE_TOOLKIT_SCROLL_BARS=yes
10601 elif test "${HAVE_XAW3D}" = "yes"; then
10602 cat >>confdefs.h <<\_ACEOF
10603 #define USE_TOOLKIT_SCROLL_BARS 1
10604 _ACEOF
10605
10606 USE_TOOLKIT_SCROLL_BARS=yes
10607 fi
10608 elif test "${HAVE_GTK}" = "yes"; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define USE_TOOLKIT_SCROLL_BARS 1
10611 _ACEOF
10612
10613 USE_TOOLKIT_SCROLL_BARS=yes
10614 fi
10615 fi
10616
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h. */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623
10624 #include <X11/Xlib.h>
10625 #include <X11/Xresource.h>
10626 int
10627 main ()
10628 {
10629 XIMProc callback;
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 HAVE_XIM=yes
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_XIM 1
10660 _ACEOF
10661
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 HAVE_XIM=no
10667 fi
10668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10669
10670
10671 if test "${with_xim}" != "no"; then
10672
10673 cat >>confdefs.h <<\_ACEOF
10674 #define USE_XIM 1
10675 _ACEOF
10676
10677 fi
10678
10679
10680 if test "${HAVE_XIM}" != "no"; then
10681 late_CFLAGS=$CFLAGS
10682 if test "$GCC" = yes; then
10683 CFLAGS="$CFLAGS --pedantic-errors"
10684 fi
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691
10692 #include <X11/Xlib.h>
10693 #include <X11/Xresource.h>
10694 int
10695 main ()
10696 {
10697 Display *display;
10698 XrmDatabase db;
10699 char *res_name;
10700 char *res_class;
10701 XIMProc callback;
10702 XPointer *client_data;
10703 #ifndef __GNUC__
10704 /* If we're not using GCC, it's probably not XFree86, and this is
10705 probably right, but we can't use something like --pedantic-errors. */
10706 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10707 char*, XIMProc, XPointer*);
10708 #endif
10709 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10710 client_data);
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest.$ac_objext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 emacs_cv_arg6_star=yes
10738 else
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 fi
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10744
10745 if test "$emacs_cv_arg6_star" = yes; then
10746 cat >>confdefs.h <<\_ACEOF
10747 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10748 _ACEOF
10749
10750 else
10751 cat >>confdefs.h <<\_ACEOF
10752 #define XRegisterIMInstantiateCallback_arg6 XPointer
10753 _ACEOF
10754
10755 fi
10756 CFLAGS=$late_CFLAGS
10757 fi
10758
10759 ### Use -lXpm if available, unless `--with-xpm=no'.
10760 HAVE_XPM=no
10761 if test "${HAVE_X11}" = "yes"; then
10762 if test "${with_xpm}" != "no"; then
10763 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10764 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10765 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 fi
10769 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10770 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10771 else
10772 # Is the header compilable?
10773 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10774 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 #include <X11/xpm.h>
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_header_compiler=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 ac_header_compiler=no
10812 fi
10813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10815 echo "${ECHO_T}$ac_header_compiler" >&6
10816
10817 # Is the header present?
10818 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10819 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <X11/xpm.h>
10827 _ACEOF
10828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } >/dev/null; then
10836 if test -s conftest.err; then
10837 ac_cpp_err=$ac_c_preproc_warn_flag
10838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10839 else
10840 ac_cpp_err=
10841 fi
10842 else
10843 ac_cpp_err=yes
10844 fi
10845 if test -z "$ac_cpp_err"; then
10846 ac_header_preproc=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_header_preproc=no
10852 fi
10853 rm -f conftest.err conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6
10856
10857 # So? What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10859 yes:no: )
10860 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10864 ac_header_preproc=yes
10865 ;;
10866 no:yes:* )
10867 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10879 (
10880 cat <<\_ASBOX
10881 ## ------------------------------------------ ##
10882 ## Report this to the AC_PACKAGE_NAME lists. ##
10883 ## ------------------------------------------ ##
10884 _ASBOX
10885 ) |
10886 sed "s/^/$as_me: WARNING: /" >&2
10887 ;;
10888 esac
10889 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10890 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10891 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 ac_cv_header_X11_xpm_h=$ac_header_preproc
10895 fi
10896 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10898
10899 fi
10900 if test $ac_cv_header_X11_xpm_h = yes; then
10901 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10902 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10903 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-lXpm -lX11 $LIBS"
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char XpmReadFileToPixmap ();
10922 int
10923 main ()
10924 {
10925 XpmReadFileToPixmap ();
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest$ac_exeext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10958 fi
10959 rm -f conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10962 fi
10963 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10964 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10965 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10966 HAVE_XPM=yes
10967 fi
10968
10969 fi
10970
10971
10972 if test "${HAVE_XPM}" = "yes"; then
10973 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10974 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include "X11/xpm.h"
10982 #ifndef XpmReturnAllocPixels
10983 no_return_alloc_pixels
10984 #endif
10985
10986 _ACEOF
10987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10988 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10989 HAVE_XPM=no
10990 else
10991 HAVE_XPM=yes
10992 fi
10993 rm -f conftest*
10994
10995
10996 if test "${HAVE_XPM}" = "yes"; then
10997 echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6
10999 else
11000 echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6
11002 fi
11003 fi
11004 fi
11005
11006 if test "${HAVE_XPM}" = "yes"; then
11007
11008 cat >>confdefs.h <<\_ACEOF
11009 #define HAVE_XPM 1
11010 _ACEOF
11011
11012 fi
11013 fi
11014
11015 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11016 HAVE_JPEG=no
11017 if test "${HAVE_X11}" = "yes"; then
11018 if test "${with_jpeg}" != "no"; then
11019 if test "${ac_cv_header_jerror_h+set}" = set; then
11020 echo "$as_me:$LINENO: checking for jerror.h" >&5
11021 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11022 if test "${ac_cv_header_jerror_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 fi
11025 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11026 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11027 else
11028 # Is the header compilable?
11029 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11030 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 $ac_includes_default
11038 #include <jerror.h>
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_header_compiler=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_header_compiler=no
11068 fi
11069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11071 echo "${ECHO_T}$ac_header_compiler" >&6
11072
11073 # Is the header present?
11074 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11075 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <jerror.h>
11083 _ACEOF
11084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev/null; then
11092 if test -s conftest.err; then
11093 ac_cpp_err=$ac_c_preproc_warn_flag
11094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11095 else
11096 ac_cpp_err=
11097 fi
11098 else
11099 ac_cpp_err=yes
11100 fi
11101 if test -z "$ac_cpp_err"; then
11102 ac_header_preproc=yes
11103 else
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 ac_header_preproc=no
11108 fi
11109 rm -f conftest.err conftest.$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6
11112
11113 # So? What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11115 yes:no: )
11116 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc=yes
11121 ;;
11122 no:yes:* )
11123 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11135 (
11136 cat <<\_ASBOX
11137 ## ------------------------------------------ ##
11138 ## Report this to the AC_PACKAGE_NAME lists. ##
11139 ## ------------------------------------------ ##
11140 _ASBOX
11141 ) |
11142 sed "s/^/$as_me: WARNING: /" >&2
11143 ;;
11144 esac
11145 echo "$as_me:$LINENO: checking for jerror.h" >&5
11146 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11147 if test "${ac_cv_header_jerror_h+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 ac_cv_header_jerror_h=$ac_header_preproc
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11153 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11154
11155 fi
11156 if test $ac_cv_header_jerror_h = yes; then
11157 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 ac_check_lib_save_LIBS=$LIBS
11163 LIBS="-ljpeg $LIBS"
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170
11171 /* Override any gcc2 internal prototype to avoid an error. */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11177 char jpeg_destroy_compress ();
11178 int
11179 main ()
11180 {
11181 jpeg_destroy_compress ();
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag"
11196 || test ! -s conftest.err'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest$ac_exeext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11214 fi
11215 rm -f conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11220 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11221 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11222 HAVE_JPEG=yes
11223 fi
11224
11225 fi
11226
11227
11228 fi
11229
11230
11231 if test "${HAVE_JPEG}" = "yes"; then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_JPEG 1
11234 _ACEOF
11235
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <jpeglib.h>
11243 version=JPEG_LIB_VERSION
11244
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_JPEG 1
11250 _ACEOF
11251
11252 else
11253 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11254 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11255 HAVE_JPEG=no
11256 fi
11257 rm -f conftest*
11258
11259 fi
11260 fi
11261
11262 ### Use -lpng if available, unless `--with-png=no'.
11263 HAVE_PNG=no
11264 if test "${HAVE_X11}" = "yes"; then
11265 if test "${with_png}" != "no"; then
11266 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11267 # in /usr/include/libpng.
11268
11269
11270 for ac_header in png.h libpng/png.h
11271 do
11272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11274 echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 fi
11279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11281 else
11282 # Is the header compilable?
11283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 $ac_includes_default
11292 #include <$ac_header>
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11296 (eval $ac_compile) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag"
11304 || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_header_compiler=yes
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_header_compiler=no
11322 fi
11323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 echo "${ECHO_T}$ac_header_compiler" >&6
11326
11327 # Is the header present?
11328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <$ac_header>
11337 _ACEOF
11338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349 else
11350 ac_cpp_err=
11351 fi
11352 else
11353 ac_cpp_err=yes
11354 fi
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_preproc=no
11362 fi
11363 rm -f conftest.err conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6
11366
11367 # So? What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 yes:no: )
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc=yes
11375 ;;
11376 no:yes:* )
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 (
11390 cat <<\_ASBOX
11391 ## ------------------------------------------ ##
11392 ## Report this to the AC_PACKAGE_NAME lists. ##
11393 ## ------------------------------------------ ##
11394 _ASBOX
11395 ) |
11396 sed "s/^/$as_me: WARNING: /" >&2
11397 ;;
11398 esac
11399 echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 eval "$as_ac_Header=\$ac_header_preproc"
11405 fi
11406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11408
11409 fi
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 fi
11416
11417 done
11418
11419 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11420 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11421 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11422 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-lpng -lz -lm $LIBS"
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433
11434 /* Override any gcc2 internal prototype to avoid an error. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char png_get_channels ();
11441 int
11442 main ()
11443 {
11444 png_get_channels ();
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11451 (eval $ac_link) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -z "$ac_c_werror_flag"
11459 || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_lib_png_png_get_channels=yes
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_cv_lib_png_png_get_channels=no
11477 fi
11478 rm -f conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11483 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11484 if test $ac_cv_lib_png_png_get_channels = yes; then
11485 HAVE_PNG=yes
11486 fi
11487
11488 fi
11489 fi
11490
11491 if test "${HAVE_PNG}" = "yes"; then
11492
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_PNG 1
11495 _ACEOF
11496
11497 fi
11498 fi
11499
11500 ### Use -ltiff if available, unless `--with-tiff=no'.
11501 HAVE_TIFF=no
11502 if test "${HAVE_X11}" = "yes"; then
11503 if test "${with_tiff}" != "no"; then
11504 if test "${ac_cv_header_tiffio_h+set}" = set; then
11505 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11506 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11507 if test "${ac_cv_header_tiffio_h+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 fi
11510 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11511 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11512 else
11513 # Is the header compilable?
11514 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11515 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 #include <tiffio.h>
11524 _ACEOF
11525 rm -f conftest.$ac_objext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag"
11535 || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_header_compiler=yes
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 ac_header_compiler=no
11553 fi
11554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 echo "${ECHO_T}$ac_header_compiler" >&6
11557
11558 # Is the header present?
11559 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11560 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <tiffio.h>
11568 _ACEOF
11569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev/null; then
11577 if test -s conftest.err; then
11578 ac_cpp_err=$ac_c_preproc_warn_flag
11579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11580 else
11581 ac_cpp_err=
11582 fi
11583 else
11584 ac_cpp_err=yes
11585 fi
11586 if test -z "$ac_cpp_err"; then
11587 ac_header_preproc=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_header_preproc=no
11593 fi
11594 rm -f conftest.err conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6
11597
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600 yes:no: )
11601 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11604 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11606 ;;
11607 no:yes:* )
11608 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11609 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11611 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11613 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11615 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11619 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11620 (
11621 cat <<\_ASBOX
11622 ## ------------------------------------------ ##
11623 ## Report this to the AC_PACKAGE_NAME lists. ##
11624 ## ------------------------------------------ ##
11625 _ASBOX
11626 ) |
11627 sed "s/^/$as_me: WARNING: /" >&2
11628 ;;
11629 esac
11630 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11631 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_tiffio_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 ac_cv_header_tiffio_h=$ac_header_preproc
11636 fi
11637 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11638 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11639
11640 fi
11641 if test $ac_cv_header_tiffio_h = yes; then
11642 tifflibs="-lz -lm"
11643 # At least one tiff package requires the jpeg library.
11644 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11645 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11646 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11647 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ltiff $tifflibs $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665 char TIFFGetVersion ();
11666 int
11667 main ()
11668 {
11669 TIFFGetVersion ();
11670 ;
11671 return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -z "$ac_c_werror_flag"
11684 || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_tiff_TIFFGetVersion=yes
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 ac_cv_lib_tiff_TIFFGetVersion=no
11702 fi
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11708 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11709 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11710 HAVE_TIFF=yes
11711 fi
11712
11713 fi
11714
11715
11716 fi
11717
11718 if test "${HAVE_TIFF}" = "yes"; then
11719
11720 cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_TIFF 1
11722 _ACEOF
11723
11724 fi
11725 fi
11726
11727 ### Use -lgif if available, unless `--with-gif=no'.
11728 HAVE_GIF=no
11729 if test "${HAVE_X11}" = "yes"; then
11730 if test "${with_gif}" != "no"; then
11731 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11732 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11733 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11738 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11739 else
11740 # Is the header compilable?
11741 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11742 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11750 #include <gif_lib.h>
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_header_compiler=yes
11775 else
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 ac_header_compiler=no
11780 fi
11781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783 echo "${ECHO_T}$ac_header_compiler" >&6
11784
11785 # Is the header present?
11786 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11787 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 #include <gif_lib.h>
11795 _ACEOF
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null; then
11804 if test -s conftest.err; then
11805 ac_cpp_err=$ac_c_preproc_warn_flag
11806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11807 else
11808 ac_cpp_err=
11809 fi
11810 else
11811 ac_cpp_err=yes
11812 fi
11813 if test -z "$ac_cpp_err"; then
11814 ac_header_preproc=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_header_preproc=no
11820 fi
11821 rm -f conftest.err conftest.$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823 echo "${ECHO_T}$ac_header_preproc" >&6
11824
11825 # So? What about this header?
11826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11827 yes:no: )
11828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11829 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11831 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11832 ac_header_preproc=yes
11833 ;;
11834 no:yes:* )
11835 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11836 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11838 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11840 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11842 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11844 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11846 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11847 (
11848 cat <<\_ASBOX
11849 ## ------------------------------------------ ##
11850 ## Report this to the AC_PACKAGE_NAME lists. ##
11851 ## ------------------------------------------ ##
11852 _ASBOX
11853 ) |
11854 sed "s/^/$as_me: WARNING: /" >&2
11855 ;;
11856 esac
11857 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11858 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11859 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 ac_cv_header_gif_lib_h=$ac_header_preproc
11863 fi
11864 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11865 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11866
11867 fi
11868 if test $ac_cv_header_gif_lib_h = yes; then
11869 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11870 # Earlier versions can crash Emacs.
11871 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11872 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11873 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-lungif $LIBS"
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884
11885 /* Override any gcc2 internal prototype to avoid an error. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891 char EGifPutExtensionLast ();
11892 int
11893 main ()
11894 {
11895 EGifPutExtensionLast ();
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_cv_lib_ungif_EGifPutExtensionLast=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11934 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11935 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11936 HAVE_GIF=yes
11937 fi
11938
11939 fi
11940
11941
11942 fi
11943
11944 if test "${HAVE_GIF}" = "yes"; then
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define HAVE_GIF 1
11948 _ACEOF
11949
11950 fi
11951 fi
11952
11953 ### Use Mac OS X Carbon API to implement GUI.
11954 HAVE_CARBON=no
11955 if test "${with_carbon}" != "no"; then
11956 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11957 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11958 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 fi
11962 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11963 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11964 else
11965 # Is the header compilable?
11966 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11967 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 $ac_includes_default
11975 #include <Carbon/Carbon.h>
11976 _ACEOF
11977 rm -f conftest.$ac_objext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979 (eval $ac_compile) 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_header_compiler=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ac_header_compiler=no
12005 fi
12006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12008 echo "${ECHO_T}$ac_header_compiler" >&6
12009
12010 # Is the header present?
12011 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12012 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 #include <Carbon/Carbon.h>
12020 _ACEOF
12021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } >/dev/null; then
12029 if test -s conftest.err; then
12030 ac_cpp_err=$ac_c_preproc_warn_flag
12031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12032 else
12033 ac_cpp_err=
12034 fi
12035 else
12036 ac_cpp_err=yes
12037 fi
12038 if test -z "$ac_cpp_err"; then
12039 ac_header_preproc=yes
12040 else
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_header_preproc=no
12045 fi
12046 rm -f conftest.err conftest.$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048 echo "${ECHO_T}$ac_header_preproc" >&6
12049
12050 # So? What about this header?
12051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12052 yes:no: )
12053 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12054 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12056 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12057 ac_header_preproc=yes
12058 ;;
12059 no:yes:* )
12060 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12061 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12063 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12065 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12067 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12069 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12071 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12072 (
12073 cat <<\_ASBOX
12074 ## ------------------------------------------ ##
12075 ## Report this to the AC_PACKAGE_NAME lists. ##
12076 ## ------------------------------------------ ##
12077 _ASBOX
12078 ) |
12079 sed "s/^/$as_me: WARNING: /" >&2
12080 ;;
12081 esac
12082 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12083 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12084 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12088 fi
12089 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12090 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12091
12092 fi
12093 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12094 HAVE_CARBON=yes
12095 fi
12096
12097
12098 fi
12099
12100 if test "${HAVE_CARBON}" = "yes"; then
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_CARBON 1
12104 _ACEOF
12105
12106 window_system=mac
12107 ## Specify the install directory
12108 carbon_appdir=
12109 if test "${carbon_appdir_x}" != ""; then
12110 case ${carbon_appdir_x} in
12111 y | ye | yes) carbon_appdir=/Applications ;;
12112 * ) carbon_appdir=${carbon_appdir_x} ;;
12113 esac
12114 fi
12115 # We also have mouse menus.
12116 HAVE_MENUS=yes
12117 fi
12118
12119 ### Use session management (-lSM -lICE) if available
12120 HAVE_X_SM=no
12121 if test "${HAVE_X11}" = "yes"; then
12122 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12123 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12124 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12125 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12129 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12130 else
12131 # Is the header compilable?
12132 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12133 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 $ac_includes_default
12141 #include <X11/SM/SMlib.h>
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_header_compiler=yes
12166 else
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_header_compiler=no
12171 fi
12172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12174 echo "${ECHO_T}$ac_header_compiler" >&6
12175
12176 # Is the header present?
12177 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12178 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h. */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 #include <X11/SM/SMlib.h>
12186 _ACEOF
12187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } >/dev/null; then
12195 if test -s conftest.err; then
12196 ac_cpp_err=$ac_c_preproc_warn_flag
12197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12198 else
12199 ac_cpp_err=
12200 fi
12201 else
12202 ac_cpp_err=yes
12203 fi
12204 if test -z "$ac_cpp_err"; then
12205 ac_header_preproc=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_header_preproc=no
12211 fi
12212 rm -f conftest.err conftest.$ac_ext
12213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214 echo "${ECHO_T}$ac_header_preproc" >&6
12215
12216 # So? What about this header?
12217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 yes:no: )
12219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12220 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12222 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12224 ;;
12225 no:yes:* )
12226 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12227 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12229 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12231 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12233 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12235 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12237 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12238 (
12239 cat <<\_ASBOX
12240 ## ------------------------------------------ ##
12241 ## Report this to the AC_PACKAGE_NAME lists. ##
12242 ## ------------------------------------------ ##
12243 _ASBOX
12244 ) |
12245 sed "s/^/$as_me: WARNING: /" >&2
12246 ;;
12247 esac
12248 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12249 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12250 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12254 fi
12255 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12256 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12257
12258 fi
12259 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12260 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12261 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12262 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lSM -lICE $LIBS"
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273
12274 /* Override any gcc2 internal prototype to avoid an error. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char SmcOpenConnection ();
12281 int
12282 main ()
12283 {
12284 SmcOpenConnection ();
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_lib_SM_SmcOpenConnection=yes
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_cv_lib_SM_SmcOpenConnection=no
12317 fi
12318 rm -f conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12323 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12324 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12325 HAVE_X_SM=yes
12326 fi
12327
12328 fi
12329
12330
12331
12332 if test "${HAVE_X_SM}" = "yes"; then
12333
12334 cat >>confdefs.h <<\_ACEOF
12335 #define HAVE_X_SM 1
12336 _ACEOF
12337
12338 case "$LIBS" in
12339 *-lSM*) ;;
12340 *) LIBS="-lSM -lICE $LIBS" ;;
12341 esac
12342 fi
12343 fi
12344
12345 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12346 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12347 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12348 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <netdb.h>
12358 int
12359 main ()
12360 {
12361 return h_errno;
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 emacs_cv_netdb_declares_h_errno=yes
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 emacs_cv_netdb_declares_h_errno=no
12394 fi
12395 rm -f conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 fi
12398 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12399 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12400 if test $emacs_cv_netdb_declares_h_errno = yes; then
12401
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_H_ERRNO 1
12404 _ACEOF
12405
12406 fi
12407
12408 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12409 # for constant arguments. Useless!
12410 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12411 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12412 if test "${ac_cv_working_alloca_h+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include <alloca.h>
12422 int
12423 main ()
12424 {
12425 char *p = (char *) alloca (2 * sizeof (int));
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag"
12440 || test ! -s conftest.err'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_working_alloca_h=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_cv_working_alloca_h=no
12458 fi
12459 rm -f conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 fi
12462 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12463 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12464 if test $ac_cv_working_alloca_h = yes; then
12465
12466 cat >>confdefs.h <<\_ACEOF
12467 #define HAVE_ALLOCA_H 1
12468 _ACEOF
12469
12470 fi
12471
12472 echo "$as_me:$LINENO: checking for alloca" >&5
12473 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12474 if test "${ac_cv_func_alloca_works+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h. */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 #ifdef __GNUC__
12484 # define alloca __builtin_alloca
12485 #else
12486 # ifdef _MSC_VER
12487 # include <malloc.h>
12488 # define alloca _alloca
12489 # else
12490 # if HAVE_ALLOCA_H
12491 # include <alloca.h>
12492 # else
12493 # ifdef _AIX
12494 #pragma alloca
12495 # else
12496 # ifndef alloca /* predefined by HP cc +Olibcalls */
12497 char *alloca ();
12498 # endif
12499 # endif
12500 # endif
12501 # endif
12502 #endif
12503
12504 int
12505 main ()
12506 {
12507 char *p = (char *) alloca (1);
12508 ;
12509 return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_func_alloca_works=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_cv_func_alloca_works=no
12540 fi
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 fi
12544 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12546
12547 if test $ac_cv_func_alloca_works = yes; then
12548
12549 cat >>confdefs.h <<\_ACEOF
12550 #define HAVE_ALLOCA 1
12551 _ACEOF
12552
12553 else
12554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12555 # that cause trouble. Some versions do not even contain alloca or
12556 # contain a buggy version. If you still want to use their alloca,
12557 # use ar to extract alloca.o from them instead of compiling alloca.c.
12558
12559 ALLOCA=alloca.$ac_objext
12560
12561 cat >>confdefs.h <<\_ACEOF
12562 #define C_ALLOCA 1
12563 _ACEOF
12564
12565
12566 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12568 if test "${ac_cv_os_cray+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #if defined(CRAY) && ! defined(CRAY2)
12578 webecray
12579 #else
12580 wenotbecray
12581 #endif
12582
12583 _ACEOF
12584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12585 $EGREP "webecray" >/dev/null 2>&1; then
12586 ac_cv_os_cray=yes
12587 else
12588 ac_cv_os_cray=no
12589 fi
12590 rm -f conftest*
12591
12592 fi
12593 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12594 echo "${ECHO_T}$ac_cv_os_cray" >&6
12595 if test $ac_cv_os_cray = yes; then
12596 for ac_func in _getb67 GETB67 getb67; do
12597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598 echo "$as_me:$LINENO: checking for $ac_func" >&5
12599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_var+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611 #define $ac_func innocuous_$ac_func
12612
12613 /* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char $ac_func (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12617
12618 #ifdef __STDC__
12619 # include <limits.h>
12620 #else
12621 # include <assert.h>
12622 #endif
12623
12624 #undef $ac_func
12625
12626 /* Override any gcc2 internal prototype to avoid an error. */
12627 #ifdef __cplusplus
12628 extern "C"
12629 {
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12633 char $ac_func ();
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12638 choke me
12639 #else
12640 char (*f) () = $ac_func;
12641 #endif
12642 #ifdef __cplusplus
12643 }
12644 #endif
12645
12646 int
12647 main ()
12648 {
12649 return f != $ac_func;
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 eval "$as_ac_var=yes"
12677 else
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 eval "$as_ac_var=no"
12682 fi
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 fi
12686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12688 if test `eval echo '${'$as_ac_var'}'` = yes; then
12689
12690 cat >>confdefs.h <<_ACEOF
12691 #define CRAY_STACKSEG_END $ac_func
12692 _ACEOF
12693
12694 break
12695 fi
12696
12697 done
12698 fi
12699
12700 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12701 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12702 if test "${ac_cv_c_stack_direction+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705 if test "$cross_compiling" = yes; then
12706 ac_cv_c_stack_direction=0
12707 else
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 int
12715 find_stack_direction ()
12716 {
12717 static char *addr = 0;
12718 auto char dummy;
12719 if (addr == 0)
12720 {
12721 addr = &dummy;
12722 return find_stack_direction ();
12723 }
12724 else
12725 return (&dummy > addr) ? 1 : -1;
12726 }
12727
12728 int
12729 main ()
12730 {
12731 exit (find_stack_direction () < 0);
12732 }
12733 _ACEOF
12734 rm -f conftest$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736 (eval $ac_link) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_c_stack_direction=1
12746 else
12747 echo "$as_me: program exited with status $ac_status" >&5
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ( exit $ac_status )
12752 ac_cv_c_stack_direction=-1
12753 fi
12754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 fi
12757 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12758 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12759
12760 cat >>confdefs.h <<_ACEOF
12761 #define STACK_DIRECTION $ac_cv_c_stack_direction
12762 _ACEOF
12763
12764
12765 fi
12766
12767
12768 # fmod, logb, and frexp are found in -lm on most systems.
12769 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12770
12771 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12772 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12773 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lm $LIBS"
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784
12785 /* Override any gcc2 internal prototype to avoid an error. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char sqrt ();
12792 int
12793 main ()
12794 {
12795 sqrt ();
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_m_sqrt=yes
12823 else
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 ac_cv_lib_m_sqrt=no
12828 fi
12829 rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12834 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12835 if test $ac_cv_lib_m_sqrt = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_LIBM 1
12838 _ACEOF
12839
12840 LIBS="-lm $LIBS"
12841
12842 fi
12843
12844
12845 # Check for mail-locking functions in a "mail" library. Probably this should
12846 # have the same check as for liblockfile below.
12847
12848 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12849 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12850 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853 ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lmail $LIBS"
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861
12862 /* Override any gcc2 internal prototype to avoid an error. */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 /* We use char because int might match the return type of a gcc2
12867 builtin and then its argument prototype would still apply. */
12868 char maillock ();
12869 int
12870 main ()
12871 {
12872 maillock ();
12873 ;
12874 return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_lib_mail_maillock=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 ac_cv_lib_mail_maillock=no
12905 fi
12906 rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 LIBS=$ac_check_lib_save_LIBS
12909 fi
12910 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12911 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12912 if test $ac_cv_lib_mail_maillock = yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define HAVE_LIBMAIL 1
12915 _ACEOF
12916
12917 LIBS="-lmail $LIBS"
12918
12919 fi
12920
12921
12922 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12923 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12924 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 ac_check_lib_save_LIBS=$LIBS
12928 LIBS="-llockfile $LIBS"
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935
12936 /* Override any gcc2 internal prototype to avoid an error. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 /* We use char because int might match the return type of a gcc2
12941 builtin and then its argument prototype would still apply. */
12942 char maillock ();
12943 int
12944 main ()
12945 {
12946 maillock ();
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12953 (eval $ac_link) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_lib_lockfile_maillock=yes
12974 else
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_lib_lockfile_maillock=no
12979 fi
12980 rm -f conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12985 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12986 if test $ac_cv_lib_lockfile_maillock = yes; then
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_LIBLOCKFILE 1
12989 _ACEOF
12990
12991 LIBS="-llockfile $LIBS"
12992
12993 fi
12994
12995 # If we have the shared liblockfile, assume we must use it for mail
12996 # locking (e.g. Debian). If we couldn't link against liblockfile
12997 # (no liblockfile.a installed), ensure that we don't need to.
12998 if test "$ac_cv_lib_lockfile_maillock" = no; then
12999 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13000 set dummy liblockfile.so; ac_word=$2
13001 echo "$as_me:$LINENO: checking for $ac_word" >&5
13002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13003 if test "${ac_cv_prog_liblockfile+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 if test -n "$liblockfile"; then
13007 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13008 else
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13011 for as_dir in $as_dummy
13012 do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_prog_liblockfile="yes"
13018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021 done
13022 done
13023
13024 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13025 fi
13026 fi
13027 liblockfile=$ac_cv_prog_liblockfile
13028 if test -n "$liblockfile"; then
13029 echo "$as_me:$LINENO: result: $liblockfile" >&5
13030 echo "${ECHO_T}$liblockfile" >&6
13031 else
13032 echo "$as_me:$LINENO: result: no" >&5
13033 echo "${ECHO_T}no" >&6
13034 fi
13035
13036 if test $ac_cv_prog_liblockfile = yes; then
13037 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13038 This probably means that movemail could lose mail.
13039 There may be a \`development' package to install containing liblockfile." >&5
13040 echo "$as_me: error: Shared liblockfile found but can't link against it.
13041 This probably means that movemail could lose mail.
13042 There may be a \`development' package to install containing liblockfile." >&2;}
13043 { (exit 1); exit 1; }; }
13044 else :
13045 fi
13046 fi
13047
13048 for ac_func in touchlock
13049 do
13050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13051 echo "$as_me:$LINENO: checking for $ac_func" >&5
13052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13053 if eval "test \"\${$as_ac_var+set}\" = set"; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13064 #define $ac_func innocuous_$ac_func
13065
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char $ac_func (); below.
13068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13069 <limits.h> exists even on freestanding compilers. */
13070
13071 #ifdef __STDC__
13072 # include <limits.h>
13073 #else
13074 # include <assert.h>
13075 #endif
13076
13077 #undef $ac_func
13078
13079 /* Override any gcc2 internal prototype to avoid an error. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 {
13083 #endif
13084 /* We use char because int might match the return type of a gcc2
13085 builtin and then its argument prototype would still apply. */
13086 char $ac_func ();
13087 /* The GNU C library defines this for functions which it implements
13088 to always fail with ENOSYS. Some functions are actually named
13089 something starting with __ and the normal name is an alias. */
13090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13091 choke me
13092 #else
13093 char (*f) () = $ac_func;
13094 #endif
13095 #ifdef __cplusplus
13096 }
13097 #endif
13098
13099 int
13100 main ()
13101 {
13102 return f != $ac_func;
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag"
13117 || test ! -s conftest.err'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest$ac_exeext'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 eval "$as_ac_var=yes"
13130 else
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 eval "$as_ac_var=no"
13135 fi
13136 rm -f conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13138 fi
13139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13141 if test `eval echo '${'$as_ac_var'}'` = yes; then
13142 cat >>confdefs.h <<_ACEOF
13143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13144 _ACEOF
13145
13146 fi
13147 done
13148
13149
13150 for ac_header in maillock.h
13151 do
13152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 fi
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13161 else
13162 # Is the header compilable?
13163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #include <$ac_header>
13173 _ACEOF
13174 rm -f conftest.$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_header_compiler=yes
13197 else
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ac_header_compiler=no
13202 fi
13203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13205 echo "${ECHO_T}$ac_header_compiler" >&6
13206
13207 # Is the header present?
13208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <$ac_header>
13217 _ACEOF
13218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } >/dev/null; then
13226 if test -s conftest.err; then
13227 ac_cpp_err=$ac_c_preproc_warn_flag
13228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13229 else
13230 ac_cpp_err=
13231 fi
13232 else
13233 ac_cpp_err=yes
13234 fi
13235 if test -z "$ac_cpp_err"; then
13236 ac_header_preproc=yes
13237 else
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 ac_header_preproc=no
13242 fi
13243 rm -f conftest.err conftest.$ac_ext
13244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13245 echo "${ECHO_T}$ac_header_preproc" >&6
13246
13247 # So? What about this header?
13248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13249 yes:no: )
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13254 ac_header_preproc=yes
13255 ;;
13256 no:yes:* )
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13269 (
13270 cat <<\_ASBOX
13271 ## ------------------------------------------ ##
13272 ## Report this to the AC_PACKAGE_NAME lists. ##
13273 ## ------------------------------------------ ##
13274 _ASBOX
13275 ) |
13276 sed "s/^/$as_me: WARNING: /" >&2
13277 ;;
13278 esac
13279 echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284 eval "$as_ac_Header=\$ac_header_preproc"
13285 fi
13286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13288
13289 fi
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13293 _ACEOF
13294
13295 fi
13296
13297 done
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
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 for ac_func in gethostname getdomainname dup2 \
13367 rename closedir mkdir rmdir sysinfo \
13368 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13369 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13370 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13371 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13372 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13373 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13374 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13375 do
13376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377 echo "$as_me:$LINENO: checking for $ac_func" >&5
13378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379 if eval "test \"\${$as_ac_var+set}\" = set"; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13390 #define $ac_func innocuous_$ac_func
13391
13392 /* System header to define __stub macros and hopefully few prototypes,
13393 which can conflict with char $ac_func (); below.
13394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395 <limits.h> exists even on freestanding compilers. */
13396
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13402
13403 #undef $ac_func
13404
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 #ifdef __cplusplus
13407 extern "C"
13408 {
13409 #endif
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13412 char $ac_func ();
13413 /* The GNU C library defines this for functions which it implements
13414 to always fail with ENOSYS. Some functions are actually named
13415 something starting with __ and the normal name is an alias. */
13416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417 choke me
13418 #else
13419 char (*f) () = $ac_func;
13420 #endif
13421 #ifdef __cplusplus
13422 }
13423 #endif
13424
13425 int
13426 main ()
13427 {
13428 return f != $ac_func;
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 eval "$as_ac_var=yes"
13456 else
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 eval "$as_ac_var=no"
13461 fi
13462 rm -f conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext conftest.$ac_ext
13464 fi
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13467 if test `eval echo '${'$as_ac_var'}'` = yes; then
13468 cat >>confdefs.h <<_ACEOF
13469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13470 _ACEOF
13471
13472 fi
13473 done
13474
13475
13476
13477 for ac_header in sys/un.h
13478 do
13479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo "$as_me:$LINENO: checking for $ac_header" >&5
13482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 fi
13486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13488 else
13489 # Is the header compilable?
13490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 $ac_includes_default
13499 #include <$ac_header>
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13524 else
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_header_compiler=no
13529 fi
13530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532 echo "${ECHO_T}$ac_header_compiler" >&6
13533
13534 # Is the header present?
13535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 #include <$ac_header>
13544 _ACEOF
13545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_c_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13556 else
13557 ac_cpp_err=
13558 fi
13559 else
13560 ac_cpp_err=yes
13561 fi
13562 if test -z "$ac_cpp_err"; then
13563 ac_header_preproc=yes
13564 else
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_header_preproc=no
13569 fi
13570 rm -f conftest.err conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 echo "${ECHO_T}$ac_header_preproc" >&6
13573
13574 # So? What about this header?
13575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576 yes:no: )
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
13582 ;;
13583 no:yes:* )
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13596 (
13597 cat <<\_ASBOX
13598 ## ------------------------------------------ ##
13599 ## Report this to the AC_PACKAGE_NAME lists. ##
13600 ## ------------------------------------------ ##
13601 _ASBOX
13602 ) |
13603 sed "s/^/$as_me: WARNING: /" >&2
13604 ;;
13605 esac
13606 echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 eval "$as_ac_Header=\$ac_header_preproc"
13612 fi
13613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615
13616 fi
13617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13618 cat >>confdefs.h <<_ACEOF
13619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13620 _ACEOF
13621
13622 fi
13623
13624 done
13625
13626
13627
13628
13629
13630 for ac_header in stdlib.h sys/time.h unistd.h
13631 do
13632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo "$as_me:$LINENO: checking for $ac_header" >&5
13635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 fi
13639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13641 else
13642 # Is the header compilable?
13643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13652 #include <$ac_header>
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag"
13664 || test ! -s conftest.err'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_header_compiler=yes
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_header_compiler=no
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13685 echo "${ECHO_T}$ac_header_compiler" >&6
13686
13687 # Is the header present?
13688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 #include <$ac_header>
13697 _ACEOF
13698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } >/dev/null; then
13706 if test -s conftest.err; then
13707 ac_cpp_err=$ac_c_preproc_warn_flag
13708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13709 else
13710 ac_cpp_err=
13711 fi
13712 else
13713 ac_cpp_err=yes
13714 fi
13715 if test -z "$ac_cpp_err"; then
13716 ac_header_preproc=yes
13717 else
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721 ac_header_preproc=no
13722 fi
13723 rm -f conftest.err conftest.$ac_ext
13724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13725 echo "${ECHO_T}$ac_header_preproc" >&6
13726
13727 # So? What about this header?
13728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13729 yes:no: )
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13734 ac_header_preproc=yes
13735 ;;
13736 no:yes:* )
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13749 (
13750 cat <<\_ASBOX
13751 ## ------------------------------------------ ##
13752 ## Report this to the AC_PACKAGE_NAME lists. ##
13753 ## ------------------------------------------ ##
13754 _ASBOX
13755 ) |
13756 sed "s/^/$as_me: WARNING: /" >&2
13757 ;;
13758 esac
13759 echo "$as_me:$LINENO: checking for $ac_header" >&5
13760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 else
13764 eval "$as_ac_Header=\$ac_header_preproc"
13765 fi
13766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13768
13769 fi
13770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13771 cat >>confdefs.h <<_ACEOF
13772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13773 _ACEOF
13774
13775 fi
13776
13777 done
13778
13779
13780 for ac_func in alarm
13781 do
13782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13783 echo "$as_me:$LINENO: checking for $ac_func" >&5
13784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13785 if eval "test \"\${$as_ac_var+set}\" = set"; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13796 #define $ac_func innocuous_$ac_func
13797
13798 /* System header to define __stub macros and hopefully few prototypes,
13799 which can conflict with char $ac_func (); below.
13800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13801 <limits.h> exists even on freestanding compilers. */
13802
13803 #ifdef __STDC__
13804 # include <limits.h>
13805 #else
13806 # include <assert.h>
13807 #endif
13808
13809 #undef $ac_func
13810
13811 /* Override any gcc2 internal prototype to avoid an error. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 {
13815 #endif
13816 /* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
13818 char $ac_func ();
13819 /* The GNU C library defines this for functions which it implements
13820 to always fail with ENOSYS. Some functions are actually named
13821 something starting with __ and the normal name is an alias. */
13822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13823 choke me
13824 #else
13825 char (*f) () = $ac_func;
13826 #endif
13827 #ifdef __cplusplus
13828 }
13829 #endif
13830
13831 int
13832 main ()
13833 {
13834 return f != $ac_func;
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 eval "$as_ac_var=yes"
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 eval "$as_ac_var=no"
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13873 if test `eval echo '${'$as_ac_var'}'` = yes; then
13874 cat >>confdefs.h <<_ACEOF
13875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13876 _ACEOF
13877
13878 fi
13879 done
13880
13881 echo "$as_me:$LINENO: checking for working mktime" >&5
13882 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13883 if test "${ac_cv_func_working_mktime+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 if test "$cross_compiling" = yes; then
13887 ac_cv_func_working_mktime=no
13888 else
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 /* Test program from Paul Eggert and Tony Leneis. */
13896 #if TIME_WITH_SYS_TIME
13897 # include <sys/time.h>
13898 # include <time.h>
13899 #else
13900 # if HAVE_SYS_TIME_H
13901 # include <sys/time.h>
13902 # else
13903 # include <time.h>
13904 # endif
13905 #endif
13906
13907 #if HAVE_STDLIB_H
13908 # include <stdlib.h>
13909 #endif
13910
13911 #if HAVE_UNISTD_H
13912 # include <unistd.h>
13913 #endif
13914
13915 #if !HAVE_ALARM
13916 # define alarm(X) /* empty */
13917 #endif
13918
13919 /* Work around redefinition to rpl_putenv by other config tests. */
13920 #undef putenv
13921
13922 static time_t time_t_max;
13923 static time_t time_t_min;
13924
13925 /* Values we'll use to set the TZ environment variable. */
13926 static char *tz_strings[] = {
13927 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13928 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13929 };
13930 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13931
13932 /* Fail if mktime fails to convert a date in the spring-forward gap.
13933 Based on a problem report from Andreas Jaeger. */
13934 static void
13935 spring_forward_gap ()
13936 {
13937 /* glibc (up to about 1998-10-07) failed this test. */
13938 struct tm tm;
13939
13940 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13941 instead of "TZ=America/Vancouver" in order to detect the bug even
13942 on systems that don't support the Olson extension, or don't have the
13943 full zoneinfo tables installed. */
13944 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13945
13946 tm.tm_year = 98;
13947 tm.tm_mon = 3;
13948 tm.tm_mday = 5;
13949 tm.tm_hour = 2;
13950 tm.tm_min = 0;
13951 tm.tm_sec = 0;
13952 tm.tm_isdst = -1;
13953 if (mktime (&tm) == (time_t)-1)
13954 exit (1);
13955 }
13956
13957 static void
13958 mktime_test1 (now)
13959 time_t now;
13960 {
13961 struct tm *lt;
13962 if ((lt = localtime (&now)) && mktime (lt) != now)
13963 exit (1);
13964 }
13965
13966 static void
13967 mktime_test (now)
13968 time_t now;
13969 {
13970 mktime_test1 (now);
13971 mktime_test1 ((time_t) (time_t_max - now));
13972 mktime_test1 ((time_t) (time_t_min + now));
13973 }
13974
13975 static void
13976 irix_6_4_bug ()
13977 {
13978 /* Based on code from Ariel Faigon. */
13979 struct tm tm;
13980 tm.tm_year = 96;
13981 tm.tm_mon = 3;
13982 tm.tm_mday = 0;
13983 tm.tm_hour = 0;
13984 tm.tm_min = 0;
13985 tm.tm_sec = 0;
13986 tm.tm_isdst = -1;
13987 mktime (&tm);
13988 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13989 exit (1);
13990 }
13991
13992 static void
13993 bigtime_test (j)
13994 int j;
13995 {
13996 struct tm tm;
13997 time_t now;
13998 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13999 now = mktime (&tm);
14000 if (now != (time_t) -1)
14001 {
14002 struct tm *lt = localtime (&now);
14003 if (! (lt
14004 && lt->tm_year == tm.tm_year
14005 && lt->tm_mon == tm.tm_mon
14006 && lt->tm_mday == tm.tm_mday
14007 && lt->tm_hour == tm.tm_hour
14008 && lt->tm_min == tm.tm_min
14009 && lt->tm_sec == tm.tm_sec
14010 && lt->tm_yday == tm.tm_yday
14011 && lt->tm_wday == tm.tm_wday
14012 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14013 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14014 exit (1);
14015 }
14016 }
14017
14018 int
14019 main ()
14020 {
14021 time_t t, delta;
14022 int i, j;
14023
14024 /* This test makes some buggy mktime implementations loop.
14025 Give up after 60 seconds; a mktime slower than that
14026 isn't worth using anyway. */
14027 alarm (60);
14028
14029 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14030 continue;
14031 time_t_max--;
14032 if ((time_t) -1 < 0)
14033 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14034 continue;
14035 delta = time_t_max / 997; /* a suitable prime number */
14036 for (i = 0; i < N_STRINGS; i++)
14037 {
14038 if (tz_strings[i])
14039 putenv (tz_strings[i]);
14040
14041 for (t = 0; t <= time_t_max - delta; t += delta)
14042 mktime_test (t);
14043 mktime_test ((time_t) 1);
14044 mktime_test ((time_t) (60 * 60));
14045 mktime_test ((time_t) (60 * 60 * 24));
14046
14047 for (j = 1; 0 < j; j *= 2)
14048 bigtime_test (j);
14049 bigtime_test (j - 1);
14050 }
14051 irix_6_4_bug ();
14052 spring_forward_gap ();
14053 exit (0);
14054 }
14055 _ACEOF
14056 rm -f conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_func_working_mktime=yes
14068 else
14069 echo "$as_me: program exited with status $ac_status" >&5
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ( exit $ac_status )
14074 ac_cv_func_working_mktime=no
14075 fi
14076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14077 fi
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14080 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14081 if test $ac_cv_func_working_mktime = no; then
14082 case $LIBOBJS in
14083 "mktime.$ac_objext" | \
14084 *" mktime.$ac_objext" | \
14085 "mktime.$ac_objext "* | \
14086 *" mktime.$ac_objext "* ) ;;
14087 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14088 esac
14089
14090 fi
14091
14092 if test "$ac_cv_func_working_mktime" = no; then
14093
14094 cat >>confdefs.h <<\_ACEOF
14095 #define BROKEN_MKTIME 1
14096 _ACEOF
14097
14098 fi
14099
14100 ac_have_func=no # yes means we've found a way to get the load average.
14101
14102 # Make sure getloadavg.c is where it belongs, at configure-time.
14103 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14104 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14105 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14106 { (exit 1); exit 1; }; }
14107
14108 ac_save_LIBS=$LIBS
14109
14110 # Check for getloadavg, but be sure not to touch the cache variable.
14111 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14112 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14113 if test "${ac_cv_func_getloadavg+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124 #define getloadavg innocuous_getloadavg
14125
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char getloadavg (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14130
14131 #ifdef __STDC__
14132 # include <limits.h>
14133 #else
14134 # include <assert.h>
14135 #endif
14136
14137 #undef getloadavg
14138
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 #ifdef __cplusplus
14141 extern "C"
14142 {
14143 #endif
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14146 char getloadavg ();
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14151 choke me
14152 #else
14153 char (*f) () = getloadavg;
14154 #endif
14155 #ifdef __cplusplus
14156 }
14157 #endif
14158
14159 int
14160 main ()
14161 {
14162 return f != getloadavg;
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest$ac_exeext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_func_getloadavg=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_cv_func_getloadavg=no
14195 fi
14196 rm -f conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 fi
14199 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14200 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14201 if test $ac_cv_func_getloadavg = yes; then
14202 exit 0
14203 else
14204 exit 1
14205 fi
14206 ) && ac_have_func=yes
14207
14208 # On HPUX9, an unprivileged user can get load averages through this function.
14209
14210 for ac_func in pstat_getdynamic
14211 do
14212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14213 echo "$as_me:$LINENO: checking for $ac_func" >&5
14214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_var+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14226 #define $ac_func innocuous_$ac_func
14227
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14232
14233 #ifdef __STDC__
14234 # include <limits.h>
14235 #else
14236 # include <assert.h>
14237 #endif
14238
14239 #undef $ac_func
14240
14241 /* Override any gcc2 internal prototype to avoid an error. */
14242 #ifdef __cplusplus
14243 extern "C"
14244 {
14245 #endif
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14248 char $ac_func ();
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14253 choke me
14254 #else
14255 char (*f) () = $ac_func;
14256 #endif
14257 #ifdef __cplusplus
14258 }
14259 #endif
14260
14261 int
14262 main ()
14263 {
14264 return f != $ac_func;
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 eval "$as_ac_var=yes"
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 eval "$as_ac_var=no"
14297 fi
14298 rm -f conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 fi
14301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14303 if test `eval echo '${'$as_ac_var'}'` = yes; then
14304 cat >>confdefs.h <<_ACEOF
14305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 _ACEOF
14307
14308 fi
14309 done
14310
14311
14312 # Solaris has libkstat which does not require root.
14313
14314 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14315 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14316 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319 ac_check_lib_save_LIBS=$LIBS
14320 LIBS="-lkstat $LIBS"
14321 cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h. */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327
14328 /* Override any gcc2 internal prototype to avoid an error. */
14329 #ifdef __cplusplus
14330 extern "C"
14331 #endif
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char kstat_open ();
14335 int
14336 main ()
14337 {
14338 kstat_open ();
14339 ;
14340 return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext conftest$ac_exeext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345 (eval $ac_link) 2>conftest.er1
14346 ac_status=$?
14347 grep -v '^ *+' conftest.er1 >conftest.err
14348 rm -f conftest.er1
14349 cat conftest.err >&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try='test -z "$ac_c_werror_flag"
14353 || test ! -s conftest.err'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; } &&
14359 { ac_try='test -s conftest$ac_exeext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14365 ac_cv_lib_kstat_kstat_open=yes
14366 else
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 ac_cv_lib_kstat_kstat_open=no
14371 fi
14372 rm -f conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14375 fi
14376 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14377 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14378 if test $ac_cv_lib_kstat_kstat_open = yes; then
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_LIBKSTAT 1
14381 _ACEOF
14382
14383 LIBS="-lkstat $LIBS"
14384
14385 fi
14386
14387 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14388
14389 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14390 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14391 # to get the right answer into the cache.
14392 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14393 if test $ac_have_func = no; then
14394 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14395 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14396 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399 ac_check_lib_save_LIBS=$LIBS
14400 LIBS="-lelf $LIBS"
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407
14408 /* Override any gcc2 internal prototype to avoid an error. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 /* We use char because int might match the return type of a gcc2
14413 builtin and then its argument prototype would still apply. */
14414 char elf_begin ();
14415 int
14416 main ()
14417 {
14418 elf_begin ();
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_cv_lib_elf_elf_begin=yes
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_cv_lib_elf_elf_begin=no
14451 fi
14452 rm -f conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454 LIBS=$ac_check_lib_save_LIBS
14455 fi
14456 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14457 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14458 if test $ac_cv_lib_elf_elf_begin = yes; then
14459 LIBS="-lelf $LIBS"
14460 fi
14461
14462 fi
14463 if test $ac_have_func = no; then
14464 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14465 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14466 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 ac_check_lib_save_LIBS=$LIBS
14470 LIBS="-lkvm $LIBS"
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477
14478 /* Override any gcc2 internal prototype to avoid an error. */
14479 #ifdef __cplusplus
14480 extern "C"
14481 #endif
14482 /* We use char because int might match the return type of a gcc2
14483 builtin and then its argument prototype would still apply. */
14484 char kvm_open ();
14485 int
14486 main ()
14487 {
14488 kvm_open ();
14489 ;
14490 return 0;
14491 }
14492 _ACEOF
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14495 (eval $ac_link) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -z "$ac_c_werror_flag"
14503 || test ! -s conftest.err'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest$ac_exeext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_lib_kvm_kvm_open=yes
14516 else
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 ac_cv_lib_kvm_kvm_open=no
14521 fi
14522 rm -f conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 LIBS=$ac_check_lib_save_LIBS
14525 fi
14526 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14527 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14528 if test $ac_cv_lib_kvm_kvm_open = yes; then
14529 LIBS="-lkvm $LIBS"
14530 fi
14531
14532 # Check for the 4.4BSD definition of getloadavg.
14533 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14534 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14535 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lutil $LIBS"
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546
14547 /* Override any gcc2 internal prototype to avoid an error. */
14548 #ifdef __cplusplus
14549 extern "C"
14550 #endif
14551 /* We use char because int might match the return type of a gcc2
14552 builtin and then its argument prototype would still apply. */
14553 char getloadavg ();
14554 int
14555 main ()
14556 {
14557 getloadavg ();
14558 ;
14559 return 0;
14560 }
14561 _ACEOF
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14564 (eval $ac_link) 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -z "$ac_c_werror_flag"
14572 || test ! -s conftest.err'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_cv_lib_util_getloadavg=yes
14585 else
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 ac_cv_lib_util_getloadavg=no
14590 fi
14591 rm -f conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 LIBS=$ac_check_lib_save_LIBS
14594 fi
14595 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14596 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14597 if test $ac_cv_lib_util_getloadavg = yes; then
14598 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14599 fi
14600
14601 fi
14602
14603 if test $ac_have_func = no; then
14604 # There is a commonly available library for RS/6000 AIX.
14605 # Since it is not a standard part of AIX, it might be installed locally.
14606 ac_getloadavg_LIBS=$LIBS
14607 LIBS="-L/usr/local/lib $LIBS"
14608 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14609 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14610 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613 ac_check_lib_save_LIBS=$LIBS
14614 LIBS="-lgetloadavg $LIBS"
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621
14622 /* Override any gcc2 internal prototype to avoid an error. */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 /* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628 char getloadavg ();
14629 int
14630 main ()
14631 {
14632 getloadavg ();
14633 ;
14634 return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext conftest$ac_exeext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14639 (eval $ac_link) 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -z "$ac_c_werror_flag"
14647 || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_lib_getloadavg_getloadavg=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 ac_cv_lib_getloadavg_getloadavg=no
14665 fi
14666 rm -f conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14668 LIBS=$ac_check_lib_save_LIBS
14669 fi
14670 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14671 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14672 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14673 LIBS="-lgetloadavg $LIBS"
14674 else
14675 LIBS=$ac_getloadavg_LIBS
14676 fi
14677
14678 fi
14679
14680 # Make sure it is really in the library, if we think we found it,
14681 # otherwise set up the replacement function.
14682
14683 for ac_func in getloadavg
14684 do
14685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14699 #define $ac_func innocuous_$ac_func
14700
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func (); below.
14703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14704 <limits.h> exists even on freestanding compilers. */
14705
14706 #ifdef __STDC__
14707 # include <limits.h>
14708 #else
14709 # include <assert.h>
14710 #endif
14711
14712 #undef $ac_func
14713
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 #ifdef __cplusplus
14716 extern "C"
14717 {
14718 #endif
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14721 char $ac_func ();
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 choke me
14727 #else
14728 char (*f) () = $ac_func;
14729 #endif
14730 #ifdef __cplusplus
14731 }
14732 #endif
14733
14734 int
14735 main ()
14736 {
14737 return f != $ac_func;
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 eval "$as_ac_var=yes"
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 eval "$as_ac_var=no"
14770 fi
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14773 fi
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 _ACEOF
14780
14781 else
14782 case $LIBOBJS in
14783 "getloadavg.$ac_objext" | \
14784 *" getloadavg.$ac_objext" | \
14785 "getloadavg.$ac_objext "* | \
14786 *" getloadavg.$ac_objext "* ) ;;
14787 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14788 esac
14789
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define C_GETLOADAVG 1
14793 _ACEOF
14794
14795 # Figure out what our getloadavg.c needs.
14796 ac_have_func=no
14797 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14798 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14799 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14800 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 fi
14803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14804 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14805 else
14806 # Is the header compilable?
14807 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14808 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 $ac_includes_default
14816 #include <sys/dg_sys_info.h>
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_header_compiler=yes
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845 ac_header_compiler=no
14846 fi
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14849 echo "${ECHO_T}$ac_header_compiler" >&6
14850
14851 # Is the header present?
14852 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14853 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/dg_sys_info.h>
14861 _ACEOF
14862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } >/dev/null; then
14870 if test -s conftest.err; then
14871 ac_cpp_err=$ac_c_preproc_warn_flag
14872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14873 else
14874 ac_cpp_err=
14875 fi
14876 else
14877 ac_cpp_err=yes
14878 fi
14879 if test -z "$ac_cpp_err"; then
14880 ac_header_preproc=yes
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 ac_header_preproc=no
14886 fi
14887 rm -f conftest.err conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6
14890
14891 # So? What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893 yes:no: )
14894 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14898 ac_header_preproc=yes
14899 ;;
14900 no:yes:* )
14901 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14913 (
14914 cat <<\_ASBOX
14915 ## ------------------------------------------ ##
14916 ## Report this to the AC_PACKAGE_NAME lists. ##
14917 ## ------------------------------------------ ##
14918 _ASBOX
14919 ) |
14920 sed "s/^/$as_me: WARNING: /" >&2
14921 ;;
14922 esac
14923 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14924 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14925 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14929 fi
14930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14932
14933 fi
14934 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14935 ac_have_func=yes
14936
14937 cat >>confdefs.h <<\_ACEOF
14938 #define DGUX 1
14939 _ACEOF
14940
14941
14942 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14943 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14944 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 ac_check_lib_save_LIBS=$LIBS
14948 LIBS="-ldgc $LIBS"
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955
14956 /* Override any gcc2 internal prototype to avoid an error. */
14957 #ifdef __cplusplus
14958 extern "C"
14959 #endif
14960 /* We use char because int might match the return type of a gcc2
14961 builtin and then its argument prototype would still apply. */
14962 char dg_sys_info ();
14963 int
14964 main ()
14965 {
14966 dg_sys_info ();
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 (eval $ac_link) 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag"
14981 || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest$ac_exeext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_cv_lib_dgc_dg_sys_info=yes
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_cv_lib_dgc_dg_sys_info=no
14999 fi
15000 rm -f conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_check_lib_save_LIBS
15003 fi
15004 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15005 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15006 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_LIBDGC 1
15009 _ACEOF
15010
15011 LIBS="-ldgc $LIBS"
15012
15013 fi
15014
15015 fi
15016
15017
15018
15019 if test "${ac_cv_header_locale_h+set}" = set; then
15020 echo "$as_me:$LINENO: checking for locale.h" >&5
15021 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15022 if test "${ac_cv_header_locale_h+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 fi
15025 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15026 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15027 else
15028 # Is the header compilable?
15029 echo "$as_me:$LINENO: checking locale.h usability" >&5
15030 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 #include <locale.h>
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_header_compiler=no
15068 fi
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15072
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking locale.h presence" >&5
15075 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <locale.h>
15083 _ACEOF
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15095 else
15096 ac_cpp_err=
15097 fi
15098 else
15099 ac_cpp_err=yes
15100 fi
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_header_preproc=no
15108 fi
15109 rm -f conftest.err conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15112
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15121 ;;
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15135 (
15136 cat <<\_ASBOX
15137 ## ------------------------------------------ ##
15138 ## Report this to the AC_PACKAGE_NAME lists. ##
15139 ## ------------------------------------------ ##
15140 _ASBOX
15141 ) |
15142 sed "s/^/$as_me: WARNING: /" >&2
15143 ;;
15144 esac
15145 echo "$as_me:$LINENO: checking for locale.h" >&5
15146 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15147 if test "${ac_cv_header_locale_h+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 ac_cv_header_locale_h=$ac_header_preproc
15151 fi
15152 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15153 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15154
15155 fi
15156
15157
15158
15159 for ac_func in setlocale
15160 do
15161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15162 echo "$as_me:$LINENO: checking for $ac_func" >&5
15163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15164 if eval "test \"\${$as_ac_var+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15175 #define $ac_func innocuous_$ac_func
15176
15177 /* System header to define __stub macros and hopefully few prototypes,
15178 which can conflict with char $ac_func (); below.
15179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15180 <limits.h> exists even on freestanding compilers. */
15181
15182 #ifdef __STDC__
15183 # include <limits.h>
15184 #else
15185 # include <assert.h>
15186 #endif
15187
15188 #undef $ac_func
15189
15190 /* Override any gcc2 internal prototype to avoid an error. */
15191 #ifdef __cplusplus
15192 extern "C"
15193 {
15194 #endif
15195 /* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15197 char $ac_func ();
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15202 choke me
15203 #else
15204 char (*f) () = $ac_func;
15205 #endif
15206 #ifdef __cplusplus
15207 }
15208 #endif
15209
15210 int
15211 main ()
15212 {
15213 return f != $ac_func;
15214 ;
15215 return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 eval "$as_ac_var=yes"
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 eval "$as_ac_var=no"
15246 fi
15247 rm -f conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 fi
15250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15252 if test `eval echo '${'$as_ac_var'}'` = yes; then
15253 cat >>confdefs.h <<_ACEOF
15254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 _ACEOF
15256
15257 fi
15258 done
15259
15260
15261 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15262 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15263 # Irix 4.0.5F has the header but not the library.
15264 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15265 ac_have_func=yes
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define SVR4 1
15269 _ACEOF
15270
15271 fi
15272
15273 if test $ac_have_func = no; then
15274 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15275 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15276 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15277 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 fi
15280 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15281 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15282 else
15283 # Is the header compilable?
15284 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15285 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 $ac_includes_default
15293 #include <inq_stats/cpustats.h>
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_header_compiler=yes
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_header_compiler=no
15323 fi
15324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15326 echo "${ECHO_T}$ac_header_compiler" >&6
15327
15328 # Is the header present?
15329 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15330 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <inq_stats/cpustats.h>
15338 _ACEOF
15339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } >/dev/null; then
15347 if test -s conftest.err; then
15348 ac_cpp_err=$ac_c_preproc_warn_flag
15349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15350 else
15351 ac_cpp_err=
15352 fi
15353 else
15354 ac_cpp_err=yes
15355 fi
15356 if test -z "$ac_cpp_err"; then
15357 ac_header_preproc=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 ac_header_preproc=no
15363 fi
15364 rm -f conftest.err conftest.$ac_ext
15365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15366 echo "${ECHO_T}$ac_header_preproc" >&6
15367
15368 # So? What about this header?
15369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15370 yes:no: )
15371 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15372 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15374 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15375 ac_header_preproc=yes
15376 ;;
15377 no:yes:* )
15378 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15379 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15381 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15383 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15385 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15387 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15389 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15390 (
15391 cat <<\_ASBOX
15392 ## ------------------------------------------ ##
15393 ## Report this to the AC_PACKAGE_NAME lists. ##
15394 ## ------------------------------------------ ##
15395 _ASBOX
15396 ) |
15397 sed "s/^/$as_me: WARNING: /" >&2
15398 ;;
15399 esac
15400 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15401 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15402 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15406 fi
15407 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15408 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15409
15410 fi
15411 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15412 ac_have_func=yes
15413
15414 cat >>confdefs.h <<\_ACEOF
15415 #define UMAX 1
15416 _ACEOF
15417
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define UMAX4_3 1
15421 _ACEOF
15422
15423 fi
15424
15425
15426 fi
15427
15428 if test $ac_have_func = no; then
15429 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15430 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15431 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15432 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 fi
15435 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15436 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15437 else
15438 # Is the header compilable?
15439 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15440 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15448 #include <sys/cpustats.h>
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_header_compiler=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_header_compiler=no
15478 fi
15479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15481 echo "${ECHO_T}$ac_header_compiler" >&6
15482
15483 # Is the header present?
15484 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15485 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <sys/cpustats.h>
15493 _ACEOF
15494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } >/dev/null; then
15502 if test -s conftest.err; then
15503 ac_cpp_err=$ac_c_preproc_warn_flag
15504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15505 else
15506 ac_cpp_err=
15507 fi
15508 else
15509 ac_cpp_err=yes
15510 fi
15511 if test -z "$ac_cpp_err"; then
15512 ac_header_preproc=yes
15513 else
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_header_preproc=no
15518 fi
15519 rm -f conftest.err conftest.$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15521 echo "${ECHO_T}$ac_header_preproc" >&6
15522
15523 # So? What about this header?
15524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15525 yes:no: )
15526 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15527 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15529 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15530 ac_header_preproc=yes
15531 ;;
15532 no:yes:* )
15533 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15534 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15536 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15538 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15540 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15542 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15543 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15544 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15545 (
15546 cat <<\_ASBOX
15547 ## ------------------------------------------ ##
15548 ## Report this to the AC_PACKAGE_NAME lists. ##
15549 ## ------------------------------------------ ##
15550 _ASBOX
15551 ) |
15552 sed "s/^/$as_me: WARNING: /" >&2
15553 ;;
15554 esac
15555 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15556 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15557 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15561 fi
15562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15563 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15564
15565 fi
15566 if test $ac_cv_header_sys_cpustats_h = yes; then
15567 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15568 #define UMAX 1
15569 _ACEOF
15570
15571 fi
15572
15573
15574 fi
15575
15576 if test $ac_have_func = no; then
15577
15578 for ac_header in mach/mach.h
15579 do
15580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 fi
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15589 else
15590 # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h. */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15600 #include <$ac_header>
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_header_compiler=yes
15625 else
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15628
15629 ac_header_compiler=no
15630 fi
15631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6
15634
15635 # Is the header present?
15636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <$ac_header>
15645 _ACEOF
15646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev/null; then
15654 if test -s conftest.err; then
15655 ac_cpp_err=$ac_c_preproc_warn_flag
15656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657 else
15658 ac_cpp_err=
15659 fi
15660 else
15661 ac_cpp_err=yes
15662 fi
15663 if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669 ac_header_preproc=no
15670 fi
15671 rm -f conftest.err conftest.$ac_ext
15672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6
15674
15675 # So? What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15677 yes:no: )
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc=yes
15683 ;;
15684 no:yes:* )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15697 (
15698 cat <<\_ASBOX
15699 ## ------------------------------------------ ##
15700 ## Report this to the AC_PACKAGE_NAME lists. ##
15701 ## ------------------------------------------ ##
15702 _ASBOX
15703 ) |
15704 sed "s/^/$as_me: WARNING: /" >&2
15705 ;;
15706 esac
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712 eval "$as_ac_Header=\$ac_header_preproc"
15713 fi
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15716
15717 fi
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721 _ACEOF
15722
15723 fi
15724
15725 done
15726
15727 fi
15728
15729
15730 for ac_header in nlist.h
15731 do
15732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15734 echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 fi
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15741 else
15742 # Is the header compilable?
15743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 $ac_includes_default
15752 #include <$ac_header>
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756 (eval $ac_compile) 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_header_compiler=no
15782 fi
15783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15786
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h. */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 #include <$ac_header>
15797 _ACEOF
15798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } >/dev/null; then
15806 if test -s conftest.err; then
15807 ac_cpp_err=$ac_c_preproc_warn_flag
15808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15809 else
15810 ac_cpp_err=
15811 fi
15812 else
15813 ac_cpp_err=yes
15814 fi
15815 if test -z "$ac_cpp_err"; then
15816 ac_header_preproc=yes
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ac_header_preproc=no
15822 fi
15823 rm -f conftest.err conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15826
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 yes:no: )
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15835 ;;
15836 no:yes:* )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849 (
15850 cat <<\_ASBOX
15851 ## ------------------------------------------ ##
15852 ## Report this to the AC_PACKAGE_NAME lists. ##
15853 ## ------------------------------------------ ##
15854 _ASBOX
15855 ) |
15856 sed "s/^/$as_me: WARNING: /" >&2
15857 ;;
15858 esac
15859 echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864 eval "$as_ac_Header=\$ac_header_preproc"
15865 fi
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868
15869 fi
15870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15873 _ACEOF
15874 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15875 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15876 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <nlist.h>
15886
15887 int
15888 main ()
15889 {
15890 static struct nlist ac_aggr;
15891 if (ac_aggr.n_un.n_name)
15892 return 0;
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 rm -f conftest.$ac_objext
15898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15899 (eval $ac_compile) 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag"
15907 || test ! -s conftest.err'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_member_struct_nlist_n_un_n_name=yes
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h. */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 #include <nlist.h>
15931
15932 int
15933 main ()
15934 {
15935 static struct nlist ac_aggr;
15936 if (sizeof ac_aggr.n_un.n_name)
15937 return 0;
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_member_struct_nlist_n_un_n_name=yes
15965 else
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_cv_member_struct_nlist_n_un_n_name=no
15970 fi
15971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15972 fi
15973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15974 fi
15975 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15976 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15977 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15978
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15981 _ACEOF
15982
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define NLIST_NAME_UNION 1
15986 _ACEOF
15987
15988 fi
15989
15990
15991 fi
15992
15993 done
15994
15995 fi
15996 done
15997
15998
15999 # Some definitions of getloadavg require that the program be installed setgid.
16000 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16001 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16002 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16012 #ifdef LDAV_PRIVILEGED
16013 Yowza Am I SETGID yet
16014 #endif
16015 _ACEOF
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16018 ac_cv_func_getloadavg_setgid=yes
16019 else
16020 ac_cv_func_getloadavg_setgid=no
16021 fi
16022 rm -f conftest*
16023
16024 fi
16025 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16026 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16027 if test $ac_cv_func_getloadavg_setgid = yes; then
16028 NEED_SETGID=true
16029
16030 cat >>confdefs.h <<\_ACEOF
16031 #define GETLOADAVG_PRIVILEGED 1
16032 _ACEOF
16033
16034 else
16035 NEED_SETGID=false
16036 fi
16037
16038 if test $ac_cv_func_getloadavg_setgid = yes; then
16039 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16040 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16041 if test "${ac_cv_group_kmem+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16045 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16046 # If we got an error (system does not support symlinks), try without -L.
16047 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16048 ac_cv_group_kmem=`echo $ac_ls_output \
16049 | sed -ne 's/[ ][ ]*/ /g;
16050 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16051 / /s/.* //;p;'`
16052
16053 fi
16054 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16055 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16056 KMEM_GROUP=$ac_cv_group_kmem
16057 fi
16058 if test "x$ac_save_LIBS" = x; then
16059 GETLOADAVG_LIBS=$LIBS
16060 else
16061 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16062 fi
16063 LIBS=$ac_save_LIBS
16064
16065
16066
16067 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16068 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16069 if test "${ac_cv_sys_largefile_source+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072 while :; do
16073 ac_cv_sys_largefile_source=no
16074 cat >conftest.$ac_ext <<_ACEOF
16075 /* confdefs.h. */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <stdio.h>
16081 int
16082 main ()
16083 {
16084 return !fseeko;
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16091 (eval $ac_compile) 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 break
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 fi
16117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h. */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #define _LARGEFILE_SOURCE 1
16125 #include <stdio.h>
16126 int
16127 main ()
16128 {
16129 return !fseeko;
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_sys_largefile_source=1; break
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 fi
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 break
16164 done
16165 fi
16166 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16167 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16168 if test "$ac_cv_sys_largefile_source" != no; then
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16172 _ACEOF
16173
16174 fi
16175 rm -f conftest*
16176
16177 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16178 # in glibc 2.1.3, but that breaks too many other things.
16179 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16180 echo "$as_me:$LINENO: checking for fseeko" >&5
16181 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16182 if test "${ac_cv_func_fseeko+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h. */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 #include <stdio.h>
16192 int
16193 main ()
16194 {
16195 return fseeko && fseeko (stdin, 0, 0);
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest$ac_exeext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_cv_func_fseeko=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_cv_func_fseeko=no
16228 fi
16229 rm -f conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16231 fi
16232 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16233 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16234 if test $ac_cv_func_fseeko = yes; then
16235
16236 cat >>confdefs.h <<\_ACEOF
16237 #define HAVE_FSEEKO 1
16238 _ACEOF
16239
16240 fi
16241
16242
16243 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16244 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16245 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248 # Use it with a single arg.
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 int
16257 main ()
16258 {
16259 getpgrp (0);
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -z "$ac_c_werror_flag"
16274 || test ! -s conftest.err'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_func_getpgrp_void=no
16287 else
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 ac_cv_func_getpgrp_void=yes
16292 fi
16293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16294
16295 fi
16296 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16297 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16298 if test $ac_cv_func_getpgrp_void = yes; then
16299
16300 cat >>confdefs.h <<\_ACEOF
16301 #define GETPGRP_VOID 1
16302 _ACEOF
16303
16304 fi
16305
16306
16307
16308 for ac_func in strftime
16309 do
16310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16311 echo "$as_me:$LINENO: checking for $ac_func" >&5
16312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16313 if eval "test \"\${$as_ac_var+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h. */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16324 #define $ac_func innocuous_$ac_func
16325
16326 /* System header to define __stub macros and hopefully few prototypes,
16327 which can conflict with char $ac_func (); below.
16328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16329 <limits.h> exists even on freestanding compilers. */
16330
16331 #ifdef __STDC__
16332 # include <limits.h>
16333 #else
16334 # include <assert.h>
16335 #endif
16336
16337 #undef $ac_func
16338
16339 /* Override any gcc2 internal prototype to avoid an error. */
16340 #ifdef __cplusplus
16341 extern "C"
16342 {
16343 #endif
16344 /* We use char because int might match the return type of a gcc2
16345 builtin and then its argument prototype would still apply. */
16346 char $ac_func ();
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16351 choke me
16352 #else
16353 char (*f) () = $ac_func;
16354 #endif
16355 #ifdef __cplusplus
16356 }
16357 #endif
16358
16359 int
16360 main ()
16361 {
16362 return f != $ac_func;
16363 ;
16364 return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext conftest$ac_exeext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag"
16377 || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 eval "$as_ac_var=yes"
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 eval "$as_ac_var=no"
16395 fi
16396 rm -f conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398 fi
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16401 if test `eval echo '${'$as_ac_var'}'` = yes; then
16402 cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 _ACEOF
16405
16406 else
16407 # strftime is in -lintl on SCO UNIX.
16408 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16409 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16410 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413 ac_check_lib_save_LIBS=$LIBS
16414 LIBS="-lintl $LIBS"
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421
16422 /* Override any gcc2 internal prototype to avoid an error. */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 /* We use char because int might match the return type of a gcc2
16427 builtin and then its argument prototype would still apply. */
16428 char strftime ();
16429 int
16430 main ()
16431 {
16432 strftime ();
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439 (eval $ac_link) 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_lib_intl_strftime=yes
16460 else
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 ac_cv_lib_intl_strftime=no
16465 fi
16466 rm -f conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16469 fi
16470 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16471 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16472 if test $ac_cv_lib_intl_strftime = yes; then
16473 cat >>confdefs.h <<\_ACEOF
16474 #define HAVE_STRFTIME 1
16475 _ACEOF
16476
16477 LIBS="-lintl $LIBS"
16478 fi
16479
16480 fi
16481 done
16482
16483
16484 # UNIX98 PTYs.
16485
16486 for ac_func in grantpt
16487 do
16488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16489 echo "$as_me:$LINENO: checking for $ac_func" >&5
16490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16491 if eval "test \"\${$as_ac_var+set}\" = set"; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16502 #define $ac_func innocuous_$ac_func
16503
16504 /* System header to define __stub macros and hopefully few prototypes,
16505 which can conflict with char $ac_func (); below.
16506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507 <limits.h> exists even on freestanding compilers. */
16508
16509 #ifdef __STDC__
16510 # include <limits.h>
16511 #else
16512 # include <assert.h>
16513 #endif
16514
16515 #undef $ac_func
16516
16517 /* Override any gcc2 internal prototype to avoid an error. */
16518 #ifdef __cplusplus
16519 extern "C"
16520 {
16521 #endif
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16524 char $ac_func ();
16525 /* The GNU C library defines this for functions which it implements
16526 to always fail with ENOSYS. Some functions are actually named
16527 something starting with __ and the normal name is an alias. */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16529 choke me
16530 #else
16531 char (*f) () = $ac_func;
16532 #endif
16533 #ifdef __cplusplus
16534 }
16535 #endif
16536
16537 int
16538 main ()
16539 {
16540 return f != $ac_func;
16541 ;
16542 return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 eval "$as_ac_var=yes"
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 eval "$as_ac_var=no"
16573 fi
16574 rm -f conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 fi
16577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16579 if test `eval echo '${'$as_ac_var'}'` = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16582 _ACEOF
16583
16584 fi
16585 done
16586
16587
16588 # PTY-related GNU extensions.
16589
16590 for ac_func in getpt
16591 do
16592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16593 echo "$as_me:$LINENO: checking for $ac_func" >&5
16594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16595 if eval "test \"\${$as_ac_var+set}\" = set"; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h. */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16606 #define $ac_func innocuous_$ac_func
16607
16608 /* System header to define __stub macros and hopefully few prototypes,
16609 which can conflict with char $ac_func (); below.
16610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16611 <limits.h> exists even on freestanding compilers. */
16612
16613 #ifdef __STDC__
16614 # include <limits.h>
16615 #else
16616 # include <assert.h>
16617 #endif
16618
16619 #undef $ac_func
16620
16621 /* Override any gcc2 internal prototype to avoid an error. */
16622 #ifdef __cplusplus
16623 extern "C"
16624 {
16625 #endif
16626 /* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16628 char $ac_func ();
16629 /* The GNU C library defines this for functions which it implements
16630 to always fail with ENOSYS. Some functions are actually named
16631 something starting with __ and the normal name is an alias. */
16632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16633 choke me
16634 #else
16635 char (*f) () = $ac_func;
16636 #endif
16637 #ifdef __cplusplus
16638 }
16639 #endif
16640
16641 int
16642 main ()
16643 {
16644 return f != $ac_func;
16645 ;
16646 return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag"
16659 || test ! -s conftest.err'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 eval "$as_ac_var=yes"
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 eval "$as_ac_var=no"
16677 fi
16678 rm -f conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 fi
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16686 _ACEOF
16687
16688 fi
16689 done
16690
16691
16692 # Check this now, so that we will NOT find the above functions in ncurses.
16693 # That is because we have not set up to link ncurses in lib-src.
16694 # It's better to believe a function is not available
16695 # than to expect to find it in ncurses.
16696
16697 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16698 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16699 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 ac_check_lib_save_LIBS=$LIBS
16703 LIBS="-lncurses $LIBS"
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710
16711 /* Override any gcc2 internal prototype to avoid an error. */
16712 #ifdef __cplusplus
16713 extern "C"
16714 #endif
16715 /* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16717 char tparm ();
16718 int
16719 main ()
16720 {
16721 tparm ();
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_lib_ncurses_tparm=yes
16749 else
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ac_cv_lib_ncurses_tparm=no
16754 fi
16755 rm -f conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16757 LIBS=$ac_check_lib_save_LIBS
16758 fi
16759 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16760 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16761 if test $ac_cv_lib_ncurses_tparm = yes; then
16762 cat >>confdefs.h <<_ACEOF
16763 #define HAVE_LIBNCURSES 1
16764 _ACEOF
16765
16766 LIBS="-lncurses $LIBS"
16767
16768 fi
16769
16770
16771 # Do we need the Hesiod library to provide the support routines?
16772 if test "$with_hesiod" = yes ; then
16773 # Don't set $LIBS here -- see comments above.
16774 resolv=no
16775 echo "$as_me:$LINENO: checking for res_send" >&5
16776 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16777 if test "${ac_cv_func_res_send+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16788 #define res_send innocuous_res_send
16789
16790 /* System header to define __stub macros and hopefully few prototypes,
16791 which can conflict with char res_send (); below.
16792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793 <limits.h> exists even on freestanding compilers. */
16794
16795 #ifdef __STDC__
16796 # include <limits.h>
16797 #else
16798 # include <assert.h>
16799 #endif
16800
16801 #undef res_send
16802
16803 /* Override any gcc2 internal prototype to avoid an error. */
16804 #ifdef __cplusplus
16805 extern "C"
16806 {
16807 #endif
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16810 char res_send ();
16811 /* The GNU C library defines this for functions which it implements
16812 to always fail with ENOSYS. Some functions are actually named
16813 something starting with __ and the normal name is an alias. */
16814 #if defined (__stub_res_send) || defined (__stub___res_send)
16815 choke me
16816 #else
16817 char (*f) () = res_send;
16818 #endif
16819 #ifdef __cplusplus
16820 }
16821 #endif
16822
16823 int
16824 main ()
16825 {
16826 return f != res_send;
16827 ;
16828 return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833 (eval $ac_link) 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag"
16841 || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest$ac_exeext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_func_res_send=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858 ac_cv_func_res_send=no
16859 fi
16860 rm -f conftest.err conftest.$ac_objext \
16861 conftest$ac_exeext conftest.$ac_ext
16862 fi
16863 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16864 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16865 if test $ac_cv_func_res_send = yes; then
16866 :
16867 else
16868 echo "$as_me:$LINENO: checking for __res_send" >&5
16869 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16870 if test "${ac_cv_func___res_send+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16881 #define __res_send innocuous___res_send
16882
16883 /* System header to define __stub macros and hopefully few prototypes,
16884 which can conflict with char __res_send (); below.
16885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16886 <limits.h> exists even on freestanding compilers. */
16887
16888 #ifdef __STDC__
16889 # include <limits.h>
16890 #else
16891 # include <assert.h>
16892 #endif
16893
16894 #undef __res_send
16895
16896 /* Override any gcc2 internal prototype to avoid an error. */
16897 #ifdef __cplusplus
16898 extern "C"
16899 {
16900 #endif
16901 /* We use char because int might match the return type of a gcc2
16902 builtin and then its argument prototype would still apply. */
16903 char __res_send ();
16904 /* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907 #if defined (__stub___res_send) || defined (__stub_____res_send)
16908 choke me
16909 #else
16910 char (*f) () = __res_send;
16911 #endif
16912 #ifdef __cplusplus
16913 }
16914 #endif
16915
16916 int
16917 main ()
16918 {
16919 return f != __res_send;
16920 ;
16921 return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16926 (eval $ac_link) 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest$ac_exeext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_func___res_send=yes
16947 else
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 ac_cv_func___res_send=no
16952 fi
16953 rm -f conftest.err conftest.$ac_objext \
16954 conftest$ac_exeext conftest.$ac_ext
16955 fi
16956 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16957 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16958 if test $ac_cv_func___res_send = yes; then
16959 :
16960 else
16961 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16962 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16963 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966 ac_check_lib_save_LIBS=$LIBS
16967 LIBS="-lresolv $LIBS"
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974
16975 /* Override any gcc2 internal prototype to avoid an error. */
16976 #ifdef __cplusplus
16977 extern "C"
16978 #endif
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981 char res_send ();
16982 int
16983 main ()
16984 {
16985 res_send ();
16986 ;
16987 return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_lib_resolv_res_send=yes
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ac_cv_lib_resolv_res_send=no
17018 fi
17019 rm -f conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17022 fi
17023 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17024 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17025 if test $ac_cv_lib_resolv_res_send = yes; then
17026 resolv=yes
17027 else
17028 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17029 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17030 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 ac_check_lib_save_LIBS=$LIBS
17034 LIBS="-lresolv $LIBS"
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h. */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041
17042 /* Override any gcc2 internal prototype to avoid an error. */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 /* We use char because int might match the return type of a gcc2
17047 builtin and then its argument prototype would still apply. */
17048 char __res_send ();
17049 int
17050 main ()
17051 {
17052 __res_send ();
17053 ;
17054 return 0;
17055 }
17056 _ACEOF
17057 rm -f conftest.$ac_objext conftest$ac_exeext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag"
17067 || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_lib_resolv___res_send=yes
17080 else
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084 ac_cv_lib_resolv___res_send=no
17085 fi
17086 rm -f conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17088 LIBS=$ac_check_lib_save_LIBS
17089 fi
17090 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17091 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17092 if test $ac_cv_lib_resolv___res_send = yes; then
17093 resolv=yes
17094 fi
17095
17096 fi
17097
17098 fi
17099
17100 fi
17101
17102 if test "$resolv" = yes ; then
17103 RESOLVLIB=-lresolv
17104
17105 cat >>confdefs.h <<\_ACEOF
17106 #define HAVE_LIBRESOLV 1
17107 _ACEOF
17108
17109 else
17110 RESOLVLIB=
17111 fi
17112 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17113 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17114 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17125 #define hes_getmailhost innocuous_hes_getmailhost
17126
17127 /* System header to define __stub macros and hopefully few prototypes,
17128 which can conflict with char hes_getmailhost (); below.
17129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130 <limits.h> exists even on freestanding compilers. */
17131
17132 #ifdef __STDC__
17133 # include <limits.h>
17134 #else
17135 # include <assert.h>
17136 #endif
17137
17138 #undef hes_getmailhost
17139
17140 /* Override any gcc2 internal prototype to avoid an error. */
17141 #ifdef __cplusplus
17142 extern "C"
17143 {
17144 #endif
17145 /* We use char because int might match the return type of a gcc2
17146 builtin and then its argument prototype would still apply. */
17147 char hes_getmailhost ();
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17152 choke me
17153 #else
17154 char (*f) () = hes_getmailhost;
17155 #endif
17156 #ifdef __cplusplus
17157 }
17158 #endif
17159
17160 int
17161 main ()
17162 {
17163 return f != hes_getmailhost;
17164 ;
17165 return 0;
17166 }
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170 (eval $ac_link) 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_func_hes_getmailhost=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 ac_cv_func_hes_getmailhost=no
17196 fi
17197 rm -f conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17199 fi
17200 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17201 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17202 if test $ac_cv_func_hes_getmailhost = yes; then
17203 :
17204 else
17205 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17206 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17207 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lhesiod $RESOLVLIB $LIBS"
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218
17219 /* Override any gcc2 internal prototype to avoid an error. */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 /* We use char because int might match the return type of a gcc2
17224 builtin and then its argument prototype would still apply. */
17225 char hes_getmailhost ();
17226 int
17227 main ()
17228 {
17229 hes_getmailhost ();
17230 ;
17231 return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_lib_hesiod_hes_getmailhost=yes
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ac_cv_lib_hesiod_hes_getmailhost=no
17262 fi
17263 rm -f conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_check_lib_save_LIBS
17266 fi
17267 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17268 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17269 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17270
17271 cat >>confdefs.h <<\_ACEOF
17272 #define HAVE_LIBHESIOD 1
17273 _ACEOF
17274
17275 else
17276 :
17277 fi
17278
17279 fi
17280
17281 fi
17282
17283 # These tell us which Kerberos-related libraries to use.
17284 if test "${with_kerberos+set}" = set; then
17285
17286 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17287 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17288 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291 ac_check_lib_save_LIBS=$LIBS
17292 LIBS="-lcom_err $LIBS"
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h. */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299
17300 /* Override any gcc2 internal prototype to avoid an error. */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 /* We use char because int might match the return type of a gcc2
17305 builtin and then its argument prototype would still apply. */
17306 char com_err ();
17307 int
17308 main ()
17309 {
17310 com_err ();
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_lib_com_err_com_err=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_cv_lib_com_err_com_err=no
17343 fi
17344 rm -f conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17347 fi
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17349 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17350 if test $ac_cv_lib_com_err_com_err = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_LIBCOM_ERR 1
17353 _ACEOF
17354
17355 LIBS="-lcom_err $LIBS"
17356
17357 fi
17358
17359
17360 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17361 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17362 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lk5crypto $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373
17374 /* Override any gcc2 internal prototype to avoid an error. */
17375 #ifdef __cplusplus
17376 extern "C"
17377 #endif
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17380 char mit_des_cbc_encrypt ();
17381 int
17382 main ()
17383 {
17384 mit_des_cbc_encrypt ();
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17417 fi
17418 rm -f conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17421 fi
17422 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17423 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17424 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define HAVE_LIBK5CRYPTO 1
17427 _ACEOF
17428
17429 LIBS="-lk5crypto $LIBS"
17430
17431 fi
17432
17433
17434 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17435 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17436 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439 ac_check_lib_save_LIBS=$LIBS
17440 LIBS="-lcrypto $LIBS"
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h. */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447
17448 /* Override any gcc2 internal prototype to avoid an error. */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17454 char mit_des_cbc_encrypt ();
17455 int
17456 main ()
17457 {
17458 mit_des_cbc_encrypt ();
17459 ;
17460 return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17465 (eval $ac_link) 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17486 else
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17491 fi
17492 rm -f conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17495 fi
17496 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17497 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17498 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define HAVE_LIBCRYPTO 1
17501 _ACEOF
17502
17503 LIBS="-lcrypto $LIBS"
17504
17505 fi
17506
17507
17508 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17509 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17510 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 ac_check_lib_save_LIBS=$LIBS
17514 LIBS="-lkrb5 $LIBS"
17515 cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h. */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521
17522 /* Override any gcc2 internal prototype to avoid an error. */
17523 #ifdef __cplusplus
17524 extern "C"
17525 #endif
17526 /* We use char because int might match the return type of a gcc2
17527 builtin and then its argument prototype would still apply. */
17528 char krb5_init_context ();
17529 int
17530 main ()
17531 {
17532 krb5_init_context ();
17533 ;
17534 return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext conftest$ac_exeext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag"
17547 || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_lib_krb5_krb5_init_context=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_cv_lib_krb5_krb5_init_context=no
17565 fi
17566 rm -f conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17568 LIBS=$ac_check_lib_save_LIBS
17569 fi
17570 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17571 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17572 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_LIBKRB5 1
17575 _ACEOF
17576
17577 LIBS="-lkrb5 $LIBS"
17578
17579 fi
17580
17581 if test "${with_kerberos5+set}" != set; then
17582
17583 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17584 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17585 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588 ac_check_lib_save_LIBS=$LIBS
17589 LIBS="-ldes425 $LIBS"
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596
17597 /* Override any gcc2 internal prototype to avoid an error. */
17598 #ifdef __cplusplus
17599 extern "C"
17600 #endif
17601 /* We use char because int might match the return type of a gcc2
17602 builtin and then its argument prototype would still apply. */
17603 char des_cbc_encrypt ();
17604 int
17605 main ()
17606 {
17607 des_cbc_encrypt ();
17608 ;
17609 return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag"
17622 || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_des425_des_cbc_encrypt=yes
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 ac_cv_lib_des425_des_cbc_encrypt=no
17640 fi
17641 rm -f conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17644 fi
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17646 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17647 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define HAVE_LIBDES425 1
17650 _ACEOF
17651
17652 LIBS="-ldes425 $LIBS"
17653
17654 else
17655
17656 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17657 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17658 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661 ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-ldes $LIBS"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669
17670 /* Override any gcc2 internal prototype to avoid an error. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 /* We use char because int might match the return type of a gcc2
17675 builtin and then its argument prototype would still apply. */
17676 char des_cbc_encrypt ();
17677 int
17678 main ()
17679 {
17680 des_cbc_encrypt ();
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_lib_des_des_cbc_encrypt=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 ac_cv_lib_des_des_cbc_encrypt=no
17713 fi
17714 rm -f conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17716 LIBS=$ac_check_lib_save_LIBS
17717 fi
17718 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17719 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17720 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_LIBDES 1
17723 _ACEOF
17724
17725 LIBS="-ldes $LIBS"
17726
17727 fi
17728
17729 fi
17730
17731
17732 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17733 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17734 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 ac_check_lib_save_LIBS=$LIBS
17738 LIBS="-lkrb4 $LIBS"
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745
17746 /* Override any gcc2 internal prototype to avoid an error. */
17747 #ifdef __cplusplus
17748 extern "C"
17749 #endif
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17752 char krb_get_cred ();
17753 int
17754 main ()
17755 {
17756 krb_get_cred ();
17757 ;
17758 return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_krb4_krb_get_cred=yes
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_cv_lib_krb4_krb_get_cred=no
17789 fi
17790 rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17793 fi
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17795 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17796 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_LIBKRB4 1
17799 _ACEOF
17800
17801 LIBS="-lkrb4 $LIBS"
17802
17803 else
17804
17805 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17806 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17807 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810 ac_check_lib_save_LIBS=$LIBS
17811 LIBS="-lkrb $LIBS"
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818
17819 /* Override any gcc2 internal prototype to avoid an error. */
17820 #ifdef __cplusplus
17821 extern "C"
17822 #endif
17823 /* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17825 char krb_get_cred ();
17826 int
17827 main ()
17828 {
17829 krb_get_cred ();
17830 ;
17831 return 0;
17832 }
17833 _ACEOF
17834 rm -f conftest.$ac_objext conftest$ac_exeext
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try='test -z "$ac_c_werror_flag"
17844 || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_lib_krb_krb_get_cred=yes
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 ac_cv_lib_krb_krb_get_cred=no
17862 fi
17863 rm -f conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17868 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17869 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17870 cat >>confdefs.h <<_ACEOF
17871 #define HAVE_LIBKRB 1
17872 _ACEOF
17873
17874 LIBS="-lkrb $LIBS"
17875
17876 fi
17877
17878 fi
17879
17880 fi
17881
17882 if test "${with_kerberos5+set}" = set; then
17883
17884 for ac_header in krb5.h
17885 do
17886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17888 echo "$as_me:$LINENO: checking for $ac_header" >&5
17889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 fi
17893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17895 else
17896 # Is the header compilable?
17897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 $ac_includes_default
17906 #include <$ac_header>
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_header_compiler=yes
17931 else
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_header_compiler=no
17936 fi
17937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17939 echo "${ECHO_T}$ac_header_compiler" >&6
17940
17941 # Is the header present?
17942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h. */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 #include <$ac_header>
17951 _ACEOF
17952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } >/dev/null; then
17960 if test -s conftest.err; then
17961 ac_cpp_err=$ac_c_preproc_warn_flag
17962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17963 else
17964 ac_cpp_err=
17965 fi
17966 else
17967 ac_cpp_err=yes
17968 fi
17969 if test -z "$ac_cpp_err"; then
17970 ac_header_preproc=yes
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975 ac_header_preproc=no
17976 fi
17977 rm -f conftest.err conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17979 echo "${ECHO_T}$ac_header_preproc" >&6
17980
17981 # So? What about this header?
17982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17983 yes:no: )
17984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17988 ac_header_preproc=yes
17989 ;;
17990 no:yes:* )
17991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18003 (
18004 cat <<\_ASBOX
18005 ## ------------------------------------------ ##
18006 ## Report this to the AC_PACKAGE_NAME lists. ##
18007 ## ------------------------------------------ ##
18008 _ASBOX
18009 ) |
18010 sed "s/^/$as_me: WARNING: /" >&2
18011 ;;
18012 esac
18013 echo "$as_me:$LINENO: checking for $ac_header" >&5
18014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018 eval "$as_ac_Header=\$ac_header_preproc"
18019 fi
18020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18022
18023 fi
18024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18027 _ACEOF
18028
18029 fi
18030
18031 done
18032
18033 else
18034
18035 for ac_header in des.h
18036 do
18037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18039 echo "$as_me:$LINENO: checking for $ac_header" >&5
18040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 fi
18044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18046 else
18047 # Is the header compilable?
18048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 $ac_includes_default
18057 #include <$ac_header>
18058 _ACEOF
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061 (eval $ac_compile) 2>conftest.er1
18062 ac_status=$?
18063 grep -v '^ *+' conftest.er1 >conftest.err
18064 rm -f conftest.er1
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_c_werror_flag"
18069 || test ! -s conftest.err'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest.$ac_objext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_header_compiler=yes
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086 ac_header_compiler=no
18087 fi
18088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18090 echo "${ECHO_T}$ac_header_compiler" >&6
18091
18092 # Is the header present?
18093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18095 cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h. */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 #include <$ac_header>
18102 _ACEOF
18103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } >/dev/null; then
18111 if test -s conftest.err; then
18112 ac_cpp_err=$ac_c_preproc_warn_flag
18113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18114 else
18115 ac_cpp_err=
18116 fi
18117 else
18118 ac_cpp_err=yes
18119 fi
18120 if test -z "$ac_cpp_err"; then
18121 ac_header_preproc=yes
18122 else
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_header_preproc=no
18127 fi
18128 rm -f conftest.err conftest.$ac_ext
18129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18130 echo "${ECHO_T}$ac_header_preproc" >&6
18131
18132 # So? What about this header?
18133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18134 yes:no: )
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18139 ac_header_preproc=yes
18140 ;;
18141 no:yes:* )
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18154 (
18155 cat <<\_ASBOX
18156 ## ------------------------------------------ ##
18157 ## Report this to the AC_PACKAGE_NAME lists. ##
18158 ## ------------------------------------------ ##
18159 _ASBOX
18160 ) |
18161 sed "s/^/$as_me: WARNING: /" >&2
18162 ;;
18163 esac
18164 echo "$as_me:$LINENO: checking for $ac_header" >&5
18165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 eval "$as_ac_Header=\$ac_header_preproc"
18170 fi
18171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18173
18174 fi
18175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18176 cat >>confdefs.h <<_ACEOF
18177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18178 _ACEOF
18179
18180 else
18181
18182 for ac_header in kerberosIV/des.h
18183 do
18184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18186 echo "$as_me:$LINENO: checking for $ac_header" >&5
18187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 fi
18191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18193 else
18194 # Is the header compilable?
18195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18197 cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 #include <$ac_header>
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_header_compiler=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 ac_header_compiler=no
18234 fi
18235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18237 echo "${ECHO_T}$ac_header_compiler" >&6
18238
18239 # Is the header present?
18240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include <$ac_header>
18249 _ACEOF
18250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } >/dev/null; then
18258 if test -s conftest.err; then
18259 ac_cpp_err=$ac_c_preproc_warn_flag
18260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18261 else
18262 ac_cpp_err=
18263 fi
18264 else
18265 ac_cpp_err=yes
18266 fi
18267 if test -z "$ac_cpp_err"; then
18268 ac_header_preproc=yes
18269 else
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 ac_header_preproc=no
18274 fi
18275 rm -f conftest.err conftest.$ac_ext
18276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18277 echo "${ECHO_T}$ac_header_preproc" >&6
18278
18279 # So? What about this header?
18280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18281 yes:no: )
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18286 ac_header_preproc=yes
18287 ;;
18288 no:yes:* )
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18301 (
18302 cat <<\_ASBOX
18303 ## ------------------------------------------ ##
18304 ## Report this to the AC_PACKAGE_NAME lists. ##
18305 ## ------------------------------------------ ##
18306 _ASBOX
18307 ) |
18308 sed "s/^/$as_me: WARNING: /" >&2
18309 ;;
18310 esac
18311 echo "$as_me:$LINENO: checking for $ac_header" >&5
18312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 eval "$as_ac_Header=\$ac_header_preproc"
18317 fi
18318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18320
18321 fi
18322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18323 cat >>confdefs.h <<_ACEOF
18324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18325 _ACEOF
18326
18327 else
18328
18329 for ac_header in kerberos/des.h
18330 do
18331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18333 echo "$as_me:$LINENO: checking for $ac_header" >&5
18334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 fi
18338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18340 else
18341 # Is the header compilable?
18342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18344 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 $ac_includes_default
18351 #include <$ac_header>
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 ac_header_compiler=yes
18376 else
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 ac_header_compiler=no
18381 fi
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18384 echo "${ECHO_T}$ac_header_compiler" >&6
18385
18386 # Is the header present?
18387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h. */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 #include <$ac_header>
18396 _ACEOF
18397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } >/dev/null; then
18405 if test -s conftest.err; then
18406 ac_cpp_err=$ac_c_preproc_warn_flag
18407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18408 else
18409 ac_cpp_err=
18410 fi
18411 else
18412 ac_cpp_err=yes
18413 fi
18414 if test -z "$ac_cpp_err"; then
18415 ac_header_preproc=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 ac_header_preproc=no
18421 fi
18422 rm -f conftest.err conftest.$ac_ext
18423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18424 echo "${ECHO_T}$ac_header_preproc" >&6
18425
18426 # So? What about this header?
18427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18428 yes:no: )
18429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18433 ac_header_preproc=yes
18434 ;;
18435 no:yes:* )
18436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18448 (
18449 cat <<\_ASBOX
18450 ## ------------------------------------------ ##
18451 ## Report this to the AC_PACKAGE_NAME lists. ##
18452 ## ------------------------------------------ ##
18453 _ASBOX
18454 ) |
18455 sed "s/^/$as_me: WARNING: /" >&2
18456 ;;
18457 esac
18458 echo "$as_me:$LINENO: checking for $ac_header" >&5
18459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 eval "$as_ac_Header=\$ac_header_preproc"
18464 fi
18465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18467
18468 fi
18469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18470 cat >>confdefs.h <<_ACEOF
18471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18472 _ACEOF
18473
18474 fi
18475
18476 done
18477
18478 fi
18479
18480 done
18481
18482 fi
18483
18484 done
18485
18486
18487 for ac_header in krb.h
18488 do
18489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 fi
18496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18498 else
18499 # Is the header compilable?
18500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 $ac_includes_default
18509 #include <$ac_header>
18510 _ACEOF
18511 rm -f conftest.$ac_objext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18513 (eval $ac_compile) 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_header_compiler=yes
18534 else
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_header_compiler=no
18539 fi
18540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18542 echo "${ECHO_T}$ac_header_compiler" >&6
18543
18544 # Is the header present?
18545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h. */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 #include <$ac_header>
18554 _ACEOF
18555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } >/dev/null; then
18563 if test -s conftest.err; then
18564 ac_cpp_err=$ac_c_preproc_warn_flag
18565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18566 else
18567 ac_cpp_err=
18568 fi
18569 else
18570 ac_cpp_err=yes
18571 fi
18572 if test -z "$ac_cpp_err"; then
18573 ac_header_preproc=yes
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 ac_header_preproc=no
18579 fi
18580 rm -f conftest.err conftest.$ac_ext
18581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18582 echo "${ECHO_T}$ac_header_preproc" >&6
18583
18584 # So? What about this header?
18585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18586 yes:no: )
18587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18591 ac_header_preproc=yes
18592 ;;
18593 no:yes:* )
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18606 (
18607 cat <<\_ASBOX
18608 ## ------------------------------------------ ##
18609 ## Report this to the AC_PACKAGE_NAME lists. ##
18610 ## ------------------------------------------ ##
18611 _ASBOX
18612 ) |
18613 sed "s/^/$as_me: WARNING: /" >&2
18614 ;;
18615 esac
18616 echo "$as_me:$LINENO: checking for $ac_header" >&5
18617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621 eval "$as_ac_Header=\$ac_header_preproc"
18622 fi
18623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18625
18626 fi
18627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18628 cat >>confdefs.h <<_ACEOF
18629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18630 _ACEOF
18631
18632 else
18633
18634 for ac_header in kerberosIV/krb.h
18635 do
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 fi
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645 else
18646 # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h. */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 $ac_includes_default
18656 #include <$ac_header>
18657 _ACEOF
18658 rm -f conftest.$ac_objext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_header_compiler=yes
18681 else
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 ac_header_compiler=no
18686 fi
18687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18689 echo "${ECHO_T}$ac_header_compiler" >&6
18690
18691 # Is the header present?
18692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18695 /* confdefs.h. */
18696 _ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 #include <$ac_header>
18701 _ACEOF
18702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } >/dev/null; then
18710 if test -s conftest.err; then
18711 ac_cpp_err=$ac_c_preproc_warn_flag
18712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18713 else
18714 ac_cpp_err=
18715 fi
18716 else
18717 ac_cpp_err=yes
18718 fi
18719 if test -z "$ac_cpp_err"; then
18720 ac_header_preproc=yes
18721 else
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 ac_header_preproc=no
18726 fi
18727 rm -f conftest.err conftest.$ac_ext
18728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18729 echo "${ECHO_T}$ac_header_preproc" >&6
18730
18731 # So? What about this header?
18732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18733 yes:no: )
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18738 ac_header_preproc=yes
18739 ;;
18740 no:yes:* )
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18753 (
18754 cat <<\_ASBOX
18755 ## ------------------------------------------ ##
18756 ## Report this to the AC_PACKAGE_NAME lists. ##
18757 ## ------------------------------------------ ##
18758 _ASBOX
18759 ) |
18760 sed "s/^/$as_me: WARNING: /" >&2
18761 ;;
18762 esac
18763 echo "$as_me:$LINENO: checking for $ac_header" >&5
18764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768 eval "$as_ac_Header=\$ac_header_preproc"
18769 fi
18770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18772
18773 fi
18774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18775 cat >>confdefs.h <<_ACEOF
18776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18777 _ACEOF
18778
18779 else
18780
18781 for ac_header in kerberos/krb.h
18782 do
18783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18785 echo "$as_me:$LINENO: checking for $ac_header" >&5
18786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 fi
18790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18792 else
18793 # Is the header compilable?
18794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h. */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 $ac_includes_default
18803 #include <$ac_header>
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest.$ac_objext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_header_compiler=yes
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_header_compiler=no
18833 fi
18834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18836 echo "${ECHO_T}$ac_header_compiler" >&6
18837
18838 # Is the header present?
18839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18841 cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h. */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 #include <$ac_header>
18848 _ACEOF
18849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18851 ac_status=$?
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } >/dev/null; then
18857 if test -s conftest.err; then
18858 ac_cpp_err=$ac_c_preproc_warn_flag
18859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18860 else
18861 ac_cpp_err=
18862 fi
18863 else
18864 ac_cpp_err=yes
18865 fi
18866 if test -z "$ac_cpp_err"; then
18867 ac_header_preproc=yes
18868 else
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18871
18872 ac_header_preproc=no
18873 fi
18874 rm -f conftest.err conftest.$ac_ext
18875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18876 echo "${ECHO_T}$ac_header_preproc" >&6
18877
18878 # So? What about this header?
18879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18880 yes:no: )
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18885 ac_header_preproc=yes
18886 ;;
18887 no:yes:* )
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18900 (
18901 cat <<\_ASBOX
18902 ## ------------------------------------------ ##
18903 ## Report this to the AC_PACKAGE_NAME lists. ##
18904 ## ------------------------------------------ ##
18905 _ASBOX
18906 ) |
18907 sed "s/^/$as_me: WARNING: /" >&2
18908 ;;
18909 esac
18910 echo "$as_me:$LINENO: checking for $ac_header" >&5
18911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915 eval "$as_ac_Header=\$ac_header_preproc"
18916 fi
18917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18919
18920 fi
18921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18924 _ACEOF
18925
18926 fi
18927
18928 done
18929
18930 fi
18931
18932 done
18933
18934 fi
18935
18936 done
18937
18938 fi
18939
18940 for ac_header in com_err.h
18941 do
18942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18944 echo "$as_me:$LINENO: checking for $ac_header" >&5
18945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 fi
18949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18951 else
18952 # Is the header compilable?
18953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18962 #include <$ac_header>
18963 _ACEOF
18964 rm -f conftest.$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_header_compiler=yes
18987 else
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_header_compiler=no
18992 fi
18993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18995 echo "${ECHO_T}$ac_header_compiler" >&6
18996
18997 # Is the header present?
18998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19000 cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h. */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 #include <$ac_header>
19007 _ACEOF
19008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } >/dev/null; then
19016 if test -s conftest.err; then
19017 ac_cpp_err=$ac_c_preproc_warn_flag
19018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19019 else
19020 ac_cpp_err=
19021 fi
19022 else
19023 ac_cpp_err=yes
19024 fi
19025 if test -z "$ac_cpp_err"; then
19026 ac_header_preproc=yes
19027 else
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_header_preproc=no
19032 fi
19033 rm -f conftest.err conftest.$ac_ext
19034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19035 echo "${ECHO_T}$ac_header_preproc" >&6
19036
19037 # So? What about this header?
19038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19039 yes:no: )
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19044 ac_header_preproc=yes
19045 ;;
19046 no:yes:* )
19047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19059 (
19060 cat <<\_ASBOX
19061 ## ------------------------------------------ ##
19062 ## Report this to the AC_PACKAGE_NAME lists. ##
19063 ## ------------------------------------------ ##
19064 _ASBOX
19065 ) |
19066 sed "s/^/$as_me: WARNING: /" >&2
19067 ;;
19068 esac
19069 echo "$as_me:$LINENO: checking for $ac_header" >&5
19070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 eval "$as_ac_Header=\$ac_header_preproc"
19075 fi
19076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19078
19079 fi
19080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19081 cat >>confdefs.h <<_ACEOF
19082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19083 _ACEOF
19084
19085 fi
19086
19087 done
19088
19089 fi
19090
19091 # Solaris requires -lintl if you want strerror (which calls dgettext)
19092 # to return localized messages.
19093
19094 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19095 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19096 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099 ac_check_lib_save_LIBS=$LIBS
19100 LIBS="-lintl $LIBS"
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107
19108 /* Override any gcc2 internal prototype to avoid an error. */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 /* We use char because int might match the return type of a gcc2
19113 builtin and then its argument prototype would still apply. */
19114 char dgettext ();
19115 int
19116 main ()
19117 {
19118 dgettext ();
19119 ;
19120 return 0;
19121 }
19122 _ACEOF
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125 (eval $ac_link) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag"
19133 || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_lib_intl_dgettext=yes
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_cv_lib_intl_dgettext=no
19151 fi
19152 rm -f conftest.err conftest.$ac_objext \
19153 conftest$ac_exeext conftest.$ac_ext
19154 LIBS=$ac_check_lib_save_LIBS
19155 fi
19156 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19157 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19158 if test $ac_cv_lib_intl_dgettext = yes; then
19159 cat >>confdefs.h <<_ACEOF
19160 #define HAVE_LIBINTL 1
19161 _ACEOF
19162
19163 LIBS="-lintl $LIBS"
19164
19165 fi
19166
19167
19168 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19169 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19170 if test "${emacs_cv_localtime_cache+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173 if test x$ac_cv_func_tzset = xyes; then
19174 if test "$cross_compiling" = yes; then
19175 # If we have tzset, assume the worst when cross-compiling.
19176 emacs_cv_localtime_cache=yes
19177 else
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 #include <time.h>
19185 extern char **environ;
19186 unset_TZ ()
19187 {
19188 char **from, **to;
19189 for (to = from = environ; (*to = *from); from++)
19190 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19191 to++;
19192 }
19193 char TZ_GMT0[] = "TZ=GMT0";
19194 char TZ_PST8[] = "TZ=PST8";
19195 main()
19196 {
19197 time_t now = time ((time_t *) 0);
19198 int hour_GMT0, hour_unset;
19199 if (putenv (TZ_GMT0) != 0)
19200 exit (1);
19201 hour_GMT0 = localtime (&now)->tm_hour;
19202 unset_TZ ();
19203 hour_unset = localtime (&now)->tm_hour;
19204 if (putenv (TZ_PST8) != 0)
19205 exit (1);
19206 if (localtime (&now)->tm_hour == hour_GMT0)
19207 exit (1);
19208 unset_TZ ();
19209 if (localtime (&now)->tm_hour != hour_unset)
19210 exit (1);
19211 exit (0);
19212 }
19213 _ACEOF
19214 rm -f conftest$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 emacs_cv_localtime_cache=no
19226 else
19227 echo "$as_me: program exited with status $ac_status" >&5
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 ( exit $ac_status )
19232 emacs_cv_localtime_cache=yes
19233 fi
19234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19235 fi
19236 else
19237 # If we lack tzset, report that localtime does not cache TZ,
19238 # since we can't invalidate the cache if we don't have tzset.
19239 emacs_cv_localtime_cache=no
19240 fi
19241 fi
19242 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19243 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19244 if test $emacs_cv_localtime_cache = yes; then
19245
19246 cat >>confdefs.h <<\_ACEOF
19247 #define LOCALTIME_CACHE 1
19248 _ACEOF
19249
19250 fi
19251
19252 if test "x$HAVE_TIMEVAL" = xyes; then
19253
19254 for ac_func in gettimeofday
19255 do
19256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19257 echo "$as_me:$LINENO: checking for $ac_func" >&5
19258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19259 if eval "test \"\${$as_ac_var+set}\" = set"; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19270 #define $ac_func innocuous_$ac_func
19271
19272 /* System header to define __stub macros and hopefully few prototypes,
19273 which can conflict with char $ac_func (); below.
19274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19275 <limits.h> exists even on freestanding compilers. */
19276
19277 #ifdef __STDC__
19278 # include <limits.h>
19279 #else
19280 # include <assert.h>
19281 #endif
19282
19283 #undef $ac_func
19284
19285 /* Override any gcc2 internal prototype to avoid an error. */
19286 #ifdef __cplusplus
19287 extern "C"
19288 {
19289 #endif
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19292 char $ac_func ();
19293 /* The GNU C library defines this for functions which it implements
19294 to always fail with ENOSYS. Some functions are actually named
19295 something starting with __ and the normal name is an alias. */
19296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19297 choke me
19298 #else
19299 char (*f) () = $ac_func;
19300 #endif
19301 #ifdef __cplusplus
19302 }
19303 #endif
19304
19305 int
19306 main ()
19307 {
19308 return f != $ac_func;
19309 ;
19310 return 0;
19311 }
19312 _ACEOF
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 eval "$as_ac_var=yes"
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 eval "$as_ac_var=no"
19341 fi
19342 rm -f conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 fi
19345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19347 if test `eval echo '${'$as_ac_var'}'` = yes; then
19348 cat >>confdefs.h <<_ACEOF
19349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19350 _ACEOF
19351
19352 fi
19353 done
19354
19355 if test $ac_cv_func_gettimeofday = yes; then
19356 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19357 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19358 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361 cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h. */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367
19368 #ifdef TIME_WITH_SYS_TIME
19369 #include <sys/time.h>
19370 #include <time.h>
19371 #else
19372 #ifdef HAVE_SYS_TIME_H
19373 #include <sys/time.h>
19374 #else
19375 #include <time.h>
19376 #endif
19377 #endif
19378 int
19379 main ()
19380 {
19381 struct timeval time;
19382 gettimeofday (&time, 0);
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag"
19397 || test ! -s conftest.err'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 emacs_cv_gettimeofday_two_arguments=yes
19410 else
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 emacs_cv_gettimeofday_two_arguments=no
19415 fi
19416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19419 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19420 if test $emacs_cv_gettimeofday_two_arguments = no; then
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19424 _ACEOF
19425
19426 fi
19427 fi
19428 fi
19429
19430 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19431 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19432 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19433 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h. */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <sys/types.h>
19443 #include <$ac_cv_struct_tm>
19444
19445
19446 int
19447 main ()
19448 {
19449 static struct tm ac_aggr;
19450 if (ac_aggr.tm_zone)
19451 return 0;
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_member_struct_tm_tm_zone=yes
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h. */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <sys/types.h>
19490 #include <$ac_cv_struct_tm>
19491
19492
19493 int
19494 main ()
19495 {
19496 static struct tm ac_aggr;
19497 if (sizeof ac_aggr.tm_zone)
19498 return 0;
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_member_struct_tm_tm_zone=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_member_struct_tm_tm_zone=no
19531 fi
19532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19533 fi
19534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19535 fi
19536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19537 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19538 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19539
19540 cat >>confdefs.h <<_ACEOF
19541 #define HAVE_STRUCT_TM_TM_ZONE 1
19542 _ACEOF
19543
19544
19545 fi
19546
19547 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_TM_ZONE 1
19551 _ACEOF
19552
19553 else
19554 echo "$as_me:$LINENO: checking for tzname" >&5
19555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19556 if test "${ac_cv_var_tzname+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 #include <time.h>
19566 #ifndef tzname /* For SGI. */
19567 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19568 #endif
19569
19570 int
19571 main ()
19572 {
19573 atoi(*tzname);
19574 ;
19575 return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest$ac_exeext'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_cv_var_tzname=yes
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19604
19605 ac_cv_var_tzname=no
19606 fi
19607 rm -f conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609 fi
19610 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19611 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19612 if test $ac_cv_var_tzname = yes; then
19613
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_TZNAME 1
19616 _ACEOF
19617
19618 fi
19619 fi
19620
19621
19622 if test "$ac_cv_func_gettimeofday" = yes; then
19623 echo "$as_me:$LINENO: checking for struct timezone" >&5
19624 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19625 if test "${emacs_cv_struct_timezone+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <sys/time.h>
19635 int
19636 main ()
19637 {
19638 struct timezone tz;
19639 ;
19640 return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 if test "$cross_compiling" = yes; then
19666 emacs_cv_struct_timezone=yes
19667 else
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674
19675 #ifdef TIME_WITH_SYS_TIME
19676 #include <sys/time.h>
19677 #include <time.h>
19678 #else
19679 #ifdef HAVE_SYS_TIME_H
19680 #include <sys/time.h>
19681 #else
19682 #include <time.h>
19683 #endif
19684 #endif
19685 main () {
19686 struct timeval time;
19687 struct timezone dummy;
19688 exit (gettimeofday (&time, &dummy));
19689 }
19690 _ACEOF
19691 rm -f conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 emacs_cv_struct_timezone=yes
19703 else
19704 echo "$as_me: program exited with status $ac_status" >&5
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ( exit $ac_status )
19709 emacs_cv_struct_timezone=no
19710 fi
19711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19712 fi
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 emacs_cv_struct_timezone=no
19718 fi
19719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19720 fi
19721 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19722 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19723 fi
19724
19725 ok_so_far=yes
19726 echo "$as_me:$LINENO: checking for socket" >&5
19727 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19728 if test "${ac_cv_func_socket+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739 #define socket innocuous_socket
19740
19741 /* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char socket (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19745
19746 #ifdef __STDC__
19747 # include <limits.h>
19748 #else
19749 # include <assert.h>
19750 #endif
19751
19752 #undef socket
19753
19754 /* Override any gcc2 internal prototype to avoid an error. */
19755 #ifdef __cplusplus
19756 extern "C"
19757 {
19758 #endif
19759 /* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
19761 char socket ();
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined (__stub_socket) || defined (__stub___socket)
19766 choke me
19767 #else
19768 char (*f) () = socket;
19769 #endif
19770 #ifdef __cplusplus
19771 }
19772 #endif
19773
19774 int
19775 main ()
19776 {
19777 return f != socket;
19778 ;
19779 return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest$ac_exeext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 ac_cv_func_socket=yes
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 ac_cv_func_socket=no
19810 fi
19811 rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813 fi
19814 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19815 echo "${ECHO_T}$ac_cv_func_socket" >&6
19816 if test $ac_cv_func_socket = yes; then
19817 :
19818 else
19819 ok_so_far=no
19820 fi
19821
19822 if test $ok_so_far = yes; then
19823 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19824 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19825 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19826 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 fi
19829 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19830 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19831 else
19832 # Is the header compilable?
19833 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19834 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19842 #include <netinet/in.h>
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19846 (eval $ac_compile) 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_c_werror_flag"
19854 || test ! -s conftest.err'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest.$ac_objext'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_header_compiler=yes
19867 else
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_header_compiler=no
19872 fi
19873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 echo "${ECHO_T}$ac_header_compiler" >&6
19876
19877 # Is the header present?
19878 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19879 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <netinet/in.h>
19887 _ACEOF
19888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } >/dev/null; then
19896 if test -s conftest.err; then
19897 ac_cpp_err=$ac_c_preproc_warn_flag
19898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19899 else
19900 ac_cpp_err=
19901 fi
19902 else
19903 ac_cpp_err=yes
19904 fi
19905 if test -z "$ac_cpp_err"; then
19906 ac_header_preproc=yes
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 ac_header_preproc=no
19912 fi
19913 rm -f conftest.err conftest.$ac_ext
19914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6
19916
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 yes:no: )
19920 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19925 ;;
19926 no:yes:* )
19927 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19939 (
19940 cat <<\_ASBOX
19941 ## ------------------------------------------ ##
19942 ## Report this to the AC_PACKAGE_NAME lists. ##
19943 ## ------------------------------------------ ##
19944 _ASBOX
19945 ) |
19946 sed "s/^/$as_me: WARNING: /" >&2
19947 ;;
19948 esac
19949 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19950 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19951 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954 ac_cv_header_netinet_in_h=$ac_header_preproc
19955 fi
19956 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19957 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19958
19959 fi
19960 if test $ac_cv_header_netinet_in_h = yes; then
19961 :
19962 else
19963 ok_so_far=no
19964 fi
19965
19966
19967 fi
19968 if test $ok_so_far = yes; then
19969 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19970 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19971 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19972 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 fi
19975 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19976 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19977 else
19978 # Is the header compilable?
19979 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19980 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 $ac_includes_default
19988 #include <arpa/inet.h>
19989 _ACEOF
19990 rm -f conftest.$ac_objext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992 (eval $ac_compile) 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
19999 { ac_try='test -z "$ac_c_werror_flag"
20000 || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_header_compiler=no
20018 fi
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20022
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20025 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <arpa/inet.h>
20033 _ACEOF
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045 else
20046 ac_cpp_err=
20047 fi
20048 else
20049 ac_cpp_err=yes
20050 fi
20051 if test -z "$ac_cpp_err"; then
20052 ac_header_preproc=yes
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_header_preproc=no
20058 fi
20059 rm -f conftest.err conftest.$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20062
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
20066 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20071 ;;
20072 no:yes:* )
20073 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20085 (
20086 cat <<\_ASBOX
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists. ##
20089 ## ------------------------------------------ ##
20090 _ASBOX
20091 ) |
20092 sed "s/^/$as_me: WARNING: /" >&2
20093 ;;
20094 esac
20095 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20096 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20097 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 ac_cv_header_arpa_inet_h=$ac_header_preproc
20101 fi
20102 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20103 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20104
20105 fi
20106 if test $ac_cv_header_arpa_inet_h = yes; then
20107 :
20108 else
20109 ok_so_far=no
20110 fi
20111
20112
20113 fi
20114 if test $ok_so_far = yes; then
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_INET_SOCKETS 1
20118 _ACEOF
20119
20120 fi
20121
20122
20123 for ac_header in sys/ioctl.h
20124 do
20125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo "$as_me:$LINENO: checking for $ac_header" >&5
20128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 fi
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20134 else
20135 # Is the header compilable?
20136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h. */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 #include <$ac_header>
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_header_compiler=yes
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_header_compiler=no
20175 fi
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20178 echo "${ECHO_T}$ac_header_compiler" >&6
20179
20180 # Is the header present?
20181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 #include <$ac_header>
20190 _ACEOF
20191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } >/dev/null; then
20199 if test -s conftest.err; then
20200 ac_cpp_err=$ac_c_preproc_warn_flag
20201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20202 else
20203 ac_cpp_err=
20204 fi
20205 else
20206 ac_cpp_err=yes
20207 fi
20208 if test -z "$ac_cpp_err"; then
20209 ac_header_preproc=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 ac_header_preproc=no
20215 fi
20216 rm -f conftest.err conftest.$ac_ext
20217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20218 echo "${ECHO_T}$ac_header_preproc" >&6
20219
20220 # So? What about this header?
20221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20222 yes:no: )
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20227 ac_header_preproc=yes
20228 ;;
20229 no:yes:* )
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20242 (
20243 cat <<\_ASBOX
20244 ## ------------------------------------------ ##
20245 ## Report this to the AC_PACKAGE_NAME lists. ##
20246 ## ------------------------------------------ ##
20247 _ASBOX
20248 ) |
20249 sed "s/^/$as_me: WARNING: /" >&2
20250 ;;
20251 esac
20252 echo "$as_me:$LINENO: checking for $ac_header" >&5
20253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257 eval "$as_ac_Header=\$ac_header_preproc"
20258 fi
20259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20261
20262 fi
20263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20264 cat >>confdefs.h <<_ACEOF
20265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20266 _ACEOF
20267
20268 fi
20269
20270 done
20271
20272
20273 if test -f /usr/lpp/X11/bin/smt.exp; then
20274
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_AIX_SMT_EXP 1
20277 _ACEOF
20278
20279 fi
20280
20281 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20282 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20283 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20284 echo "$as_me:$LINENO: result: yes" >&5
20285 echo "${ECHO_T}yes" >&6
20286
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_DEV_PTMX 1
20289 _ACEOF
20290
20291 else
20292 echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6
20294 fi
20295
20296 echo "$as_me:$LINENO: checking for pid_t" >&5
20297 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20298 if test "${ac_cv_type_pid_t+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20308 int
20309 main ()
20310 {
20311 if ((pid_t *) 0)
20312 return 0;
20313 if (sizeof (pid_t))
20314 return 0;
20315 ;
20316 return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
20328 { ac_try='test -z "$ac_c_werror_flag"
20329 || test ! -s conftest.err'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_type_pid_t=yes
20342 else
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 ac_cv_type_pid_t=no
20347 fi
20348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20349 fi
20350 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20351 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20352 if test $ac_cv_type_pid_t = yes; then
20353 :
20354 else
20355
20356 cat >>confdefs.h <<_ACEOF
20357 #define pid_t int
20358 _ACEOF
20359
20360 fi
20361
20362
20363
20364 for ac_header in unistd.h vfork.h
20365 do
20366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20368 echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 fi
20373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20375 else
20376 # Is the header compilable?
20377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20379 cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h. */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385 $ac_includes_default
20386 #include <$ac_header>
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20390 (eval $ac_compile) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_header_compiler=yes
20411 else
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 ac_header_compiler=no
20416 fi
20417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20419 echo "${ECHO_T}$ac_header_compiler" >&6
20420
20421 # Is the header present?
20422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h. */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 #include <$ac_header>
20431 _ACEOF
20432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } >/dev/null; then
20440 if test -s conftest.err; then
20441 ac_cpp_err=$ac_c_preproc_warn_flag
20442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20443 else
20444 ac_cpp_err=
20445 fi
20446 else
20447 ac_cpp_err=yes
20448 fi
20449 if test -z "$ac_cpp_err"; then
20450 ac_header_preproc=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_header_preproc=no
20456 fi
20457 rm -f conftest.err conftest.$ac_ext
20458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459 echo "${ECHO_T}$ac_header_preproc" >&6
20460
20461 # So? What about this header?
20462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20463 yes:no: )
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20468 ac_header_preproc=yes
20469 ;;
20470 no:yes:* )
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20483 (
20484 cat <<\_ASBOX
20485 ## ------------------------------------------ ##
20486 ## Report this to the AC_PACKAGE_NAME lists. ##
20487 ## ------------------------------------------ ##
20488 _ASBOX
20489 ) |
20490 sed "s/^/$as_me: WARNING: /" >&2
20491 ;;
20492 esac
20493 echo "$as_me:$LINENO: checking for $ac_header" >&5
20494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498 eval "$as_ac_Header=\$ac_header_preproc"
20499 fi
20500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20502
20503 fi
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20507 _ACEOF
20508
20509 fi
20510
20511 done
20512
20513
20514
20515 for ac_func in fork vfork
20516 do
20517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20520 if eval "test \"\${$as_ac_var+set}\" = set"; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define $ac_func innocuous_$ac_func
20532
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char $ac_func (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20537
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20543
20544 #undef $ac_func
20545
20546 /* Override any gcc2 internal prototype to avoid an error. */
20547 #ifdef __cplusplus
20548 extern "C"
20549 {
20550 #endif
20551 /* We use char because int might match the return type of a gcc2
20552 builtin and then its argument prototype would still apply. */
20553 char $ac_func ();
20554 /* The GNU C library defines this for functions which it implements
20555 to always fail with ENOSYS. Some functions are actually named
20556 something starting with __ and the normal name is an alias. */
20557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20558 choke me
20559 #else
20560 char (*f) () = $ac_func;
20561 #endif
20562 #ifdef __cplusplus
20563 }
20564 #endif
20565
20566 int
20567 main ()
20568 {
20569 return f != $ac_func;
20570 ;
20571 return 0;
20572 }
20573 _ACEOF
20574 rm -f conftest.$ac_objext conftest$ac_exeext
20575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20576 (eval $ac_link) 2>conftest.er1
20577 ac_status=$?
20578 grep -v '^ *+' conftest.er1 >conftest.err
20579 rm -f conftest.er1
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } &&
20583 { ac_try='test -z "$ac_c_werror_flag"
20584 || test ! -s conftest.err'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; } &&
20590 { ac_try='test -s conftest$ac_exeext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 eval "$as_ac_var=yes"
20597 else
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 eval "$as_ac_var=no"
20602 fi
20603 rm -f conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605 fi
20606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20608 if test `eval echo '${'$as_ac_var'}'` = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20611 _ACEOF
20612
20613 fi
20614 done
20615
20616 if test "x$ac_cv_func_fork" = xyes; then
20617 echo "$as_me:$LINENO: checking for working fork" >&5
20618 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20619 if test "${ac_cv_func_fork_works+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622 if test "$cross_compiling" = yes; then
20623 ac_cv_func_fork_works=cross
20624 else
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* By Ruediger Kuhlmann. */
20627 #include <sys/types.h>
20628 #if HAVE_UNISTD_H
20629 # include <unistd.h>
20630 #endif
20631 /* Some systems only have a dummy stub for fork() */
20632 int main ()
20633 {
20634 if (fork() < 0)
20635 exit (1);
20636 exit (0);
20637 }
20638 _ACEOF
20639 rm -f conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_cv_func_fork_works=yes
20651 else
20652 echo "$as_me: program exited with status $ac_status" >&5
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20655
20656 ( exit $ac_status )
20657 ac_cv_func_fork_works=no
20658 fi
20659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20660 fi
20661 fi
20662 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20663 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20664
20665 else
20666 ac_cv_func_fork_works=$ac_cv_func_fork
20667 fi
20668 if test "x$ac_cv_func_fork_works" = xcross; then
20669 case $host in
20670 *-*-amigaos* | *-*-msdosdjgpp*)
20671 # Override, as these systems have only a dummy fork() stub
20672 ac_cv_func_fork_works=no
20673 ;;
20674 *)
20675 ac_cv_func_fork_works=yes
20676 ;;
20677 esac
20678 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20679 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20680 fi
20681 ac_cv_func_vfork_works=$ac_cv_func_vfork
20682 if test "x$ac_cv_func_vfork" = xyes; then
20683 echo "$as_me:$LINENO: checking for working vfork" >&5
20684 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20685 if test "${ac_cv_func_vfork_works+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688 if test "$cross_compiling" = yes; then
20689 ac_cv_func_vfork_works=cross
20690 else
20691 cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h. */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 /* Thanks to Paul Eggert for this test. */
20698 #include <stdio.h>
20699 #include <stdlib.h>
20700 #include <sys/types.h>
20701 #include <sys/stat.h>
20702 #include <sys/wait.h>
20703 #if HAVE_UNISTD_H
20704 # include <unistd.h>
20705 #endif
20706 #if HAVE_VFORK_H
20707 # include <vfork.h>
20708 #endif
20709 /* On some sparc systems, changes by the child to local and incoming
20710 argument registers are propagated back to the parent. The compiler
20711 is told about this with #include <vfork.h>, but some compilers
20712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20713 static variable whose address is put into a register that is
20714 clobbered by the vfork. */
20715 static void
20716 #ifdef __cplusplus
20717 sparc_address_test (int arg)
20718 # else
20719 sparc_address_test (arg) int arg;
20720 #endif
20721 {
20722 static pid_t child;
20723 if (!child) {
20724 child = vfork ();
20725 if (child < 0) {
20726 perror ("vfork");
20727 _exit(2);
20728 }
20729 if (!child) {
20730 arg = getpid();
20731 write(-1, "", 0);
20732 _exit (arg);
20733 }
20734 }
20735 }
20736
20737 int
20738 main ()
20739 {
20740 pid_t parent = getpid ();
20741 pid_t child;
20742
20743 sparc_address_test (0);
20744
20745 child = vfork ();
20746
20747 if (child == 0) {
20748 /* Here is another test for sparc vfork register problems. This
20749 test uses lots of local variables, at least as many local
20750 variables as main has allocated so far including compiler
20751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20753 reuse the register of parent for one of the local variables,
20754 since it will think that parent can't possibly be used any more
20755 in this routine. Assigning to the local variable will thus
20756 munge parent in the parent process. */
20757 pid_t
20758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20760 /* Convince the compiler that p..p7 are live; otherwise, it might
20761 use the same hardware register for all 8 local variables. */
20762 if (p != p1 || p != p2 || p != p3 || p != p4
20763 || p != p5 || p != p6 || p != p7)
20764 _exit(1);
20765
20766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20767 from child file descriptors. If the child closes a descriptor
20768 before it execs or exits, this munges the parent's descriptor
20769 as well. Test for this by closing stdout in the child. */
20770 _exit(close(fileno(stdout)) != 0);
20771 } else {
20772 int status;
20773 struct stat st;
20774
20775 while (wait(&status) != child)
20776 ;
20777 exit(
20778 /* Was there some problem with vforking? */
20779 child < 0
20780
20781 /* Did the child fail? (This shouldn't happen.) */
20782 || status
20783
20784 /* Did the vfork/compiler bug occur? */
20785 || parent != getpid()
20786
20787 /* Did the file descriptor bug occur? */
20788 || fstat(fileno(stdout), &st) != 0
20789 );
20790 }
20791 }
20792 _ACEOF
20793 rm -f conftest$ac_exeext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795 (eval $ac_link) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_cv_func_vfork_works=yes
20805 else
20806 echo "$as_me: program exited with status $ac_status" >&5
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ( exit $ac_status )
20811 ac_cv_func_vfork_works=no
20812 fi
20813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20814 fi
20815 fi
20816 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20817 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20818
20819 fi;
20820 if test "x$ac_cv_func_fork_works" = xcross; then
20821 ac_cv_func_vfork_works=$ac_cv_func_vfork
20822 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20823 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20824 fi
20825
20826 if test "x$ac_cv_func_vfork_works" = xyes; then
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_WORKING_VFORK 1
20830 _ACEOF
20831
20832 else
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define vfork fork
20836 _ACEOF
20837
20838 fi
20839 if test "x$ac_cv_func_fork_works" = xyes; then
20840
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_WORKING_FORK 1
20843 _ACEOF
20844
20845 fi
20846
20847
20848 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20849 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20850 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h. */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <langinfo.h>
20860 int
20861 main ()
20862 {
20863 char* cs = nl_langinfo(CODESET);
20864 ;
20865 return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 emacs_cv_langinfo_codeset=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 emacs_cv_langinfo_codeset=no
20896 fi
20897 rm -f conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
20899
20900 fi
20901 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20902 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20903 if test $emacs_cv_langinfo_codeset = yes; then
20904
20905 cat >>confdefs.h <<\_ACEOF
20906 #define HAVE_LANGINFO_CODESET 1
20907 _ACEOF
20908
20909 fi
20910
20911 echo "$as_me:$LINENO: checking for size_t" >&5
20912 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20913 if test "${ac_cv_type_size_t+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916 cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h. */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922 $ac_includes_default
20923 int
20924 main ()
20925 {
20926 if ((size_t *) 0)
20927 return 0;
20928 if (sizeof (size_t))
20929 return 0;
20930 ;
20931 return 0;
20932 }
20933 _ACEOF
20934 rm -f conftest.$ac_objext
20935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20936 (eval $ac_compile) 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try='test -z "$ac_c_werror_flag"
20944 || test ! -s conftest.err'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; } &&
20950 { ac_try='test -s conftest.$ac_objext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_cv_type_size_t=yes
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961 ac_cv_type_size_t=no
20962 fi
20963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20964 fi
20965 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20966 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20967 if test $ac_cv_type_size_t = yes; then
20968
20969 cat >>confdefs.h <<_ACEOF
20970 #define HAVE_SIZE_T 1
20971 _ACEOF
20972
20973
20974 fi
20975
20976
20977 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20978 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20979 if test "${ac_cv_type_mbstate_t+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 # include <wchar.h>
20990 int
20991 main ()
20992 {
20993 mbstate_t x; return sizeof x;
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_c_werror_flag"
21008 || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_type_mbstate_t=yes
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_cv_type_mbstate_t=no
21026 fi
21027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21028 fi
21029 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21030 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21031 if test $ac_cv_type_mbstate_t = yes; then
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define HAVE_MBSTATE_T 1
21035 _ACEOF
21036
21037 else
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define mbstate_t int
21041 _ACEOF
21042
21043 fi
21044
21045 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21046 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21047 if test "${emacs_cv_c_restrict+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 void fred (int *restrict x);
21057 int
21058 main ()
21059 {
21060
21061 ;
21062 return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 emacs_cv_c_restrict=yes
21088 else
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 void fred (int *__restrict x);
21099 int
21100 main ()
21101 {
21102
21103 ;
21104 return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 emacs_cv_c_restrict=__restrict
21130 else
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 emacs_cv_c_restrict=no
21135 fi
21136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21137 fi
21138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 fi
21140 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21141 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21142 case "$emacs_cv_c_restrict" in
21143 yes) emacs_restrict=restrict;;
21144 no) emacs_restrict="";;
21145 *) emacs_restrict="$emacs_cv_c_restrict";;
21146 esac
21147 if test "$emacs_restrict" != __restrict; then
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define __restrict $emacs_restrict
21151 _ACEOF
21152
21153 fi
21154
21155 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21156 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21157 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 void fred (int x[__restrict]);
21167 int
21168 main ()
21169 {
21170
21171 ;
21172 return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>conftest.er1
21178 ac_status=$?
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_c_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 emacs_cv_c_restrict_arr=yes
21198 else
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202 emacs_cv_c_restrict_arr=no
21203 fi
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205 fi
21206 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21207 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21208 if test "$emacs_cv_c_restrict_arr" = yes; then
21209
21210 cat >>confdefs.h <<\_ACEOF
21211 #define __restrict_arr __restrict
21212 _ACEOF
21213
21214 fi
21215
21216
21217
21218 # Set up the CFLAGS for real compilation, so we can substitute it.
21219 CFLAGS="$REAL_CFLAGS"
21220 CPPFLAGS="$REAL_CPPFLAGS"
21221
21222 #### Find out which version of Emacs this is.
21223 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21224 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21225 if test x"${version}" = x; then
21226 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21227 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21228 { (exit 1); exit 1; }; }
21229 fi
21230
21231 ### Specify what sort of things we'll be editing into Makefile and config.h.
21232 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268 cat >>confdefs.h <<_ACEOF
21269 #define EMACS_CONFIGURATION "${canonical}"
21270 _ACEOF
21271
21272
21273 cat >>confdefs.h <<_ACEOF
21274 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21275 _ACEOF
21276
21277
21278 cat >>confdefs.h <<_ACEOF
21279 #define config_machfile "${machfile}"
21280 _ACEOF
21281
21282
21283 cat >>confdefs.h <<_ACEOF
21284 #define config_opsysfile "${opsysfile}"
21285 _ACEOF
21286
21287
21288 cat >>confdefs.h <<_ACEOF
21289 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21290 _ACEOF
21291
21292
21293 cat >>confdefs.h <<_ACEOF
21294 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21295 _ACEOF
21296
21297
21298 cat >>confdefs.h <<_ACEOF
21299 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21300 _ACEOF
21301
21302
21303 cat >>confdefs.h <<_ACEOF
21304 #define UNEXEC_SRC ${UNEXEC_SRC}
21305 _ACEOF
21306
21307
21308 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_X_WINDOWS 1
21312 _ACEOF
21313
21314 fi
21315 if test "${USE_X_TOOLKIT}" != "none" ; then
21316
21317 cat >>confdefs.h <<\_ACEOF
21318 #define USE_X_TOOLKIT 1
21319 _ACEOF
21320
21321 fi
21322 if test "${HAVE_X11}" = "yes" ; then
21323
21324 cat >>confdefs.h <<\_ACEOF
21325 #define HAVE_X11 1
21326 _ACEOF
21327
21328 fi
21329 if test "${HAVE_XFREE386}" = "yes" ; then
21330
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_XFREE386 1
21333 _ACEOF
21334
21335 fi
21336 if test "${HAVE_MENUS}" = "yes" ; then
21337
21338 cat >>confdefs.h <<\_ACEOF
21339 #define HAVE_MENUS 1
21340 _ACEOF
21341
21342 fi
21343 if test "${GNU_MALLOC}" = "yes" ; then
21344
21345 cat >>confdefs.h <<\_ACEOF
21346 #define GNU_MALLOC 1
21347 _ACEOF
21348
21349 fi
21350 if test "${REL_ALLOC}" = "yes" ; then
21351
21352 cat >>confdefs.h <<\_ACEOF
21353 #define REL_ALLOC 1
21354 _ACEOF
21355
21356 fi
21357
21358
21359
21360
21361
21362 #### Report on what we decided to do.
21363 #### Report GTK as a toolkit, even if it doesn't use Xt.
21364 #### It makes printing result more understandable as using GTK sets
21365 #### toolkit_scroll_bars to yes by default.
21366 if test "${HAVE_GTK}" = "yes"; then
21367 USE_X_TOOLKIT=GTK
21368 fi
21369
21370 echo "
21371 Configured for \`${canonical}'.
21372
21373 Where should the build process find the source code? ${srcdir}
21374 What operating system and machine description files should Emacs use?
21375 \`${opsysfile}' and \`${machfile}'
21376 What compiler should emacs be built with? ${CC} ${CFLAGS}
21377 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21378 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21379 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21380 What window system should Emacs use? ${window_system}
21381 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21382
21383 if test -n "${x_includes}"; then
21384 echo " Where do we find X Windows header files? ${x_includes}"
21385 else
21386 echo " Where do we find X Windows header files? Standard dirs"
21387 fi
21388 if test -n "${x_libraries}"; then
21389 echo " Where do we find X Windows libraries? ${x_libraries}"
21390 else
21391 echo " Where do we find X Windows libraries? Standard dirs"
21392 fi
21393
21394 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21395 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21396 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21397 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21398 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21399 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21400 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21401 echo
21402
21403 # Remove any trailing slashes in these variables.
21404 test "${prefix}" != NONE &&
21405 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21406 test "${exec_prefix}" != NONE &&
21407 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21408
21409 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21410 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21411 ## from Makefile.c can correctly provide the arg `-traditional' to the
21412 ## C preprocessor.
21413
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 yes..yes
21421 _ACEOF
21422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21423 $EGREP "yes..yes" >/dev/null 2>&1; then
21424 CPP_NEED_TRADITIONAL=no
21425 else
21426 CPP_NEED_TRADITIONAL=yes
21427 fi
21428 rm -f conftest*
21429
21430
21431 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"
21432 ac_config_commands="$ac_config_commands default"
21433 cat >confcache <<\_ACEOF
21434 # This file is a shell script that caches the results of configure
21435 # tests run on this system so they can be shared between configure
21436 # scripts and configure runs, see configure's option --config-cache.
21437 # It is not useful on other systems. If it contains results you don't
21438 # want to keep, you may remove or edit it.
21439 #
21440 # config.status only pays attention to the cache file if you give it
21441 # the --recheck option to rerun configure.
21442 #
21443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21445 # following values.
21446
21447 _ACEOF
21448
21449 # The following way of writing the cache mishandles newlines in values,
21450 # but we know of no workaround that is simple, portable, and efficient.
21451 # So, don't put newlines in cache variables' values.
21452 # Ultrix sh set writes to stderr and can't be redirected directly,
21453 # and sets the high bit in the cache file unless we assign to the vars.
21454 {
21455 (set) 2>&1 |
21456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21457 *ac_space=\ *)
21458 # `set' does not quote correctly, so add quotes (double-quote
21459 # substitution turns \\\\ into \\, and sed turns \\ into \).
21460 sed -n \
21461 "s/'/'\\\\''/g;
21462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21463 ;;
21464 *)
21465 # `set' quotes correctly as required by POSIX, so do not add quotes.
21466 sed -n \
21467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21468 ;;
21469 esac;
21470 } |
21471 sed '
21472 t clear
21473 : clear
21474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21475 t end
21476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21477 : end' >>confcache
21478 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21479 if test -w $cache_file; then
21480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21481 cat confcache >$cache_file
21482 else
21483 echo "not updating unwritable cache $cache_file"
21484 fi
21485 fi
21486 rm -f confcache
21487
21488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21489 # Let make expand exec_prefix.
21490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21491
21492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21494 # trailing colons and then remove the whole line if VPATH becomes empty
21495 # (actually we leave an empty line to preserve line numbers).
21496 if test "x$srcdir" = x.; then
21497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21498 s/:*\$(srcdir):*/:/;
21499 s/:*\${srcdir}:*/:/;
21500 s/:*@srcdir@:*/:/;
21501 s/^\([^=]*=[ ]*\):*/\1/;
21502 s/:*$//;
21503 s/^[^=]*=[ ]*$//;
21504 }'
21505 fi
21506
21507 DEFS=-DHAVE_CONFIG_H
21508
21509 ac_libobjs=
21510 ac_ltlibobjs=
21511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21512 # 1. Remove the extension, and $U if already installed.
21513 ac_i=`echo "$ac_i" |
21514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21515 # 2. Add them.
21516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21518 done
21519 LIBOBJS=$ac_libobjs
21520
21521 LTLIBOBJS=$ac_ltlibobjs
21522
21523
21524
21525 : ${CONFIG_STATUS=./config.status}
21526 ac_clean_files_save=$ac_clean_files
21527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21530 cat >$CONFIG_STATUS <<_ACEOF
21531 #! $SHELL
21532 # Generated by $as_me.
21533 # Run this file to recreate the current configuration.
21534 # Compiler output produced by configure, useful for debugging
21535 # configure, is in config.log if it exists.
21536
21537 debug=false
21538 ac_cs_recheck=false
21539 ac_cs_silent=false
21540 SHELL=\${CONFIG_SHELL-$SHELL}
21541 _ACEOF
21542
21543 cat >>$CONFIG_STATUS <<\_ACEOF
21544 ## --------------------- ##
21545 ## M4sh Initialization. ##
21546 ## --------------------- ##
21547
21548 # Be Bourne compatible
21549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21550 emulate sh
21551 NULLCMD=:
21552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21553 # is contrary to our usage. Disable this feature.
21554 alias -g '${1+"$@"}'='"$@"'
21555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21556 set -o posix
21557 fi
21558 DUALCASE=1; export DUALCASE # for MKS sh
21559
21560 # Support unset when possible.
21561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21562 as_unset=unset
21563 else
21564 as_unset=false
21565 fi
21566
21567
21568 # Work around bugs in pre-3.0 UWIN ksh.
21569 $as_unset ENV MAIL MAILPATH
21570 PS1='$ '
21571 PS2='> '
21572 PS4='+ '
21573
21574 # NLS nuisances.
21575 for as_var in \
21576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21578 LC_TELEPHONE LC_TIME
21579 do
21580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21581 eval $as_var=C; export $as_var
21582 else
21583 $as_unset $as_var
21584 fi
21585 done
21586
21587 # Required to use basename.
21588 if expr a : '\(a\)' >/dev/null 2>&1; then
21589 as_expr=expr
21590 else
21591 as_expr=false
21592 fi
21593
21594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21595 as_basename=basename
21596 else
21597 as_basename=false
21598 fi
21599
21600
21601 # Name of the executable.
21602 as_me=`$as_basename "$0" ||
21603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21604 X"$0" : 'X\(//\)$' \| \
21605 X"$0" : 'X\(/\)$' \| \
21606 . : '\(.\)' 2>/dev/null ||
21607 echo X/"$0" |
21608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21609 /^X\/\(\/\/\)$/{ s//\1/; q; }
21610 /^X\/\(\/\).*/{ s//\1/; q; }
21611 s/.*/./; q'`
21612
21613
21614 # PATH needs CR, and LINENO needs CR and PATH.
21615 # Avoid depending upon Character Ranges.
21616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21619 as_cr_digits='0123456789'
21620 as_cr_alnum=$as_cr_Letters$as_cr_digits
21621
21622 # The user is always right.
21623 if test "${PATH_SEPARATOR+set}" != set; then
21624 echo "#! /bin/sh" >conf$$.sh
21625 echo "exit 0" >>conf$$.sh
21626 chmod +x conf$$.sh
21627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21628 PATH_SEPARATOR=';'
21629 else
21630 PATH_SEPARATOR=:
21631 fi
21632 rm -f conf$$.sh
21633 fi
21634
21635
21636 as_lineno_1=$LINENO
21637 as_lineno_2=$LINENO
21638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21639 test "x$as_lineno_1" != "x$as_lineno_2" &&
21640 test "x$as_lineno_3" = "x$as_lineno_2" || {
21641 # Find who we are. Look in the path if we contain no path at all
21642 # relative or not.
21643 case $0 in
21644 *[\\/]* ) as_myself=$0 ;;
21645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21646 for as_dir in $PATH
21647 do
21648 IFS=$as_save_IFS
21649 test -z "$as_dir" && as_dir=.
21650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21651 done
21652
21653 ;;
21654 esac
21655 # We did not find ourselves, most probably we were run as `sh COMMAND'
21656 # in which case we are not to be found in the path.
21657 if test "x$as_myself" = x; then
21658 as_myself=$0
21659 fi
21660 if test ! -f "$as_myself"; then
21661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21663 { (exit 1); exit 1; }; }
21664 fi
21665 case $CONFIG_SHELL in
21666 '')
21667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21669 do
21670 IFS=$as_save_IFS
21671 test -z "$as_dir" && as_dir=.
21672 for as_base in sh bash ksh sh5; do
21673 case $as_dir in
21674 /*)
21675 if ("$as_dir/$as_base" -c '
21676 as_lineno_1=$LINENO
21677 as_lineno_2=$LINENO
21678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21679 test "x$as_lineno_1" != "x$as_lineno_2" &&
21680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21683 CONFIG_SHELL=$as_dir/$as_base
21684 export CONFIG_SHELL
21685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21686 fi;;
21687 esac
21688 done
21689 done
21690 ;;
21691 esac
21692
21693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21694 # uniformly replaced by the line number. The first 'sed' inserts a
21695 # line-number line before each line; the second 'sed' does the real
21696 # work. The second script uses 'N' to pair each line-number line
21697 # with the numbered line, and appends trailing '-' during
21698 # substitution so that $LINENO is not a special case at line end.
21699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21701 sed '=' <$as_myself |
21702 sed '
21703 N
21704 s,$,-,
21705 : loop
21706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21707 t loop
21708 s,-$,,
21709 s,^['$as_cr_digits']*\n,,
21710 ' >$as_me.lineno &&
21711 chmod +x $as_me.lineno ||
21712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21714 { (exit 1); exit 1; }; }
21715
21716 # Don't try to exec as it changes $[0], causing all sort of problems
21717 # (the dirname of $[0] is not the place where we might find the
21718 # original and so on. Autoconf is especially sensible to this).
21719 . ./$as_me.lineno
21720 # Exit status is that of the last command.
21721 exit
21722 }
21723
21724
21725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21726 *c*,-n*) ECHO_N= ECHO_C='
21727 ' ECHO_T=' ' ;;
21728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21730 esac
21731
21732 if expr a : '\(a\)' >/dev/null 2>&1; then
21733 as_expr=expr
21734 else
21735 as_expr=false
21736 fi
21737
21738 rm -f conf$$ conf$$.exe conf$$.file
21739 echo >conf$$.file
21740 if ln -s conf$$.file conf$$ 2>/dev/null; then
21741 # We could just check for DJGPP; but this test a) works b) is more generic
21742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21743 if test -f conf$$.exe; then
21744 # Don't use ln at all; we don't have any links
21745 as_ln_s='cp -p'
21746 else
21747 as_ln_s='ln -s'
21748 fi
21749 elif ln conf$$.file conf$$ 2>/dev/null; then
21750 as_ln_s=ln
21751 else
21752 as_ln_s='cp -p'
21753 fi
21754 rm -f conf$$ conf$$.exe conf$$.file
21755
21756 if mkdir -p . 2>/dev/null; then
21757 as_mkdir_p=:
21758 else
21759 test -d ./-p && rmdir ./-p
21760 as_mkdir_p=false
21761 fi
21762
21763 as_executable_p="test -f"
21764
21765 # Sed expression to map a string onto a valid CPP name.
21766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21767
21768 # Sed expression to map a string onto a valid variable name.
21769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21770
21771
21772 # IFS
21773 # We need space, tab and new line, in precisely that order.
21774 as_nl='
21775 '
21776 IFS=" $as_nl"
21777
21778 # CDPATH.
21779 $as_unset CDPATH
21780
21781 exec 6>&1
21782
21783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21784 # report actual input values of CONFIG_FILES etc. instead of their
21785 # values after options handling. Logging --version etc. is OK.
21786 exec 5>>config.log
21787 {
21788 echo
21789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21790 ## Running $as_me. ##
21791 _ASBOX
21792 } >&5
21793 cat >&5 <<_CSEOF
21794
21795 This file was extended by $as_me, which was
21796 generated by GNU Autoconf 2.59. Invocation command line was
21797
21798 CONFIG_FILES = $CONFIG_FILES
21799 CONFIG_HEADERS = $CONFIG_HEADERS
21800 CONFIG_LINKS = $CONFIG_LINKS
21801 CONFIG_COMMANDS = $CONFIG_COMMANDS
21802 $ $0 $@
21803
21804 _CSEOF
21805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21806 echo >&5
21807 _ACEOF
21808
21809 # Files that config.status was made for.
21810 if test -n "$ac_config_files"; then
21811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21812 fi
21813
21814 if test -n "$ac_config_headers"; then
21815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21816 fi
21817
21818 if test -n "$ac_config_links"; then
21819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21820 fi
21821
21822 if test -n "$ac_config_commands"; then
21823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21824 fi
21825
21826 cat >>$CONFIG_STATUS <<\_ACEOF
21827
21828 ac_cs_usage="\
21829 \`$as_me' instantiates files from templates according to the
21830 current configuration.
21831
21832 Usage: $0 [OPTIONS] [FILE]...
21833
21834 -h, --help print this help, then exit
21835 -V, --version print version number, then exit
21836 -q, --quiet do not print progress messages
21837 -d, --debug don't remove temporary files
21838 --recheck update $as_me by reconfiguring in the same conditions
21839 --file=FILE[:TEMPLATE]
21840 instantiate the configuration file FILE
21841 --header=FILE[:TEMPLATE]
21842 instantiate the configuration header FILE
21843
21844 Configuration files:
21845 $config_files
21846
21847 Configuration headers:
21848 $config_headers
21849
21850 Configuration commands:
21851 $config_commands
21852
21853 Report bugs to <bug-autoconf@gnu.org>."
21854 _ACEOF
21855
21856 cat >>$CONFIG_STATUS <<_ACEOF
21857 ac_cs_version="\\
21858 config.status
21859 configured by $0, generated by GNU Autoconf 2.59,
21860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21861
21862 Copyright (C) 2003 Free Software Foundation, Inc.
21863 This config.status script is free software; the Free Software Foundation
21864 gives unlimited permission to copy, distribute and modify it."
21865 srcdir=$srcdir
21866 INSTALL="$INSTALL"
21867 _ACEOF
21868
21869 cat >>$CONFIG_STATUS <<\_ACEOF
21870 # If no file are specified by the user, then we need to provide default
21871 # value. By we need to know if files were specified by the user.
21872 ac_need_defaults=:
21873 while test $# != 0
21874 do
21875 case $1 in
21876 --*=*)
21877 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21878 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21879 ac_shift=:
21880 ;;
21881 -*)
21882 ac_option=$1
21883 ac_optarg=$2
21884 ac_shift=shift
21885 ;;
21886 *) # This is not an option, so the user has probably given explicit
21887 # arguments.
21888 ac_option=$1
21889 ac_need_defaults=false;;
21890 esac
21891
21892 case $ac_option in
21893 # Handling of the options.
21894 _ACEOF
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21897 ac_cs_recheck=: ;;
21898 --version | --vers* | -V )
21899 echo "$ac_cs_version"; exit 0 ;;
21900 --he | --h)
21901 # Conflict between --help and --header
21902 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21903 Try \`$0 --help' for more information." >&5
21904 echo "$as_me: error: ambiguous option: $1
21905 Try \`$0 --help' for more information." >&2;}
21906 { (exit 1); exit 1; }; };;
21907 --help | --hel | -h )
21908 echo "$ac_cs_usage"; exit 0 ;;
21909 --debug | --d* | -d )
21910 debug=: ;;
21911 --file | --fil | --fi | --f )
21912 $ac_shift
21913 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21914 ac_need_defaults=false;;
21915 --header | --heade | --head | --hea )
21916 $ac_shift
21917 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21918 ac_need_defaults=false;;
21919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21921 ac_cs_silent=: ;;
21922
21923 # This is an error.
21924 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21925 Try \`$0 --help' for more information." >&5
21926 echo "$as_me: error: unrecognized option: $1
21927 Try \`$0 --help' for more information." >&2;}
21928 { (exit 1); exit 1; }; } ;;
21929
21930 *) ac_config_targets="$ac_config_targets $1" ;;
21931
21932 esac
21933 shift
21934 done
21935
21936 ac_configure_extra_args=
21937
21938 if $ac_cs_silent; then
21939 exec 6>/dev/null
21940 ac_configure_extra_args="$ac_configure_extra_args --silent"
21941 fi
21942
21943 _ACEOF
21944 cat >>$CONFIG_STATUS <<_ACEOF
21945 if \$ac_cs_recheck; then
21946 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21947 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21948 fi
21949
21950 _ACEOF
21951
21952 cat >>$CONFIG_STATUS <<_ACEOF
21953 #
21954 # INIT-COMMANDS section.
21955 #
21956
21957 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21958
21959 _ACEOF
21960
21961
21962
21963 cat >>$CONFIG_STATUS <<\_ACEOF
21964 for ac_config_target in $ac_config_targets
21965 do
21966 case "$ac_config_target" in
21967 # Handling of arguments.
21968 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21969 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21970 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21971 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21972 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21973 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21974 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21975 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21976 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21977 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21978 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21979 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21980 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21981 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21982 { (exit 1); exit 1; }; };;
21983 esac
21984 done
21985
21986 # If the user did not use the arguments to specify the items to instantiate,
21987 # then the envvar interface is used. Set only those that are not.
21988 # We use the long form for the default assignment because of an extremely
21989 # bizarre bug on SunOS 4.1.3.
21990 if $ac_need_defaults; then
21991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21994 fi
21995
21996 # Have a temporary directory for convenience. Make it in the build tree
21997 # simply because there is no reason to put it here, and in addition,
21998 # creating and moving files from /tmp can sometimes cause problems.
21999 # Create a temporary directory, and hook for its removal unless debugging.
22000 $debug ||
22001 {
22002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22003 trap '{ (exit 1); exit 1; }' 1 2 13 15
22004 }
22005
22006 # Create a (secure) tmp directory for tmp files.
22007
22008 {
22009 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22010 test -n "$tmp" && test -d "$tmp"
22011 } ||
22012 {
22013 tmp=./confstat$$-$RANDOM
22014 (umask 077 && mkdir $tmp)
22015 } ||
22016 {
22017 echo "$me: cannot create a temporary directory in ." >&2
22018 { (exit 1); exit 1; }
22019 }
22020
22021 _ACEOF
22022
22023 cat >>$CONFIG_STATUS <<_ACEOF
22024
22025 #
22026 # CONFIG_FILES section.
22027 #
22028
22029 # No need to generate the scripts if there are no CONFIG_FILES.
22030 # This happens for instance when ./config.status config.h
22031 if test -n "\$CONFIG_FILES"; then
22032 # Protect against being on the right side of a sed subst in config.status.
22033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22035 s,@SHELL@,$SHELL,;t t
22036 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22037 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22038 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22039 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22040 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22041 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22042 s,@exec_prefix@,$exec_prefix,;t t
22043 s,@prefix@,$prefix,;t t
22044 s,@program_transform_name@,$program_transform_name,;t t
22045 s,@bindir@,$bindir,;t t
22046 s,@sbindir@,$sbindir,;t t
22047 s,@libexecdir@,$libexecdir,;t t
22048 s,@datadir@,$datadir,;t t
22049 s,@sysconfdir@,$sysconfdir,;t t
22050 s,@sharedstatedir@,$sharedstatedir,;t t
22051 s,@localstatedir@,$localstatedir,;t t
22052 s,@libdir@,$libdir,;t t
22053 s,@includedir@,$includedir,;t t
22054 s,@oldincludedir@,$oldincludedir,;t t
22055 s,@infodir@,$infodir,;t t
22056 s,@mandir@,$mandir,;t t
22057 s,@build_alias@,$build_alias,;t t
22058 s,@host_alias@,$host_alias,;t t
22059 s,@target_alias@,$target_alias,;t t
22060 s,@DEFS@,$DEFS,;t t
22061 s,@ECHO_C@,$ECHO_C,;t t
22062 s,@ECHO_N@,$ECHO_N,;t t
22063 s,@ECHO_T@,$ECHO_T,;t t
22064 s,@LIBS@,$LIBS,;t t
22065 s,@MAINT@,$MAINT,;t t
22066 s,@build@,$build,;t t
22067 s,@build_cpu@,$build_cpu,;t t
22068 s,@build_vendor@,$build_vendor,;t t
22069 s,@build_os@,$build_os,;t t
22070 s,@host@,$host,;t t
22071 s,@host_cpu@,$host_cpu,;t t
22072 s,@host_vendor@,$host_vendor,;t t
22073 s,@host_os@,$host_os,;t t
22074 s,@CC@,$CC,;t t
22075 s,@CFLAGS@,$CFLAGS,;t t
22076 s,@LDFLAGS@,$LDFLAGS,;t t
22077 s,@CPPFLAGS@,$CPPFLAGS,;t t
22078 s,@ac_ct_CC@,$ac_ct_CC,;t t
22079 s,@EXEEXT@,$EXEEXT,;t t
22080 s,@OBJEXT@,$OBJEXT,;t t
22081 s,@LN_S@,$LN_S,;t t
22082 s,@CPP@,$CPP,;t t
22083 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22084 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22085 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22086 s,@RANLIB@,$RANLIB,;t t
22087 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22088 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22089 s,@EGREP@,$EGREP,;t t
22090 s,@SETARCH@,$SETARCH,;t t
22091 s,@LIBSOUND@,$LIBSOUND,;t t
22092 s,@SET_MAKE@,$SET_MAKE,;t t
22093 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22094 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22095 s,@GTK_LIBS@,$GTK_LIBS,;t t
22096 s,@ALLOCA@,$ALLOCA,;t t
22097 s,@liblockfile@,$liblockfile,;t t
22098 s,@LIBOBJS@,$LIBOBJS,;t t
22099 s,@NEED_SETGID@,$NEED_SETGID,;t t
22100 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22101 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22102 s,@version@,$version,;t t
22103 s,@configuration@,$configuration,;t t
22104 s,@canonical@,$canonical,;t t
22105 s,@srcdir@,$srcdir,;t t
22106 s,@lispdir@,$lispdir,;t t
22107 s,@locallisppath@,$locallisppath,;t t
22108 s,@lisppath@,$lisppath,;t t
22109 s,@x_default_search_path@,$x_default_search_path,;t t
22110 s,@etcdir@,$etcdir,;t t
22111 s,@archlibdir@,$archlibdir,;t t
22112 s,@docdir@,$docdir,;t t
22113 s,@bitmapdir@,$bitmapdir,;t t
22114 s,@gamedir@,$gamedir,;t t
22115 s,@gameuser@,$gameuser,;t t
22116 s,@c_switch_system@,$c_switch_system,;t t
22117 s,@c_switch_machine@,$c_switch_machine,;t t
22118 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22119 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22120 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22121 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22122 s,@machfile@,$machfile,;t t
22123 s,@opsysfile@,$opsysfile,;t t
22124 s,@carbon_appdir@,$carbon_appdir,;t t
22125 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22126 CEOF
22127
22128 _ACEOF
22129
22130 cat >>$CONFIG_STATUS <<\_ACEOF
22131 # Split the substitutions into bite-sized pieces for seds with
22132 # small command number limits, like on Digital OSF/1 and HP-UX.
22133 ac_max_sed_lines=48
22134 ac_sed_frag=1 # Number of current file.
22135 ac_beg=1 # First line for current file.
22136 ac_end=$ac_max_sed_lines # Line after last line for current file.
22137 ac_more_lines=:
22138 ac_sed_cmds=
22139 while $ac_more_lines; do
22140 if test $ac_beg -gt 1; then
22141 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22142 else
22143 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22144 fi
22145 if test ! -s $tmp/subs.frag; then
22146 ac_more_lines=false
22147 else
22148 # The purpose of the label and of the branching condition is to
22149 # speed up the sed processing (if there are no `@' at all, there
22150 # is no need to browse any of the substitutions).
22151 # These are the two extra sed commands mentioned above.
22152 (echo ':t
22153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22154 if test -z "$ac_sed_cmds"; then
22155 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22156 else
22157 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22158 fi
22159 ac_sed_frag=`expr $ac_sed_frag + 1`
22160 ac_beg=$ac_end
22161 ac_end=`expr $ac_end + $ac_max_sed_lines`
22162 fi
22163 done
22164 if test -z "$ac_sed_cmds"; then
22165 ac_sed_cmds=cat
22166 fi
22167 fi # test -n "$CONFIG_FILES"
22168
22169 _ACEOF
22170 cat >>$CONFIG_STATUS <<\_ACEOF
22171 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22173 case $ac_file in
22174 - | *:- | *:-:* ) # input from stdin
22175 cat >$tmp/stdin
22176 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22178 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22180 * ) ac_file_in=$ac_file.in ;;
22181 esac
22182
22183 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22184 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22186 X"$ac_file" : 'X\(//\)[^/]' \| \
22187 X"$ac_file" : 'X\(//\)$' \| \
22188 X"$ac_file" : 'X\(/\)' \| \
22189 . : '\(.\)' 2>/dev/null ||
22190 echo X"$ac_file" |
22191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22193 /^X\(\/\/\)$/{ s//\1/; q; }
22194 /^X\(\/\).*/{ s//\1/; q; }
22195 s/.*/./; q'`
22196 { if $as_mkdir_p; then
22197 mkdir -p "$ac_dir"
22198 else
22199 as_dir="$ac_dir"
22200 as_dirs=
22201 while test ! -d "$as_dir"; do
22202 as_dirs="$as_dir $as_dirs"
22203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22205 X"$as_dir" : 'X\(//\)[^/]' \| \
22206 X"$as_dir" : 'X\(//\)$' \| \
22207 X"$as_dir" : 'X\(/\)' \| \
22208 . : '\(.\)' 2>/dev/null ||
22209 echo X"$as_dir" |
22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22212 /^X\(\/\/\)$/{ s//\1/; q; }
22213 /^X\(\/\).*/{ s//\1/; q; }
22214 s/.*/./; q'`
22215 done
22216 test ! -n "$as_dirs" || mkdir $as_dirs
22217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22219 { (exit 1); exit 1; }; }; }
22220
22221 ac_builddir=.
22222
22223 if test "$ac_dir" != .; then
22224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22225 # A "../" for each directory in $ac_dir_suffix.
22226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22227 else
22228 ac_dir_suffix= ac_top_builddir=
22229 fi
22230
22231 case $srcdir in
22232 .) # No --srcdir option. We are building in place.
22233 ac_srcdir=.
22234 if test -z "$ac_top_builddir"; then
22235 ac_top_srcdir=.
22236 else
22237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22238 fi ;;
22239 [\\/]* | ?:[\\/]* ) # Absolute path.
22240 ac_srcdir=$srcdir$ac_dir_suffix;
22241 ac_top_srcdir=$srcdir ;;
22242 *) # Relative path.
22243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22245 esac
22246
22247 # Do not use `cd foo && pwd` to compute absolute paths, because
22248 # the directories may not exist.
22249 case `pwd` in
22250 .) ac_abs_builddir="$ac_dir";;
22251 *)
22252 case "$ac_dir" in
22253 .) ac_abs_builddir=`pwd`;;
22254 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22255 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22256 esac;;
22257 esac
22258 case $ac_abs_builddir in
22259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22260 *)
22261 case ${ac_top_builddir}. in
22262 .) ac_abs_top_builddir=$ac_abs_builddir;;
22263 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22264 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22265 esac;;
22266 esac
22267 case $ac_abs_builddir in
22268 .) ac_abs_srcdir=$ac_srcdir;;
22269 *)
22270 case $ac_srcdir in
22271 .) ac_abs_srcdir=$ac_abs_builddir;;
22272 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22273 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22274 esac;;
22275 esac
22276 case $ac_abs_builddir in
22277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22278 *)
22279 case $ac_top_srcdir in
22280 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22281 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22282 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22283 esac;;
22284 esac
22285
22286
22287 case $INSTALL in
22288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22289 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22290 esac
22291
22292 if test x"$ac_file" != x-; then
22293 { echo "$as_me:$LINENO: creating $ac_file" >&5
22294 echo "$as_me: creating $ac_file" >&6;}
22295 rm -f "$ac_file"
22296 fi
22297 # Let's still pretend it is `configure' which instantiates (i.e., don't
22298 # use $as_me), people would be surprised to read:
22299 # /* config.h. Generated by config.status. */
22300 if test x"$ac_file" = x-; then
22301 configure_input=
22302 else
22303 configure_input="$ac_file. "
22304 fi
22305 configure_input=$configure_input"Generated from `echo $ac_file_in |
22306 sed 's,.*/,,'` by configure."
22307
22308 # First look for the input files in the build tree, otherwise in the
22309 # src tree.
22310 ac_file_inputs=`IFS=:
22311 for f in $ac_file_in; do
22312 case $f in
22313 -) echo $tmp/stdin ;;
22314 [\\/$]*)
22315 # Absolute (can't be DOS-style, as IFS=:)
22316 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22317 echo "$as_me: error: cannot find input file: $f" >&2;}
22318 { (exit 1); exit 1; }; }
22319 echo "$f";;
22320 *) # Relative
22321 if test -f "$f"; then
22322 # Build tree
22323 echo "$f"
22324 elif test -f "$srcdir/$f"; then
22325 # Source tree
22326 echo "$srcdir/$f"
22327 else
22328 # /dev/null tree
22329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22330 echo "$as_me: error: cannot find input file: $f" >&2;}
22331 { (exit 1); exit 1; }; }
22332 fi;;
22333 esac
22334 done` || { (exit 1); exit 1; }
22335 _ACEOF
22336 cat >>$CONFIG_STATUS <<_ACEOF
22337 sed "$ac_vpsub
22338 $extrasub
22339 _ACEOF
22340 cat >>$CONFIG_STATUS <<\_ACEOF
22341 :t
22342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22343 s,@configure_input@,$configure_input,;t t
22344 s,@srcdir@,$ac_srcdir,;t t
22345 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22346 s,@top_srcdir@,$ac_top_srcdir,;t t
22347 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22348 s,@builddir@,$ac_builddir,;t t
22349 s,@abs_builddir@,$ac_abs_builddir,;t t
22350 s,@top_builddir@,$ac_top_builddir,;t t
22351 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22352 s,@INSTALL@,$ac_INSTALL,;t t
22353 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22354 rm -f $tmp/stdin
22355 if test x"$ac_file" != x-; then
22356 mv $tmp/out $ac_file
22357 else
22358 cat $tmp/out
22359 rm -f $tmp/out
22360 fi
22361
22362 done
22363 _ACEOF
22364 cat >>$CONFIG_STATUS <<\_ACEOF
22365
22366 #
22367 # CONFIG_HEADER section.
22368 #
22369
22370 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22371 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22372 #
22373 # ac_d sets the value in "#define NAME VALUE" lines.
22374 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22375 ac_dB='[ ].*$,\1#\2'
22376 ac_dC=' '
22377 ac_dD=',;t'
22378 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22379 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22380 ac_uB='$,\1#\2define\3'
22381 ac_uC=' '
22382 ac_uD=',;t'
22383
22384 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22386 case $ac_file in
22387 - | *:- | *:-:* ) # input from stdin
22388 cat >$tmp/stdin
22389 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22391 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22393 * ) ac_file_in=$ac_file.in ;;
22394 esac
22395
22396 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22397 echo "$as_me: creating $ac_file" >&6;}
22398
22399 # First look for the input files in the build tree, otherwise in the
22400 # src tree.
22401 ac_file_inputs=`IFS=:
22402 for f in $ac_file_in; do
22403 case $f in
22404 -) echo $tmp/stdin ;;
22405 [\\/$]*)
22406 # Absolute (can't be DOS-style, as IFS=:)
22407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22408 echo "$as_me: error: cannot find input file: $f" >&2;}
22409 { (exit 1); exit 1; }; }
22410 # Do quote $f, to prevent DOS paths from being IFS'd.
22411 echo "$f";;
22412 *) # Relative
22413 if test -f "$f"; then
22414 # Build tree
22415 echo "$f"
22416 elif test -f "$srcdir/$f"; then
22417 # Source tree
22418 echo "$srcdir/$f"
22419 else
22420 # /dev/null tree
22421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22422 echo "$as_me: error: cannot find input file: $f" >&2;}
22423 { (exit 1); exit 1; }; }
22424 fi;;
22425 esac
22426 done` || { (exit 1); exit 1; }
22427 # Remove the trailing spaces.
22428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22429
22430 _ACEOF
22431
22432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22433 # `conftest.undefs', that substitutes the proper values into
22434 # config.h.in to produce config.h. The first handles `#define'
22435 # templates, and the second `#undef' templates.
22436 # And first: Protect against being on the right side of a sed subst in
22437 # config.status. Protect against being in an unquoted here document
22438 # in config.status.
22439 rm -f conftest.defines conftest.undefs
22440 # Using a here document instead of a string reduces the quoting nightmare.
22441 # Putting comments in sed scripts is not portable.
22442 #
22443 # `end' is used to avoid that the second main sed command (meant for
22444 # 0-ary CPP macros) applies to n-ary macro definitions.
22445 # See the Autoconf documentation for `clear'.
22446 cat >confdef2sed.sed <<\_ACEOF
22447 s/[\\&,]/\\&/g
22448 s,[\\$`],\\&,g
22449 t clear
22450 : clear
22451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22452 t end
22453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22454 : end
22455 _ACEOF
22456 # If some macros were called several times there might be several times
22457 # the same #defines, which is useless. Nevertheless, we may not want to
22458 # sort them, since we want the *last* AC-DEFINE to be honored.
22459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22461 rm -f confdef2sed.sed
22462
22463 # This sed command replaces #undef with comments. This is necessary, for
22464 # example, in the case of _POSIX_SOURCE, which is predefined and required
22465 # on some systems where configure will not decide to define it.
22466 cat >>conftest.undefs <<\_ACEOF
22467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22468 _ACEOF
22469
22470 # Break up conftest.defines because some shells have a limit on the size
22471 # of here documents, and old seds have small limits too (100 cmds).
22472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22473 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22475 echo ' :' >>$CONFIG_STATUS
22476 rm -f conftest.tail
22477 while grep . conftest.defines >/dev/null
22478 do
22479 # Write a limited-size here document to $tmp/defines.sed.
22480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22481 # Speed up: don't consider the non `#define' lines.
22482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22483 # Work around the forget-to-reset-the-flag bug.
22484 echo 't clr' >>$CONFIG_STATUS
22485 echo ': clr' >>$CONFIG_STATUS
22486 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22487 echo 'CEOF
22488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22489 rm -f $tmp/in
22490 mv $tmp/out $tmp/in
22491 ' >>$CONFIG_STATUS
22492 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22493 rm -f conftest.defines
22494 mv conftest.tail conftest.defines
22495 done
22496 rm -f conftest.defines
22497 echo ' fi # grep' >>$CONFIG_STATUS
22498 echo >>$CONFIG_STATUS
22499
22500 # Break up conftest.undefs because some shells have a limit on the size
22501 # of here documents, and old seds have small limits too (100 cmds).
22502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22503 rm -f conftest.tail
22504 while grep . conftest.undefs >/dev/null
22505 do
22506 # Write a limited-size here document to $tmp/undefs.sed.
22507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22508 # Speed up: don't consider the non `#undef'
22509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22510 # Work around the forget-to-reset-the-flag bug.
22511 echo 't clr' >>$CONFIG_STATUS
22512 echo ': clr' >>$CONFIG_STATUS
22513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22514 echo 'CEOF
22515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22516 rm -f $tmp/in
22517 mv $tmp/out $tmp/in
22518 ' >>$CONFIG_STATUS
22519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22520 rm -f conftest.undefs
22521 mv conftest.tail conftest.undefs
22522 done
22523 rm -f conftest.undefs
22524
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 # Let's still pretend it is `configure' which instantiates (i.e., don't
22527 # use $as_me), people would be surprised to read:
22528 # /* config.h. Generated by config.status. */
22529 if test x"$ac_file" = x-; then
22530 echo "/* Generated by configure. */" >$tmp/config.h
22531 else
22532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22533 fi
22534 cat $tmp/in >>$tmp/config.h
22535 rm -f $tmp/in
22536 if test x"$ac_file" != x-; then
22537 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22539 echo "$as_me: $ac_file is unchanged" >&6;}
22540 else
22541 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X"$ac_file" : 'X\(//\)[^/]' \| \
22544 X"$ac_file" : 'X\(//\)$' \| \
22545 X"$ac_file" : 'X\(/\)' \| \
22546 . : '\(.\)' 2>/dev/null ||
22547 echo X"$ac_file" |
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22550 /^X\(\/\/\)$/{ s//\1/; q; }
22551 /^X\(\/\).*/{ s//\1/; q; }
22552 s/.*/./; q'`
22553 { if $as_mkdir_p; then
22554 mkdir -p "$ac_dir"
22555 else
22556 as_dir="$ac_dir"
22557 as_dirs=
22558 while test ! -d "$as_dir"; do
22559 as_dirs="$as_dir $as_dirs"
22560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22562 X"$as_dir" : 'X\(//\)[^/]' \| \
22563 X"$as_dir" : 'X\(//\)$' \| \
22564 X"$as_dir" : 'X\(/\)' \| \
22565 . : '\(.\)' 2>/dev/null ||
22566 echo X"$as_dir" |
22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22569 /^X\(\/\/\)$/{ s//\1/; q; }
22570 /^X\(\/\).*/{ s//\1/; q; }
22571 s/.*/./; q'`
22572 done
22573 test ! -n "$as_dirs" || mkdir $as_dirs
22574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22576 { (exit 1); exit 1; }; }; }
22577
22578 rm -f $ac_file
22579 mv $tmp/config.h $ac_file
22580 fi
22581 else
22582 cat $tmp/config.h
22583 rm -f $tmp/config.h
22584 fi
22585 done
22586 _ACEOF
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22588
22589 #
22590 # CONFIG_COMMANDS section.
22591 #
22592 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22593 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22594 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22595 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597 X"$ac_dest" : 'X\(//\)[^/]' \| \
22598 X"$ac_dest" : 'X\(//\)$' \| \
22599 X"$ac_dest" : 'X\(/\)' \| \
22600 . : '\(.\)' 2>/dev/null ||
22601 echo X"$ac_dest" |
22602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22604 /^X\(\/\/\)$/{ s//\1/; q; }
22605 /^X\(\/\).*/{ s//\1/; q; }
22606 s/.*/./; q'`
22607 { if $as_mkdir_p; then
22608 mkdir -p "$ac_dir"
22609 else
22610 as_dir="$ac_dir"
22611 as_dirs=
22612 while test ! -d "$as_dir"; do
22613 as_dirs="$as_dir $as_dirs"
22614 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22616 X"$as_dir" : 'X\(//\)[^/]' \| \
22617 X"$as_dir" : 'X\(//\)$' \| \
22618 X"$as_dir" : 'X\(/\)' \| \
22619 . : '\(.\)' 2>/dev/null ||
22620 echo X"$as_dir" |
22621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22623 /^X\(\/\/\)$/{ s//\1/; q; }
22624 /^X\(\/\).*/{ s//\1/; q; }
22625 s/.*/./; q'`
22626 done
22627 test ! -n "$as_dirs" || mkdir $as_dirs
22628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22630 { (exit 1); exit 1; }; }; }
22631
22632 ac_builddir=.
22633
22634 if test "$ac_dir" != .; then
22635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22636 # A "../" for each directory in $ac_dir_suffix.
22637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22638 else
22639 ac_dir_suffix= ac_top_builddir=
22640 fi
22641
22642 case $srcdir in
22643 .) # No --srcdir option. We are building in place.
22644 ac_srcdir=.
22645 if test -z "$ac_top_builddir"; then
22646 ac_top_srcdir=.
22647 else
22648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22649 fi ;;
22650 [\\/]* | ?:[\\/]* ) # Absolute path.
22651 ac_srcdir=$srcdir$ac_dir_suffix;
22652 ac_top_srcdir=$srcdir ;;
22653 *) # Relative path.
22654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22656 esac
22657
22658 # Do not use `cd foo && pwd` to compute absolute paths, because
22659 # the directories may not exist.
22660 case `pwd` in
22661 .) ac_abs_builddir="$ac_dir";;
22662 *)
22663 case "$ac_dir" in
22664 .) ac_abs_builddir=`pwd`;;
22665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22666 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22667 esac;;
22668 esac
22669 case $ac_abs_builddir in
22670 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22671 *)
22672 case ${ac_top_builddir}. in
22673 .) ac_abs_top_builddir=$ac_abs_builddir;;
22674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22676 esac;;
22677 esac
22678 case $ac_abs_builddir in
22679 .) ac_abs_srcdir=$ac_srcdir;;
22680 *)
22681 case $ac_srcdir in
22682 .) ac_abs_srcdir=$ac_abs_builddir;;
22683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22685 esac;;
22686 esac
22687 case $ac_abs_builddir in
22688 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22689 *)
22690 case $ac_top_srcdir in
22691 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22694 esac;;
22695 esac
22696
22697
22698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22699 echo "$as_me: executing $ac_dest commands" >&6;}
22700 case $ac_dest in
22701 default )
22702
22703 ### Make the necessary directories, if they don't exist.
22704 for dir in etc lisp ; do
22705 test -d ${dir} || mkdir ${dir}
22706 done
22707
22708 # Build src/Makefile from ${srcdir}/src/Makefile.c
22709 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22710 # This must be done after src/config.h is built, since we rely on that file.
22711
22712 # Now get this: Some word that is part of the ${srcdir} directory name
22713 # or the ${configuration} value might, just might, happen to be an
22714 # identifier like `sun4' or `i386' or something, and be predefined by
22715 # the C preprocessor to some helpful value like 1, or maybe the empty
22716 # string. Needless to say consequent macro substitutions are less
22717 # than conducive to the makefile finding the correct directory.
22718 undefs="`echo $top_srcdir $configuration $canonical |
22719 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22720 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22721 `"
22722
22723 echo creating src/epaths.h
22724 ${MAKE-make} epaths-force
22725
22726 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22727 # `..' to `. .' unless invoked with -traditional
22728
22729 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22730 CPPFLAGS="$CPPFLAGS -traditional"
22731 fi
22732
22733 echo creating lib-src/Makefile
22734 ( cd lib-src
22735 rm -f junk.c junk1.c junk2.c
22736 sed -e '/start of cpp stuff/q' \
22737 < Makefile.c > junk1.c
22738 sed -e '1,/start of cpp stuff/d'\
22739 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22740 < Makefile.c > junk.c
22741 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22742 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22743 cat junk1.c junk2.c > Makefile.new
22744 rm -f junk.c junk1.c junk2.c
22745 chmod 444 Makefile.new
22746 mv -f Makefile.new Makefile
22747 )
22748
22749 echo creating src/Makefile
22750 ( cd src
22751 rm -f junk.c junk1.c junk2.c
22752 sed -e '/start of cpp stuff/q' \
22753 < Makefile.c > junk1.c
22754 sed -e '1,/start of cpp stuff/d'\
22755 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22756 < Makefile.c > junk.c
22757 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22758 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22759 cat junk1.c junk2.c > Makefile.new
22760 rm -f junk.c junk1.c junk2.c
22761 chmod 444 Makefile.new
22762 mv -f Makefile.new Makefile
22763 )
22764
22765 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22766 echo creating src/.gdbinit
22767 echo source $srcdir/src/.gdbinit > src/.gdbinit
22768 fi
22769
22770 # This is how we know whether to re-run configure in certain cases.
22771 touch src/config.stamp
22772
22773 ;;
22774 esac
22775 done
22776 _ACEOF
22777
22778 cat >>$CONFIG_STATUS <<\_ACEOF
22779
22780 { (exit 0); exit 0; }
22781 _ACEOF
22782 chmod +x $CONFIG_STATUS
22783 ac_clean_files=$ac_clean_files_save
22784
22785
22786 # configure is writing to config.log, and then calls config.status.
22787 # config.status does its own redirection, appending to config.log.
22788 # Unfortunately, on DOS this fails, as config.log is still kept open
22789 # by configure, so config.status won't be able to write to it; its
22790 # output is simply discarded. So we exec the FD to /dev/null,
22791 # effectively closing config.log, so it can be properly (re)opened and
22792 # appended to by config.status. When coming back to configure, we
22793 # need to make the FD available again.
22794 if test "$no_create" != yes; then
22795 ac_cs_success=:
22796 ac_config_status_args=
22797 test "$silent" = yes &&
22798 ac_config_status_args="$ac_config_status_args --quiet"
22799 exec 5>/dev/null
22800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22801 exec 5>>config.log
22802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22803 # would make configure fail if this is the last instruction.
22804 $ac_cs_success || { (exit 1); exit 1; }
22805 fi
22806
22807